source: XIOS/trunk/xios_test_suite/TEST_SUITE/test_scalar_algo/context_atm.xml @ 1922

Last change on this file since 1922 was 1922, checked in by yushan, 16 months ago

trunk : complete test for domain, scalar and reduction

File size: 13.6 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>
10 
11  <axis_definition>
12    <axis id="axis" />
13    <axis id="domain_X" />
14    <axis id="domain_Y" />
15    <axis id="ensemble" />
16
17    <axis id="other_axis" />
18    <axis id="other_domain_X" />
19    <axis id="other_domain_Y" />
20    <axis id="other_ensemble" />
21  </axis_definition>
22
23  <scalar_definition>
24    <scalar id="scalar" /> 
25    <scalar id="reduce_axis_max">
26      <reduce_axis operation="max"/>
27    </scalar>
28    <scalar id="reduce_axis_min">
29      <reduce_axis operation="min"/>
30    </scalar>
31    <scalar id="reduce_axis_sum">
32      <reduce_axis operation="sum"/>
33    </scalar>
34    <scalar id="reduce_axis_ave">
35      <reduce_axis operation="average"/>
36    </scalar>
37    <scalar id="reduce_domain_max">
38      <reduce_domain operation="max"/>
39    </scalar>
40    <scalar id="reduce_domain_min">
41      <reduce_domain operation="min"/>
42    </scalar>
43    <scalar id="reduce_domain_sum">
44      <reduce_domain operation="sum"/>
45    </scalar>
46    <scalar id="reduce_domain_ave">
47      <reduce_domain operation="average"/>
48    </scalar>
49 
50 
51  </scalar_definition>
52 
53 
54 
55  <grid_definition>
56   
57    <grid id="grid3D">
58      <domain domain_ref="domain" />
59      <axis axis_ref="axis" />
60    </grid>
61   
62    <grid id="grid2D">
63      <domain domain_ref="domain" />
64    </grid>
65
66    <grid id="grid1D">
67      <axis axis_ref="axis" />
68    </grid>
69     
70    <grid id="grid0D_reduce_axis_max">
71      <scalar scalar_ref="reduce_axis_max" />
72    </grid>
73 
74    <grid id="grid0D_reduce_axis_min">
75      <scalar scalar_ref="reduce_axis_min" />
76    </grid>
77 
78    <grid id="grid0D_reduce_axis_sum">
79      <scalar scalar_ref="reduce_axis_sum" />
80    </grid>
81 
82    <grid id="grid0D_reduce_axis_ave">
83      <scalar scalar_ref="reduce_axis_ave" />
84    </grid>
85 
86    <grid id="grid0D_extract_pos4">
87      <scalar id="extract_axis_to_scalar_pos4">
88        <extract_axis position="4" /> 
89      </scalar>
90    </grid>
91
92   <grid id="grid0D_extract_pos5">
93      <scalar id="extract_axis_to_scalar_pos5">
94        <extract_axis position="5" /> 
95      </axis>
96    </grid>
97
98    <grid id="grid2D_extract_pos4">
99      <domain domain_ref="domain" />
100      <scalar id="extract2D_axis_to_scalar_pos4">
101        <extract_axis position="4" /> 
102      </scalar>
103    </grid>
104   
105    <grid id="grid2D_extract_pos5">
106      <domain domain_ref="domain" />
107      <scalar id="extract2D_axis_to_scalar_pos5">
108        <extract_axis position="5" /> 
109      </scalar>
110    </grid>
111
112 
113    <grid id="grid2D_reduce_domain_max">
114      <scalar scalar_ref="reduce_domain_max" />
115    </grid>
116 
117    <grid id="grid2D_reduce_domain_min">
118      <scalar scalar_ref="reduce_domain_min" />
119    </grid>
120 
121    <grid id="grid2D_reduce_domain_sum">
122      <scalar scalar_ref="reduce_domain_sum" />
123    </grid>
124 
125    <grid id="grid2D_reduce_domain_ave">
126      <scalar scalar_ref="reduce_domain_ave" />
127    </grid>
128 
129
130
131
132
133    <grid id="grid_X">
134      <axis axis_ref="domain_X" />
135    </grid>
136
137    <grid id="grid_Y">
138      <axis axis_ref="domain_Y" />
139    </grid>
140
141    <grid id="grid_XY">
142      <axis axis_ref="domain_X" />
143      <axis axis_ref="domain_Y" />
144    </grid>
145
146    <grid id="grid_XYZ">
147      <axis axis_ref="domain_X" />
148      <axis axis_ref="domain_Y" />
149      <axis axis_ref="axis" />
150    </grid>
151
152    <grid id="grid_XZ">
153      <axis axis_ref="domain_X" />
154      <axis axis_ref="axis" />
155    </grid>
156
157    <grid id="grid_YZ">
158      <axis axis_ref="domain_Y" />
159      <axis axis_ref="axis" />
160    </grid>
161
162
163    <grid id="grid3D_W">
164      <domain domain_ref="domain" />
165      <axis axis_ref="axis" />
166      <axis axis_ref="ensemble" />
167    </grid>
168   
169    <grid id="grid2D_W">
170      <domain domain_ref="domain" />
171      <axis axis_ref="ensemble" />
172    </grid>
173
174    <grid id="grid1D_W">
175      <axis axis_ref="axis" />
176      <axis axis_ref="ensemble" />
177    </grid>
178
179    <grid id="grid_XW">
180      <axis axis_ref="domain_X" />
181      <axis axis_ref="ensemble" />
182    </grid>
183
184    <grid id="grid_YW">
185      <axis axis_ref="domain_Y" />
186      <axis axis_ref="ensemble" />
187    </grid>
188
189    <grid id="grid_XYW">
190      <axis axis_ref="domain_X" />
191      <axis axis_ref="domain_Y" />
192      <axis axis_ref="ensemble" />
193    </grid>
194
195    <grid id="grid_XYZW">
196      <axis axis_ref="domain_X" />
197      <axis axis_ref="domain_Y" />
198      <axis axis_ref="axis" />
199      <axis axis_ref="ensemble" />
200    </grid>
201
202    <grid id="grid_XZW">
203      <axis axis_ref="domain_X" />
204      <axis axis_ref="axis" />
205      <axis axis_ref="ensemble" />
206    </grid>
207
208    <grid id="grid_YZW">
209      <axis axis_ref="domain_Y" />
210      <axis axis_ref="axis" />
211      <axis axis_ref="ensemble" />
212    </grid>
213
214 
215 
216    <grid id="other_grid3D">
217      <domain domain_ref="other_domain" />
218      <axis axis_ref="other_axis" />
219    </grid>
220   
221    <grid id="other_grid2D">
222      <domain domain_ref="other_domain" />
223    </grid>
224
225    <grid id="other_grid1D">
226      <axis axis_ref="other_axis" />
227    </grid>
228
229    <grid id="other_grid_X">
230      <axis axis_ref="other_domain_X" />
231    </grid>
232
233    <grid id="other_grid_Y">
234      <axis axis_ref="other_domain_Y" />
235    </grid>
236
237    <grid id="other_grid_XY">
238      <axis axis_ref="other_domain_X" />
239      <axis axis_ref="other_domain_Y" />
240    </grid>
241
242    <grid id="other_grid_XYZ">
243      <axis axis_ref="other_domain_X" />
244      <axis axis_ref="other_domain_Y" />
245      <axis axis_ref="other_axis" />
246    </grid>
247
248    <grid id="other_grid_XZ">
249      <axis axis_ref="other_domain_X" />
250      <axis axis_ref="other_axis" />
251    </grid>
252
253    <grid id="other_grid_YZ">
254      <axis axis_ref="other_domain_Y" />
255      <axis axis_ref="other_axis" />
256    </grid>
257
258
259    <grid id="other_grid3D_W">
260      <domain domain_ref="other_domain" />
261      <axis axis_ref="other_axis" />
262      <axis axis_ref="other_ensemble" />
263    </grid>
264   
265    <grid id="other_grid2D_W">
266      <domain domain_ref="other_domain" />
267      <axis axis_ref="other_ensemble" />
268    </grid>
269
270    <grid id="other_grid1D_W">
271      <axis axis_ref="other_axis" />
272      <axis axis_ref="other_ensemble" />
273    </grid>
274
275    <grid id="other_grid_XW">
276      <axis axis_ref="other_domain_X" />
277      <axis axis_ref="other_ensemble" />
278    </grid>
279
280    <grid id="other_grid_YW">
281      <axis axis_ref="other_domain_Y" />
282      <axis axis_ref="other_ensemble" />
283    </grid>
284
285    <grid id="other_grid_XYW">
286      <axis axis_ref="other_domain_X" />
287      <axis axis_ref="other_domain_Y" />
288      <axis axis_ref="other_ensemble" />
289    </grid>
290
291    <grid id="other_grid_XYZW">
292      <axis axis_ref="other_domain_X" />
293      <axis axis_ref="other_domain_Y" />
294      <axis axis_ref="other_axis" />
295      <axis axis_ref="other_ensemble" />
296    </grid>
297
298    <grid id="other_grid_XZW">
299      <axis axis_ref="other_domain_X" />
300      <axis axis_ref="other_axis" />
301      <axis axis_ref="other_ensemble" />
302    </grid>
303
304    <grid id="other_grid_YZW">
305      <axis axis_ref="other_domain_Y" />
306      <axis axis_ref="other_axis" />
307      <axis axis_ref="other_ensemble" />
308    </grid>
309
310   
311  </grid_definition>
312 
313 
314  <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true">
315    <field id="field2D" grid_ref="grid2D" />
316    <field id="field3D" grid_ref="grid3D"  />
317    <field id="pressure" grid_ref="grid3D"  />
318    <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" />
319    <field id="field3D_resend" grid_ref="grid3D" />
320
321    <field id="field_X" grid_ref="grid_X" />
322    <field id="field_Y" grid_ref="grid_Y" />
323    <field id="field_Z" grid_ref="grid1D" />
324    <field id="field_XY" grid_ref="grid_XY" />
325    <field id="field_XYZ" grid_ref="grid_XYZ" />
326    <field id="field_XZ" grid_ref="grid_XZ" />
327    <field id="field_YZ" grid_ref="grid_YZ" />
328
329
330    <field id="field2D_W" grid_ref="grid2D_W"/>
331    <field id="field3D_W" grid_ref="grid3D_W"  />
332    <field id="pressure_W" grid_ref="grid3D_W"  />
333    <field id="field3D_recv_W" read_access="true" grid_ref="grid3D_W"  field_ref="field3D_W"/>
334    <field id="field3D_resend_W" grid_ref="grid3D_W" />
335
336    <field id="field_XW" grid_ref="grid_XW" />
337    <field id="field_YW" grid_ref="grid_YW" />
338    <field id="field_ZW" grid_ref="grid1D_W" />
339    <field id="field_XYW" grid_ref="grid_XYW" />
340    <field id="field_XYZW" grid_ref="grid_XYZW" />
341    <field id="field_XZW" grid_ref="grid_XZW" />
342    <field id="field_YZW" grid_ref="grid_YZW" />
343
344
345    <field id="other_field2D" grid_ref="other_grid2D"/>
346    <field id="other_field3D" grid_ref="other_grid3D"  />
347    <field id="other_pressure" grid_ref="other_grid3D"  />
348    <field id="other_field3D_recv" read_access="true" grid_ref="other_grid3D"  field_ref="other_field3D"/>
349    <field id="other_field3D_resend" grid_ref="other_grid3D" />
350
351    <field id="other_field_X" grid_ref="other_grid_X" />
352    <field id="other_field_Y" grid_ref="other_grid_Y" />
353    <field id="other_field_Z" grid_ref="other_grid1D" />
354    <field id="other_field_XY" grid_ref="other_grid_XY" />
355    <field id="other_field_XYZ" grid_ref="other_grid_XYZ" />
356    <field id="other_field_XZ" grid_ref="other_grid_XZ" />
357    <field id="other_field_YZ" grid_ref="other_grid_YZ" />
358
359    <field id="other_field2D_W" grid_ref="other_grid2D_W"/>
360    <field id="other_field3D_W" grid_ref="other_grid3D_W"  />
361    <field id="other_pressure_W" grid_ref="other_grid3D_W"  />
362    <field id="other_field3D_recv_W" read_access="true" grid_ref="other_grid3D_W"  field_ref="other_field3D_W"/>
363    <field id="other_field3D_resend_W" grid_ref="other_grid3D_W" />
364
365    <field id="other_field_XW" grid_ref="other_grid_XW" />
366    <field id="other_field_YW" grid_ref="other_grid_YW" />
367    <field id="other_field_ZW" grid_ref="other_grid1D_W" />
368    <field id="other_field_XYW" grid_ref="other_grid_XYW" />
369    <field id="other_field_XYZW" grid_ref="other_grid_XYZW" />
370    <field id="other_field_XZW" grid_ref="other_grid_XZW" />
371    <field id="other_field_YZW" grid_ref="other_grid_YZW" />
372
373   
374   
375  </field_definition>
376
377
378
379<!-- implementation of specifics test case -->
380<!-- simplest test cases : output data to file -->
381
382 
383
384  <file_definition  type="one_file" >
385    <file id="atm_output_scalar_transformation_extract" output_freq="12ts" type="one_file" enabled="true" >
386       <field field_ref="field_Z" />
387       <field id="fieldZ_pos4" field_ref="field_Z" name="fieldZ_pos4" grid_ref="grid0D_extract_pos4" />
388       <field id="fieldZ_pos5" field_ref="field_Z" name="fieldZ_pos5" grid_ref="grid0D_extract_pos5" />
389       <field field_ref="field3D" />
390       <field id="field3D_pos4" enabled="true" field_ref="field3D" name="field3D_pos4" grid_ref="grid2D_extract_pos4" />
391       <field id="field3D_pos5" enabled="true" field_ref="field3D" name="field3D_pos5" grid_ref="grid2D_extract_pos5"/>
392    </file>
393
394    <file id="atm_output_scalar_transformation_reduce_axis" output_freq="4ts" type="one_file" enabled="true">
395       <field field_ref="field_Z" />
396       <field id="field_reduce_axis_max" field_ref="field_Z" name="field_reduce_axis_max" grid_ref="grid0D_reduce_axis_max" enabled="true"/>
397       <field id="field_reduce_axis_min" field_ref="field_Z" name="field_reduce_axis_min" grid_ref="grid0D_reduce_axis_min" enabled="true"/>
398       <field id="field_reduce_axis_sum" field_ref="field_Z" name="field_reduce_axis_sum" grid_ref="grid0D_reduce_axis_sum" enabled="true"/>
399       <field id="field_reduce_axis_ave" field_ref="field_Z" name="field_reduce_axis_ave" grid_ref="grid0D_reduce_axis_ave" enabled="true"/>
400    </file>
401   
402    <file id="atm_output_scalar_transformation_reduce_domain" output_freq="24ts" type="one_file" enabled="true">
403       <field field_ref="field2D" />
404       <field id="field_reduce_domain_max" field_ref="field2D" name="field_reduce_domain_max" grid_ref="grid2D_reduce_domain_max" />
405       <field id="field_reduce_domain_min" field_ref="field2D" name="field_reduce_domain_min" grid_ref="grid2D_reduce_domain_min" />
406       <field id="field_reduce_domain_sum" field_ref="field2D" name="field_reduce_domain_sum" grid_ref="grid2D_reduce_domain_sum" />
407       <field id="field_reduce_domain_ave" field_ref="field2D" name="field_reduce_domain_ave" grid_ref="grid2D_reduce_domain_ave" />
408    </file>
409
410
411
412 
413    <file id="atm_output" output_freq="1ts" type="one_file" enabled="false">
414       <field field_ref="field3D" />
415       <field field_ref="field2D" /> 
416       <field field_ref="field_X" />
417       <field field_ref="field_Y" />
418       <field field_ref="field_XY" />
419       <field field_ref="field_Z" />
420       <field field_ref="field_XYZ" />
421       <field field_ref="field_XZ" />
422       <field field_ref="field_YZ" />
423       <field field_ref="pressure"  /> 
424       <field field_ref="field3D_resend" />
425    </file>
426
427    <file id="atm_output_other" output_freq="1ts" type="one_file" enabled="false">
428       <field field_ref="other_field3D" />
429       <field field_ref="other_field2D" /> 
430       <field field_ref="other_field_X" />
431       <field field_ref="other_field_Y" />
432       <field field_ref="other_field_XY" />
433       <field field_ref="other_field_Z" />
434       <field field_ref="other_field_XYZ" />
435       <field field_ref="other_field_XZ" />
436       <field field_ref="other_field_YZ" />
437       <field field_ref="other_pressure"  /> 
438       <field field_ref="other_field3D_resend" />
439    </file>
440
441    <file id="atm_output_W" output_freq="1ts" enabled="false">
442       <field field_ref="field3D_W" />
443       <field field_ref="field2D_W" /> 
444       <field field_ref="field_XW" />
445       <field field_ref="field_YW" />
446       <field field_ref="field_XYW" />
447       <field field_ref="field_ZW" />
448       <field field_ref="field_XYZW" />
449       <field field_ref="field_XZW" />
450       <field field_ref="field_YZW" />
451    </file>
452   
453   
454  </file_definition>
455 
456 
457</context>
Note: See TracBrowser for help on using the repository browser.