Ignore:
Timestamp:
07/31/20 16:08:56 (2 years ago)
Author:
yushan
Message:

trunk : complete test for domain, scalar and reduction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/xios_test_suite/TEST_SUITE/test_scalar_algo/context_atm.xml

    r1807 r1922  
    1111  <axis_definition> 
    1212    <axis id="axis" /> 
    13     <axis id="axis_dup" /> 
    1413    <axis id="domain_X" /> 
    1514    <axis id="domain_Y" /> 
     
    2221  </axis_definition> 
    2322 
    24   <axis_definition> 
    25     <axis id="axis_zoom" axis_ref="axis"> 
    26         <zoom_axis begin="0" n="5"/> 
    27     </axis> 
    28     <axis id="domain_X_zoom" axis_ref="domain_X"> 
    29         <zoom_axis begin="0" n="1"/> 
    30     </axis> 
    31     <axis id="domain_Y_zoom" axis_ref="domain_Y"> 
    32         <zoom_axis begin="3" n="1"/> 
    33     </axis> 
    34   </axis_definition> 
    35  
    3623  <scalar_definition> 
    3724    <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   
    3851  </scalar_definition> 
    3952   
     
    5467      <axis axis_ref="axis" /> 
    5568    </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 
    56132 
    57133    <grid id="grid_X"> 
     
    59135    </grid> 
    60136 
    61      <grid id="grid_X_zoom"> 
    62       <axis axis_ref="domain_X_zoom" /> 
    63     </grid> 
    64  
    65137    <grid id="grid_Y"> 
    66138      <axis axis_ref="domain_Y" /> 
     
    140212    </grid> 
    141213 
    142  
    143     <grid id="grid_XY_zoom_Y"> 
    144       <axis axis_ref="domain_X" /> 
    145       <axis axis_ref="domain_Y_zoom" /> 
    146     </grid> 
    147  
    148     <grid id="grid_XY_zoom_X"> 
    149       <axis axis_ref="domain_X_zoom" /> 
    150       <axis axis_ref="domain_Y" /> 
    151  
    152     </grid> 
    153  
    154   
    155   
    156   
    157214  
    158215  
     
    251308    </grid> 
    252309 
    253  
    254  
    255  
    256  
    257  
    258  
    259  
    260  
    261  
    262     <grid id="grid_vert_reduce"> 
    263       <domain domain_ref="domain" /> 
    264       <scalar > 
    265         <reduce_axis operation="sum" /> 
    266       </scalar> 
    267     </grid> 
    268  
    269     <grid id="grid_horiz_reduce"> 
    270       <scalar > 
    271         <reduce_domain operation="sum" /> 
    272       </scalar> 
    273       <axis axis_ref="axis" /> 
    274     </grid> 
    275        
    276     <grid id="grid_zoom_vert"> 
    277       <domain domain_ref="domain" /> 
    278       <axis axis_ref="axis_zoom" /> 
    279     </grid> 
    280  
    281     <grid id="grid_zoom_vert_sum"> 
    282       <scalar > 
    283         <reduce_domain operation="sum" /> 
    284       </scalar> 
    285       <axis axis_ref="axis_zoom" /> 
    286     </grid> 
    287  
    288    <grid id="grid_lat"> 
    289        <axis axis_ref="domain_Y"> 
    290          <reduce_domain direction="iDir" operation="sum"/>  
    291        </axis> 
    292        <axis axis_ref="axis" /> 
    293     </grid> 
    294      
    295  
    296     <grid id="grid3D_invert"> 
    297       <domain domain_ref="domain"> 
    298         <reorder_domain invert_lat="true" /> 
    299       </domain> 
    300       <axis axis_ref="axis" /> 
    301     </grid> 
    302      
    303     <grid id="grid2D_invert"> 
    304       <domain domain_ref="domain"> 
    305         <reorder_domain invert_lat="true" shift_lon_fraction="0.5" min_lon="0" max_lon="360"/> 
    306       </domain> 
    307     </grid> 
    308  
    309      
     310    
    310311  </grid_definition> 
    311312   
    312313   
    313314  <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true"> 
    314     <field id="field2D" grid_ref="grid2D" build_workflow_graph="false" /> 
    315     <field id="field3D" grid_ref="grid3D" build_workflow_graph="true" /> 
     315    <field id="field2D" grid_ref="grid2D" /> 
     316    <field id="field3D" grid_ref="grid3D" /> 
    316317    <field id="pressure" grid_ref="grid3D"  /> 
    317318    <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" /> 
    318319    <field id="field3D_resend" grid_ref="grid3D" /> 
    319320 
    320     <field id="field_X" grid_ref="grid_X" build_workflow_graph="false" /> 
    321     <field id="field_Y" grid_ref="grid_Y" build_workflow_graph="false" /> 
    322     <field id="field_Z" grid_ref="grid1D" build_workflow_graph="false" /> 
     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" /> 
    323324    <field id="field_XY" grid_ref="grid_XY" /> 
    324325    <field id="field_XYZ" grid_ref="grid_XYZ" /> 
    325326    <field id="field_XZ" grid_ref="grid_XZ" /> 
    326327    <field id="field_YZ" grid_ref="grid_YZ" /> 
    327  
    328     <field id="field_zoom_vert" field_ref="field3D" grid_ref="grid_zoom_vert"  /> 
    329     <field id="field_zoom_vert_sum" field_ref="field_zoom_vert" grid_ref="grid_zoom_vert_sum"  /> 
    330  
    331328 
    332329 
     
    346343 
    347344 
    348  
    349  
    350345    <field id="other_field2D" grid_ref="other_grid2D"/> 
    351346    <field id="other_field3D" grid_ref="other_grid3D"  /> 
     
    376371    <field id="other_field_YZW" grid_ref="other_grid_YZW" /> 
    377372 
    378  
    379  
    380  
    381373     
    382374     
    383375  </field_definition> 
     376 
     377 
     378 
     379<!-- implementation of specifics test case --> 
     380<!-- simplest test cases : output data to file --> 
     381 
    384382   
    385383 
    386384  <file_definition  type="one_file" > 
    387      
    388     <file id="atm_output" output_freq="1ts" type="one_file" enabled="true"> 
    389        <!-- <field id="id_fieldXY" field_ref="field_XY" operation="once" enabled="true"/> --> 
    390        <field id="id_fieldX" field_ref="field_X" operation="once" enabled="true"/> 
    391     </file> 
    392  
    393      <file id="atm_output_zoom" output_freq="1ts" enabled="true"> 
    394        <field id="fieldX_zoomX" field_ref="field_X" grid_ref="grid_X_zoom" operation="once" enabled="true"/> 
    395        <!-- <field id="fieldXY_zoomX" field_ref="field_XY" grid_ref="grid_XY_zoom_X" operation="once" enabled="true"/> 
    396        <field id="fieldXY_zoomY" field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="once" enabled="true"/> --> 
    397     </file> 
    398  
    399  
    400     <file id="atm_output_other" output_freq="1ts"  enabled="false"> 
    401        <field field_ref="other_field3D" enabled="false"/> 
    402        <field field_ref="other_field2D" enabled="true"/>  
    403        <field field_ref="other_field_X" enabled="false"/> 
    404        <field field_ref="other_field_Y" enabled="false"/> 
    405        <field field_ref="other_field_XY" enabled="false"/> 
    406        <field field_ref="other_field_Z" enabled="false"/> 
    407        <field field_ref="other_field_XYZ" enabled="false"/> 
    408        <field field_ref="other_field_XZ" enabled="false"/> 
    409        <field field_ref="other_field_YZ" enabled="false"/> 
     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" /> 
    410439    </file> 
    411440 
    412441    <file id="atm_output_W" output_freq="1ts" enabled="false"> 
    413        <field field_ref="field3D_W" enabled="true"/> 
    414        <field field_ref="field2D_W" enabled="true"/>  
    415        <field field_ref="field_XW" enabled="true"/> 
    416        <field field_ref="field_YW" enabled="true"/> 
    417        <field field_ref="field_XYW" enabled="true"/> 
    418        <field field_ref="field_ZW" enabled="true"/> 
    419        <field field_ref="field_XYZW" enabled="true"/> 
    420        <field field_ref="field_XZW" enabled="true"/> 
    421        <field field_ref="field_YZW" enabled="true"/> 
    422     </file> 
    423      
    424  
    425     <file id="atm_output_reorder" output_freq="1ts" enabled="false" > 
    426        <field field_ref="field2D" grid_ref="grid2D_invert" enabled="true"/> 
    427     </file> 
    428      
    429     <file id="test_grid_lat" output_freq="1ts" enabled="false"> 
    430       <field field_ref="field3D" operation="instant" /> 
    431       <field id="field_reduce_lat" field_ref="field3D" grid_ref="grid_lat" operation="instant" /> 
    432     </file> 
     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     
    433453     
    434454  </file_definition> 
Note: See TracChangeset for help on using the changeset viewer.