forked from XiaSun-Atmos/scm_auto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscm_auto.xml
278 lines (227 loc) · 11.8 KB
/
scm_auto.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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<?xml version="1.0"?>
<!DOCTYPE workflow
[
<!--Scrub Times-->
<!ENTITY CYCLE_THROTTLE "4">
<!--Experiment parameters such as starting, ending dates-->
<!ENTITY SDATE "201608110000">
<!ENTITY EDATE "201608130000">
<!ENTITY INTERVAL "3:00:00">
<!ENTITY CCPP_SUITE "SCM_RAP">
<!--Experiment related directories-->
<!ENTITY SCM_ROOT "/home/xiasun/MU-MIP/ccpp-scm-dec7">
<!ENTITY ICON_IC "/home/xiasun/work2_xiasun/mumip/icon_v2.0/swift.dkrz.de">
<!ENTITY COMBINE_IC "/home/xiasun/work2_xiasun/mumip/icon_v2.0/combined_ic">
<!ENTITY SPLIT_IC "/home/xiasun/work2_xiasun/mumip/icon_v2.0/proc">
<!ENTITY RUN_DIR "/home/xiasun/MU-MIP/ccpp-scm-dec7/scm">
<!ENTITY SCM_RESULTS "/home/xiasun/work2_xiasun/mumip/scm_results">
<!ENTITY CONCATE_OUTPUT "/home/xiasun/work2_xiasun/mumip/scm_results">
<!ENTITY SCRIPTS "/home/xiasun/work2_xiasun/workflow_v1/scripts">
<!ENTITY PYSCRIPTS "/home/xiasun/work2_xiasun/workflow_v1/scripts/python_scripts">
<!ENTITY LOG "/home/xiasun/work2_xiasun/workflow_v1/log">
<!--Machine related entities-->
<!ENTITY SCHEDULER "slurm">
<!--ROCOTO parameters that control workflow-->
<!ENTITY CYCLE_THROTTLE "2">
<!--BEGIN: Resource requirements for the workflow-->
<!ENTITY WALLTIME_COMBINE_IC "00:05:00">
<!ENTITY RESOURCES_COMBINE_IC "<nodes>1:ppn=1:tpp=1</nodes>">
<!ENTITY WALLTIME_SPLIT_IC "00:59:00">
<!ENTITY RESOURCES_SPLIT_IC "<nodes>1:ppn=2:tpp=20</nodes>">
<!ENTITY WALLTIME_RUN_SCM "07:59:00">
<!ENTITY RESOURCES_RUN_SCM "<nodes>4:ppn=2:tpp=10</nodes>">
<!ENTITY WALLTIME_LATLON_MOVE "07:59:00">
<!ENTITY RESOURCES_LATLON_MOVE "<nodes>2:ppn=2:tpp=20</nodes>">
<!ENTITY WALLTIME_CONCATE_INST "02:59:00">
<!ENTITY RESOURCES_CONCATE_INST "<nodes>1:ppn=2:tpp=20</nodes>">
<!ENTITY WALLTIME_CONCATE_ACCUM "07:59:00">
<!ENTITY RESOURCES_CONCATE_ACCUM "<nodes>1:ppn=2:tpp=20</nodes>">
<!ENTITY WALLTIME_CONCATE_TIME "07:59:00">
<!ENTITY RESOURCES_CONCATE_TIME "<nodes>1:ppn=2:tpp=20</nodes>">
]>
<!--workflow below here-->
<workflow realtime="F" cyclethrottle="&CYCLE_THROTTLE;" scheduler="&SCHEDULER;" taskthrottle="20">
<log><cyclestr>&LOG;/combine_@Y@m@[email protected]</cyclestr></log>
<cycledef group="icon">&SDATE; &EDATE; &INTERVAL;</cycledef>
<cycledef group="at_end">00 00 13 08 2016 *</cycledef>
<!-- <task name="combine_ic" cycledefs="icon" maxtries="3" final="false">
<command>&SCRIPTS;/combine_ic.sh</command>
<jobname><cyclestr>combineic_@H</cyclestr></jobname>
<account>gmtb</account>
<partition>orion</partition>
&RESOURCES_COMBINE_IC;
<walltime>&WALLTIME_COMBINE_IC;</walltime>
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_3</name><value><cyclestr offset="3:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_6</name><value><cyclestr offset="6:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_9</name><value><cyclestr offset="9:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>ICON_IC</name><value>&ICON_IC;</value></envar>
<envar><name>COMBINE_IC</name><value>&COMBINE_IC;</value></envar>
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar>
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar>
<dependency>
<not>
<or>
<datadep><cyclestr>&COMBINE_IC;/mumip_icon2.5_IO_0.2_@Y@m@d.@H_combined_v2.0.nc</cyclestr></datadep>
</or>
</not>
</dependency>
</task>
<task name="split_ic" cycledefs="icon" maxtries="3" final="false">
<command>&SCRIPTS;/split_ic.sh</command>
<jobname><cyclestr>@H_split</cyclestr></jobname>
<account>gmtb</account>
<partition>orion</partition>
&RESOURCES_SPLIT_IC;
<walltime>&WALLTIME_SPLIT_IC;</walltime>
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_3</name><value><cyclestr offset="3:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_6</name><value><cyclestr offset="6:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_9</name><value><cyclestr offset="9:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>ICON_IC</name><value>&ICON_IC;</value></envar>
<envar><name>COMBINE_IC</name><value>&COMBINE_IC;</value></envar>
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar>
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar>
<envar><name>SCRIPTS</name><value>&SCRIPTS;</value></envar>
<dependency>
<and>
<datadep><cyclestr>&COMBINE_IC;/mumip_icon2.5_IO_0.2_@Y@m@d.@H_combined_v2.0.nc</cyclestr></datadep>
<nor>
<datadep><cyclestr>&SPLIT_IC;/@m_@d_@H/mumip_icon2.5_IO_0.2_@Y@m@d.@H_combined_lat199_lon219_v2.0.nc</cyclestr></datadep>
</nor>
</and>
</dependency>
</task>
-->
<task name="run_scm" cycledefs="icon" maxtries="3" final="false">
<command>&SCRIPTS;/run_scm.sh</command>
<jobname><cyclestr>@H_scm</cyclestr></jobname>
<account>gmtb</account>
<partition>orion</partition>
&RESOURCES_RUN_SCM;
<walltime>&WALLTIME_RUN_SCM;</walltime>
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_3</name><value><cyclestr offset="3:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_6</name><value><cyclestr offset="6:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_9</name><value><cyclestr offset="9:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>ICON_IC</name><value>&ICON_IC;</value></envar>
<envar><name>COMBINE_IC</name><value>&COMBINE_IC;</value></envar>
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar>
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar>
<envar><name>SCRIPTS</name><value>&SCRIPTS;</value></envar>
<envar><name>CCPP_SUITE</name><value>&CCPP_SUITE;</value></envar>
<envar><name>SCM_ROOT</name><value>&SCM_ROOT;</value></envar>
<dependency>
<and>
<datadep><cyclestr>&SPLIT_IC;/@m_@d_@H/mumip_icon2.5_IO_0.2_@Y@m@d.@H_combined_lat199_lon219_v2.0.nc</cyclestr></datadep>
<nor>
<datadep><cyclestr>&SCM_RESULTS;/v2.0_&CCPP_SUITE;/@m_@d_@H/mumip_scm_@Y@m@d.@H_lat199_lon219_v2.0_&CCPP_SUITE;.nc</cyclestr></datadep>
</nor>
</and>
</dependency>
</task>
<task name="latlon_move" cycledefs="icon" maxtries="3" final="false">
<command>&SCRIPTS;/latlon_move.sh</command>
<jobname><cyclestr>@H_move</cyclestr></jobname>
<account>gmtb</account>
<partition>orion</partition>
&RESOURCES_LATLON_MOVE;
<walltime>&WALLTIME_LATLON_MOVE;</walltime>
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_3</name><value><cyclestr offset="3:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_6</name><value><cyclestr offset="6:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_9</name><value><cyclestr offset="9:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>ICON_IC</name><value>&ICON_IC;</value></envar>
<envar><name>COMBINE_IC</name><value>&COMBINE_IC;</value></envar>
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar>
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar>
<envar><name>SCRIPTS</name><value>&SCRIPTS;</value></envar>
<envar><name>SCM_RESULTS</name><value>&SCM_RESULTS;</value></envar>
<envar><name>RUN_DIR</name><value>&RUN_DIR;</value></envar>
<envar><name>CCPP_SUITE</name><value>&CCPP_SUITE;</value></envar>
<dependency>
<and>
<datadep><cyclestr>&RUN_DIR;/run_lat199_lon219_@m@d@H/output_icon_lat199_lon219_@m@d@H_&CCPP_SUITE;/output.nc</cyclestr></datadep>
</and>
</dependency>
</task>
<task name="concate_inst" cycledefs="icon" maxtries="3" final="false">
<command>&SCRIPTS;/concate_inst.sh</command>
<jobname><cyclestr>@H_inst</cyclestr></jobname>
<account>gmtb</account>
<partition>orion</partition>
&RESOURCES_CONCATE_INST;
<walltime>&WALLTIME_CONCATE_INST;</walltime>
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_3</name><value><cyclestr offset="3:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_6</name><value><cyclestr offset="6:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_9</name><value><cyclestr offset="9:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>ICON_IC</name><value>&ICON_IC;</value></envar>
<envar><name>COMBINE_IC</name><value>&COMBINE_IC;</value></envar>
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar>
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar>
<envar><name>SCRIPTS</name><value>&SCRIPTS;</value></envar>
<envar><name>PYSCRIPTS</name><value>&PYSCRIPTS;</value></envar>
<envar><name>CONCATE_OUTPUT</name><value>&CONCATE_OUTPUT;</value></envar>
<envar><name>SCM_RESULTS</name><value>&SCM_RESULTS;</value></envar>
<envar><name>CCPP_SUITE</name><value>&CCPP_SUITE;</value></envar>
<dependency>
<and>
<datadep><cyclestr>&SCM_RESULTS;/v2.0_&CCPP_SUITE;/@m_@d_@H/mumip_scm_@Y@m@d.@H_lat199_lon219_v2.0_&CCPP_SUITE;.nc</cyclestr></datadep>
</and>
</dependency>
</task>
<task name="concate_accum" cycledefs="icon" maxtries="3" final="false">
<command>&SCRIPTS;/concate_accum.sh</command>
<jobname><cyclestr>@H_accum</cyclestr></jobname>
<account>gmtb</account>
<partition>orion</partition>
&RESOURCES_CONCATE_ACCUM;
<walltime>&WALLTIME_CONCATE_ACCUM;</walltime>
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_3</name><value><cyclestr offset="3:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_6</name><value><cyclestr offset="6:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_9</name><value><cyclestr offset="9:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>ICON_IC</name><value>&ICON_IC;</value></envar>
<envar><name>COMBINE_IC</name><value>&COMBINE_IC;</value></envar>
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar>
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar>
<envar><name>SCRIPTS</name><value>&SCRIPTS;</value></envar>
<envar><name>PYSCRIPTS</name><value>&PYSCRIPTS;</value></envar>
<envar><name>CONCATE_OUTPUT</name><value>&CONCATE_OUTPUT;</value></envar>
<envar><name>SCM_RESULTS</name><value>&SCM_RESULTS;</value></envar>
<envar><name>CCPP_SUITE</name><value>&CCPP_SUITE;</value></envar>
<dependency>
<and>
<datadep><cyclestr>&SCM_RESULTS;/v2.0_&CCPP_SUITE;/@m_@d_@H/mumip_scm_@Y@m@d.@H_lat199_lon219_v2.0_&CCPP_SUITE;.nc</cyclestr></datadep>
</and>
</dependency>
</task>
<task name="concate_time" cycledefs="at_end" maxtries="3">
<command>&SCRIPTS;/concate_time.sh</command>
<jobname><cyclestr>@H_time</cyclestr></jobname>
<account>gmtb</account>
<partition>orion</partition>
&RESOURCES_CONCATE_TIME;
<walltime>&WALLTIME_CONCATE_TIME;</walltime>
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_3</name><value><cyclestr offset="3:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_6</name><value><cyclestr offset="6:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>CDATE_9</name><value><cyclestr offset="9:00:00">@Y@m@d@H</cyclestr></value></envar>
<envar><name>ICON_IC</name><value>&ICON_IC;</value></envar>
<envar><name>COMBINE_IC</name><value>&COMBINE_IC;</value></envar>
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar>
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar>
<envar><name>SCRIPTS</name><value>&SCRIPTS;</value></envar>
<envar><name>PYSCRIPTS</name><value>&PYSCRIPTS;</value></envar>
<envar><name>CONCATE_OUTPUT</name><value>&CONCATE_OUTPUT;</value></envar>
<envar><name>SCM_RESULTS</name><value>&SCM_RESULTS;</value></envar>
<envar><name>CCPP_SUITE</name><value>&CCPP_SUITE;</value></envar>
<dependency>
<and>
<taskdep task="concate_inst"/>
<taskdep task="concate_accum"/>
</and>
</dependency>
</task>
</workflow>