ttest_18.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_18.sh (997B) --- 1 #!/bin/bash 2 3 PISM_PATH=$1 4 MPIEXEC=$2 5 6 # Test name: 7 echo "Test #18: verif test K regression: cold ice method, bedrock thermal layer." 8 # The list of files to delete when done. 9 files="test-K-out.txt" 10 11 rm -f $files 12 13 # run test K 14 OPTS="-test K -Mx 4 -My 4 -y 13000.0 -Lbz 1000 -z_spacing equal -verbose 1 -o_size none" 15 $PISM_PATH/pismv -Mz 41 -Mbz 11 -max_dt 60.0 $OPTS > test-K-out.txt 16 $PISM_PATH/pismv -Mz 81 -Mbz 21 -max_dt 30.0 $OPTS >> test-K-out.txt 17 18 # compare results 19 diff test-K-out.txt - <<END-OF-OUTPUT 20 NUMERICAL ERRORS evaluated at final time (relative to exact solution): 21 temp : maxT avT maxTb avTb 22 0.005298 0.002065 0.001899 0.001297 23 NUM ERRORS DONE 24 NUMERICAL ERRORS evaluated at final time (relative to exact solution): 25 temp : maxT avT maxTb avTb 26 0.001537 0.000618 0.001074 0.000664 27 NUM ERRORS DONE 28 END-OF-OUTPUT 29 30 if [ $? != 0 ]; 31 then 32 exit 1 33 fi 34 35 rm -f $files; exit 0 36