ttest_31.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_31.sh (774B)
---
1 #!/bin/bash
2
3 # Test initialization using "temperature" and "liqfrac" to compute
4 # enthalpy.
5
6 PISM_PATH=$1
7 MPIEXEC=$2
8 PISM_SOURCE_DIR=$3
9
10 # List of files to remove when done:
11 files="temp.nc temp-liqfrac.nc output-1.nc output-2.nc"
12
13 rm -f $files
14
15 set -e
16 set -x
17
18 # prepare input files with temp and liqfrac and with temp only
19 $PISM_PATH/pisms -Mx 3 -My 3 -energy enthalpy -y 10 -o temp-liqfrac.nc -o_size big
20 ncks -x -v enthalpy -O temp-liqfrac.nc temp-liqfrac.nc
21 ncks -x -v liqfrac -O temp-liqfrac.nc temp.nc
22
23 # try initializing from these:
24 $PISM_PATH/pismr -i temp-liqfrac.nc -o output-1.nc -y 10 -options_left
25 $PISM_PATH/pismr -i temp.nc -o output-2.nc -y 10 -options_left
26
27 if [[ -f output-1.nc && -f output-2.nc ]];
28 then
29 rm -f $files; exit 0
30 else
31 exit 1
32 fi
33
34 set +e