#!/bin/bash #PBS -S /bin/bash cd $PBS_O_WORKDIR echo "Current working directory is `pwd`" echo "Node file: $PBS_NODEFILE :" echo "---------------------" cat $PBS_NODEFILE echo "---------------------" # On many WestGrid systems a variable PBS_NP is automatically # assigned the number of cores requested of the batch system # and one could use # echo "Running on $PBS_NP cores." # On systems where $PBS_NP is not available, one could use: CORES=`/bin/awk 'END {print NR}' $PBS_NODEFILE` echo "Running on $CORES cores." echo "Starting run at: `date`" ./MOM_run.csh --npes $CORES --platform bugaboo.intel --type MOM_solo --experiment ESM2M_pi-control_C2 echo "MOM_run.csh finished with exit code $? at: `date`"h exit code $? at: `date`"