-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlaunch_prdgen.sh
executable file
·61 lines (44 loc) · 1.1 KB
/
launch_prdgen.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
53
54
55
56
57
58
59
60
61
#! /bin/sh
DOM=${1}
CORE=${2}
CYC=${3}
DATE=${4}
cd /u/$USER # cron does this for us - this is here just to be safe
. /etc/profile
if [ -a .profile ]; then
. ./.profile
fi
if [ -a .bashrc ]; then
. ./.bashrc
fi
export HOMEhiresw=/lfs/h2/emc/lam/noscrub/Matthew.Pyle/hiresw.v8.1.9
export HOMEfv3=/lfs/h2/emc/lam/noscrub/Matthew.Pyle/hiresw.v8.1.9
cd ${HOMEhiresw}/launch_fv3/
source ${HOMEhiresw}/versions/run.ver
if [ $DOM == "conus" ]
then
export TOTAL_TASKS=13
NODES=1
elif [ $DOM == "ak" ]
then
TOTAL_TASKS=10
NODES=1
elif [ $DOM == "hi" ]
then
export TOTAL_TASKS=2
NODES=1
elif [ $DOM == "pr" ]
then
export TOTAL_TASKS=2
NODES=1
elif [ $DOM == "guam" ]
then
export TOTAL_TASKS=2
NODES=1
fi
export OMP_NUM_THREADS=1
cat sub_prdgen.lsf_in_cray_retro | sed s:_DATE_:${DATE}:g | sed s:_DOM_:${DOM}:g | \
sed s:_CORE_:${CORE}:g | sed s:_CYC_:${CYC}:g | sed s:_NODES_:${NODES}:g | \
sed s:_NPROC_:${TOTAL_TASKS}:g | sed s:_SPAN_:${TOTAL_TASKS}:g > sub_prdgen.lsf_${DOM}_${CORE}_${CYC}
qsub sub_prdgen.lsf_${DOM}_${CORE}_${CYC}
rm sub_prdgen.lsf_${DOM}_${CORE}_${CYC}