Grid Engine Job Script Example Fluent

cat fluent-sge.sh
#!/bin/bash
#
# Your job name
#$ -N FLUENT
#
# Use current working directory
#$ -cwd
#
# Join stdout and stderr
#$ -j y
#
# pe (Parallel environment) request. Set your number of processors here.
#$ -pe fluent 4
#
# Run job through bash shell
#$ -S /bin/bash
#
# Use this queue
#$ -q fluent.q
MYAPP= fluent
MYINPUTFILE= /home/cmsupport/BenchMarks/fluent/EF10078_RSA_R9M_CSR_veine-air_101005.jou
MYPARAMETERS=
# If modules are needed, source modules environment:
. /etc/profile.d/modules.sh
# Add any modules you might require:
module add shared sge fluent mvapich
 
# The following output will show in the output file. Used for debugging.
echo "Got $NSLOTS processors."
echo "Machines:"
cat $TMPDIR/machines
###
#
echo "fluent 3d -ssh -sge -pinfiniband -g -mpi=hp -t$NSLOTS -cnf=$TMPDIR/machines -i $MYINPUTFILE"
## without checkpointing
##fluent 3d -ssh -sge -pinfiniband -g -mpi=hp -t$NSLOTS -cnf=$TMPDIR/machines -i $MYINPUTFILE
## with checkpointing
fluent 3d -ssh -sge -sgeckpt fluent_ckpt -pinfiniband -g -mpi=hp -t$NSLOTS -cnf=$TMPDIR/machines -i $MYINPUTFILE

Copyright 2002-2014 ClusterVision BV