Changeset 2036


Ignore:
Timestamp:
02/22/21 16:13:31 (8 months ago)
Author:
yushan
Message:

XIOS_COUPLING : update unit test files

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite
Files:
2 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/COMPILE/compile_param_irene.def

    r1805 r2036  
    11arch = X64_IRENE 
    2 mode = prod, debug 
     2mode = prod 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/COMPILE/config_compile.py

    r1947 r2036  
    114114             
    115115            f.write("add_test( NAME "+build_dir_name+'\n') 
    116             f.write("          COMMAND bash -c \"source ../ARCH/arch-"+configs_arg[0][i]+".env  && cd ../.. && ./make_xios --arch_path `pwd`/xios_test_suite/ARCH --arch "+configs_arg[0][i]+" --"+configs_arg[1][j]+" --job 16 --build_dir xios_test_suite/BUILD/build_"+build_dir_name+" && echo $? >> xios_test_suite/COMPILE/build_"+revision+"_"+machine+"_"+build_dir_name+".txt\")\n\n") 
     116            f.write("          COMMAND bash -c \"source ../ARCH/arch-"+configs_arg[0][i]+".env  && cd ../.. && ./make_xios --use_tv --arch_path `pwd`/xios_test_suite/ARCH --arch "+configs_arg[0][i]+" --"+configs_arg[1][j]+" --job 16 --build_dir xios_test_suite/BUILD/build_"+build_dir_name+" && echo $? >> xios_test_suite/COMPILE/build_"+revision+"_"+machine+"_"+build_dir_name+".txt\")\n\n") 
    117117            f.write("set_tests_properties( "+build_dir_name+" PROPERTIES\n") 
    118118            f.write("                      FAIL_REGULAR_EXPRESSION \"failed\")\n\n") 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/context_atm.xml

    r1806 r2036  
    33   
    44  <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> 
    10    
     5  
     6  <scalar_definition> 
     7    <scalar id="scalar" />  
     8    <scalar id="other_scalar" />  
     9  </scalar_definition> 
     10  
     11  
    1112  <axis_definition> 
    1213    <axis id="axis" /> 
     14    <axis id="axis_str" n_glo="10" label="(0,9) [toto titi tata turlututu tito tati tuto tato tete tetu ] "/> 
    1315    <axis id="domain_X" /> 
    1416    <axis id="domain_Y" /> 
     
    1921    <axis id="other_domain_Y" /> 
    2022    <axis id="other_ensemble" /> 
    21   </axis_definition> 
    22  
    23   <axis_definition> 
     23 
    2424    <axis id="axis_zoom" axis_ref="axis"> 
    2525        <zoom_axis begin="0" n="5"/> 
     
    2727  </axis_definition> 
    2828 
    29   <scalar_definition> 
    30     <scalar id="scalar" />  
    31   </scalar_definition> 
     29  
     30  <domain_definition> 
     31    <domain id="domain" /> 
     32    <domain id="other_domain" /> 
     33  </domain_definition> 
    3234   
    3335   
     
    4143     
    4244    <grid id="grid2D"> 
    43       <domain domain_ref="domain" /> 
     45      <domain domain_ref="domain" id="grid2D_dom" /> 
    4446    </grid> 
    4547 
    4648    <grid id="grid1D"> 
    4749      <axis axis_ref="axis" /> 
     50    </grid> 
     51 
     52    <grid id="grid0D"> 
     53      <scalar scalar_ref="scalar" /> 
    4854    </grid> 
    4955 
     
    94100    </grid> 
    95101 
     102    <grid id="grid0D_W"> 
     103      <scalar scalar_ref="scalar" /> 
     104      <axis axis_ref="ensemble" /> 
     105    </grid> 
     106 
    96107    <grid id="grid_XW"> 
    97108      <axis axis_ref="domain_X" /> 
     
    129140    </grid> 
    130141 
    131   
    132   
    133   
    134   
    135142  
    136143    <grid id="other_grid3D"> 
     
    140147     
    141148    <grid id="other_grid2D"> 
    142       <domain domain_ref="other_domain" /> 
     149      <domain domain_ref="other_domain" id="test_dom" /> 
    143150    </grid> 
    144151 
    145152    <grid id="other_grid1D"> 
    146153      <axis axis_ref="other_axis" /> 
     154    </grid> 
     155 
     156    <grid id="other_grid0D"> 
     157      <scalar scalar_ref="other_scalar" /> 
    147158    </grid> 
    148159 
     
    193204    </grid> 
    194205 
     206    <grid id="other_grid0D_W"> 
     207      <scalar scalar_ref="other_scalar" /> 
     208      <axis axis_ref="other_ensemble" /> 
     209    </grid> 
     210 
    195211    <grid id="other_grid_XW"> 
    196212      <axis axis_ref="other_domain_X" /> 
     
    229245 
    230246 
    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      
    287247  </grid_definition> 
    288248   
    289249   
    290250  <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true"> 
     251    <field id="field0D" grid_ref="grid0D"/> 
    291252    <field id="field2D" grid_ref="grid2D" /> 
    292     <field id="field3D" grid_ref="grid3D" build_workflow_graph="true" /> 
     253    <field id="field3D" grid_ref="grid3D" /> 
    293254    <field id="pressure" grid_ref="grid3D"  /> 
    294     <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" /> 
    295     <field id="field3D_resend" grid_ref="grid3D" /> 
    296  
     255 
     256   <!-- <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D"/> 
     257    <field id="field3D_resend" grid_ref="grid3D" /> --> 
    297258    <field id="field_X" grid_ref="grid_X" /> 
    298259    <field id="field_Y" grid_ref="grid_Y" /> 
     
    307268 
    308269 
    309  
     270    <field id="field0D_W" grid_ref="grid0D_W"/> 
    310271    <field id="field2D_W" grid_ref="grid2D_W"/> 
    311272    <field id="field3D_W" grid_ref="grid3D_W"  /> 
    312273    <field id="pressure_W" grid_ref="grid3D_W"  /> 
     274<!-- ym disable for now 
    313275    <field id="field3D_recv_W" read_access="true" grid_ref="grid3D_W"  field_ref="field3D_W"/> 
    314276    <field id="field3D_resend_W" grid_ref="grid3D_W" /> 
    315  
     277--> 
    316278    <field id="field_XW" grid_ref="grid_XW" /> 
    317279    <field id="field_YW" grid_ref="grid_YW" /> 
     
    324286 
    325287 
    326  
    327     <field id="other_field2D" grid_ref="other_grid2D"/> 
     288    <field id="other_field0D" grid_ref="other_grid0D"/> 
     289<!--    <field id="other_field2D" grid_ref="other_grid2D"/> --> 
     290    <field id="other_field2D" grid_ref="zoom1"/> 
    328291    <field id="other_field3D" grid_ref="other_grid3D"  /> 
    329292    <field id="other_pressure" grid_ref="other_grid3D"  /> 
     293<!-- ym disable for now 
    330294    <field id="other_field3D_recv" read_access="true" grid_ref="other_grid3D"  field_ref="other_field3D"/> 
    331295    <field id="other_field3D_resend" grid_ref="other_grid3D" /> 
    332  
     296--> 
    333297    <field id="other_field_X" grid_ref="other_grid_X" /> 
    334298    <field id="other_field_Y" grid_ref="other_grid_Y" /> 
     
    339303    <field id="other_field_YZ" grid_ref="other_grid_YZ" /> 
    340304 
     305    <field id="other_field0D_W" grid_ref="other_grid0D_W"/> 
    341306    <field id="other_field2D_W" grid_ref="other_grid2D_W"/> 
    342307    <field id="other_field3D_W" grid_ref="other_grid3D_W"  /> 
    343308    <field id="other_pressure_W" grid_ref="other_grid3D_W"  /> 
     309<!-- ym disable for now 
    344310    <field id="other_field3D_recv_W" read_access="true" grid_ref="other_grid3D_W"  field_ref="other_field3D_W"/> 
    345311    <field id="other_field3D_resend_W" grid_ref="other_grid3D_W" /> 
    346  
     312--> 
    347313    <field id="other_field_XW" grid_ref="other_grid_XW" /> 
    348314    <field id="other_field_YW" grid_ref="other_grid_YW" /> 
     
    352318    <field id="other_field_XZW" grid_ref="other_grid_XZW" /> 
    353319    <field id="other_field_YZW" grid_ref="other_grid_YZW" /> 
    354  
    355  
    356  
    357  
    358      
    359320     
    360321  </field_definition> 
    361322   
    362323 
    363   <file_definition  type="one_file" > 
    364      
    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"/> 
    384     </file> 
    385  
    386     <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"/> 
    396     </file> 
    397  
    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"/> 
    408     </file> 
    409      
    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> 
    419      
     324<!-- test transform  --> 
     325 
     326 
     327  <axis_definition> 
     328    <axis id="axis_inverse" axis_ref="axis"> 
     329      <inverse_axis /> 
     330    </axis> 
     331 
     332    <axis id="axis_extract" > 
     333      <extract_axis begin="1" n="5" /> 
     334    </axis> 
     335 
     336 
     337 
     338  </axis_definition> 
     339 
     340  <domain_definition> 
     341 
     342    <domain id="domain_extract"> 
     343      <extract_domain ibegin="0" ni="36" jbegin="2" nj="3" /> 
     344    </domain> 
     345  
     346  
     347    <domain id="domain_reorder" domain_ref="domain"> 
     348      <reorder_domain invert_lat="true" shift_lon_fraction="0.5"/> 
     349    </domain> 
     350   
     351    <domain id="domain_expand" > 
     352      <expand_domain order="1" type="edge"/> 
     353    </domain> 
     354   
     355    <domain id="domain_interpolate" domain_ref="other_domain" > 
     356      <interpolate_domain detect_missing_value="false"/> 
     357    </domain> 
     358   
     359    <domain id="domain_connect" > 
     360      <compute_connectivity_domain type="edge"/> 
     361    </domain> 
     362 
     363    <domain id="domain_recti" ni_glo="40" nj_glo="20" type="rectilinear" /> 
     364 
     365   
     366    <domain id="domain_expand_extract" > 
     367      <expand_domain order="1" type="edge"/> 
     368      <extract_domain ibegin="0" ni="38" jbegin="2" nj="3" /> 
     369    </domain> 
     370   
     371 
     372 
     373  </domain_definition> 
     374   
     375  <grid_definition> 
     376  
     377    <grid id="grid1D_inverse"> 
     378      <axis axis_ref="axis_inverse" /> 
     379    </grid> 
     380   
     381    <grid id="grid1D_extract"> 
     382      <axis axis_ref="axis_extract" /> 
     383    </grid> 
     384   
     385 
     386    <grid id="grid2D_extract"> 
     387      <domain domain_ref="domain_extract" /> 
     388    </grid> 
     389   
     390    <grid id="grid2D_zoom"> 
     391      <domain domain_ref="domain_zoom" /> 
     392    </grid> 
     393  
     394 
     395    <grid id="grid2D_reorder"> 
     396      <domain domain_ref="domain_reorder" /> 
     397    </grid> 
     398  
     399    <grid id="grid2D_expand"> 
     400      <domain domain_ref="domain_expand" /> 
     401    </grid> 
     402 
     403    <grid id="grid2D_interpolate"> 
     404      <domain domain_ref="domain_interpolate" /> 
     405    </grid> 
     406   
     407 
     408    <grid id="grid2D_connect"> 
     409      <domain domain_ref="domain_connect" /> 
     410    </grid> 
     411 
     412 
     413    <grid id="grid2D_recti"> 
     414      <domain domain_ref="domain_recti" > 
     415        <generate_rectilinear_domain lat_start="-85" lon_start="-175" /> 
     416        <interpolate_domain detect_missing_value="false"/> 
     417      </domain> 
     418    </grid> 
     419  
     420    <grid id="grid2D_expand_extract"> 
     421      <domain domain_ref="domain_expand_extract" /> 
     422    </grid> 
     423   
     424    <grid id="grid2D_extract_domain">   
     425      <axis  n_glo="36"> 
     426        <extract_domain position="2" direction="jDir" /> 
     427      </axis> 
     428    </grid> 
     429 
     430    <grid id="grid3D_axis_interpolate"> 
     431      <domain domain_ref="domain"/> 
     432      <axis n_glo="2" value="(0,1)[40000 20000]"> 
     433        <interpolate_axis coordinate="pressure" /> 
     434      </axis> 
     435    </grid>  
     436  
     437    <grid id="grid3D_axis_interpolate_bis"> 
     438      <domain domain_ref="domain"/> 
     439      <axis n_glo="2" value="(0,1)[40000 20000]"> 
     440        <interpolate_axis /> 
     441      </axis> 
     442    </grid>  
     443 
     444 
     445  </grid_definition> 
     446  
     447  
     448  <field_definition> 
     449    <field_group id="fields_with_domain_transformation" operation="instant" > 
     450      <field id="field2D_extract"  field_ref="field2D" grid_ref="grid2D_extract"/> 
     451      <field id="field2D_reorder"  field_ref="field2D" grid_ref="grid2D_reorder" /> 
     452      <field id="field2D_expand"   field_ref="field2D" grid_ref="grid2D_expand"/> 
     453      <field id="field2D_connect"  field_ref="field2D" grid_ref="grid2D_connect"/> 
     454      <field id="field2D_interpo"  field_ref="field2D" grid_ref="grid2D_interpolate"/> 
     455      <field id="field2D_recti"    field_ref="field2D" grid_ref="grid2D_recti"/> 
     456      <field id="field2D_exp_ext"  field_ref="field2D" grid_ref="grid2D_expand_extract"/> 
     457      <field id="field2D_reorder_ext"  field_ref="field2D_reorder" grid_ref="grid2D_extract"/> 
     458    </field_group> 
     459 
     460    <field_group id="fields_with_axis_transformation" operation="instant"  > 
     461      <field id="fieldZ_inverse"   field_ref="field_Z" grid_ref="grid1D_inverse"/> 
     462      <field id="fieldZ_extract"   field_ref="field_Z" grid_ref="grid1D_extract"/> 
     463      <field id="field2D_extract_domain"   field_ref="field2D" grid_ref="grid2D_extract_domain"/> 
     464      <field id="field3D_interpo"  field_ref="field3D" grid_ref="grid3D_axis_interpolate"/> 
     465      <field id="field3D_interpo_bis"  field_ref="field3D" grid_ref="grid3D_axis_interpolate_bis"/> 
     466    </field_group> 
     467 
     468  </field_definition> 
     469 
     470 
     471 
     472  <file_definition> 
     473     
     474  <file id="atm_output_domain" output_freq="1ts" type="one_file" enabled="true"> 
     475      <field field_ref="field2D_extract" /> 
     476      <field field_ref="field2D_reorder" /> 
     477      <field field_ref="field2D_expand" /> 
     478      <field field_ref="field2D_interpo" /> 
     479      <field field_ref="field2D_recti" /> 
     480      <field field_ref="field2D_exp_ext" /> 
     481      <field field_ref="field2D_reorder_ext" /> 
     482      <field id="field2D"  /> 
     483  </file> 
     484      
     485  <file id="atm_output_axis" output_freq="4ts" type="one_file" enabled="true"> 
     486      <field field_ref="fieldZ_inverse" enabled="false"  /> 
     487      <field field_ref="fieldZ_extract"  enabled="true"/> 
     488      <field field_ref="field2D_extract_domain"  enabled="false"/> 
     489      <field id="field_Z"  enabled="true"/> 
     490      <field id="field2D"  enabled="true"/> 
     491  </file> 
     492      
     493  <file id="atm_output_interpolate" output_freq="1ts" type="one_file" enabled="true"> 
     494      <field field_ref="field3D_interpo" /> 
     495      <field field_ref="field3D_interpo_bis" /> 
     496      <field id="field3D"  /> 
     497  </file> 
     498     
     499 
     500 
    420501  </file_definition> 
    421    
     502 
     503 
     504 
    422505   
    423506</context> 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/run_test

    r1948 r2036  
    2121  echo "ulimit -c 0">> compile.sh 
    2222  echo "cd ../.. ">> compile.sh 
    23   echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 16" >> compile.sh 
     23  echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --use_tv --build_dir ${build_dir} --job 16" >> compile.sh 
    2424  cmd=$(sbatch compile.sh) 
    2525  jobid="${cmd//[!0-9]/}" 
     
    5353  echo "#MSUB -m work,scratch" >> compile.sh 
    5454  echo "cd ../.. ">> compile.sh 
    55   echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 16" >> compile.sh 
     55  echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --use_tv --build_dir ${build_dir} --job 16" >> compile.sh 
    5656  cmd=$(ccc_msub compile.sh) 
    5757  jobid="${cmd//[!0-9]/}" 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/run_test_irene

    r1899 r2036  
    77 
    88 
    9 export arch=X64_IRENE 
    10 export mode=debug 
     9#export arch=X64_IRENE 
     10#export mode=debug 
    1111 
    12 bash ./run_test 
     12#bash ./run_test 
    1313 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/test_axis_algo/checkfile.def

    r1921 r2036  
    1 #all 
    2 #atm_output_zoom.nc 
    3 atm_output_axis_transformation_reduce.nc 
    4 atm_output_axis_transformation_zoom.nc 
    5 atm_output_axis_transformation_extract.nc 
    6 atm_output_axis_transformation_extract_domain.nc 
    7 atm_output_axis_transformation_interpolate.nc 
    8 atm_output_axis_transformation_temporal_splitting.nc 
    9 atm_output_axis_transformation_duplicate_scalar.nc 
    10 atm_output_axis_transformation_inverse.nc 
     1atm_output_interpolate.nc 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/test_axis_algo/context_atm.xml

    r1921 r2036  
    33   
    44  <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> 
    10    
     5  
     6  <scalar_definition> 
     7    <scalar id="scalar" />  
     8    <scalar id="other_scalar" />  
     9  </scalar_definition> 
     10  
     11  
    1112  <axis_definition> 
    1213    <axis id="axis" /> 
     14    <axis id="axis_str" n_glo="10" label="(0,9) [toto titi tata turlututu tito tati tuto tato tete tetu ] "/> 
    1315    <axis id="domain_X" /> 
    1416    <axis id="domain_Y" /> 
    1517    <axis id="ensemble" /> 
    16     <axis id="axis_interpolate" n_glo="2" value="(0,1)[80000 40000]"> 
    17       <interpolate_axis type="polynomial" order="1" coordinate="pressure"/>  
    18     </axis> 
    19     <axis id="axis_temporal_splitting" n_glo="4"> 
    20       <temporal_splitting />  
    21     </axis> 
    22      
    23     <axis id="axis_duplicate_scalar" n_glo="5"> 
    24       <duplicate_scalar />  
    25     </axis> 
    26  
    27  
    28  
    2918 
    3019    <axis id="other_axis" /> 
     
    3221    <axis id="other_domain_Y" /> 
    3322    <axis id="other_ensemble" /> 
     23 
     24    <axis id="axis_zoom" axis_ref="axis"> 
     25        <zoom_axis begin="0" n="5"/> 
     26    </axis> 
    3427  </axis_definition> 
    3528 
    36   <scalar_definition> 
    37     <scalar id="scalar" />  
    38   </scalar_definition> 
     29  
     30  <domain_definition> 
     31    <domain id="domain" /> 
     32    <domain id="other_domain" /> 
     33  </domain_definition> 
    3934   
    4035   
     
    4641      <axis axis_ref="axis" /> 
    4742    </grid> 
    48       
    49     <grid id="grid3D_interpolate_axis"> 
    50       <domain domain_ref="domain" /> 
    51       <axis axis_ref="axis_interpolate" /> 
    52     </grid> 
    53  
    54  
     43     
    5544    <grid id="grid2D"> 
    56       <domain domain_ref="domain" /> 
    57     </grid> 
    58  
    59     <grid id="grid2D_extract_domain"> 
    60       <axis n_glo="36" > 
    61       <extract_domain direction="iDir" position="5" /> 
    62       </axis> 
    63     </grid> 
    64  
    65  
     45      <domain domain_ref="domain" id="grid2D_dom" /> 
     46    </grid> 
    6647 
    6748    <grid id="grid1D"> 
    6849      <axis axis_ref="axis" /> 
    6950    </grid> 
    70    
    71     <grid id="grid1D_extract"> 
    72       <axis id="axis_extract" axis_ref="axis"> 
    73       <extract_axis n="5" begin="0" /> 
    74       </axis> 
    75     </grid>    
    76  
    77     <grid id="grid1D_zoom"> 
    78       <axis id="axis_zoom" axis_ref="axis"> 
    79       <zoom_axis n="5" begin="0" /> 
    80       </axis> 
    81     </grid>    
    82  
    83  
    84     <grid id="grid1D_inverse"> 
    85       <axis id="axis_inverse" axis_ref="axis"> 
    86       <inverse_axis /> 
    87       </axis> 
    88     </grid>    
    89  
    90     <grid id="grid1D_reduce_sum"> 
    91       <axis id="axis_reduce_sum" axis_ref="axis"> 
    92       <reduce_axis operation="sum"/> 
    93       </axis> 
    94     </grid>    
    95  
    96     <grid id="grid1D_reduce_max"> 
    97       <axis id="axis_reduce_max" axis_ref="axis"> 
    98       <reduce_axis operation="max"/> 
    99       </axis> 
    100     </grid>    
    101  
    102  
    103     <grid id="grid1D_reduce_min"> 
    104       <axis id="axis_reduce_min" axis_ref="axis"> 
    105       <reduce_axis operation="min"/> 
    106       </axis> 
    107     </grid>    
    108    
    109     <grid id="grid1D_reduce_ave"> 
    110       <axis id="axis_reduce_ave" axis_ref="axis"> 
    111       <reduce_axis operation="average"/> 
    112       </axis> 
    113     </grid>    
    114  
    115     <grid id="grid_src"> 
    116       <domain domain_ref="domain" /> 
    117       <axis axis_ref="axis" /> 
    118       <scalar scalar_ref="scalar"/> 
    119     </grid> 
    120    
    121      <grid id="grid_dst"> 
    122       <domain domain_ref="domain" /> 
    123       <axis axis_ref="axis" /> 
    124       <axis axis_ref="axis_temporal_splitting"/> 
    125     </grid> 
    126    
    127    <grid id="grid0D"> 
     51 
     52    <grid id="grid0D"> 
    12853      <scalar scalar_ref="scalar" /> 
    12954    </grid> 
    130     
    131     <grid id="grid1D_duplicate_scalar"> 
    132       <axis axis_ref="axis_duplicate_scalar" /> 
    133     </grid> 
    134   
    135  
    136  
    13755 
    13856    <grid id="grid_X"> 
     
    14866      <axis axis_ref="domain_Y" /> 
    14967    </grid> 
    150      
    151     <grid id="gridXY_zoomX"> 
    152       <axis id="domain_X_zoom" axis_ref="domain_X"> 
    153       <zoom_axis n="6" begin="1" /> 
    154       </axis> 
    155       <axis axis_ref="domain_Y" /> 
    156     </grid> 
    157     
    158     <grid id="gridXY_zoomY"> 
    159       <axis axis_ref="domain_X" /> 
    160       <axis id="domain_Y_zoom" axis_ref="domain_Y"> 
    161       <zoom_axis n="4" begin="2" /> 
    162       </axis> 
    163     </grid> 
    164  
    165  
    16668 
    16769    <grid id="grid_XYZ"> 
     
    198100    </grid> 
    199101 
     102    <grid id="grid0D_W"> 
     103      <scalar scalar_ref="scalar" /> 
     104      <axis axis_ref="ensemble" /> 
     105    </grid> 
     106 
    200107    <grid id="grid_XW"> 
    201108      <axis axis_ref="domain_X" /> 
     
    233140    </grid> 
    234141 
    235   
    236142  
    237143    <grid id="other_grid3D"> 
     
    241147     
    242148    <grid id="other_grid2D"> 
    243       <domain domain_ref="other_domain" /> 
     149      <domain domain_ref="other_domain" id="test_dom" /> 
    244150    </grid> 
    245151 
    246152    <grid id="other_grid1D"> 
    247153      <axis axis_ref="other_axis" /> 
     154    </grid> 
     155 
     156    <grid id="other_grid0D"> 
     157      <scalar scalar_ref="other_scalar" /> 
    248158    </grid> 
    249159 
     
    294204    </grid> 
    295205 
     206    <grid id="other_grid0D_W"> 
     207      <scalar scalar_ref="other_scalar" /> 
     208      <axis axis_ref="other_ensemble" /> 
     209    </grid> 
     210 
    296211    <grid id="other_grid_XW"> 
    297212      <axis axis_ref="other_domain_X" /> 
     
    329244    </grid> 
    330245 
    331     
     246 
    332247  </grid_definition> 
    333248   
    334249   
    335250  <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true"> 
     251    <field id="field0D" grid_ref="grid0D"/> 
    336252    <field id="field2D" grid_ref="grid2D" /> 
    337253    <field id="field3D" grid_ref="grid3D"  /> 
    338254    <field id="pressure" grid_ref="grid3D"  /> 
    339     <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" /> 
    340     <field id="field3D_resend" grid_ref="grid3D" /> 
    341  
     255 
     256   <!-- <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D"/> 
     257    <field id="field3D_resend" grid_ref="grid3D" /> --> 
    342258    <field id="field_X" grid_ref="grid_X" /> 
    343259    <field id="field_Y" grid_ref="grid_Y" /> 
     
    348264    <field id="field_YZ" grid_ref="grid_YZ" /> 
    349265 
    350  
     266    <field id="field_zoom_vert" field_ref="field3D" grid_ref="grid_zoom_vert"  /> 
     267    <field id="field_zoom_vert_sum" field_ref="field_zoom_vert" grid_ref="grid_zoom_vert_sum"  /> 
     268 
     269 
     270    <field id="field0D_W" grid_ref="grid0D_W"/> 
    351271    <field id="field2D_W" grid_ref="grid2D_W"/> 
    352272    <field id="field3D_W" grid_ref="grid3D_W"  /> 
    353273    <field id="pressure_W" grid_ref="grid3D_W"  /> 
     274<!-- ym disable for now 
    354275    <field id="field3D_recv_W" read_access="true" grid_ref="grid3D_W"  field_ref="field3D_W"/> 
    355276    <field id="field3D_resend_W" grid_ref="grid3D_W" /> 
    356  
     277--> 
    357278    <field id="field_XW" grid_ref="grid_XW" /> 
    358279    <field id="field_YW" grid_ref="grid_YW" /> 
     
    364285 
    365286 
    366     <field id="other_field2D" grid_ref="other_grid2D"/> 
     287 
     288    <field id="other_field0D" grid_ref="other_grid0D"/> 
     289<!--    <field id="other_field2D" grid_ref="other_grid2D"/> --> 
     290    <field id="other_field2D" grid_ref="zoom1"/> 
    367291    <field id="other_field3D" grid_ref="other_grid3D"  /> 
    368292    <field id="other_pressure" grid_ref="other_grid3D"  /> 
     293<!-- ym disable for now 
    369294    <field id="other_field3D_recv" read_access="true" grid_ref="other_grid3D"  field_ref="other_field3D"/> 
    370295    <field id="other_field3D_resend" grid_ref="other_grid3D" /> 
    371  
     296--> 
    372297    <field id="other_field_X" grid_ref="other_grid_X" /> 
    373298    <field id="other_field_Y" grid_ref="other_grid_Y" /> 
     
    378303    <field id="other_field_YZ" grid_ref="other_grid_YZ" /> 
    379304 
     305    <field id="other_field0D_W" grid_ref="other_grid0D_W"/> 
    380306    <field id="other_field2D_W" grid_ref="other_grid2D_W"/> 
    381307    <field id="other_field3D_W" grid_ref="other_grid3D_W"  /> 
    382308    <field id="other_pressure_W" grid_ref="other_grid3D_W"  /> 
     309<!-- ym disable for now 
    383310    <field id="other_field3D_recv_W" read_access="true" grid_ref="other_grid3D_W"  field_ref="other_field3D_W"/> 
    384311    <field id="other_field3D_resend_W" grid_ref="other_grid3D_W" /> 
    385  
     312--> 
    386313    <field id="other_field_XW" grid_ref="other_grid_XW" /> 
    387314    <field id="other_field_YW" grid_ref="other_grid_YW" /> 
     
    391318    <field id="other_field_XZW" grid_ref="other_grid_XZW" /> 
    392319    <field id="other_field_YZW" grid_ref="other_grid_YZW" /> 
    393  
    394     <field id="field_src" grid_ref="grid_src" > field3D </field> 
    395      
    396320     
    397321  </field_definition> 
    398  
    399  
    400  
    401 <!-- implementation of specifics test case --> 
    402 <!-- simplest test cases : output data to file --> 
    403  
    404    
    405  
    406   <file_definition  type="one_file" > 
    407     <file id="atm_output_axis_transformation_reduce" output_freq="4ts" type="one_file" enabled="true"> 
    408        <field field_ref="field_Z" /> 
    409        <field id="field_Z_reduce_sum" field_ref="field_Z" grid_ref="grid1D_reduce_sum" /> 
    410        <field id="field_Z_reduce_max" field_ref="field_Z" grid_ref="grid1D_reduce_max" /> 
    411        <field id="field_Z_reduce_min" field_ref="field_Z" grid_ref="grid1D_reduce_min" /> 
    412        <field id="field_Z_reduce_ave" field_ref="field_Z" grid_ref="grid1D_reduce_ave" /> 
    413     </file> 
    414  
    415     <file id="atm_output_axis_transformation_zoom" output_freq="12ts" type="one_file" enabled="true"> 
    416        <field field_ref="field_Z" /> 
    417        <field id="field_Z_zoom"       field_ref="field_Z" grid_ref="grid1D_zoom"       /> 
    418        <field field_ref="field_XY" /> 
    419        <field id="field_XY_zoomX"       field_ref="field_XY" grid_ref="gridXY_zoomX"       /> 
    420        <field id="field_XY_zoomY"       field_ref="field_XY" grid_ref="gridXY_zoomY"       /> 
    421     </file> 
    422      
    423     <file id="atm_output_axis_transformation_extract" output_freq="12ts" type="one_file" enabled="true"> 
    424        <field field_ref="field_Z" /> 
    425        <field id="field_Z_extract"    field_ref="field_Z" grid_ref="grid1D_extract"    />  
    426     </file> 
    427      
    428   
    429     <file id="atm_output_axis_transformation_inverse" output_freq="12ts" type="one_file" enabled="true"> 
    430        <field field_ref="field_Z" /> 
    431        <field id="field_Z_inverse"    field_ref="field_Z" grid_ref="grid1D_inverse"    /> 
    432     </file> 
    433      
    434     <file id="atm_output_axis_transformation_extract_domain" output_freq="12ts" type="one_file" enabled="true"> 
    435        <field field_ref="field2D" /> 
    436        <field id="field2D_extract"       field_ref="field2D" grid_ref="grid2D_extract_domain"       /> 
    437     </file> 
    438      
    439     <file id="atm_output_axis_transformation_interpolate" output_freq="24ts" type="one_file" enabled="true"> 
    440        <field field_ref="field3D"  /> 
    441        <field field_ref="pressure"  /> 
    442        <field id="field_interpolate_axis" field_ref="field3D" grid_ref="grid3D_interpolate_axis" /> 
    443     </file> 
    444  
    445     <file id="atm_output_axis_transformation_temporal_splitting" output_freq="4ts" type="one_file" enabled="true"> 
    446        <field field_ref="field_src" operation="instant" /> 
    447        <field id="field_temporal_splitting" field_ref="field_src" grid_ref="grid_dst" /> 
    448     </file> 
    449      
    450     <file id="atm_output_axis_transformation_duplicate_scalar" output_freq="4ts" type="one_file" enabled="true"> 
    451        <field field_ref="field_Z" /> 
    452        <field id="field_0D" field_ref="field_Z" name="field_0D" grid_ref="grid0D" /> 
    453        <field id="field_duplicate_scalar" field_ref="field_0D" name="field_duplicate_scalar" grid_ref="grid1D_duplicate_scalar" /> 
    454     </file> 
    455  
    456  
    457  
    458  
    459  
    460     <file id="atm_output" output_freq="1ts" type="one_file" enabled="false"> 
    461        <field field_ref="field3D" /> 
    462        <field field_ref="field2D" />  
    463        <field field_ref="field_X" /> 
    464        <field field_ref="field_Y" /> 
    465        <field field_ref="field_XY" /> 
    466        <field field_ref="field_Z" /> 
    467        <field field_ref="field_XYZ" /> 
    468        <field field_ref="field_XZ" /> 
    469        <field field_ref="field_YZ" /> 
    470        <field field_ref="pressure"  />  
    471        <field field_ref="field3D_resend" /> 
    472     </file> 
    473  
    474     <file id="atm_output_other" output_freq="1ts" type="one_file" enabled="false"> 
    475        <field field_ref="other_field3D" /> 
    476        <field field_ref="other_field2D" />  
    477        <field field_ref="other_field_X" /> 
    478        <field field_ref="other_field_Y" /> 
    479        <field field_ref="other_field_XY" /> 
    480        <field field_ref="other_field_Z" /> 
    481        <field field_ref="other_field_XYZ" /> 
    482        <field field_ref="other_field_XZ" /> 
    483        <field field_ref="other_field_YZ" /> 
    484        <field field_ref="other_pressure"  />  
    485        <field field_ref="other_field3D_resend" /> 
    486     </file> 
    487  
    488     <file id="atm_output_W" output_freq="1ts" enabled="false"> 
    489        <field field_ref="field3D_W" /> 
    490        <field field_ref="field2D_W" />  
    491        <field field_ref="field_XW" /> 
    492        <field field_ref="field_YW" /> 
    493        <field field_ref="field_XYW" /> 
    494        <field field_ref="field_ZW" /> 
    495        <field field_ref="field_XYZW" /> 
    496        <field field_ref="field_XZW" /> 
    497        <field field_ref="field_YZW" /> 
    498     </file> 
    499      
    500      
     322   
     323 
     324<!-- test transform  --> 
     325 
     326 
     327  <axis_definition> 
     328    <axis id="axis_inverse" axis_ref="axis"> 
     329      <inverse_axis /> 
     330    </axis> 
     331 
     332    <axis id="axis_extract" > 
     333      <extract_axis begin="1" n="5" /> 
     334    </axis> 
     335 
     336 
     337 
     338  </axis_definition> 
     339 
     340  <domain_definition> 
     341 
     342    <domain id="domain_extract"> 
     343      <extract_domain ibegin="0" ni="36" jbegin="2" nj="3" /> 
     344    </domain> 
     345  
     346  
     347    <domain id="domain_reorder" domain_ref="domain"> 
     348      <reorder_domain invert_lat="true" shift_lon_fraction="0.5"/> 
     349    </domain> 
     350   
     351    <domain id="domain_expand" > 
     352      <expand_domain order="1" type="edge"/> 
     353    </domain> 
     354   
     355    <domain id="domain_interpolate" domain_ref="other_domain" > 
     356      <interpolate_domain detect_missing_value="false"/> 
     357    </domain> 
     358   
     359    <domain id="domain_connect" > 
     360      <compute_connectivity_domain type="edge"/> 
     361    </domain> 
     362 
     363    <domain id="domain_recti" ni_glo="40" nj_glo="20" type="rectilinear" /> 
     364 
     365   
     366    <domain id="domain_expand_extract" > 
     367      <expand_domain order="1" type="edge"/> 
     368      <extract_domain ibegin="0" ni="38" jbegin="2" nj="3" /> 
     369    </domain> 
     370   
     371 
     372 
     373  </domain_definition> 
     374   
     375  <grid_definition> 
     376  
     377    <grid id="grid1D_inverse"> 
     378      <axis axis_ref="axis_inverse" /> 
     379    </grid> 
     380   
     381    <grid id="grid1D_extract"> 
     382      <axis axis_ref="axis_extract" /> 
     383    </grid> 
     384   
     385 
     386    <grid id="grid2D_extract"> 
     387      <domain domain_ref="domain_extract" /> 
     388    </grid> 
     389   
     390    <grid id="grid2D_zoom"> 
     391      <domain domain_ref="domain_zoom" /> 
     392    </grid> 
     393  
     394 
     395    <grid id="grid2D_reorder"> 
     396      <domain domain_ref="domain_reorder" /> 
     397    </grid> 
     398  
     399    <grid id="grid2D_expand"> 
     400      <domain domain_ref="domain_expand" /> 
     401    </grid> 
     402 
     403    <grid id="grid2D_interpolate"> 
     404      <domain domain_ref="domain_interpolate" /> 
     405    </grid> 
     406   
     407 
     408    <grid id="grid2D_connect"> 
     409      <domain domain_ref="domain_connect" /> 
     410    </grid> 
     411 
     412 
     413    <grid id="grid2D_recti"> 
     414      <domain domain_ref="domain_recti" > 
     415        <generate_rectilinear_domain lat_start="-85" lon_start="-175" /> 
     416        <interpolate_domain detect_missing_value="false"/> 
     417      </domain> 
     418    </grid> 
     419  
     420    <grid id="grid2D_expand_extract"> 
     421      <domain domain_ref="domain_expand_extract" /> 
     422    </grid> 
     423   
     424    <grid id="grid2D_extract_domain">   
     425      <axis  n_glo="36"> 
     426        <extract_domain position="2" direction="jDir" /> 
     427      </axis> 
     428    </grid> 
     429 
     430    <grid id="grid3D_axis_interpolate"> 
     431      <domain domain_ref="domain"/> 
     432      <axis n_glo="2" value="(0,1)[40000 20000]"> 
     433        <interpolate_axis coordinate="pressure" /> 
     434      </axis> 
     435    </grid>  
     436  
     437    <grid id="grid3D_axis_interpolate_bis"> 
     438      <domain domain_ref="domain"/> 
     439      <axis n_glo="2" value="(0,1)[40000 20000]"> 
     440        <interpolate_axis /> 
     441      </axis> 
     442    </grid>  
     443 
     444 
     445  </grid_definition> 
     446  
     447  
     448  <field_definition> 
     449    <field_group id="fields_with_domain_transformation" operation="instant" > 
     450      <field id="field2D_extract"  field_ref="field2D" grid_ref="grid2D_extract"/> 
     451      <field id="field2D_reorder"  field_ref="field2D" grid_ref="grid2D_reorder" /> 
     452      <field id="field2D_expand"   field_ref="field2D" grid_ref="grid2D_expand"/> 
     453      <field id="field2D_connect"  field_ref="field2D" grid_ref="grid2D_connect"/> 
     454      <field id="field2D_interpo"  field_ref="field2D" grid_ref="grid2D_interpolate"/> 
     455      <field id="field2D_recti"    field_ref="field2D" grid_ref="grid2D_recti"/> 
     456      <field id="field2D_exp_ext"  field_ref="field2D" grid_ref="grid2D_expand_extract"/> 
     457      <field id="field2D_reorder_ext"  field_ref="field2D_reorder" grid_ref="grid2D_extract"/> 
     458    </field_group> 
     459 
     460    <field_group id="fields_with_axis_transformation" operation="instant"  > 
     461      <field id="fieldZ_inverse"   field_ref="field_Z" grid_ref="grid1D_inverse"/> 
     462      <field id="fieldZ_extract"   field_ref="field_Z" grid_ref="grid1D_extract"/> 
     463      <field id="field2D_extract_domain"   field_ref="field2D" grid_ref="grid2D_extract_domain"/> 
     464      <field id="field3D_interpo"  field_ref="field3D" grid_ref="grid3D_axis_interpolate"/> 
     465      <field id="field3D_interpo_bis"  field_ref="field3D" grid_ref="grid3D_axis_interpolate_bis"/> 
     466    </field_group> 
     467 
     468  </field_definition> 
     469 
     470 
     471 
     472  <file_definition> 
     473     
     474  <file id="atm_output_domain" output_freq="1ts" type="one_file" enabled="false"> 
     475      <field field_ref="field2D_extract" /> 
     476      <field field_ref="field2D_reorder" /> 
     477      <field field_ref="field2D_expand" /> 
     478      <field field_ref="field2D_interpo" /> 
     479      <field field_ref="field2D_recti" /> 
     480      <field field_ref="field2D_exp_ext" /> 
     481      <field field_ref="field2D_reorder_ext" /> 
     482      <field id="field2D"  /> 
     483  </file> 
     484      
     485  <file id="atm_output_axis" output_freq="4ts" type="one_file" enabled="false"> 
     486      <field field_ref="fieldZ_inverse" enabled="false"  /> 
     487      <field field_ref="fieldZ_extract"  enabled="true"/> 
     488      <field field_ref="field2D_extract_domain"  enabled="false"/> 
     489      <field id="field_Z"  enabled="true"/> 
     490      <field id="field2D"  enabled="true"/> 
     491  </file> 
     492      
     493  <file id="atm_output_interpolate" output_freq="1ts" type="one_file" enabled="true"> 
     494      <field field_ref="field3D_interpo" /> 
     495      <field field_ref="field3D_interpo_bis" /> 
     496      <field id="field3D"  /> 
     497  </file> 
     498     
     499 
     500 
    501501  </file_definition> 
    502    
     502 
     503 
     504 
    503505   
    504506</context> 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/test_domain_algo/checkfile.def

    r1971 r2036  
    11#all 
    22 
    3 atm_output_domain_transformation_reorder.nc 
    4 atm_output_domain_transformation_extract.nc 
    5 atm_output_domain_transformation_zoom.nc 
    6 atm_output_domain_transformation_interpolate.nc 
    7 atm_output_domain_transformation_expand.nc 
     3atm_output_interpolate.nc 
    84 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/test_domain_algo/context_atm.xml

    r1972 r2036  
    33   
    44  <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 id="square_domain" ni_glo="36" nj_glo="36" type="rectilinear"/> 
    10   </domain_definition> 
    11  
     5  
     6  <scalar_definition> 
     7    <scalar id="scalar" />  
     8    <scalar id="other_scalar" />  
     9  </scalar_definition> 
     10  
     11  
    1212  <axis_definition> 
    1313    <axis id="axis" /> 
     14    <axis id="axis_str" n_glo="10" label="(0,9) [toto titi tata turlututu tito tati tuto tato tete tetu ] "/> 
    1415    <axis id="domain_X" /> 
    1516    <axis id="domain_Y" /> 
    1617    <axis id="ensemble" /> 
    17  
    1818 
    1919    <axis id="other_axis" /> 
     
    2121    <axis id="other_domain_Y" /> 
    2222    <axis id="other_ensemble" /> 
     23 
     24    <axis id="axis_zoom" axis_ref="axis"> 
     25        <zoom_axis begin="0" n="5"/> 
     26    </axis> 
    2327  </axis_definition> 
    2428 
    25   <scalar_definition> 
    26     <scalar id="scalar" />  
    27   </scalar_definition> 
     29  
     30  <domain_definition> 
     31    <domain id="domain" /> 
     32    <domain id="other_domain" /> 
     33  </domain_definition> 
    2834   
    2935   
     
    3743     
    3844    <grid id="grid2D"> 
    39       <domain domain_ref="domain" /> 
     45      <domain domain_ref="domain" id="grid2D_dom" /> 
    4046    </grid> 
    4147 
     
    4349      <axis axis_ref="axis" /> 
    4450    </grid> 
    45     
    46     <grid id="grid2D_zoom"> 
    47       <domain domain_ref="domain"> 
    48       <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/> 
    49       </domain>  
    50     </grid> 
    51  
    52     <grid id="grid2D_extract"> 
    53       <domain domain_ref="domain"> 
    54       <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/> 
    55       </domain>  
    56     </grid> 
    57  
    58     <grid id="grid3D_zoom"> 
    59       <domain domain_ref="domain"> 
    60       <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/> 
    61       </domain>  
    62       <axis axis_ref="axis" /> 
    63     </grid> 
    64  
    65     <grid id="grid3D_extract"> 
    66       <domain domain_ref="domain"> 
    67       <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/> 
    68       </domain>  
    69       <axis axis_ref="axis" /> 
    70     </grid> 
    71  
    72     <grid id="grid2D_square"> 
    73       <domain domain_ref="square_domain"> 
    74       <generate_rectilinear_domain lon_start="-175"/> 
    75       <interpolate_domain /> 
    76       </domain>  
    77     </grid> 
    78  
    79     <grid id="grid2D_reorder"> 
    80       <domain domain_ref="domain"> 
    81       <reorder_domain invert_lat="true" /> 
    82       </domain>  
    83     </grid> 
    84  
    85     <grid id="grid2D_expand"> 
    86       <domain domain_ref="domain"> 
    87       <expand_domain order="1" type="node"/> 
    88       </domain>  
    89     </grid> 
    90  
    91  
    92  
    93  
    94  
    95  
     51 
     52    <grid id="grid0D"> 
     53      <scalar scalar_ref="scalar" /> 
     54    </grid> 
    9655 
    9756    <grid id="grid_X"> 
     
    141100    </grid> 
    142101 
     102    <grid id="grid0D_W"> 
     103      <scalar scalar_ref="scalar" /> 
     104      <axis axis_ref="ensemble" /> 
     105    </grid> 
     106 
    143107    <grid id="grid_XW"> 
    144108      <axis axis_ref="domain_X" /> 
     
    176140    </grid> 
    177141 
    178   
    179142  
    180143    <grid id="other_grid3D"> 
     
    184147     
    185148    <grid id="other_grid2D"> 
    186       <domain domain_ref="other_domain" /> 
     149      <domain domain_ref="other_domain" id="test_dom" /> 
    187150    </grid> 
    188151 
    189152    <grid id="other_grid1D"> 
    190153      <axis axis_ref="other_axis" /> 
     154    </grid> 
     155 
     156    <grid id="other_grid0D"> 
     157      <scalar scalar_ref="other_scalar" /> 
    191158    </grid> 
    192159 
     
    237204    </grid> 
    238205 
     206    <grid id="other_grid0D_W"> 
     207      <scalar scalar_ref="other_scalar" /> 
     208      <axis axis_ref="other_ensemble" /> 
     209    </grid> 
     210 
    239211    <grid id="other_grid_XW"> 
    240212      <axis axis_ref="other_domain_X" /> 
     
    272244    </grid> 
    273245 
    274     
     246 
    275247  </grid_definition> 
    276248   
    277249   
    278250  <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true"> 
     251    <field id="field0D" grid_ref="grid0D"/> 
    279252    <field id="field2D" grid_ref="grid2D" /> 
    280253    <field id="field3D" grid_ref="grid3D"  /> 
    281254    <field id="pressure" grid_ref="grid3D"  /> 
    282     <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" /> 
    283     <field id="field3D_resend" grid_ref="grid3D" /> 
    284  
     255 
     256   <!-- <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D"/> 
     257    <field id="field3D_resend" grid_ref="grid3D" /> --> 
    285258    <field id="field_X" grid_ref="grid_X" /> 
    286259    <field id="field_Y" grid_ref="grid_Y" /> 
     
    291264    <field id="field_YZ" grid_ref="grid_YZ" /> 
    292265 
    293  
     266    <field id="field_zoom_vert" field_ref="field3D" grid_ref="grid_zoom_vert"  /> 
     267    <field id="field_zoom_vert_sum" field_ref="field_zoom_vert" grid_ref="grid_zoom_vert_sum"  /> 
     268 
     269 
     270    <field id="field0D_W" grid_ref="grid0D_W"/> 
    294271    <field id="field2D_W" grid_ref="grid2D_W"/> 
    295272    <field id="field3D_W" grid_ref="grid3D_W"  /> 
    296273    <field id="pressure_W" grid_ref="grid3D_W"  /> 
     274<!-- ym disable for now 
    297275    <field id="field3D_recv_W" read_access="true" grid_ref="grid3D_W"  field_ref="field3D_W"/> 
    298276    <field id="field3D_resend_W" grid_ref="grid3D_W" /> 
    299  
     277--> 
    300278    <field id="field_XW" grid_ref="grid_XW" /> 
    301279    <field id="field_YW" grid_ref="grid_YW" /> 
     
    307285 
    308286 
    309     <field id="other_field2D" grid_ref="other_grid2D"/> 
     287 
     288    <field id="other_field0D" grid_ref="other_grid0D"/> 
     289<!--    <field id="other_field2D" grid_ref="other_grid2D"/> --> 
     290    <field id="other_field2D" grid_ref="zoom1"/> 
    310291    <field id="other_field3D" grid_ref="other_grid3D"  /> 
    311292    <field id="other_pressure" grid_ref="other_grid3D"  /> 
     293<!-- ym disable for now 
    312294    <field id="other_field3D_recv" read_access="true" grid_ref="other_grid3D"  field_ref="other_field3D"/> 
    313295    <field id="other_field3D_resend" grid_ref="other_grid3D" /> 
    314  
     296--> 
    315297    <field id="other_field_X" grid_ref="other_grid_X" /> 
    316298    <field id="other_field_Y" grid_ref="other_grid_Y" /> 
     
    321303    <field id="other_field_YZ" grid_ref="other_grid_YZ" /> 
    322304 
     305    <field id="other_field0D_W" grid_ref="other_grid0D_W"/> 
    323306    <field id="other_field2D_W" grid_ref="other_grid2D_W"/> 
    324307    <field id="other_field3D_W" grid_ref="other_grid3D_W"  /> 
    325308    <field id="other_pressure_W" grid_ref="other_grid3D_W"  /> 
     309<!-- ym disable for now 
    326310    <field id="other_field3D_recv_W" read_access="true" grid_ref="other_grid3D_W"  field_ref="other_field3D_W"/> 
    327311    <field id="other_field3D_resend_W" grid_ref="other_grid3D_W" /> 
    328  
     312--> 
    329313    <field id="other_field_XW" grid_ref="other_grid_XW" /> 
    330314    <field id="other_field_YW" grid_ref="other_grid_YW" /> 
     
    334318    <field id="other_field_XZW" grid_ref="other_grid_XZW" /> 
    335319    <field id="other_field_YZW" grid_ref="other_grid_YZW" /> 
    336  
    337      
    338320     
    339321  </field_definition> 
    340  
    341  
    342  
    343 <!-- implementation of specifics test case --> 
    344 <!-- simplest test cases : output data to file --> 
    345  
    346    
    347  
    348   <file_definition  type="one_file" > 
    349     <file id="atm_output_domain_transformation_zoom" output_freq="12ts" type="one_file" enabled="true"> 
    350        <field field_ref="field2D" /> 
    351        <field field_ref="field3D" /> 
    352        <field id="field2D_zoom" field_ref="field2D" grid_ref="grid2D_zoom" /> 
    353        <field id="field3D_zoom" field_ref="field3D" grid_ref="grid3D_zoom" /> 
    354     </file> 
    355  
    356     <file id="atm_output_domain_transformation_extract" output_freq="12ts" type="one_file" enabled="true"> 
    357        <field field_ref="field2D" /> 
    358        <field field_ref="field3D" /> 
    359        <field id="field2D_extract" field_ref="field2D" grid_ref="grid2D_extract" /> 
    360        <field id="field3D_extract" field_ref="field3D" grid_ref="grid3D_extract" /> 
    361     </file> 
    362  
    363     <file id="atm_output_domain_transformation_interpolate" output_freq="12ts" type="one_file" enabled="true"> 
    364        <field field_ref="field2D" /> 
    365        <field id="field2D_interpolate" field_ref="field2D" grid_ref="grid2D_square" /> 
    366     </file> 
    367  
    368    <file id="atm_output_domain_transformation_reorder" output_freq="12ts" type="one_file" enabled="true"> 
    369        <field field_ref="field2D" /> 
    370        <field id="field2D_reorder" field_ref="field2D" grid_ref="grid2D_reorder" /> 
    371     </file> 
    372  
    373    <file id="atm_output_domain_transformation_expand" output_freq="12ts" type="one_file" enabled="true"> 
    374        <field id="field2D_expand" field_ref="field2D" grid_ref="grid2D_expand" /> 
    375     </file> 
    376  
    377  
    378  
    379     <file id="atm_output" output_freq="1ts" type="one_file" enabled="false"> 
    380        <field field_ref="field3D" /> 
    381        <field field_ref="field2D" />  
    382        <field field_ref="field_X" /> 
    383        <field field_ref="field_Y" /> 
    384        <field field_ref="field_XY" /> 
    385        <field field_ref="field_Z" /> 
    386        <field field_ref="field_XYZ" /> 
    387        <field field_ref="field_XZ" /> 
    388        <field field_ref="field_YZ" /> 
    389        <field field_ref="pressure"  />  
    390        <field field_ref="field3D_resend" /> 
    391     </file> 
    392  
    393     <file id="atm_output_other" output_freq="1ts" type="one_file" enabled="false"> 
    394        <field field_ref="other_field3D" /> 
    395        <field field_ref="other_field2D" />  
    396        <field field_ref="other_field_X" /> 
    397        <field field_ref="other_field_Y" /> 
    398        <field field_ref="other_field_XY" /> 
    399        <field field_ref="other_field_Z" /> 
    400        <field field_ref="other_field_XYZ" /> 
    401        <field field_ref="other_field_XZ" /> 
    402        <field field_ref="other_field_YZ" /> 
    403        <field field_ref="other_pressure"  />  
    404        <field field_ref="other_field3D_resend" /> 
    405     </file> 
    406  
    407     <file id="atm_output_W" output_freq="1ts" enabled="false"> 
    408        <field field_ref="field3D_W" /> 
    409        <field field_ref="field2D_W" />  
    410        <field field_ref="field_XW" /> 
    411        <field field_ref="field_YW" /> 
    412        <field field_ref="field_XYW" /> 
    413        <field field_ref="field_ZW" /> 
    414        <field field_ref="field_XYZW" /> 
    415        <field field_ref="field_XZW" /> 
    416        <field field_ref="field_YZW" /> 
    417     </file> 
    418      
    419      
     322   
     323 
     324<!-- test transform  --> 
     325 
     326 
     327  <axis_definition> 
     328    <axis id="axis_inverse" axis_ref="axis"> 
     329      <inverse_axis /> 
     330    </axis> 
     331 
     332    <axis id="axis_extract" > 
     333      <extract_axis begin="1" n="5" /> 
     334    </axis> 
     335 
     336 
     337 
     338  </axis_definition> 
     339 
     340  <domain_definition> 
     341 
     342    <domain id="domain_extract"> 
     343      <extract_domain ibegin="0" ni="36" jbegin="2" nj="3" /> 
     344    </domain> 
     345  
     346  
     347    <domain id="domain_reorder" domain_ref="domain"> 
     348      <reorder_domain invert_lat="true" shift_lon_fraction="0.5"/> 
     349    </domain> 
     350   
     351    <domain id="domain_expand" > 
     352      <expand_domain order="1" type="edge"/> 
     353    </domain> 
     354   
     355    <domain id="domain_interpolate" domain_ref="other_domain" > 
     356      <interpolate_domain detect_missing_value="false"/> 
     357    </domain> 
     358   
     359    <domain id="domain_connect" > 
     360      <compute_connectivity_domain type="edge"/> 
     361    </domain> 
     362 
     363    <domain id="domain_recti" ni_glo="40" nj_glo="20" type="rectilinear" /> 
     364 
     365   
     366    <domain id="domain_expand_extract" > 
     367      <expand_domain order="1" type="edge"/> 
     368      <extract_domain ibegin="0" ni="38" jbegin="2" nj="3" /> 
     369    </domain> 
     370   
     371 
     372 
     373  </domain_definition> 
     374   
     375  <grid_definition> 
     376  
     377    <grid id="grid1D_inverse"> 
     378      <axis axis_ref="axis_inverse" /> 
     379    </grid> 
     380   
     381    <grid id="grid1D_extract"> 
     382      <axis axis_ref="axis_extract" /> 
     383    </grid> 
     384   
     385 
     386    <grid id="grid2D_extract"> 
     387      <domain domain_ref="domain_extract" /> 
     388    </grid> 
     389   
     390    <grid id="grid2D_zoom"> 
     391      <domain domain_ref="domain_zoom" /> 
     392    </grid> 
     393  
     394 
     395    <grid id="grid2D_reorder"> 
     396      <domain domain_ref="domain_reorder" /> 
     397    </grid> 
     398  
     399    <grid id="grid2D_expand"> 
     400      <domain domain_ref="domain_expand" /> 
     401    </grid> 
     402 
     403    <grid id="grid2D_interpolate"> 
     404      <domain domain_ref="domain_interpolate" /> 
     405    </grid> 
     406   
     407 
     408    <grid id="grid2D_connect"> 
     409      <domain domain_ref="domain_connect" /> 
     410    </grid> 
     411 
     412 
     413    <grid id="grid2D_recti"> 
     414      <domain domain_ref="domain_recti" > 
     415        <generate_rectilinear_domain lat_start="-85" lon_start="-175" /> 
     416        <interpolate_domain detect_missing_value="false"/> 
     417      </domain> 
     418    </grid> 
     419  
     420    <grid id="grid2D_expand_extract"> 
     421      <domain domain_ref="domain_expand_extract" /> 
     422    </grid> 
     423   
     424    <grid id="grid2D_extract_domain">   
     425      <axis  n_glo="36"> 
     426        <extract_domain position="2" direction="jDir" /> 
     427      </axis> 
     428    </grid> 
     429 
     430    <grid id="grid3D_axis_interpolate"> 
     431      <domain domain_ref="domain"/> 
     432      <axis n_glo="2" value="(0,1)[40000 20000]"> 
     433        <interpolate_axis coordinate="pressure" /> 
     434      </axis> 
     435    </grid>  
     436  
     437    <grid id="grid3D_axis_interpolate_bis"> 
     438      <domain domain_ref="domain"/> 
     439      <axis n_glo="2" value="(0,1)[40000 20000]"> 
     440        <interpolate_axis /> 
     441      </axis> 
     442    </grid>  
     443 
     444 
     445  </grid_definition> 
     446  
     447  
     448  <field_definition> 
     449    <field_group id="fields_with_domain_transformation" operation="instant" > 
     450      <field id="field2D_extract"  field_ref="field2D" grid_ref="grid2D_extract"/> 
     451      <field id="field2D_reorder"  field_ref="field2D" grid_ref="grid2D_reorder" /> 
     452      <field id="field2D_expand"   field_ref="field2D" grid_ref="grid2D_expand"/> 
     453      <field id="field2D_connect"  field_ref="field2D" grid_ref="grid2D_connect"/> 
     454      <field id="field2D_interpo"  field_ref="field2D" grid_ref="grid2D_interpolate"/> 
     455      <field id="field2D_recti"    field_ref="field2D" grid_ref="grid2D_recti"/> 
     456      <field id="field2D_exp_ext"  field_ref="field2D" grid_ref="grid2D_expand_extract"/> 
     457      <field id="field2D_reorder_ext"  field_ref="field2D_reorder" grid_ref="grid2D_extract"/> 
     458    </field_group> 
     459 
     460    <field_group id="fields_with_axis_transformation" operation="instant"  > 
     461      <field id="fieldZ_inverse"   field_ref="field_Z" grid_ref="grid1D_inverse"/> 
     462      <field id="fieldZ_extract"   field_ref="field_Z" grid_ref="grid1D_extract"/> 
     463      <field id="field2D_extract_domain"   field_ref="field2D" grid_ref="grid2D_extract_domain"/> 
     464      <field id="field3D_interpo"  field_ref="field3D" grid_ref="grid3D_axis_interpolate"/> 
     465      <field id="field3D_interpo_bis"  field_ref="field3D" grid_ref="grid3D_axis_interpolate_bis"/> 
     466    </field_group> 
     467 
     468  </field_definition> 
     469 
     470 
     471 
     472  <file_definition> 
     473     
     474  <file id="atm_output_domain" output_freq="1ts" type="one_file" enabled="false"> 
     475      <field field_ref="field2D_extract" /> 
     476      <field field_ref="field2D_reorder" /> 
     477      <field field_ref="field2D_expand" /> 
     478      <field field_ref="field2D_interpo" /> 
     479      <field field_ref="field2D_recti" /> 
     480      <field field_ref="field2D_exp_ext" /> 
     481      <field field_ref="field2D_reorder_ext" /> 
     482      <field id="field2D"  /> 
     483  </file> 
     484      
     485  <file id="atm_output_axis" output_freq="4ts" type="one_file" enabled="false"> 
     486      <field field_ref="fieldZ_inverse" enabled="false"  /> 
     487      <field field_ref="fieldZ_extract"  enabled="true"/> 
     488      <field field_ref="field2D_extract_domain"  enabled="false"/> 
     489      <field id="field_Z"  enabled="true"/> 
     490      <field id="field2D"  enabled="true"/> 
     491  </file> 
     492      
     493  <file id="atm_output_interpolate" output_freq="1ts" type="one_file" enabled="true"> 
     494      <field field_ref="field3D_interpo" /> 
     495      <field field_ref="field3D_interpo_bis" /> 
     496      <field id="field3D"  /> 
     497  </file> 
     498     
     499 
     500 
    420501  </file_definition> 
    421    
     502 
     503 
     504 
    422505   
    423506</context> 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/test_scalar_algo/checkfile.def

    r1922 r2036  
    1 atm_output_scalar_transformation_reduce_axis.nc 
    2 atm_output_scalar_transformation_reduce_domain.nc 
    3 atm_output_scalar_transformation_extract.nc 
     1atm_output_interpolate.nc 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/test_scalar_algo/context_atm.xml

    r1922 r2036  
    33   
    44  <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> 
    10    
     5  
     6  <scalar_definition> 
     7    <scalar id="scalar" />  
     8    <scalar id="other_scalar" />  
     9  </scalar_definition> 
     10  
     11  
    1112  <axis_definition> 
    1213    <axis id="axis" /> 
     14    <axis id="axis_str" n_glo="10" label="(0,9) [toto titi tata turlututu tito tati tuto tato tete tetu ] "/> 
    1315    <axis id="domain_X" /> 
    1416    <axis id="domain_Y" /> 
     
    1921    <axis id="other_domain_Y" /> 
    2022    <axis id="other_ensemble" /> 
     23 
     24    <axis id="axis_zoom" axis_ref="axis"> 
     25        <zoom_axis begin="0" n="5"/> 
     26    </axis> 
    2127  </axis_definition> 
    2228 
    23   <scalar_definition> 
    24     <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    
    51   </scalar_definition> 
     29  
     30  <domain_definition> 
     31    <domain id="domain" /> 
     32    <domain id="other_domain" /> 
     33  </domain_definition> 
    5234   
    5335   
     
    6143     
    6244    <grid id="grid2D"> 
    63       <domain domain_ref="domain" /> 
     45      <domain domain_ref="domain" id="grid2D_dom" /> 
    6446    </grid> 
    6547 
     
    6749      <axis axis_ref="axis" /> 
    6850    </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  
     51 
     52    <grid id="grid0D"> 
     53      <scalar scalar_ref="scalar" /> 
     54    </grid> 
    13255 
    13356    <grid id="grid_X"> 
     
    177100    </grid> 
    178101 
     102    <grid id="grid0D_W"> 
     103      <scalar scalar_ref="scalar" /> 
     104      <axis axis_ref="ensemble" /> 
     105    </grid> 
     106 
    179107    <grid id="grid_XW"> 
    180108      <axis axis_ref="domain_X" /> 
     
    212140    </grid> 
    213141 
    214   
    215142  
    216143    <grid id="other_grid3D"> 
     
    220147     
    221148    <grid id="other_grid2D"> 
    222       <domain domain_ref="other_domain" /> 
     149      <domain domain_ref="other_domain" id="test_dom" /> 
    223150    </grid> 
    224151 
    225152    <grid id="other_grid1D"> 
    226153      <axis axis_ref="other_axis" /> 
     154    </grid> 
     155 
     156    <grid id="other_grid0D"> 
     157      <scalar scalar_ref="other_scalar" /> 
    227158    </grid> 
    228159 
     
    273204    </grid> 
    274205 
     206    <grid id="other_grid0D_W"> 
     207      <scalar scalar_ref="other_scalar" /> 
     208      <axis axis_ref="other_ensemble" /> 
     209    </grid> 
     210 
    275211    <grid id="other_grid_XW"> 
    276212      <axis axis_ref="other_domain_X" /> 
     
    308244    </grid> 
    309245 
    310     
     246 
    311247  </grid_definition> 
    312248   
    313249   
    314250  <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true"> 
     251    <field id="field0D" grid_ref="grid0D"/> 
    315252    <field id="field2D" grid_ref="grid2D" /> 
    316253    <field id="field3D" grid_ref="grid3D"  /> 
    317254    <field id="pressure" grid_ref="grid3D"  /> 
    318     <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" /> 
    319     <field id="field3D_resend" grid_ref="grid3D" /> 
    320  
     255 
     256   <!-- <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D"/> 
     257    <field id="field3D_resend" grid_ref="grid3D" /> --> 
    321258    <field id="field_X" grid_ref="grid_X" /> 
    322259    <field id="field_Y" grid_ref="grid_Y" /> 
     
    327264    <field id="field_YZ" grid_ref="grid_YZ" /> 
    328265 
    329  
     266    <field id="field_zoom_vert" field_ref="field3D" grid_ref="grid_zoom_vert"  /> 
     267    <field id="field_zoom_vert_sum" field_ref="field_zoom_vert" grid_ref="grid_zoom_vert_sum"  /> 
     268 
     269 
     270    <field id="field0D_W" grid_ref="grid0D_W"/> 
    330271    <field id="field2D_W" grid_ref="grid2D_W"/> 
    331272    <field id="field3D_W" grid_ref="grid3D_W"  /> 
    332273    <field id="pressure_W" grid_ref="grid3D_W"  /> 
     274<!-- ym disable for now 
    333275    <field id="field3D_recv_W" read_access="true" grid_ref="grid3D_W"  field_ref="field3D_W"/> 
    334276    <field id="field3D_resend_W" grid_ref="grid3D_W" /> 
    335  
     277--> 
    336278    <field id="field_XW" grid_ref="grid_XW" /> 
    337279    <field id="field_YW" grid_ref="grid_YW" /> 
     
    343285 
    344286 
    345     <field id="other_field2D" grid_ref="other_grid2D"/> 
     287 
     288    <field id="other_field0D" grid_ref="other_grid0D"/> 
     289<!--    <field id="other_field2D" grid_ref="other_grid2D"/> --> 
     290    <field id="other_field2D" grid_ref="zoom1"/> 
    346291    <field id="other_field3D" grid_ref="other_grid3D"  /> 
    347292    <field id="other_pressure" grid_ref="other_grid3D"  /> 
     293<!-- ym disable for now 
    348294    <field id="other_field3D_recv" read_access="true" grid_ref="other_grid3D"  field_ref="other_field3D"/> 
    349295    <field id="other_field3D_resend" grid_ref="other_grid3D" /> 
    350  
     296--> 
    351297    <field id="other_field_X" grid_ref="other_grid_X" /> 
    352298    <field id="other_field_Y" grid_ref="other_grid_Y" /> 
     
    357303    <field id="other_field_YZ" grid_ref="other_grid_YZ" /> 
    358304 
     305    <field id="other_field0D_W" grid_ref="other_grid0D_W"/> 
    359306    <field id="other_field2D_W" grid_ref="other_grid2D_W"/> 
    360307    <field id="other_field3D_W" grid_ref="other_grid3D_W"  /> 
    361308    <field id="other_pressure_W" grid_ref="other_grid3D_W"  /> 
     309<!-- ym disable for now 
    362310    <field id="other_field3D_recv_W" read_access="true" grid_ref="other_grid3D_W"  field_ref="other_field3D_W"/> 
    363311    <field id="other_field3D_resend_W" grid_ref="other_grid3D_W" /> 
    364  
     312--> 
    365313    <field id="other_field_XW" grid_ref="other_grid_XW" /> 
    366314    <field id="other_field_YW" grid_ref="other_grid_YW" /> 
     
    370318    <field id="other_field_XZW" grid_ref="other_grid_XZW" /> 
    371319    <field id="other_field_YZW" grid_ref="other_grid_YZW" /> 
    372  
    373      
    374320     
    375321  </field_definition> 
    376  
    377  
    378  
    379 <!-- implementation of specifics test case --> 
    380 <!-- simplest test cases : output data to file --> 
    381  
    382    
    383  
    384   <file_definition  type="one_file" > 
    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" /> 
    439     </file> 
    440  
    441     <file id="atm_output_W" output_freq="1ts" enabled="false"> 
    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      
    453      
     322   
     323 
     324<!-- test transform  --> 
     325 
     326 
     327  <axis_definition> 
     328    <axis id="axis_inverse" axis_ref="axis"> 
     329      <inverse_axis /> 
     330    </axis> 
     331 
     332    <axis id="axis_extract" > 
     333      <extract_axis begin="1" n="5" /> 
     334    </axis> 
     335 
     336 
     337 
     338  </axis_definition> 
     339 
     340  <domain_definition> 
     341 
     342    <domain id="domain_extract"> 
     343      <extract_domain ibegin="0" ni="36" jbegin="2" nj="3" /> 
     344    </domain> 
     345  
     346  
     347    <domain id="domain_reorder" domain_ref="domain"> 
     348      <reorder_domain invert_lat="true" shift_lon_fraction="0.5"/> 
     349    </domain> 
     350   
     351    <domain id="domain_expand" > 
     352      <expand_domain order="1" type="edge"/> 
     353    </domain> 
     354   
     355    <domain id="domain_interpolate" domain_ref="other_domain" > 
     356      <interpolate_domain detect_missing_value="false"/> 
     357    </domain> 
     358   
     359    <domain id="domain_connect" > 
     360      <compute_connectivity_domain type="edge"/> 
     361    </domain> 
     362 
     363    <domain id="domain_recti" ni_glo="40" nj_glo="20" type="rectilinear" /> 
     364 
     365   
     366    <domain id="domain_expand_extract" > 
     367      <expand_domain order="1" type="edge"/> 
     368      <extract_domain ibegin="0" ni="38" jbegin="2" nj="3" /> 
     369    </domain> 
     370   
     371 
     372 
     373  </domain_definition> 
     374   
     375  <grid_definition> 
     376  
     377    <grid id="grid1D_inverse"> 
     378      <axis axis_ref="axis_inverse" /> 
     379    </grid> 
     380   
     381    <grid id="grid1D_extract"> 
     382      <axis axis_ref="axis_extract" /> 
     383    </grid> 
     384   
     385 
     386    <grid id="grid2D_extract"> 
     387      <domain domain_ref="domain_extract" /> 
     388    </grid> 
     389   
     390    <grid id="grid2D_zoom"> 
     391      <domain domain_ref="domain_zoom" /> 
     392    </grid> 
     393  
     394 
     395    <grid id="grid2D_reorder"> 
     396      <domain domain_ref="domain_reorder" /> 
     397    </grid> 
     398  
     399    <grid id="grid2D_expand"> 
     400      <domain domain_ref="domain_expand" /> 
     401    </grid> 
     402 
     403    <grid id="grid2D_interpolate"> 
     404      <domain domain_ref="domain_interpolate" /> 
     405    </grid> 
     406   
     407 
     408    <grid id="grid2D_connect"> 
     409      <domain domain_ref="domain_connect" /> 
     410    </grid> 
     411 
     412 
     413    <grid id="grid2D_recti"> 
     414      <domain domain_ref="domain_recti" > 
     415        <generate_rectilinear_domain lat_start="-85" lon_start="-175" /> 
     416        <interpolate_domain detect_missing_value="false"/> 
     417      </domain> 
     418    </grid> 
     419  
     420    <grid id="grid2D_expand_extract"> 
     421      <domain domain_ref="domain_expand_extract" /> 
     422    </grid> 
     423   
     424    <grid id="grid2D_extract_domain">   
     425      <axis  n_glo="36"> 
     426        <extract_domain position="2" direction="jDir" /> 
     427      </axis> 
     428    </grid> 
     429 
     430    <grid id="grid3D_axis_interpolate"> 
     431      <domain domain_ref="domain"/> 
     432      <axis n_glo="2" value="(0,1)[40000 20000]"> 
     433        <interpolate_axis coordinate="pressure" /> 
     434      </axis> 
     435    </grid>  
     436  
     437    <grid id="grid3D_axis_interpolate_bis"> 
     438      <domain domain_ref="domain"/> 
     439      <axis n_glo="2" value="(0,1)[40000 20000]"> 
     440        <interpolate_axis /> 
     441      </axis> 
     442    </grid>  
     443 
     444 
     445  </grid_definition> 
     446  
     447  
     448  <field_definition> 
     449    <field_group id="fields_with_domain_transformation" operation="instant" > 
     450      <field id="field2D_extract"  field_ref="field2D" grid_ref="grid2D_extract"/> 
     451      <field id="field2D_reorder"  field_ref="field2D" grid_ref="grid2D_reorder" /> 
     452      <field id="field2D_expand"   field_ref="field2D" grid_ref="grid2D_expand"/> 
     453      <field id="field2D_connect"  field_ref="field2D" grid_ref="grid2D_connect"/> 
     454      <field id="field2D_interpo"  field_ref="field2D" grid_ref="grid2D_interpolate"/> 
     455      <field id="field2D_recti"    field_ref="field2D" grid_ref="grid2D_recti"/> 
     456      <field id="field2D_exp_ext"  field_ref="field2D" grid_ref="grid2D_expand_extract"/> 
     457      <field id="field2D_reorder_ext"  field_ref="field2D_reorder" grid_ref="grid2D_extract"/> 
     458    </field_group> 
     459 
     460    <field_group id="fields_with_axis_transformation" operation="instant"  > 
     461      <field id="fieldZ_inverse"   field_ref="field_Z" grid_ref="grid1D_inverse"/> 
     462      <field id="fieldZ_extract"   field_ref="field_Z" grid_ref="grid1D_extract"/> 
     463      <field id="field2D_extract_domain"   field_ref="field2D" grid_ref="grid2D_extract_domain"/> 
     464      <field id="field3D_interpo"  field_ref="field3D" grid_ref="grid3D_axis_interpolate"/> 
     465      <field id="field3D_interpo_bis"  field_ref="field3D" grid_ref="grid3D_axis_interpolate_bis"/> 
     466    </field_group> 
     467 
     468  </field_definition> 
     469 
     470 
     471 
     472  <file_definition> 
     473     
     474  <file id="atm_output_domain" output_freq="1ts" type="one_file" enabled="false"> 
     475      <field field_ref="field2D_extract" /> 
     476      <field field_ref="field2D_reorder" /> 
     477      <field field_ref="field2D_expand" /> 
     478      <field field_ref="field2D_interpo" /> 
     479      <field field_ref="field2D_recti" /> 
     480      <field field_ref="field2D_exp_ext" /> 
     481      <field field_ref="field2D_reorder_ext" /> 
     482      <field id="field2D"  /> 
     483  </file> 
     484      
     485  <file id="atm_output_axis" output_freq="4ts" type="one_file" enabled="false"> 
     486      <field field_ref="fieldZ_inverse" enabled="false"  /> 
     487      <field field_ref="fieldZ_extract"  enabled="true"/> 
     488      <field field_ref="field2D_extract_domain"  enabled="false"/> 
     489      <field id="field_Z"  enabled="true"/> 
     490      <field id="field2D"  enabled="true"/> 
     491  </file> 
     492      
     493  <file id="atm_output_interpolate" output_freq="1ts" type="one_file" enabled="true"> 
     494      <field field_ref="field3D_interpo" /> 
     495      <field field_ref="field3D_interpo_bis" /> 
     496      <field id="field3D"  /> 
     497  </file> 
     498     
     499 
     500 
    454501  </file_definition> 
    455    
     502 
     503 
     504 
    456505   
    457506</context> 
Note: See TracChangeset for help on using the changeset viewer.