#!/bin/bash # # Simple test script which can be used to check the MPI code # # USAGE: in your job description file, include the line # # JOB testscript.sh ... # # # argument 1: run identification (=unique number) # argument 2: par 1 # argument 3: par 2 # ... # args=("$@") echo "***************************************" > environment echo " Script is called with" $# "arguments" >> environment for (( i=0; i<$#; i++ )); do echo " Argument" $i "is" ${args[$i]} >> environment done echo "***************************************" >> environment source $HOME/scripts/pandaroot.sh > /dev/null 2>&1 printenv >> environment exit 0