forked from CW3E/GSI-WRF-Cycling-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cycling.xml
executable file
·225 lines (209 loc) · 7.57 KB
/
cycling.xml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<?xml version="1.0"?>
<!DOCTYPE workflow
[
<!-- GSI Observation-Analysis-Forecast Cycling Workflow -->
<!-- USER-DEPENDENT ITEMS -->
<!ENTITY PROJ_HOME "/cw3e/mead/projects/cwp106/scratch/cgrudzien/GSI-WRF-Cycling-Template">
<!ENTITY PROJ_DATA "&PROJ_HOME;/data">
<!ENTITY EMAIL "[email protected]">
<!ENTITY USERID "cgrudzien">
<!ENTITY WRF_ROOT "/cw3e/mead/projects/cwp130/scratch/cgrudzien/WRF_CODE/WRF">
<!ENTITY GSI_ROOT "/cw3e/mead/projects/cwp106/scratch/cgrudzien/comGSIv3.7_EnKFv1.3">
<!ENTITY CRTM_VERSION "2.3.0">
<!-- END USER-DEPENDENT -->
<!-- WORKFLOW SETTINGS -->
<!ENTITY LOG "&PROJ_DATA;/log">
<!ENTITY STATIC_DATA "&PROJ_DATA;/static">
<!ENTITY INPUT_DATAROOT "&PROJ_DATA;/cycle_io">
<!-- END WORKFLOW SETTINGS -->
<!-- CYCLING SETTINGS -->
<!ENTITY CYCLE_START "201808121200">
<!ENTITY CYCLE_END "201808121800">
<!ENTITY CYCLE_INTV "06:00:00">
<!ENTITY MAX_DOM "1">
<!-- END CYCLING SETTINGS -->
<!-- WRF SETTINGS -->
<!ENTITY WRF_CONSTANT "&STATIC_DATA;/WRF_constants.ksh">
<!ENTITY FCST_LENGTH "7">
<!ENTITY FCST_INTERVAL "01">
<!ENTITY NIO_TASKS_PER_GROUP "0"> <!-- Set NIO_TASKS_PER_GROUP=0 for default TURN OFF QUILTING -->
<!ENTITY NIO_GROUPS "1">
<!-- END WRF SETTINGS -->
<!-- GSI SETTINGS -->
<!ENTITY GSI_CONSTANT "&STATIC_DATA;/GSI_constants.ksh">
<!ENTITY IF_SATRAD "Yes">
<!ENTITY IF_OBSERVER "No"> <!-- NOTE, IF_OBSERVER crashes on the test case, need to do more investigation / debugging -->
<!ENTITY NO_MEMBER "20">
<!ENTITY IF_HYBRID "No">
<!ENTITY IF_4DENVAR "No">
<!ENTITY IF_NEMSIO "No">
<!ENTITY IF_ONEOB "No">
<!-- END GSI SETTINGS -->
<!-- JOB SETTINGS -->
<!ENTITY PROJECT "cwp106">
<!ENTITY SCHED "slurm">
<!ENTITY COMPUTE "compute">
<!ENTITY MPIRUN "mpirun">
<!ENTITY WRF_PROC "4">
<!ENTITY WRF_MEM_PER_CPU "5G">
<!ENTITY WRF_NODESIZE "4">
<!ENTITY WRF_NODES "1">
<!ENTITY WRF_WC "00:15:00">
<!ENTITY GSI_PROC "4">
<!ENTITY GSI_MEM_PER_CPU "5G">
<!ENTITY GSI_NODESIZE "4">
<!ENTITY GSI_NODES "1">
<!ENTITY GSI_WC "00:15:00">
<!-- END JOB SETTINGS -->
]>
<workflow realtime="F" scheduler="&SCHED;" cyclethrottle="31">
<cycledef group="q_daily">&CYCLE_START; &CYCLE_END; &CYCLE_INTV;</cycledef>
<log verbosity="10"><cyclestr>&LOG;/workflow/workflow_@Y@m@[email protected]</cyclestr></log>
<task name="gsi" maxtries="2" cycledefs="q_daily">
<command>&STATIC_DATA;/gsi.ksh</command>
<nodesize>&GSI_NODESIZE;</nodesize>
<cores>&GSI_PROC;</cores>
<walltime>&GSI_WC;</walltime>
<jobname><cyclestr>gsi_@Y@m@d@H</cyclestr></jobname>
<join><cyclestr>&LOG;/gsi/gsi_@Y@m@[email protected]</cyclestr></join>
<native>--partition=&COMPUTE;</native>
<native>--account=&PROJECT;</native>
<native>--export=ALL</native>
<native>--nodes=&GSI_NODES;</native>
<native>--mem-per-cpu=&GSI_MEM_PER_CPU;</native>
<native>--mail-type BEGIN</native>
<native>--mail-type END</native>
<native>--mail-type FAIL</native>
<envar>
<name>CONSTANT</name>
<value>&GSI_CONSTANT;</value>
</envar>
<envar>
<name>ANAL_TIME</name>
<value><cyclestr>@Y@m@d@H</cyclestr></value>
</envar>
<envar>
<name>IF_SATRAD</name>
<value>&IF_SATRAD;</value>
</envar>
<envar>
<name>IF_OBSERVER</name>
<value>&IF_OBSERVER;</value>
</envar>
<envar>
<name>NO_MEMBER</name>
<value>&NO_MEMBER;</value>
</envar>
<envar>
<name>IF_HYBRID</name>
<value>&IF_HYBRID;</value>
</envar>
<envar>
<name>IF_4DENVAR</name>
<value>&IF_4DENVAR;</value>
</envar>
<envar>
<name>IF_NEMSIO</name>
<value>&IF_NEMSIO;</value>
</envar>
<envar>
<name>IF_ONEOB</name>
<value>&IF_ONEOB;</value>
</envar>
<envar>
<name>INPUT_DATAROOT</name>
<value>&INPUT_DATAROOT;/<cyclestr>@Y@m@d@H</cyclestr></value>
</envar>
<envar>
<name>GSI_ROOT</name>
<value>&GSI_ROOT;</value>
</envar>
<envar>
<name>CRTM_VERSION</name>
<value>&CRTM_VERSION;</value>
</envar>
<envar>
<name>MPIRUN</name>
<value>&MPIRUN;</value>
</envar>
<dependency>
<!-- NOTE: the first cycle of this task will not start unless booted directly -->
<taskdep task="wrf" cycle_offset="-&CYCLE_INTV;"/>
</dependency>
</task>
<task name="wrf" maxtries="3" cycledefs="q_daily">
<command>&STATIC_DATA;/wrf.ksh</command>
<cores>&WRF_PROC;</cores>
<nodesize>&WRF_NODESIZE;</nodesize>
<walltime>&WRF_WC;</walltime>
<jobname><cyclestr>wrf_@Y@m@d@H</cyclestr></jobname>
<join><cyclestr>&LOG;/wrf/wrf_@Y@m@[email protected]</cyclestr></join>
<native>--partition=&COMPUTE;</native>
<native>--account=&PROJECT;</native>
<native>--export=ALL</native>
<native>--nodes=&WRF_NODES;</native>
<native>--mail-type BEGIN</native>
<native>--mail-type END</native>
<native>--mail-type=FAIL</native>
<native>--mail-user=&EMAIL;</native>
<native>--mem-per-cpu=&WRF_MEM_PER_CPU;</native>
<envar>
<name>CONSTANT</name>
<value>&WRF_CONSTANT;</value>
</envar>
<envar>
<name>START_TIME</name>
<value><cyclestr>@Y@m@d@H</cyclestr></value>
</envar>
<envar>
<name>FCST_LENGTH</name>
<value>&FCST_LENGTH;</value>
</envar>
<envar>
<name>FCST_INTERVAL</name>
<value>&FCST_INTERVAL;</value>
</envar>
<envar>
<name>CYCLE_INTV</name>
<value>&CYCLE_INTV;</value>
</envar>
<envar>
<name>MAX_DOM</name>
<value>&MAX_DOM;</value>
</envar>
<envar>
<name>WRF_ROOT</name>
<value>&WRF_ROOT;</value>
</envar>
<envar>
<name>STATIC_DATA</name>
<value>&STATIC_DATA;</value>
</envar>
<envar>
<name>INPUT_DATAROOT</name>
<value><cyclestr>&INPUT_DATAROOT;/@Y@m@d@H</cyclestr></value>
</envar>
<envar>
<name>MPIRUN</name>
<value>&MPIRUN;</value>
</envar>
<envar>
<name>WRF_PROC</name>
<value>&WRF_PROC;</value>
</envar>
<envar>
<name>NIO_GROUPS</name>
<value>&NIO_GROUPS;</value>
</envar>
<envar>
<name>NIO_TASKS_PER_GROUP</name>
<value>&NIO_TASKS_PER_GROUP;</value>
</envar>
<dependency>
<taskdep task="gsi" state="SUCCEEDED"/>
</dependency>
<hangdependency>
<datadep age="1200"><cyclestr>&INPUT_DATAROOT;/@Y@m@d@H/wrfprd/rsl.out.0000</cyclestr></datadep>
</hangdependency>
</task>
</workflow>