ttest_01.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_01.sh (761B)
---
1 #!/bin/bash
2
3 echo "Test # 1: pismr exact restartability (SIA only)."
4 PISM_PATH=$1
5 MPIEXEC=$2
6
7 files="foo-01.nc bar-01.nc baz-01.nc joe-01.nc"
8 OPTS="-max_dt 1 -o_size small -energy enthalpy"
9
10 set -e -x
11
12 # generate an interesting file
13 $PISM_PATH/pisms -energy enthalpy -Mx 6 -My 6 -Mz 5 -y 5000 -max_dt 500.0 -o baz-01.nc
14
15 # run for ten years, fixed time step
16 $PISM_PATH/pisms -i baz-01.nc $OPTS -y 10 -o foo-01.nc
17
18 # chain two five year runs, fixed time step
19 $PISM_PATH/pisms -i baz-01.nc $OPTS -y 5 -o joe-01.nc
20 $PISM_PATH/pisms -i joe-01.nc $OPTS -y 5 -o bar-01.nc
21
22 set +e
23
24 # Compare output files at year 10:
25 $PISM_PATH/nccmp.py -v basal_melt_rate_grounded,enthalpy,thk,topg,tillwat foo-01.nc bar-01.nc
26 if [ $? != 0 ];
27 then
28 exit 1
29 fi
30
31 rm -f $files; exit 0