ttest_03.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_03.sh (551B)
       ---
            1 #!/bin/bash
            2 
            3 PISM_PATH=$1
            4 MPIEXEC=$2
            5 
            6 echo "Test # 3: no information loss on -y 0 runs (ignoring diagnostics)."
            7 files="foo-03.nc bar-03.nc"
            8 
            9 OPTS="-o_size small "
           10 
           11 set -e -x
           12 
           13 # Create a file to start from:
           14 $MPIEXEC -n 2 $PISM_PATH/pisms -energy enthalpy -y 1000 $OPTS -o foo-03.nc -Mx 31 -My 41
           15 
           16 # Run for 0 years:
           17 $MPIEXEC -n 2 $PISM_PATH/pismr -i foo-03.nc -y 0 $OPTS -o bar-03.nc
           18 
           19 # Compare, excluding irrelevant diagnostic variables:
           20 $PISM_PATH/nccmp.py -x -v timestamp foo-03.nc bar-03.nc
           21 if [ $? != 0 ];
           22 then
           23     exit 1
           24 fi
           25 
           26 rm -f $files; exit 0