source: XIOS/trunk/inputs/REMAP/iodef.xml @ 1064

Last change on this file since 1064 was 1064, checked in by mhnguyen, 5 years ago

Auto-distribution of unstructured grid read from a file.

+ Unstructured grid read from a file is now distributed automatically among clients if there is
no distribution information provided.
+ Attributes of grid can be setup: From model (highest priority), from file (reading), or auto-generation (lowest priority).
If an attribute can be setup by several ways, it will be setup by one with the higher priority.

Test
+ On Curie
+ Tests pass

  • Property svn:executable set to *
File size: 9.3 KB
Line 
1<?xml version="1.0"?>
2<simulation>
3
4 <context id="test">
5   <calendar type="Gregorian" start_date="2012-03-01 15:00:00" time_origin="2012-02-28 15:00:00 + 1d" />
6   <field_definition level="1" >
7    <field_group id="fields_src" operation="instant" default_value="100000">
8       <field id="src_field_2D" domain_ref="src_domain" />
9       <field id="src_field_2D_clone" domain_ref="src_domain_clone" detect_missing_value=".TRUE." />
10       <field id="src_field_3D" domain_ref="src_domain" axis_ref="src_axis"  />
11       <field id="src_field_3D_clone" grid_ref="src_grid_3D" detect_missing_value=".TRUE."  />       
12       <field id="src_field_3D_pression" grid_ref="src_grid_3D"  />
13       <field id="src_field_4D" grid_ref="src_grid_4D" detect_missing_value=".TRUE." />       
14    </field_group>
15    <field_group  id="fields_dst">
16      <field id="dst_field_2D" field_ref="src_field_2D" domain_ref="dst_domain"/>
17      <field id="dst_field_2D_regular_pole" field_ref="src_field_2D" domain_ref="dst_domain_regular_pole"/>
18      <field id="dst_field_2D_clone" field_ref="src_field_2D_clone" domain_ref="dst_domain_regular_pole"  expr="@this" operation="average" detect_missing_value=".true."/>
19      <field id="dst_field_2D_extract" field_ref="src_field_3D_clone" grid_ref="dst_grid_2D_extract"/>
20      <field id="dst_field_3D" field_ref="src_field_3D" grid_ref="dst_grid_3D"/>
21      <field id="dst_field_3D_interp" field_ref="src_field_3D" axis_ref="dst_axis"/>       
22      <field id="dst_field_4D_extract" field_ref="src_field_4D" grid_ref="dst_grid_4D_extract"/> 
23    </field_group>
24    <field_group id="read_fields" operation="instant">
25      <field id="tmp_field_0" domain_ref="src_domain_regular_read"/>     
26      <field id="tmp_field_1" grid_ref="src_grid_curvilinear_read" />
27      <field id="tmp_field_2" grid_ref="src_grid_unstructured_read" />
28      <field id="tmp_field_clone" field_ref="tmp_field_0"/>
29      <field id="dst_field_regular" field_ref="tmp_field_2" grid_ref="dst_grid_regular"/>     
30      <field id="dst_field_regular_pole_0" field_ref="tmp_field_0" domain_ref="dst_domain_regular_pole"/>
31      <field id="dst_field_regular_pole_1" field_ref="tmp_field_clone" domain_ref="dst_domain_regular_pole"/>
32    </field_group> 
33   </field_definition>
34
35   <file_definition type="one_file" par_access="collective" output_freq="1ts" output_level="10" enabled=".TRUE.">
36      <file_group id="write_files" >
37        <file id="output_2D" name="output_2D" >
38          <field field_ref="src_field_2D" name="field_src" />
39          <field field_ref="src_field_2D_clone" name="field_src_clone" />
40          <field field_ref="src_field_2D" name="field_dst_regular_0"  domain_ref="dst_domain_regular_pole" />
41          <field field_ref="dst_field_2D" name="field_dst_regular_1" />
42          <field field_ref="dst_field_2D_regular_pole" name="field_dst_regular_2" />
43          <field field_ref="dst_field_2D_clone" name="field_dst_regular_3" />
44          <field field_ref="dst_field_2D_extract" name="field_dst_regular_4" />
45        </file> 
46       <file id="output_3D" name="output_3D" enabled=".TRUE." >
47          <field field_ref="src_field_3D" name="field_src" />
48          <field field_ref="src_field_3D_pression" name="field" />
49          <field field_ref="dst_field_3D_interp" name="field_dst_interp_domain" />
50          <field field_ref="dst_field_3D_interp" name="field_dst_interp_domain_axis" domain_ref="dst_domain_regular_pole"/> 
51       </file>
52       <file id="output_4D" name="output_4D" enabled=".TRUE.">
53          <field field_ref="src_field_4D" name="field_4D" />
54          <field field_ref="dst_field_4D_extract" name="field_4D_extract" />
55        </file>
56     </file_group>
57     <file_group id="read_files" >
58       <file id="output_src_regular" name="output_src_regular" mode="read" >
59          <field id="src_field_regular" name="field" grid_ref="src_grid_regular_read" operation="instant"/>
60       </file>
61       <file id="output_src_curvilinear" name="output_src_curvilinear" mode="read" >
62          <field id="src_field_curvilinear" name="field_A" grid_ref="src_grid_curvilinear_read" operation="instant"/>
63       </file>
64       <file id="output_src_unstructured" name="output_src_unstructured" mode="read" >
65          <field id="src_field_unstructured" name="field" grid_ref="src_grid_unstructured_read" operation="instant"/>
66       </file>
67      </file_group>
68     <file_group id="read_then_write_files" enabled=".TRUE.">
69       <file id="output_regular_pole" name="output_dst_regular" >
70          <field field_ref="tmp_field_0" name="field_regular_0" />
71          <field field_ref="dst_field_regular" name="field_regular" />
72          <field field_ref="dst_field_regular_pole_0" name="field_regular_pole_0" />
73          <field field_ref="dst_field_regular_pole_1" name="field_regular_pole_1" />
74       </file>
75       <file id="output_dst_curvilinear" name="output_dst_curvilinear">
76          <field field_ref="tmp_field_1" operation="instant"/>
77       </file>
78       <file id="output_dst_unstructured" name="output_dst_unstructured" >
79          <field field_ref="tmp_field_2" operation="instant"/>
80       </file>
81     </file_group>
82   </file_definition>
83
84   <scalar_definition>
85    <scalar_group id="scalar_src">
86    </scalar_group>
87    <scalar_group id="scalar_dst">
88     <scalar id="scalar_extract">
89       <reduce_axis operation="sum"/>
90     </scalar>
91    </scalar_group>
92   </scalar_definition>
93
94   <axis_definition>
95    <axis_group id="axis_src">
96      <axis id="src_axis" positive="down" />
97      <axis id="nq" positive="down" />
98      <axis id="src_axis_curvilinear_read" positive="down" />
99    </axis_group>
100    <axis_group id="axis_dst">
101     <axis id="dst_axis" positive="down" n_glo="2" value="(0,1)[120 220]">
102       <interpolate_axis type="polynomial" order="1" coordinate="src_field_3D_pression"/>
103       <!-- <interpolate_axis type="polynomial" order="1" />         -->
104     </axis>
105    </axis_group>
106   </axis_definition>
107
108   <domain_definition>
109    <domain_group id="read_domains">
110      <domain id="src_domain_regular_read" type="rectilinear">
111        <generate_rectilinear_domain />
112      </domain>
113      <domain id="src_domain_curvilinear_read" type="curvilinear">
114        <generate_rectilinear_domain />
115      </domain>
116      <domain id="src_domain_unstructured_read" type="unstructured">
117        <generate_rectilinear_domain/>
118      </domain>
119    </domain_group>
120    <domain_group id="domain_src">
121      <domain id="src_domain" />
122      <domain id="src_domain_clone"/>
123    </domain_group>
124
125    <domain_group id="domain_dst">
126     <domain id="dst_domain">
127       <interpolate_domain write_weight="false" />
128     </domain>
129     <domain id="dst_domain_regular_pole" ni_glo="90" nj_glo="45" type="rectilinear">
130       <generate_rectilinear_domain id="domain_regular_pole"/>
131       <interpolate_domain write_weight="false" order="1" renormalize="true"/>       
132       <!-- <zoom_domain ibegin="0" ni="45" jbegin="0" nj="45" /> -->
133     </domain>
134     <domain id="dst_domain_regular" ni_glo="90" nj_glo="45" type="rectilinear">
135       <generate_rectilinear_domain />
136       <interpolate_domain/>       
137     </domain>
138    </domain_group>
139   </domain_definition>
140
141  <grid_definition>
142    <grid_group id="read_grids">
143      <grid id="src_grid_regular_read">
144        <domain domain_ref="src_domain_regular_read"/>
145      </grid>
146      <grid id="src_grid_curvilinear_read">
147        <domain domain_ref="src_domain_curvilinear_read"/>
148        <axis axis_ref="src_axis_curvilinear_read" />
149      </grid>
150      <grid id="src_grid_unstructured_read">
151        <domain domain_ref="src_domain_unstructured_read"/>
152      </grid>
153    </grid_group>
154
155    <grid_group id="grid_src">
156      <grid id="src_grid_3D">
157        <domain domain_ref="src_domain"/>
158        <axis axis_ref="src_axis"/>
159      </grid>
160      <grid id="src_grid_4D">
161        <domain domain_ref="src_domain"/>
162        <axis axis_ref="src_axis"/>
163        <axis axis_ref="nq"/>
164      </grid>
165    </grid_group>
166
167    <grid_group id="grid_dst">
168      <grid id="dst_grid_regular">
169        <domain domain_ref="dst_domain_regular"/>
170      </grid>
171      <grid id="dst_grid_2D_extract">
172        <domain domain_ref="dst_domain_regular"/>
173        <scalar >         
174          <reduce_axis operation="min"/>
175          <!-- <extract_axis position="2"/> -->
176        </scalar>
177      </grid>
178      <grid id="dst_grid_3D">
179        <domain domain_ref="src_domain"/>
180        <axis axis_ref="dst_axis"/>
181      </grid>
182      <grid id="dst_grid_4D_extract">
183        <domain domain_ref="dst_domain_regular_pole"/>     
184        <axis axis_ref="src_axis"/>       
185        <scalar >
186          <!-- <extract_axis position="1"/> -->
187          <reduce_axis operation="sum"/>
188        </scalar>     
189      </grid>
190    </grid_group>
191  </grid_definition>
192  </context>
193
194  <context id="xios">
195      <variable_definition>
196        <variable_group id="buffer">
197            <variable id="optimal_buffer_size" type="string">performance</variable>
198            <variable id="buffer_size_factor" type="double">30.0</variable>
199            <variable id="min_buffer_size" type="double">800000</variable>
200         </variable_group>
201
202        <variable_group id="parameters" >
203          <variable id="using_server" type="bool">true</variable>
204          <variable id="info_level" type="int">50</variable>
205          <variable id="print_file" type="bool">true</variable>
206        </variable_group>
207      </variable_definition>
208  </context>
209
210</simulation>
211
Note: See TracBrowser for help on using the repository browser.