ttest_05.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_05.sh (828B) --- 1 #!/bin/bash 2 3 PISM_PATH=$1 4 MPIEXEC=$2 5 6 echo "Test # 5: bootstrapping from files with different variable orders." 7 files="foo-05.nc bar-05.nc baz-05.nc" 8 9 OPTS="-i foo-05.nc -bootstrap -Mx 41 -My 61 -Mz 21 -Lz 5000 -y 0 -o_size small" 10 11 set -e -x 12 13 # Create a file to bootstrap from (with a non-trivial bed topography): 14 $PISM_PATH/pisms -eisII I -Mx 121 -My 61 -Mz 21 -y 0 -o foo-05.nc 15 16 # Bootstrap from this file and run for 0 years: 17 $MPIEXEC -n 2 $PISM_PATH/pismr $OPTS -o bar-05.nc 18 19 # Change the variable order in foo-05.nc to z,y,x: 20 ncpdq -O -a z,y,x foo-05.nc foo-05.nc 21 22 # Bootstrap from this file and run for 0 years: 23 $MPIEXEC -n 2 $PISM_PATH/pismr $OPTS -o baz-05.nc 24 25 set +e 26 27 # Compare bar-05.nc and baz-05.nc: 28 $PISM_PATH/nccmp.py -x -v timestamp bar-05.nc baz-05.nc 29 if [ $? != 0 ]; 30 then 31 exit 1 32 fi 33 34 rm -f $files; exit 0