ttest_07.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_07.sh (791B)
---
1 #!/bin/bash
2
3 PISM_PATH=$1
4 MPIEXEC=$2
5
6 echo "Test # 7: comparing regridding via '-i file.nc -bootstrap' and -regrid_file."
7 # The list of files to delete when done:
8 files="foo-07.nc bar-07.nc baz-07.nc"
9
10 OPTS="-y 0"
11
12 set -e -x
13
14 # Create the file to regrid and bootstrap from:
15 $PISM_PATH/pismv -test G -Lx 4000 -Ly 4000 -Lz 4000 -Mx 41 -My 51 -Mz 31 -y 0 -o foo-07.nc
16
17 # Bootstrap from this file:
18 $PISM_PATH/pismr -i foo-07.nc -bootstrap -Lx 2000 -Ly 2000 -Lz 4000 -Mx 31 -My 41 -Mz 51 $OPTS -o bar-07.nc
19
20 # Overwrite topg using -regrig_file and save the result to baz-07.nc:
21 $PISM_PATH/pismr -i bar-07.nc -regrid_file foo-07.nc -regrid_vars topg $OPTS -o baz-07.nc
22
23 set +e
24
25 # Compare:
26 $PISM_PATH/nccmp.py -v topg bar-07.nc baz-07.nc
27 if [ $? != 0 ];
28 then
29 exit 1
30 fi
31
32 rm -f $files; exit 0