ttest_06.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_06.sh (748B)
       ---
            1 #!/bin/bash
            2 
            3 PISM_PATH=$1
            4 MPIEXEC=$2
            5 
            6 echo "Test # 6: bootstrapping from symmetric and non-symmetric x- and y-vars."
            7 files="foo-06.nc bar-06.nc baz-06.nc"
            8 
            9 OPTS="-i foo-06.nc -bootstrap -Mx 21 -My 11 -Mz 31 -Mbz 1 -Lz 4000 -y 0 -o_size small"
           10 
           11 set -e -x
           12 
           13 # Create a file to bootstrap from:
           14 $PISM_PATH/pismv -test G -Lx 4000 -Ly 4000 -Mx 21 -My 21 -Mz 11 -Mbz 1 -y 0 -o foo-06.nc 
           15 
           16 # Bootstrap with a symmetric range:
           17 $PISM_PATH/pismr $OPTS -o bar-06.nc 
           18 # Change the range:
           19 ncap2 -O -s"\"x=x+1e4;y=y+1e4\"" foo-06.nc foo-06.nc
           20 # Bootstrap with a non-symmetric range:
           21 $PISM_PATH/pismr $OPTS -o baz-06.nc 
           22 
           23 set +e
           24 
           25 # Check:
           26 $PISM_PATH/nccmp.py -t 1e-16 -x -v x,y,timestamp bar-06.nc baz-06.nc
           27 if [ $? != 0 ];
           28 then
           29     exit 1
           30 fi
           31 
           32 rm -f $files; exit 0