ttest_09.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_09.sh (957B)
       ---
            1 #!/bin/bash
            2 
            3 PISM_PATH=$1
            4 MPIEXEC=$2
            5 
            6 echo "Test # 9: 3D regridding from files with different variable orders."
            7 files="foo-09.nc bar-09.nc baz-09.nc"
            8 
            9 OPTS="-Mx 61 -My 61 -Mz 21 -Lz 4000 -regrid_file foo-09.nc -regrid_vars topg,litho_temp,thk,bwat,enthalpy -y 0"
           10 
           11 rm -f $files
           12 
           13 set -e -x
           14 
           15 # Create a file to bootstrap from (with a non-trivial bed topography):
           16 $MPIEXEC -n 1 $PISM_PATH/pisms -eisII I -Mx 51 -My 60 -Mz 21 -Mbz 21 -Lbz 1000 -y 0 -o foo-09.nc
           17 
           18 # Bootstrap from this file and run for 0 years:
           19 $MPIEXEC -n 2 $PISM_PATH/pismr -i foo-09.nc -bootstrap $OPTS -o bar-09.nc
           20 
           21 # Change the variable order in foo-09.nc to z,y,x:
           22 ncpdq -O -a z,y,x foo-09.nc foo-09.nc
           23 
           24 # Bootstrap from this file and run for 0 years:
           25 $MPIEXEC -n 2 $PISM_PATH/pismr -i foo-09.nc -bootstrap $OPTS -o baz-09.nc
           26 
           27 set +e
           28 set +x
           29 
           30 # Compare bar-09.nc and baz-09.nc:
           31 $PISM_PATH/nccmp.py -x -v timestamp bar-09.nc baz-09.nc
           32 if [ $? != 0 ];
           33 then
           34     exit 1
           35 fi
           36 
           37 rm -f $files; exit 0