ttest_32.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_32.sh (735B)
---
1 #!/bin/bash
2
3 PISM_PATH=$1
4 MPIEXEC=$2
5
6 echo "Test #32: testing special enthalpy regridding code."
7 # The list of files to delete when done:
8 files="foo-32.nc bar-32.nc baz-32.nc"
9
10 OPTS="-ys 0 -y 0 -i foo-32.nc -bootstrap -regrid_file foo-32.nc -Lz 4000 -Mx 31 -My 31 -Mz 51"
11
12 set -e -x
13
14 # Create the file to regrid and bootstrap from:
15 $PISM_PATH/pisms -energy enthalpy -y 500 -o foo-32.nc -o_size big
16
17 # Bootstrap from this file:
18 $PISM_PATH/pismr $OPTS -o bar-32.nc
19
20 # Remove enthalpy from foo-32.nc
21 ncks -x -v enthalpy -O foo-32.nc foo-32.nc
22
23 # Bootstrap again
24 $PISM_PATH/pismr $OPTS -o baz-32.nc
25
26 set +e
27
28 # Compare:
29 $PISM_PATH/nccmp.py -r -t 1e-6 -v enthalpy bar-32.nc baz-32.nc
30 if [ $? != 0 ];
31 then
32 exit 1
33 fi
34
35 rm -f $files; exit 0