ttest_28.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_28.sh (795B) --- 1 #!/bin/bash 2 3 # Tests bootstrapping from an incomplete dataset. 4 5 PISM_PATH=$1 6 MPIEXEC=$2 7 PISM_SOURCE_DIR=$3 8 9 # List of files to remove when done: 10 files="foo-28.nc bar-28.nc baz-28.nc" 11 12 rm -f $files 13 14 set -e 15 set -x 16 17 # create a (complete) dataset to bootstrap from: 18 $MPIEXEC -n 2 $PISM_PATH/pisms -y 100 -o foo-28.nc 19 20 OPTS="-i foo-28.nc -bootstrap -Mx 61 -My 61 -Mz 11 -y 10 -Lz 1000" 21 # bootstrap and run for 100 years: 22 $MPIEXEC -n 2 $PISM_PATH/pismr $OPTS -o bar-28.nc 23 24 # remove some variables 25 ncks -x -v basal_melt_rate_grounded,tillwat,dbdt -O foo-28.nc foo-28.nc 26 27 # bootstrap and run for 100 years: 28 $MPIEXEC -n 2 $PISM_PATH/pismr $OPTS -o baz-28.nc 29 30 set +e 31 set +x 32 33 # Check results: 34 $PISM_PATH/nccmp.py -x -v timestamp bar-28.nc baz-28.nc 35 if [ $? != 0 ]; 36 then 37 exit 1 38 fi 39 40 rm -f $files; exit 0