To launch an ANSYS job through LSF using the blaunch framework, substitute the path to rsh or ssh with the path to blaunch. For example:
#BSUB -o stdout.txt
#BSUB -e stderr.txt
# Note: This case statement should be used to set up any
# environment variables needed to run the different versions
# of Ansys. All versions in this case statement that have the
# string "version list entry" on the same line will appear as
# choices in the Ansys service submission page.
case $VERSION in
10.0) #version list entry
export ANSYS_DIR=/usr/share/app/ansys_inc/v100/Ansys
export ANSYSLMD_LICENSE_FILE=1051@licserver.company.com
export MPI_REMSH=/opt/lsf/bin/blaunch
program=${ANSYS_DIR}/bin/ansys100
;;
*)
echo "Invalid version ($VERSION) specified"
exit 1
;;
esac
if [ -z "$JOBNAME" ]; then
export JOBNAME=ANSYS-$$
fi
if [ $CPUS -eq 1 ]; then
${program} -p ansys -j $JOBNAME -s read -l en-us -b -i $INPUT $OPTS
else
if [ $MEMORY_ARCH = "Distributed" ] Then
HOSTLIST=`echo $LSB_HOSTS | sed s/" "/":1:"/g` ${program} -j $JOBNAME - p
ansys -pp -dis -machines \
${HOSTLIST}:1 -i $INPUT $OPTS
else
${program} -j $JOBNAME -p ansys -pp -dis -np $CPUS \
-i $INPUT $OPTS
fi
fi