#! /bin/bash #exec > @RUNDIR@/@SIMULATION_NAME@.out 2> @RUNDIR@/@SIMULATION_NAME@.err echo "Preparing:" set -x # Output commands set -e # Abort on errors cd @RUNDIR@-active echo "Checking:" pwd hostname date cat ${PBS_NODES} > SIMFACTORY/NODES echo "Environment:" export GMON_OUT_PREFIX=gmon.out export OPENMPI_DIR=/usr/common/usg/openmpi/1.4.1/pgi export OMP_NUM_THREADS=@NUM_THREADS@ export MPICH_PTL_UNEX_EVENTS=204800 env | sort > SIMFACTORY/ENVIRONMENT echo "Starting:" export CACTUS_STARTTIME=$(date +%s) ${OPENMPI_DIR}/bin/mpirun -np @NUM_PROCS@ @EXECUTABLE@ -L 3 @PARFILE@ echo "Stopping:" date echo "Done."