Grid Engine Job Script Example Star-CCM

#!/bin/sh
#
# Your job name
#$ -N STAR-CCM
#
# Use current working directory
#$ -cwd
#
# Join stdout and stderr
#$ -j y
#
# pe (Parallel environment) request. Set your number of processors here.
#$ -pe mvapich 56
#
# Run job through bash shell
#$ -S /bin/bash
#
#$ -q starccm.q
# If modules are needed, source modules environment:
. /etc/profile.d/modules.sh
# Add any modules you might require:
module add shared sge mvapich/gcc starccm
MYAPP="starccm+"
MYINPUTFILE="/home/cmsupport/BenchMarks/star-ccm/test3.sim"
# The following output will show in the output file. Used for debugging.
echo "Got $NSLOTS processors."
echo "Machines:"
cat $TMPDIR/machines
###
$MYAPP -rsh ssh -machinefile $TMPDIR/machines -np $NSLOTS -power -batch $MYINPUTFILE

Copyright 2002-2014 ClusterVision BV