#!/bin/csh # Request maximum wallclock time for job #PBS -l walltime=01:00:00 # select=,ncpus=,mpiprocs= # Total cores requested = X #PBS -l select=2:ncpus=8:mpiprocs=8 #PBS -l application=abaqus # Specify how MPI processes are distributed on nodes #PBS -l place=scatter:excl # Request job name #PBS -N linux_abaqus # Request PBS job queue for job #PBS -q standard # Specify keep stdout/stderr files from job #PBS -k eo # Indicate required ABAQUS licenses #PBS -l abaqus=12 # Indicate Project ID #PBS -A ARLAP96090PIO # Request environment variables be exported from script #PBS -V # set JOBID=`echo $PBS_JOBID | cut -f1 -d.` echo Abaqus job is $JOBID starting at `date` on `hostname` # Change directory input files area cd ${HOME}/abaqus/input echo starting in `pwd` ## Get the execution host name and the number of cpus set exechost=`hostname -s` set NSLOTS=`wc -l $PBS_NODEFILE | cut -f1 -d " "` echo exechost is $exechost echo NSLOTS is $NSLOTS set jobhost=`hostname -s` set jobid=$JOBID chmod -R 755 *${jobid}* set cdir=`pwd` set outfile=out.dat set outdir=`pwd`/${JOBID} set TMPD=/usr/var/tmp/$LOGNAME/$JOBID if (! -e $TMPD ) mkdir -p $TMPD if (! -e $outdir ) mkdir -p $outdir chmod -R 755 *${jobid}* #setenv OMP_NUM_THREADS $NSLOTS set input=circuit.inp set HOME_DIR=`pwd` set mem=92000000 cp $input $TMPD/. cd $TMPD ls -l cat >> abaqus_v6.env << EOF run_mode=INTERACTIVE cpus=$NSLOTS pre_buffer=6000000 pre_memory=160000000 standard_memory=350000000 standard_buffer=100000000 explicit_precision=DOUBLE_PRECISION EOF ls -l echo abaqus_v6.env: cat abaqus_v6.env echo --------- set memory=$mem unlimit module load compiler/intel11.1 module load abaqus6.10.1 module show abaqus6.10.1 module list echo abaqus is `which abaqus` abaqus job=$PBS_JOBNAME input=$input cpus=$NSLOTS mp_mode=mpi >& $outfile set st=$status echo execution ended at `date` with status $st