-
Notifications
You must be signed in to change notification settings - Fork 0
/
g5km.sh
47 lines (37 loc) · 1.06 KB
/
g5km.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
#!/bin/bash
##
# g5km.sh - Created by Timothy Morey on 10/17/2012.
#
# This file provides a ranger batch script that will do a PISM run using 5km
# 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
#$ -l h_rt=00:30:00
#$ -M timmorey@gmail.com
#$ -m be
set -x
PISM=$WORK/pism/software/pism-dev/build/pismr
INFILE=$WORK/pism/g5km_0_ftt.nc
OUTDIR=$SCRATCH/$JOB_NAME.$JOB_ID
SKIP="-skip -skip_max 200"
COUPLER="-atmosphere searise_greenland -surface pdd -pdd_annualize -ocean constant"
OPTS="$SKIP $COUPLER -i $INFILE -y 0"
mkdir $OUTDIR
for i in 1 2 3
do
/usr/bin/time -p ibrun $PISM $OPTS \
-o_format netcdf3 -o $OUTDIR/g5km.nc3.$i.nc \
-log_summary
/usr/bin/time -p ibrun $PISM $OPTS \
-o_format netcdf4_parallel -o $OUTDIR/g5km.nc4.$i.nc \
-log_summary
/usr/bin/time -p ibrun $PISM $OPTS \
-o_format pnetcdf -o $OUTDIR/g5km.pnc.$i.nc \
-log_summary
done