Changeset 1912


Ignore:
Timestamp:
06/26/20 13:17:56 (7 weeks ago)
Author:
ymipsl
Message:

simplify generic XML testcase.

YM

Location:
XIOS/trunk/generic_testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/generic_testcase/context_atm.xml

    r1904 r1912  
    2121  </axis_definition> 
    2222 
    23   <axis_definition> 
    24     <axis id="axis_zoom" axis_ref="axis"> 
    25         <zoom_axis begin="0" n="5"/> 
    26     </axis> 
    27   </axis_definition> 
    28  
    2923  <scalar_definition> 
    3024    <scalar id="scalar" />  
     
    129123    </grid> 
    130124 
    131   
    132   
    133   
    134125  
    135126  
     
    228219    </grid> 
    229220 
    230  
    231  
    232  
    233  
    234  
    235  
    236  
    237  
    238  
    239     <grid id="grid_vert_reduce"> 
    240       <domain domain_ref="domain" /> 
    241       <scalar > 
    242         <reduce_axis operation="sum" /> 
    243       </scalar> 
    244     </grid> 
    245  
    246     <grid id="grid_horiz_reduce"> 
    247       <scalar > 
    248         <reduce_domain operation="sum" /> 
    249       </scalar> 
    250       <axis axis_ref="axis" /> 
    251     </grid> 
    252        
    253     <grid id="grid_zoom_vert"> 
    254       <domain domain_ref="domain" /> 
    255       <axis axis_ref="axis_zoom" /> 
    256     </grid> 
    257  
    258     <grid id="grid_zoom_vert_sum"> 
    259       <scalar > 
    260         <reduce_domain operation="sum" /> 
    261       </scalar> 
    262       <axis axis_ref="axis_zoom" /> 
    263     </grid> 
    264  
    265    <grid id="grid_lat"> 
    266        <axis axis_ref="domain_Y"> 
    267          <reduce_domain direction="iDir" operation="sum"/>  
    268        </axis> 
    269        <axis axis_ref="axis" /> 
    270     </grid> 
    271      
    272  
    273     <grid id="grid3D_invert"> 
    274       <domain domain_ref="domain"> 
    275         <reorder_domain invert_lat="true" /> 
    276       </domain> 
    277       <axis axis_ref="axis" /> 
    278     </grid> 
    279      
    280     <grid id="grid2D_invert"> 
    281       <domain domain_ref="domain"> 
    282         <reorder_domain invert_lat="true" shift_lon_fraction="0.5" min_lon="0" max_lon="360"/> 
    283       </domain> 
    284     </grid> 
    285  
    286      
     221    
    287222  </grid_definition> 
    288223   
     
    290225  <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true"> 
    291226    <field id="field2D" grid_ref="grid2D" /> 
    292     <field id="field3D" grid_ref="grid3D" build_workflow_graph="true" /> 
     227    <field id="field3D" grid_ref="grid3D" /> 
    293228    <field id="pressure" grid_ref="grid3D"  /> 
    294229    <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" /> 
     
    303238    <field id="field_YZ" grid_ref="grid_YZ" /> 
    304239 
    305     <field id="field_zoom_vert" field_ref="field3D" grid_ref="grid_zoom_vert"  /> 
    306     <field id="field_zoom_vert_sum" field_ref="field_zoom_vert" grid_ref="grid_zoom_vert_sum"  /> 
    307  
    308  
    309240 
    310241    <field id="field2D_W" grid_ref="grid2D_W"/> 
     
    323254 
    324255 
    325  
    326  
    327256    <field id="other_field2D" grid_ref="other_grid2D"/> 
    328257    <field id="other_field3D" grid_ref="other_grid3D"  /> 
     
    353282    <field id="other_field_YZW" grid_ref="other_grid_YZW" /> 
    354283 
    355  
    356  
    357  
    358284     
    359285     
    360286  </field_definition> 
     287 
     288 
     289 
     290<!-- implementation of specifics test case --> 
     291<!-- simplest test cases : output data to file --> 
     292 
    361293   
    362294 
    363295  <file_definition  type="one_file" > 
    364296     
    365     <file id="atm_output" output_freq="4ts" type="one_file" enabled="true"> 
    366 <!--      <field field_ref="field3D" /> 
    367       <field field_ref="field2D" />  
    368       <field field_ref="field3D" grid_ref="grid_vert_reduce" name="field_vert_reduced" />  
    369       <field field_ref="field3D" grid_ref="grid_horiz_reduce" name="field_horiz_reduced" /> 
    370       <field field_ref="field_zoom_vert"  />  
    371       <field field_ref="field_zoom_vert_sum"  />  
    372       <field field_ref="pressure"  />  
    373       <field field_ref="field3D_resend" /> --> 
    374         
    375        <field field_ref="field3D" enabled="true"/> 
    376        <field field_ref="field2D" enabled="true"/>  
    377        <field field_ref="field_X" enabled="true"/> 
    378        <field field_ref="field_Y" enabled="true"/> 
    379        <field field_ref="field_XY" enabled="true"/> 
    380        <field field_ref="field_Z" enabled="true"/> 
    381        <field field_ref="field_XYZ" enabled="true"/> 
    382        <field field_ref="field_XZ" enabled="true"/> 
    383        <field field_ref="field_YZ" enabled="true"/> 
     297    <file id="atm_output" output_freq="1ts" type="one_file" enabled="true"> 
     298       <field field_ref="field3D" /> 
     299       <field field_ref="field2D" />  
     300       <field field_ref="field_X" /> 
     301       <field field_ref="field_Y" /> 
     302       <field field_ref="field_XY" /> 
     303       <field field_ref="field_Z" /> 
     304       <field field_ref="field_XYZ" /> 
     305       <field field_ref="field_XZ" /> 
     306       <field field_ref="field_YZ" /> 
     307       <field field_ref="pressure"  />  
     308       <field field_ref="field3D_resend" /> 
    384309    </file> 
    385310 
    386311    <file id="atm_output_other" output_freq="1ts" type="one_file" enabled="true"> 
    387        <field field_ref="other_field3D" enabled="true"/> 
    388        <field field_ref="other_field2D" enabled="true"/>  
    389        <field field_ref="other_field_X" enabled="true"/> 
    390        <field field_ref="other_field_Y" enabled="true"/> 
    391        <field field_ref="other_field_XY" enabled="true"/> 
    392        <field field_ref="other_field_Z" enabled="true"/> 
    393        <field field_ref="other_field_XYZ" enabled="true"/> 
    394        <field field_ref="other_field_XZ" enabled="true"/> 
    395        <field field_ref="other_field_YZ" enabled="true"/> 
     312       <field field_ref="other_field3D" /> 
     313       <field field_ref="other_field2D" />  
     314       <field field_ref="other_field_X" /> 
     315       <field field_ref="other_field_Y" /> 
     316       <field field_ref="other_field_XY" /> 
     317       <field field_ref="other_field_Z" /> 
     318       <field field_ref="other_field_XYZ" /> 
     319       <field field_ref="other_field_XZ" /> 
     320       <field field_ref="other_field_YZ" /> 
     321       <field field_ref="other_pressure"  />  
     322       <field field_ref="other_field3D_resend" /> 
    396323    </file> 
    397324 
    398     <file id="atm_output_W" output_freq="1ts" enabled="false"> 
    399        <field field_ref="field3D_W" enabled="true"/> 
    400        <field field_ref="field2D_W" enabled="true"/>  
    401        <field field_ref="field_XW" enabled="true"/> 
    402        <field field_ref="field_YW" enabled="true"/> 
    403        <field field_ref="field_XYW" enabled="true"/> 
    404        <field field_ref="field_ZW" enabled="true"/> 
    405        <field field_ref="field_XYZW" enabled="true"/> 
    406        <field field_ref="field_XZW" enabled="true"/> 
    407        <field field_ref="field_YZW" enabled="true"/> 
     325    <file id="atm_output_W" output_freq="1ts" enabled="true"> 
     326       <field field_ref="field3D_W" /> 
     327       <field field_ref="field2D_W" />  
     328       <field field_ref="field_XW" /> 
     329       <field field_ref="field_YW" /> 
     330       <field field_ref="field_XYW" /> 
     331       <field field_ref="field_ZW" /> 
     332       <field field_ref="field_XYZW" /> 
     333       <field field_ref="field_XZW" /> 
     334       <field field_ref="field_YZW" /> 
    408335    </file> 
    409336     
    410  
    411     <file id="atm_output_reorder" output_freq="1ts" enabled="false" > 
    412        <field field_ref="field2D" grid_ref="grid2D_invert" enabled="true"/> 
    413     </file> 
    414      
    415     <file id="test_grid_lat" output_freq="1ts" enabled="false"> 
    416       <field field_ref="field3D" operation="instant" /> 
    417       <field id="field_reduce_lat" field_ref="field3D" grid_ref="grid_lat" operation="instant" /> 
    418     </file> 
    419337     
    420338  </file_definition> 
  • XIOS/trunk/generic_testcase/param.def

    r1904 r1912  
    11&params_run 
    22duration='1d' 
    3 nb_proc_atm=4 
     3nb_proc_atm=1 
    44/ 
Note: See TracChangeset for help on using the changeset viewer.