#!/bin/sh # Redirect stdout and stderr exec > @SIMULATION_NAME@.out 2> @SIMULATION_NAME@.err echo "Preparing:" set -x # Output commands set -e # Abort on errors cd @RUNDIR@ # # export GMON_OUT_PREFIX=gmon.out echo "Checking:" pwd hostname date echo "Environment:" env > SIMFACTORY/ENVIRONMENT echo "Nodes:" echo 'prism2' > SIMFACTORY/NODES echo "Starting:" export CACTUS_STARTTIME=$(date +%s) /opt/mpich/ch-p4/bin/mpirun -np @PROCS@ @EXECUTABLE@ -L 3 @PARFILE@ echo "Stopping:" date mail -s 'Simulation @SIMULATION_NAME@ finished' @USER@ <