-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathg1km_cdf5.sh
53 lines (42 loc) · 1.32 KB
/
g1km_cdf5.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
##
# g1km_cdf5.sh - Created by Timothy Morey on 11/30/2012.
#
# This file provides a ranger batch script that will do a PISM run using 1km
# Greenland data. The parameters used in this file are based on the parameters
# of the first run in the examples/searise-greenland/experiments.sh script that
# is distributed with PISM 0.5.
#
#$ -V
#$ -cwd
#$ -j y
#$ -o o.$JOB_NAME.$JOB_ID
#$ -q normal
#$ -N g1km_cdf5
#$ -pe 4way 1024
#$ -l h_rt=01:00:00
#$ -M [email protected]
#$ -m be
#set -x
INDIR=$SCRATCH/input-c16-s1M
PISMDIR=$WORK/pism/intel/pism-dev/build-cdf5-v2
PISM=$PISMDIR/pismr
CONFIG="-config $INDIR/pism_config.nc"
CONFIGOVERRIDE="-config_override $INDIR/searise_config.nc"
OUTDIR=$SCRATCH/output-c16-s1M/$JOB_NAME.$JOB_ID
SKIP="-skip -skip_max 2000"
COUPLER="-atmosphere searise_greenland -surface pdd -pdd_annualize -ocean constant"
OPTS="$SKIP $COUPLER $CONFIG $CONFIGOVERRIDE -bed_def lc -ssa_sliding -thk_eff -topg_to_phi 5.0,20.0,-300.0,700.0 -ocean_kill -acab_cumulative -y 0"
mkdir $OUTDIR
for i in 1 2 3
do
/usr/bin/time -p ibrun $PISM $OPTS \
-i $INDIR/g1km_0_ftt.cdf5.nc \
-o_format pnetcdf -o $OUTDIR/g1km.cdf5.$i.nc \
-log_summary
/usr/bin/time -p ibrun $PISM $OPTS \
-i $INDIR/g1km_0_ftt.hdf5.nc \
-o_format netcdf4_parallel -o $OUTDIR/g1km.hdf5.$i.nc \
-log_summary
done
rm -rf $OUTDIR