ttest_33.sh - 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_33.sh (433B)
       ---
            1 #!/bin/bash
            2 
            3 # Test that sia_forward.py runs.
            4 
            5 PISM_PATH=$1
            6 MPIEXEC=$2
            7 PISM_SOURCE_DIR=$3
            8 
            9 # List of files to remove when done:
           10 files="in.nc out.nc"
           11 
           12 rm -f $files
           13 
           14 set -e
           15 set -x
           16 
           17 # prepare input files with temp and liqfrac and with temp only
           18 $PISM_PATH/pisms -y 100 -o in.nc
           19 
           20 $PISM_SOURCE_DIR/examples/python/sia_forward.py -i in.nc -o out.nc
           21 
           22 if [[ -f in.nc && -f out.nc ]];
           23 then
           24     rm -f $files; exit 0
           25 else
           26     exit 1
           27 fi
           28 
           29 set +e