source: XIOS/trunk/generic_testcase/context_atm.xml @ 1920

Last change on this file since 1920 was 1920, checked in by yushan, 2 years ago

trunk : raise error if freq_op > output_freq

File size: 10.1 KB
Line 
1<!-- -->
2<context id="atm">
3 
4  <calendar type="Gregorian" time_origin="1850-01-01 00:00:00" /> 
5 
6  <domain_definition>
7    <domain id="domain" />
8    <domain id="other_domain" />
9    <domain id="dst_domain" ni_glo="36" nj_glo="18" type="rectilinear"/>
10  </domain_definition>
11
12  <axis_definition>
13    <axis id="axis" />
14    <axis id="domain_X" />
15    <axis id="domain_Y" />
16    <axis id="ensemble" />
17
18
19    <axis id="other_axis" />
20    <axis id="other_domain_X" />
21    <axis id="other_domain_Y" />
22    <axis id="other_ensemble" />
23  </axis_definition>
24
25  <scalar_definition>
26    <scalar id="scalar" /> 
27  </scalar_definition>
28 
29 
30 
31  <grid_definition>
32   
33    <grid id="grid3D">
34      <domain domain_ref="domain" />
35      <axis axis_ref="axis" />
36    </grid>
37   
38    <grid id="grid2D">
39      <domain domain_ref="domain" />
40    </grid>
41
42    <grid id="grid1D">
43      <axis axis_ref="axis" />
44    </grid>
45   
46
47
48
49    <grid id="grid_X">
50      <axis axis_ref="domain_X" />
51    </grid>
52
53    <grid id="grid_Y">
54      <axis axis_ref="domain_Y" />
55    </grid>
56
57    <grid id="grid_XY">
58      <axis axis_ref="domain_X" />
59      <axis axis_ref="domain_Y" />
60    </grid>
61
62    <grid id="grid_XYZ">
63      <axis axis_ref="domain_X" />
64      <axis axis_ref="domain_Y" />
65      <axis axis_ref="axis" />
66    </grid>
67
68    <grid id="grid_XZ">
69      <axis axis_ref="domain_X" />
70      <axis axis_ref="axis" />
71    </grid>
72
73    <grid id="grid_YZ">
74      <axis axis_ref="domain_Y" />
75      <axis axis_ref="axis" />
76    </grid>
77
78
79    <grid id="grid3D_W">
80      <domain domain_ref="domain" />
81      <axis axis_ref="axis" />
82      <axis axis_ref="ensemble" />
83    </grid>
84   
85    <grid id="grid2D_W">
86      <domain domain_ref="domain" />
87      <axis axis_ref="ensemble" />
88    </grid>
89
90    <grid id="grid1D_W">
91      <axis axis_ref="axis" />
92      <axis axis_ref="ensemble" />
93    </grid>
94
95    <grid id="grid_XW">
96      <axis axis_ref="domain_X" />
97      <axis axis_ref="ensemble" />
98    </grid>
99
100    <grid id="grid_YW">
101      <axis axis_ref="domain_Y" />
102      <axis axis_ref="ensemble" />
103    </grid>
104
105    <grid id="grid_XYW">
106      <axis axis_ref="domain_X" />
107      <axis axis_ref="domain_Y" />
108      <axis axis_ref="ensemble" />
109    </grid>
110
111    <grid id="grid_XYZW">
112      <axis axis_ref="domain_X" />
113      <axis axis_ref="domain_Y" />
114      <axis axis_ref="axis" />
115      <axis axis_ref="ensemble" />
116    </grid>
117
118    <grid id="grid_XZW">
119      <axis axis_ref="domain_X" />
120      <axis axis_ref="axis" />
121      <axis axis_ref="ensemble" />
122    </grid>
123
124    <grid id="grid_YZW">
125      <axis axis_ref="domain_Y" />
126      <axis axis_ref="axis" />
127      <axis axis_ref="ensemble" />
128    </grid>
129
130 
131 
132    <grid id="other_grid3D">
133      <domain domain_ref="other_domain" />
134      <axis axis_ref="other_axis" />
135    </grid>
136   
137    <grid id="other_grid2D">
138      <domain domain_ref="other_domain" />
139    </grid>
140
141    <grid id="other_grid1D">
142      <axis axis_ref="other_axis" />
143    </grid>
144
145    <grid id="other_grid_X">
146      <axis axis_ref="other_domain_X" />
147    </grid>
148
149    <grid id="other_grid_Y">
150      <axis axis_ref="other_domain_Y" />
151    </grid>
152
153    <grid id="other_grid_XY">
154      <axis axis_ref="other_domain_X" />
155      <axis axis_ref="other_domain_Y" />
156    </grid>
157
158    <grid id="other_grid_XYZ">
159      <axis axis_ref="other_domain_X" />
160      <axis axis_ref="other_domain_Y" />
161      <axis axis_ref="other_axis" />
162    </grid>
163
164    <grid id="other_grid_XZ">
165      <axis axis_ref="other_domain_X" />
166      <axis axis_ref="other_axis" />
167    </grid>
168
169    <grid id="other_grid_YZ">
170      <axis axis_ref="other_domain_Y" />
171      <axis axis_ref="other_axis" />
172    </grid>
173
174
175    <grid id="other_grid3D_W">
176      <domain domain_ref="other_domain" />
177      <axis axis_ref="other_axis" />
178      <axis axis_ref="other_ensemble" />
179    </grid>
180   
181    <grid id="other_grid2D_W">
182      <domain domain_ref="other_domain" />
183      <axis axis_ref="other_ensemble" />
184    </grid>
185
186    <grid id="other_grid1D_W">
187      <axis axis_ref="other_axis" />
188      <axis axis_ref="other_ensemble" />
189    </grid>
190
191    <grid id="other_grid_XW">
192      <axis axis_ref="other_domain_X" />
193      <axis axis_ref="other_ensemble" />
194    </grid>
195
196    <grid id="other_grid_YW">
197      <axis axis_ref="other_domain_Y" />
198      <axis axis_ref="other_ensemble" />
199    </grid>
200
201    <grid id="other_grid_XYW">
202      <axis axis_ref="other_domain_X" />
203      <axis axis_ref="other_domain_Y" />
204      <axis axis_ref="other_ensemble" />
205    </grid>
206
207    <grid id="other_grid_XYZW">
208      <axis axis_ref="other_domain_X" />
209      <axis axis_ref="other_domain_Y" />
210      <axis axis_ref="other_axis" />
211      <axis axis_ref="other_ensemble" />
212    </grid>
213
214    <grid id="other_grid_XZW">
215      <axis axis_ref="other_domain_X" />
216      <axis axis_ref="other_axis" />
217      <axis axis_ref="other_ensemble" />
218    </grid>
219
220    <grid id="other_grid_YZW">
221      <axis axis_ref="other_domain_Y" />
222      <axis axis_ref="other_axis" />
223      <axis axis_ref="other_ensemble" />
224    </grid>
225
226   
227  </grid_definition>
228 
229 
230  <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true">
231    <field id="field2D" grid_ref="grid2D" />
232    <field id="field3D" grid_ref="grid3D"  />
233    <field id="pressure" grid_ref="grid3D"  />
234    <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" />
235    <field id="field3D_resend" grid_ref="grid3D" />
236
237    <field id="field_X" grid_ref="grid_X" />
238    <field id="field_Y" grid_ref="grid_Y" />
239    <field id="field_Z" grid_ref="grid1D" />
240    <field id="field_XY" grid_ref="grid_XY" />
241    <field id="field_XYZ" grid_ref="grid_XYZ" />
242    <field id="field_XZ" grid_ref="grid_XZ" />
243    <field id="field_YZ" grid_ref="grid_YZ" />
244
245
246    <field id="field2D_W" grid_ref="grid2D_W"/>
247    <field id="field3D_W" grid_ref="grid3D_W"  />
248    <field id="pressure_W" grid_ref="grid3D_W"  />
249    <field id="field3D_recv_W" read_access="true" grid_ref="grid3D_W"  field_ref="field3D_W"/>
250    <field id="field3D_resend_W" grid_ref="grid3D_W" />
251
252    <field id="field_XW" grid_ref="grid_XW" />
253    <field id="field_YW" grid_ref="grid_YW" />
254    <field id="field_ZW" grid_ref="grid1D_W" />
255    <field id="field_XYW" grid_ref="grid_XYW" />
256    <field id="field_XYZW" grid_ref="grid_XYZW" />
257    <field id="field_XZW" grid_ref="grid_XZW" />
258    <field id="field_YZW" grid_ref="grid_YZW" />
259
260
261    <field id="other_field2D" grid_ref="other_grid2D"/>
262    <field id="other_field3D" grid_ref="other_grid3D"  />
263    <field id="other_pressure" grid_ref="other_grid3D"  />
264    <field id="other_field3D_recv" read_access="true" grid_ref="other_grid3D"  field_ref="other_field3D"/>
265    <field id="other_field3D_resend" grid_ref="other_grid3D" />
266
267    <field id="other_field_X" grid_ref="other_grid_X" />
268    <field id="other_field_Y" grid_ref="other_grid_Y" />
269    <field id="other_field_Z" grid_ref="other_grid1D" />
270    <field id="other_field_XY" grid_ref="other_grid_XY" />
271    <field id="other_field_XYZ" grid_ref="other_grid_XYZ" />
272    <field id="other_field_XZ" grid_ref="other_grid_XZ" />
273    <field id="other_field_YZ" grid_ref="other_grid_YZ" />
274
275    <field id="other_field2D_W" grid_ref="other_grid2D_W"/>
276    <field id="other_field3D_W" grid_ref="other_grid3D_W"  />
277    <field id="other_pressure_W" grid_ref="other_grid3D_W"  />
278    <field id="other_field3D_recv_W" read_access="true" grid_ref="other_grid3D_W"  field_ref="other_field3D_W"/>
279    <field id="other_field3D_resend_W" grid_ref="other_grid3D_W" />
280
281    <field id="other_field_XW" grid_ref="other_grid_XW" />
282    <field id="other_field_YW" grid_ref="other_grid_YW" />
283    <field id="other_field_ZW" grid_ref="other_grid1D_W" />
284    <field id="other_field_XYW" grid_ref="other_grid_XYW" />
285    <field id="other_field_XYZW" grid_ref="other_grid_XYZW" />
286    <field id="other_field_XZW" grid_ref="other_grid_XZW" />
287    <field id="other_field_YZW" grid_ref="other_grid_YZW" />
288
289   
290   
291  </field_definition>
292
293
294
295<!-- implementation of specifics test case -->
296<!-- simplest test cases : output data to file -->
297
298 
299
300  <file_definition  type="one_file" >
301    <file id="atm_output_reduction" output_freq="6ts" type="one_file" enabled="true" split_freq="12ts"  >
302       <field field_ref="field2D" freq_op="3ts" operation="average" name="field2D_average"/>
303       <field field_ref="field2D" freq_op="3ts" operation="accumulate" name="field2D_sum"/>
304       <field field_ref="field2D" freq_op="3ts" operation="maximum" name="field2D_max"/>
305       <field field_ref="field2D" freq_op="3ts" operation="minimum" name="field2D_min"/>
306    </file>
307   
308    <file id="atm_output_ref" output_freq="1ts" type="one_file" enabled="true">
309       <field field_ref="field2D"   />
310    </file>
311
312
313 
314    <file id="atm_output" output_freq="1ts" type="one_file" enabled="false">
315       <field field_ref="field3D" />
316       <field field_ref="field2D" /> 
317       <field field_ref="field_X" />
318       <field field_ref="field_Y" />
319       <field field_ref="field_XY" />
320       <field field_ref="field_Z" />
321       <field field_ref="field_XYZ" />
322       <field field_ref="field_XZ" />
323       <field field_ref="field_YZ" />
324       <field field_ref="pressure"  /> 
325       <field field_ref="field3D_resend" />
326    </file>
327
328    <file id="atm_output_other" output_freq="1ts" type="one_file" enabled="false">
329       <field field_ref="other_field3D" />
330       <field field_ref="other_field2D" /> 
331       <field field_ref="other_field_X" />
332       <field field_ref="other_field_Y" />
333       <field field_ref="other_field_XY" />
334       <field field_ref="other_field_Z" />
335       <field field_ref="other_field_XYZ" />
336       <field field_ref="other_field_XZ" />
337       <field field_ref="other_field_YZ" />
338       <field field_ref="other_pressure"  /> 
339       <field field_ref="other_field3D_resend" />
340    </file>
341
342    <file id="atm_output_W" output_freq="1ts" enabled="false">
343       <field field_ref="field3D_W" />
344       <field field_ref="field2D_W" /> 
345       <field field_ref="field_XW" />
346       <field field_ref="field_YW" />
347       <field field_ref="field_XYW" />
348       <field field_ref="field_ZW" />
349       <field field_ref="field_XYZW" />
350       <field field_ref="field_XZW" />
351       <field field_ref="field_YZW" />
352    </file>
353   
354   
355  </file_definition>
356 
357 
358</context>
Note: See TracBrowser for help on using the repository browser.