ttest-template.txt - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
 (HTM) git clone git://src.adamsgaard.dk/pism
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       ttest-template.txt (312B)
       ---
            1 #!/bin/bash
            2 
            3 # Describe the test here.
            4 
            5 PISM_PATH=$1
            6 MPIEXEC=$2
            7 PISM_SOURCE_DIR=$3
            8 
            9 # List of files to remove when done:
           10 files="foo.nc"
           11 
           12 rm -f $files
           13 
           14 set -e
           15 
           16 # do stuff
           17 $MPIEXEC -n 2 $PISM_PATH/pismr ...
           18 
           19 set +e
           20 
           21 # Check results:
           22 $PISM_PATH/nccmp.py ...
           23 if [ $? != 0 ];
           24 then
           25     exit 1
           26 fi
           27 
           28 rm -f $files; exit 0