ttest_04.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_04.sh (638B)
       ---
            1 #!/bin/bash
            2 
            3 PISM_PATH=$1
            4 MPIEXEC=$2
            5 
            6 echo "Test # 4: regridding during bootstrapping: coarse -> fine -> coarse."
            7 files="foo-04.nc bar-04.nc baz-04.nc"
            8 
            9 OPTS="-Lz 4000 -y 0 -o_size small "
           10 COARSE="-Mx 11 -My 21 -Mz 31"
           11 FINE=" -Mx 21 -My 31 -Mz 41"
           12 
           13 set -e -x
           14 
           15 # Create a file to bootstrap from:
           16 $PISM_PATH/pismv -test G $COARSE -y 0 -o foo-04.nc 
           17 
           18 # Coarse -> fine:
           19 $PISM_PATH/pismr -i foo-04.nc -bootstrap $FINE   $OPTS -o bar-04.nc
           20 
           21 # Fine -> coarse:
           22 $PISM_PATH/pismr -i bar-04.nc -bootstrap $COARSE $OPTS -o baz-04.nc
           23 
           24 # Compare:
           25 $PISM_PATH/nccmp.py -v topg foo-04.nc baz-04.nc
           26 if [ $? != 0 ];
           27 then
           28     exit 1
           29 fi
           30 
           31 rm -f $files; exit 0