source: XIOS/trunk/xios_test_suite/TEST_SUITE/test_function/context_atm.xml

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

trunk : complete test for domain, scalar and reduction

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