#!/bin/bash # Run simple Abaqus example job in parallel on 8 cores on 1 node # set default resource requirements for job (8 processors on 1 node for 2 hours) # - these can be overridden on the qsub command line #PBS -l nodes=1:ppn=8 #PBS -l walltime=2:00:00 #Change to directory from which job was submitted cd $PBS_O_WORKDIR # set number of processors to run on # (using list of node names in file $PBS_NODEFILE) np=`wc -l $PBS_NODEFILE | awk '{ print $1 }'` # load default abaqus module so that we find the abaqus command module load abaqus # Run Abaqus in parallel using MPI mode from file elbowcollapse_s8r5_fine.inp # using "interactive" job mode to prevent pbs script terminating before # abaqus job has finished abaqus job=elbowcollapse_s8r5_fine cpus=$np interactive # (see the output of the command "abaqus help" for more complicated # job specifications)