LSF Scheduler - Running Simulation Script Example

#######################
# LSF scheduler options
#######################

# Redirect the output console to a file, %J will be replace by the job id
#BSUB -o "fileOutput.out"
# Redirect this script submission error to a file, %J will be replace by the job id#BSUB -e "fileError.err"
# One task per node
#BSUB -R "span[ptile=1]"
# Number of computers for the distributed simulation
#BSUB -n 4
# You can specify your own job name
#BSUB -J "myJobName"
# Overwall maximum job time, after this delay your job will be killed without final merging (only last periodic save will be available)!!!!#BSUB -W 02:00
# Load the INTEL redistributables
. /etc/profile.d/modules.sh
module load intel_mpi/5.1.2 > /dev/null 2>&1

###############################
# Speos HPC command line options
###############################

# Defines the folder used by Speos HPC to write temporary files
export TMPDIR="/path/to/speos/"
# Specifies the ANSYS License Server
export ANSYSLMD_LICENSE_FILE=1055@ServerName
# Distribute my Speos HPC simulation on 4 computers in this example.
mpiexec.hydra -launcher ssh -np 4 SPEOSHPC.x -speos /path/to/speos/file.speos -threads 24 -htime 2
# NOTE: if you want to run simulation using GPU of the cluster, add the -gpu command line in the line above.
# NOTE: the -threads command line is useless when using the -gpu command line.