SLURM Scheduler - Checking Simulation Script Example

#!/bin/bash
#SBATCH -p debug
#SBATCH -o "fileOutput.out"
#SBATCH -e "fileError.err"
#SBATCH -J "myJobName"
#SBATCH -n 1
#SBATCH -N 1
# spread the tasks evenly among the nodes
#SBATCH --ntasks-per-node=1
#SBATCH -t 00:03:00

# Load the INTEL redistributables
export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2016.0.109/linux/mpi/lib64/:$LD_LIBRARY_PATH
export PATH=/opt/intel/compilers_and_libraries_2016.0.109/linux/mpi/bin64/:$PATH

###############################
# 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 1 computer in this example.
mpiexec.hydra -launcher ssh -np 1 SPEOSHPC.x -speos /path/to/speos/file.speos -check