ttest_16.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_16.sh (992B)
---
1 #!/bin/bash
2
3 PISM_PATH=$1
4 MPIEXEC=$2
5
6 # Test name:
7 echo "Test #16: verif test L regression: isothermal SIA with non-flat bed."
8 # The list of files to delete when done.
9 files="test_16-L-out.txt"
10
11 rm -f $files
12
13 set -x
14 set -e
15
16 # run test L
17 OPTS="-test L -Mbz 1 -Mz 31 -y 1000 -o_size none -verbose 1"
18 $MPIEXEC -n 2 $PISM_PATH/pismv -Mx 21 -My 21 $OPTS > test_16-L-out.txt
19 $MPIEXEC -n 2 $PISM_PATH/pismv -Mx 31 -My 31 $OPTS >> test_16-L-out.txt
20
21 # compare results
22 diff test_16-L-out.txt - <<END-OF-OUTPUT
23 NUMERICAL ERRORS evaluated at final time (relative to exact solution):
24 geometry : prcntVOL maxH avH relmaxETA
25 0.283121 168.847973 8.958281 0.004678
26 NUM ERRORS DONE
27 NUMERICAL ERRORS evaluated at final time (relative to exact solution):
28 geometry : prcntVOL maxH avH relmaxETA
29 0.030774 143.588110 3.831173 0.002931
30 NUM ERRORS DONE
31 END-OF-OUTPUT
32
33 if [ $? != 0 ];
34 then
35 exit 1
36 fi
37
38 rm -f $files; exit 0
39