#!/bin/sh echo "Preparing:" set -x # Output commands set -e # Abort on errors cd @RUNDIR@ # # export GMON_OUT_PREFIX=gmon.out export PS_HWPC_TIME=0 # Collect xml stats file for any successful exit echo "Checking:" pwd hostname date echo "LSB nodes:" cat ${LSB_NODEFILE} cat ${LSB_NODEFILE} > SIMFACTORY/NODES echo "Environment:" env > SIMFACTORY/ENVIRONMENT echo "Starting:" if (( @PROCS@ < 512 )); then scale='' else scale='-scale_level 2' fi export CACTUS_STARTTIME=$(date +%s) cmpirun -np @PROCS@ -lsf ${scale} @EXECUTABLE@ -L 3 @PARFILE@ echo "Stopping:" date echo "Done."