source: XIOS/trunk/inputs/COMPLETE/context_surface.xml @ 489

Last change on this file since 489 was 489, checked in by mhnguyen, 7 years ago

Ticket 50: Implementing the getting/setting methods for Fortran interface

+) Add some C and Fortran functions to set and get data to/from CVariable with an id
+) Add method to send, receive and dispatch in CVariable
+) Add dispatch method in server class

Test
-) On Curie
-) Test data: integer, float, double, boolean, string
-) File: one and multiple, using_server: ON and OFF
+) All test cases passed and had correct results

File size: 3.0 KB
Line 
1<!-- Context surface -->
2 
3<context id="surface" calendar_type="Julian" start_date="2012-03-01 15:00:00" time_origin="2012-02-29 15:00:00">
4
5  <field_definition level="1" enabled=".TRUE." domain_ref="domain_srf"  axis_ref="axis_srf" operation="average" freq_op="1ts" default_value="9.96921e+36" prec="4">
6    <field id="field_A_srf"  name="field_A_srf" long_name="Champ en degC" operation="average" unit="degC" />
7    <field id="field_A_srf_K" name="field_A_srf_K" field_ref="field_A_srf" long_name="Champ en degK" unit="degK"> field_A_srf + 273.15 </field>
8    <field id="field_A_srf_max" name="field_A_srf_max" field_ref="field_A_srf" long_name="maximum field_A_srf" operation="maximum" />
9    <field id="field_D_srf" name="field_D_srf" long_name="Somme champ A et C" > field_A_srf + field_C_srf </field>
10   
11  </field_definition>
12   
13  <file_definition type="multiple_file" par_access="collective" output_level="10" enabled=".TRUE.">
14    <file id="output_surface" name="output_surface_6h" output_freq="6h" > 
15      <field field_ref="field_A_srf" >
16        <variable id="my_attribute1" type="string" >surf_att</variable>
17        <variable id="my_attribute2" type="integer" > 10 </variable>
18        <variable id="my_attribute3" type="float" >6.8</variable>
19        <variable id="my_attribute4" type="double" >100.201</variable>
20      </field>
21      <field field_ref="field_A_srf_K" />
22      <field field_ref="field_A_srf" name="field_A_srf_min" operation="minimum" />
23      <field field_ref="field_A_srf" name="field_A_srf_max" operation="maximum" />
24      <field field_ref="field_A_srf" name="field_A_srf_prec4" prec="8"/>
25      <field field_ref="field_A_srf_max" name="field_A_srf_mean_max" long_name="Average of hourly maximum over 6h" operation="average" freq_op="1h" > @field_A_srf_max </field>
26      <variable id="my_global_attribute" type="string" >file_6h</variable>
27    </file>
28
29    <file type="one_file" id="output_surface_1d" name="output_surface_1d" output_freq="1d" > 
30      <field field_ref="field_A_srf" >
31        <variable id="my_attribute1" type="string" >surf_att</variable>
32        <variable id="my_attribute2" type="integer" >10</variable>
33        <variable id="my_attribute3" type="float" >6.8</variable>
34        <variable id="my_attribute4" type="double" >100.201</variable>
35      </field>
36      <field field_ref="field_A_srf_K" />
37      <field field_ref="field_A_srf" name="field_A_srf_min" operation="minimum" />
38      <field field_ref="field_A_srf" name="field_A_srf_max" operation="maximum" />
39      <field field_ref="field_A_srf" name="field_A_srf_prec4" prec="8"/>
40      <field field_ref="field_A_srf_max" name="field_A_srf_mean_max" long_name="Average of hourly maximum over 1d" operation="average" freq_op="1h" > @field_A_srf_max </field>
41      <variable id="my_global_attribute" type="string" >file_1d</variable>
42      <variable id="my_global_attribute_bool" type="boolean" >false</variable>
43    </file>
44  </file_definition>
45 
46   <axis_definition>
47     <axis id="axis_srf"/>
48   </axis_definition>
49   
50   <domain_definition>
51     <domain id="domain_srf" />
52   </domain_definition>   
53 
54   <grid_definition />   
55 
56</context>
Note: See TracBrowser for help on using the repository browser.