Index: XIOS/trunk/xios_test_suite/TEST_SUITE/test_domain_algo/context_atm.xml
===================================================================
--- XIOS/trunk/xios_test_suite/TEST_SUITE/test_domain_algo/context_atm.xml	(revision 1807)
+++ XIOS/trunk/xios_test_suite/TEST_SUITE/test_domain_algo/context_atm.xml	(revision 1922)
@@ -7,12 +7,13 @@
     <domain id="domain" />
     <domain id="other_domain" />
-  </domain>
-  
+    <domain id="square_domain" ni_glo="36" nj_glo="36" type="rectilinear"/>
+  </domain_definition>
+
   <axis_definition>
     <axis id="axis" />
-    <axis id="axis_dup" />
     <axis id="domain_X" />
     <axis id="domain_Y" />
     <axis id="ensemble" />
+
 
     <axis id="other_axis" />
@@ -22,16 +23,4 @@
   </axis_definition>
 
-  <axis_definition>
-    <axis id="axis_zoom" axis_ref="axis">
-        <zoom_axis begin="0" n="5"/>
-    </axis>
-    <axis id="domain_X_zoom" axis_ref="domain_X">
-        <zoom_axis begin="0" n="1"/>
-    </axis>
-    <axis id="domain_Y_zoom" axis_ref="domain_Y">
-        <zoom_axis begin="3" n="1"/>
-    </axis>
-  </axis_definition>
-
   <scalar_definition>
     <scalar id="scalar" /> 
@@ -54,11 +43,52 @@
       <axis axis_ref="axis" />
     </grid>
+   
+    <grid id="grid2D_zoom">
+      <domain domain_ref="domain">
+      <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/>
+      </domain> 
+    </grid>
+
+    <grid id="grid2D_extract">
+      <domain domain_ref="domain">
+      <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/>
+      </domain> 
+    </grid>
+
+    <grid id="grid3D_zoom">
+      <domain domain_ref="domain">
+      <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/>
+      </domain> 
+      <axis axis_ref="axis" />
+    </grid>
+
+    <grid id="grid3D_extract">
+      <domain domain_ref="domain">
+      <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/>
+      </domain> 
+      <axis axis_ref="axis" />
+    </grid>
+
+    <grid id="grid2D_square">
+      <domain domain_ref="square_domain">
+      <generate_rectilinear_domain lon_start="-175"/>
+      <interpolate_domain />
+      </domain> 
+    </grid>
+
+    <grid id="grid2D_reorder">
+      <domain domain_ref="domain">
+      <reorder_domain invert_lat="true" />
+      </domain> 
+    </grid>
+
+
+
+
+
+
 
     <grid id="grid_X">
       <axis axis_ref="domain_X" />
-    </grid>
-
-     <grid id="grid_X_zoom">
-      <axis axis_ref="domain_X_zoom" />
     </grid>
 
@@ -140,19 +170,4 @@
     </grid>
 
-
-    <grid id="grid_XY_zoom_Y">
-      <axis axis_ref="domain_X" />
-      <axis axis_ref="domain_Y_zoom" />
-    </grid>
-
-    <grid id="grid_XY_zoom_X">
-      <axis axis_ref="domain_X_zoom" />
-      <axis axis_ref="domain_Y" />
-
-    </grid>
-
- 
- 
- 
  
  
@@ -251,82 +266,22 @@
     </grid>
 
-
-
-
-
-
-
-
-
-
-    <grid id="grid_vert_reduce">
-      <domain domain_ref="domain" />
-      <scalar >
-        <reduce_axis operation="sum" />
-      </scalar>
-    </grid>
-
-    <grid id="grid_horiz_reduce">
-      <scalar >
-        <reduce_domain operation="sum" />
-      </scalar>
-      <axis axis_ref="axis" />
-    </grid>
-      
-    <grid id="grid_zoom_vert">
-      <domain domain_ref="domain" />
-      <axis axis_ref="axis_zoom" />
-    </grid>
-
-    <grid id="grid_zoom_vert_sum">
-      <scalar >
-        <reduce_domain operation="sum" />
-      </scalar>
-      <axis axis_ref="axis_zoom" />
-    </grid>
-
-   <grid id="grid_lat">
-       <axis axis_ref="domain_Y">
-         <reduce_domain direction="iDir" operation="sum"/> 
-       </axis>
-       <axis axis_ref="axis" />
-    </grid>
-    
-
-    <grid id="grid3D_invert">
-      <domain domain_ref="domain">
-        <reorder_domain invert_lat="true" />
-      </domain>
-      <axis axis_ref="axis" />
-    </grid>
-    
-    <grid id="grid2D_invert">
-      <domain domain_ref="domain">
-        <reorder_domain invert_lat="true" shift_lon_fraction="0.5" min_lon="0" max_lon="360"/>
-      </domain>
-    </grid>
-
-    
+   
   </grid_definition>
   
   
   <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true">
-    <field id="field2D" grid_ref="grid2D" build_workflow_graph="false" />
-    <field id="field3D" grid_ref="grid3D" build_workflow_graph="true"  />
+    <field id="field2D" grid_ref="grid2D" />
+    <field id="field3D" grid_ref="grid3D"  />
     <field id="pressure" grid_ref="grid3D"  />
     <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" />
     <field id="field3D_resend" grid_ref="grid3D" />
 
-    <field id="field_X" grid_ref="grid_X" build_workflow_graph="false" />
-    <field id="field_Y" grid_ref="grid_Y" build_workflow_graph="false" />
-    <field id="field_Z" grid_ref="grid1D" build_workflow_graph="false" />
+    <field id="field_X" grid_ref="grid_X" />
+    <field id="field_Y" grid_ref="grid_Y" />
+    <field id="field_Z" grid_ref="grid1D" />
     <field id="field_XY" grid_ref="grid_XY" />
     <field id="field_XYZ" grid_ref="grid_XYZ" />
     <field id="field_XZ" grid_ref="grid_XZ" />
     <field id="field_YZ" grid_ref="grid_YZ" />
-
-    <field id="field_zoom_vert" field_ref="field3D" grid_ref="grid_zoom_vert"  />
-    <field id="field_zoom_vert_sum" field_ref="field_zoom_vert" grid_ref="grid_zoom_vert_sum"  />
-
 
 
@@ -346,6 +301,4 @@
 
 
-
-
     <field id="other_field2D" grid_ref="other_grid2D"/>
     <field id="other_field3D" grid_ref="other_grid3D"  />
@@ -376,69 +329,82 @@
     <field id="other_field_YZW" grid_ref="other_grid_YZW" />
 
-
-
-
     
     
   </field_definition>
+
+
+
+<!-- implementation of specifics test case -->
+<!-- simplest test cases : output data to file -->
+
   
 
   <file_definition  type="one_file" >
-    
-    <file id="atm_output" output_freq="1ts" type="one_file" enabled="true">
-       <!-- <field id="id_fieldXY" field_ref="field_XY" operation="once" enabled="true"/> -->
-       <field field_ref="field_X" operation="instant" enabled="true"/>
-    </file>
-
-    <file id="atm_output_expand" output_freq="1ts" enabled="true">
-       <field field_ref="field_X" operation="instant" enabled="true"/>
-    </file>
-
-    <file id="atm_output_extract" output_freq="1ts" enabled="true">
-       <field field_ref="field_X" operation="instant" enabled="true"/>
-    </file>
-
-    <file id="atm_output_interpolate" output_freq="1ts" enabled="true">
-       <field field_ref="field_X" operation="instant" enabled="true"/>
-    </file>
-
-    <file id="atm_output_zoom" output_freq="1ts" enabled="true">
-       <field field_ref="field_X" operation="instant" enabled="true"/>
-    </file>
-
-
-    <file id="atm_output_other" output_freq="1ts"  enabled="false">
-       <field field_ref="other_field3D" enabled="false"/>
-       <field field_ref="other_field2D" enabled="true"/> 
-       <field field_ref="other_field_X" enabled="false"/>
-       <field field_ref="other_field_Y" enabled="false"/>
-       <field field_ref="other_field_XY" enabled="false"/>
-       <field field_ref="other_field_Z" enabled="false"/>
-       <field field_ref="other_field_XYZ" enabled="false"/>
-       <field field_ref="other_field_XZ" enabled="false"/>
-       <field field_ref="other_field_YZ" enabled="false"/>
+    <file id="atm_output_domain_transformation_zoom" output_freq="12ts" type="one_file" enabled="true">
+       <field field_ref="field2D" />
+       <field field_ref="field3D" />
+       <field id="field2D_zoom" field_ref="field2D" grid_ref="grid2D_zoom" />
+       <field id="field3D_zoom" field_ref="field3D" grid_ref="grid3D_zoom" />
+    </file>
+
+    <file id="atm_output_domain_transformation_extract" output_freq="12ts" type="one_file" enabled="true">
+       <field field_ref="field2D" />
+       <field field_ref="field3D" />
+       <field id="field2D_extract" field_ref="field2D" grid_ref="grid2D_extract" />
+       <field id="field3D_extract" field_ref="field3D" grid_ref="grid3D_extract" />
+    </file>
+
+    <file id="atm_output_domain_transformation_interpolate" output_freq="12ts" type="one_file" enabled="true">
+       <field field_ref="field2D" />
+       <field id="field2D_interpolate" field_ref="field2D" grid_ref="grid2D_square" />
+    </file>
+
+   <file id="atm_output_domain_transformation_reorder" output_freq="12ts" type="one_file" enabled="true">
+       <field field_ref="field2D" />
+       <field id="field2D_reorder" field_ref="field2D" grid_ref="grid2D_reorder" />
+    </file>
+
+
+
+    <file id="atm_output" output_freq="1ts" type="one_file" enabled="false">
+       <field field_ref="field3D" />
+       <field field_ref="field2D" /> 
+       <field field_ref="field_X" />
+       <field field_ref="field_Y" />
+       <field field_ref="field_XY" />
+       <field field_ref="field_Z" />
+       <field field_ref="field_XYZ" />
+       <field field_ref="field_XZ" />
+       <field field_ref="field_YZ" />
+       <field field_ref="pressure"  /> 
+       <field field_ref="field3D_resend" />
+    </file>
+
+    <file id="atm_output_other" output_freq="1ts" type="one_file" enabled="false">
+       <field field_ref="other_field3D" />
+       <field field_ref="other_field2D" /> 
+       <field field_ref="other_field_X" />
+       <field field_ref="other_field_Y" />
+       <field field_ref="other_field_XY" />
+       <field field_ref="other_field_Z" />
+       <field field_ref="other_field_XYZ" />
+       <field field_ref="other_field_XZ" />
+       <field field_ref="other_field_YZ" />
+       <field field_ref="other_pressure"  /> 
+       <field field_ref="other_field3D_resend" />
     </file>
 
     <file id="atm_output_W" output_freq="1ts" enabled="false">
-       <field field_ref="field3D_W" enabled="true"/>
-       <field field_ref="field2D_W" enabled="true"/> 
-       <field field_ref="field_XW" enabled="true"/>
-       <field field_ref="field_YW" enabled="true"/>
-       <field field_ref="field_XYW" enabled="true"/>
-       <field field_ref="field_ZW" enabled="true"/>
-       <field field_ref="field_XYZW" enabled="true"/>
-       <field field_ref="field_XZW" enabled="true"/>
-       <field field_ref="field_YZW" enabled="true"/>
-    </file>
-    
-
-    <file id="atm_output_reorder" output_freq="1ts" enabled="false" >
-       <field field_ref="field2D" grid_ref="grid2D_invert" enabled="true"/>
-    </file>
-    
-    <file id="test_grid_lat" output_freq="1ts" enabled="false">
-      <field field_ref="field3D" operation="instant" />
-      <field id="field_reduce_lat" field_ref="field3D" grid_ref="grid_lat" operation="instant" />
-    </file>
+       <field field_ref="field3D_W" />
+       <field field_ref="field2D_W" /> 
+       <field field_ref="field_XW" />
+       <field field_ref="field_YW" />
+       <field field_ref="field_XYW" />
+       <field field_ref="field_ZW" />
+       <field field_ref="field_XYZW" />
+       <field field_ref="field_XZW" />
+       <field field_ref="field_YZW" />
+    </file>
+    
     
   </file_definition>
