Can you give me a sample submission script for Fluidity on HECToR?

Created by Tim Greaves
Keywords:

#!/bin/bash --login
#PBS -N fluidity_run
#PBS -l mppwidth=512
#PBS -l mppnppn=32
#PBS -l walltime=0:10:00
#PBS -A n04-IC
module swap PrgEnv-cray PrgEnv-fluidity

# Change to the direcotry that the job was submitted from
cd $PBS_O_WORKDIR

# The following take a copy of the Fluidity Python directory and
# put it in the current directory. If we don't do this, we get import errors.
export WORKING_DIR=$(pwd -P)
cp -r /usr/local/packages/fluidity/xe6/2.0/python/ .
export PYTHONPATH=$WORKING_DIR/python:$PYTHONPATH

# Set the number of MPI tasks
export NPROC=`qstat -f $PBS_JOBID | awk '/mppwidth/ {print $3}'`
# Set the number of MPI tasks per node
export NTASK=`qstat -f $PBS_JOBID | awk '/mppnppn/ {print $3}'`
aprun -n $NPROC -N $NTASK fluidity -l -v1 standing_wave.flml

# clean up the python directory
rm -rf python