-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsub_ens.muffin.sh
More file actions
48 lines (41 loc) · 1.13 KB
/
Copy pathsub_ens.muffin.sh
File metadata and controls
48 lines (41 loc) · 1.13 KB
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
#!/bin/bash
#
# *** SUBMIT ENSEMBLE ***
#
# specify base-config filename
BASECONFIG='myBASECONFIG'
# specify path to any user-configs ('/' otherwise)
USERCONFIGPATH='myDIR'
# specify experiment (user-config) filename, excluding the .xy ensemble member extension
ENSEMBLEID='myENSEMBLEMEMBER'
# specify run duration (integer years)
YEARS='10000'
# specify any restart name (empty string otherwise)
RESTARTID=''
# set first parameter axis max # (0-9)
memberimax=9
# set second parameter axis max # (0-9)
memberjmax=9
# specific any particular queue to be used (empty string otherwise)
QUEUE='-q cat.q'
# initialize loop counter i
memberi=0
while [ $memberi -le $memberimax ]; do
# initialize loop counter j
memberj=0
while [ $memberj -le $memberjmax ]; do
# set index and userconfig name
RESTART=$RESTARTID
EXPERIMENT=$ENSEMBLEID"."$memberi$memberj
# submit
echo $EXPERIMENT"/"$RESTART
qsub $QUEUE -j y -o cgenie_log -V -S /bin/bash runmuffin.sh $BASECONFIG $USERCONFIGPATH $EXPERIMENT $YEARS $RESTARTID
sleep 10
#qstat -f
#
let memberj=$memberj+1
done
let memberi=$memberi+1
done
#
qstat -f