Index: CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/opa9.card
===================================================================
--- CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/opa9.card	(revision 2557)
+++ CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/opa9.card	(revision 2560)
@@ -35,4 +35,5 @@
         (${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}_cfg, namelist_cfg),      \
         (${SUBMIT_DIR}/PARAM/context_nemo.xml,   context_nemo.xml),         \
+	(${SUBMIT_DIR}/PARAM/file_def_nemo.xml,   file_def_nemo.xml),       \
         (${SUBMIT_DIR}/PARAM/field_def_nemo.xml,   field_def_nemo.xml),     \
         (${SUBMIT_DIR}/PARAM/domain_def_nemo.xml,  domain_def_nemo.xml)
Index: CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver
===================================================================
--- CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver	(revision 2557)
+++ CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver	(revision 2560)
@@ -160,7 +160,7 @@
     IGCM_debug_Print 1 ${V1D_ENABLE} ${V1M_ENABLE} ${V1Y_ENABLE} ${OUTPUT_LEVEL}
 
-    IGCM_comp_modifyXmlFile force context_nemo.xml 1d enabled ${V1D_ENABLE}
-    IGCM_comp_modifyXmlFile force context_nemo.xml 1m enabled ${V1M_ENABLE}
-    IGCM_comp_modifyXmlFile force context_nemo.xml 1y enabled ${V1Y_ENABLE}
+    IGCM_comp_modifyXmlFile force file_def_nemo.xml 1d enabled ${V1D_ENABLE}
+    IGCM_comp_modifyXmlFile force file_def_nemo.xml 1m enabled ${V1M_ENABLE}
+    IGCM_comp_modifyXmlFile force file_def_nemo.xml 1y enabled ${V1Y_ENABLE}
 	
     # vargas/titane/MPP and switch from 1 proc to 5 procs. We need to suppres restartopa the second month, if restartopa_0000 exist
Index: CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/context_nemo.xml
===================================================================
--- CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/context_nemo.xml	(revision 2557)
+++ CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/context_nemo.xml	(revision 2560)
@@ -20,647 +20,5 @@
     -->
     
-    <file_definition type="one_file" name="@expname@_@freq@" sync_freq="10d" min_digits="4">
-    
-      <file_group id="1ts" output_freq="1ts" sync_freq="1ts" output_level="10" enabled=".FALSE."> <!-- 1 time step files -->
-	<file id="file51" name_suffix="_grid_T" description="ocean T grid variables" >
-	  <field field_ref="e3t" long_name="T-cell thickness" />
-          <field field_ref="botpres"         name="pbo"      long_name="Pressure_at_sea_floor"                                          />
-          <!-- pso : sea_water_pressure_at_sea_water_surface = 0 -->
-          <field field_ref="ssh"             name="zos"      long_name="sea_surface_height_above_geoid"                                 />
-	  <field field_ref="sst"             name="tos"      long_name="sea_surface_temperature"                       />
-	  <field field_ref="sss"             name="sos"      long_name="sea_surface_salinity"                          />
-	  <field field_ref="toce_e3t"                        long_name="temperature * e3t"                 operation="instant" freq_op="1ts" > toce * e3t </field >  
-	  <field field_ref="soce_e3t"                        long_name="salinity * e3t"                    operation="instant" freq_op="1ts" > soce * e3t </field >  
-          <field field_ref="toce"            name="thetao"   long_name="sea_water_potential_temperature"   operation="instant" freq_op="1ts" > @toce_e3t / @e3t </field>      
-          <field field_ref="soce"            name="so"       long_name="sea_water_salinity"                operation="instant" freq_op="1ts" > @soce_e3t / @e3t </field>       
-          <field field_ref="rhop"            name="rhopoto"  long_name="sea_water_potential_density"                          level="2" />
-          <field field_ref="mldkz5"          name="mldkz5"   level="2"  />
-          <field field_ref="mldr10_1"        name="mldr10_1" level="2" />
-          <field field_ref="runoffs"         name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
-          <field field_ref="empmr"           name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
-          <field field_ref="erp"             name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
-          <field field_ref="qns"             name="nshfls"   long_name="surface_net_downward_non_solar_flux"                    level="1" />
-          <field field_ref="qsr"             name="rsntds"   long_name="surface_net_downward_shortwave_flux"                    level="1" />
-          <field field_ref="qsr3d"           name="rsds"     long_name="downwelling_shortwave_flux_in_sea_water"                level="1" />
-          <field field_ref="qrp"             name="hfcorr"   long_name="heat_flux_correction"                                   level="1" />
-	  <field field_ref="uoce"            name="uo"       long_name="sea_water_x_velocity" operation="instant" freq_op="5d" > @uoce_e3u / @e3u </field>
-	  <field field_ref="utau"            name="tauuo"    long_name="surface_downward_x_stress" />
-	  <field field_ref="voce"            name="vo"       long_name="sea_water_y_velocity" operation="instant" freq_op="5d" > @voce_e3v / @e3v </field>
-	  <field field_ref="vtau"            name="tauvo"    long_name="surface_downward_y_stress" />
-	  <field field_ref="woce"            name="wo"       long_name="ocean vertical velocity" operation="instant" freq_op="5d" > @woce_e3w / @e3w </field>
-	  <field field_ref="avt"             name="difvho"   long_name="ocean_vertical_heat_diffusivity" />
-	  <field field_ref="snowthic_cea"    name="snthic"   long_name="surface_snow_thickness"   />
-	  <field field_ref="icethic_cea"     name="sithic"    long_name="sea_ice_thickness"        />
-          <field field_ref="icevolu"         name="sivolu" />
-          <field field_ref="snowvol"         name="snvolu" />
-          <field field_ref="iceconc"         name="siconc" />
-
-          <field field_ref="vfxbog"          name="vfxbog" />
-          <field field_ref="vfxdyn"          name="vfxdyn" />
-          <field field_ref="vfxopw"          name="vfxopw" />
-          <field field_ref="vfxsni"          name="vfxsni" />
-          <field field_ref="vfxsum"          name="vfxsum" />
-          <field field_ref="vfxbom"          name="vfxbom" />
-          <field field_ref="vfxres"          name="vfxres" />
-          <field field_ref="vfxice"          name="vfxice" />
-          <field field_ref="vfxsnw"          name="vfxsnw" />
-          <field field_ref="vfxsub"          name="vfxsub" />
-          <field field_ref="vfxspr"          name="vfxspr" />
-
-          <field field_ref="icetrp"          name="sivtrp" />
-          <field field_ref="snwtrp"          name="snvtrp" />
-          <field field_ref="saltrp"          name="saltrp" />
-          <field field_ref="deitrp"          name="deitrp" />
-          <field field_ref="destrp"          name="destrp" />
-
-          <field field_ref="sfxbri"          name="sfxbri" />
-          <field field_ref="sfxdyn"          name="sfxdyn" />
-          <field field_ref="sfxres"          name="sfxres" />
-          <field field_ref="sfxbog"          name="sfxbog" />
-          <field field_ref="sfxbom"          name="sfxbom" />
-          <field field_ref="sfxsum"          name="sfxsum" />
-          <field field_ref="sfxsni"          name="sfxsni" />
-          <field field_ref="sfxopw"          name="sfxopw" />
-          <field field_ref="sfx"             name="sfx"    />
-
-          <field field_ref="hfxsum"          name="hfxsum" />
-          <field field_ref="hfxbom"          name="hfxbom" />
-          <field field_ref="hfxbog"          name="hfxbog" />
-          <field field_ref="hfxdif"          name="hfxdif" />
-          <field field_ref="hfxopw"          name="hfxopw" />
-          <field field_ref="hfxout"          name="hfxout" />
-          <field field_ref="hfxin"           name="hfxin"  />
-          <field field_ref="hfxsnw"          name="hfxsnw" />
-          <field field_ref="hfxerr"          name="hfxerr" />
-          <field field_ref="hfxerr_rem"      name="hfxerr_rem"    />
-
-	  <!-- ice-ocean heat flux from mass exchange -->
-          <field field_ref="hfxdyn"          name="hfxdyn"    />
-          <field field_ref="hfxres"          name="hfxres"    />
-          <field field_ref="hfxthd"          name="hfxthd"    />
-	  <!-- ice-atm. heat flux from mass exchange -->
-          <field field_ref="hfxsub"          name="hfxsub"    />
-          <field field_ref="hfxspr"          name="hfxspr"    />
-
-	  <!-- diags -->
-          <field field_ref="hfxdhc"          name="hfxdhc"    />
-          <field field_ref="hfxtur"          name="hfxtur"    />
-
-          <field field_ref="isst"             name="sst"      />
-          <field field_ref="isss"             name="sss"      />
-          <field field_ref="micesalt"         name="sisali"   />
-          <field field_ref="micet"            name="sitemp"   />
-          <field field_ref="icest"            name="sistem"   />
-          <field field_ref="icehc"            name="siheco"   />
-          <field field_ref="isnowhc"          name="snheco"   />
-          <field field_ref="miceage"          name="siages"   />
-
-          <field field_ref="uice_ipa"         name="sivelu"   />
-          <field field_ref="vice_ipa"         name="sivelv"   />
-          <field field_ref="icevel"           name="sivelo"   />
-          <field field_ref="idive"            name="sidive"   />
-          <field field_ref="ishear"           name="sishea"   />
-          <field field_ref="icestr"           name="sistre"   />
-
-          <field field_ref="ibrinv"           name="sibrin"   />
-          <field field_ref="icecolf"          name="sicolf"   />
-
-          <field field_ref="iceage_cat"       name="siagecat" />
-          <field field_ref="iceconc_cat"      name="siconcat" />
-          <field field_ref="icethic_cat"      name="sithicat" />
-          <field field_ref="snowthic_cat"     name="snthicat" />
-          <field field_ref="salinity_cat"     name="salincat" />
-          <field field_ref="brinevol_cat"     name="sibricat" />
-    
-	</file>
-
-      </file_group>
-      
-      <file_group id="1h" output_freq="1h"  output_level="10" enabled=".TRUE."/> <!-- 1h files -->
-
-      <file_group id="2h" output_freq="2h"  output_level="10" enabled=".TRUE."/> <!-- 2h files -->
-
-      <file_group id="3h" output_freq="3h"  output_level="10" enabled=".TRUE."/> <!-- 3h files -->     
-
-      <file_group id="4h" output_freq="4h"  output_level="10" enabled=".TRUE."/> <!-- 4h files -->
-
-      <file_group id="6h" output_freq="6h"  output_level="10" enabled=".TRUE."/> <!-- 6h files -->     
-    
-      <file_group id="1d" output_freq="1d"  output_level="10" enabled="_1D_ENABLE_">  <!-- 5d files -->   
-	
-	<file id="file1" name_suffix="_grid_T" description="ocean T grid variables" >
-	  <field field_ref="e3t"  />
-	  <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"                    operation="instant" freq_op="1d" > @toce_e3t / @e3t </field>
-	  <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                                 operation="instant" freq_op="1d" > @soce_e3t / @e3t </field>
-	  <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                       />
-	  <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                          />
-	  <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                />
-	  <field field_ref="sst"          name="tosstd"   long_name="sea_surface_temperature_standard_deviation"         operation="instant" freq_op="1d" > sqrt( @sst2 - @sst * @sst ) </field>
-	  <field field_ref="ssh"          name="zosstd"   long_name="sea_surface_height_above_geoid_standard_deviation"  operation="instant" freq_op="1d" > sqrt( @ssh2 - @ssh * @ssh ) </field>
-	  <field field_ref="sst"          name="sstdcy"   long_name="amplitude of sst diurnal cycle" operation="average" freq_op="1d" > @sstmax - @sstmin </field>
-	  <field field_ref="mldkz5"       />
-	  <field field_ref="mldr10_1"     />
-	  <field field_ref="mldr10_1"     name="mldr10_1dcy"  long_name="amplitude of mldr10_1 diurnal cycle" operation="average" freq_op="1d" > @mldr10_1max - @mldr10_1min </field>
-	  <field field_ref="sbt"                          />
-	  <field field_ref="heatc"        name="heatc"    long_name="Heat content vertically integrated"            />
-	  <field field_ref="saltc"        name="saltc"    long_name="Salt content vertically integrated"            />  
-	</file>
-
-       <file id="file2" name_suffix="_scalar" description="scalar variables" enabled=".true." >
-          <field field_ref="voltot"       name="scvoltot"    />
-          <field field_ref="sshtot"       name="scsshtot"    />
-          <field field_ref="sshsteric"    name="scsshste"    />
-          <field field_ref="sshthster"    name="scsshtst"    />
-          <field field_ref="masstot"      name="scmastot"    />
-          <field field_ref="temptot"      name="sctemtot"    />
-          <field field_ref="saltot"       name="scsaltot"    />
-
-          <field field_ref="bgtemper"     name="bgtemper"    />
-          <field field_ref="bgsaline"     name="bgsaline"    />
-          <field field_ref="bgheatco"     name="bgheatco"    />
-          <field field_ref="bgsaltco"     name="bgsaltco"    />
-          <field field_ref="bgvolssh"     name="bgvolssh"    /> 
-          <field field_ref="bgvole3t"     name="bgvole3t"    />
-          <field field_ref="bgfrcvol"     name="bgfrcvol"    />
-          <field field_ref="bgfrctem"     name="bgfrctem"    />
-          <field field_ref="bgfrcsal"     name="bgfrcsal"    />
-	</file>
-
-        <file id="file3" name_suffix="_SBC_scalar" description="scalar variables" enabled=".true." >
-          <field field_ref="ibgvoltot"    name="ibgvoltot"   />
-          <field field_ref="sbgvoltot"    name="sbgvoltot"   />
-          <field field_ref="ibgarea"      name="ibgarea"     />
-          <field field_ref="ibgsaline"    name="ibgsaline"   />
-          <field field_ref="ibgtemper"    name="ibgtemper"   />
-          <field field_ref="ibgheatco"    name="ibgheatco"   />
-          <field field_ref="sbgheatco"    name="sbgheatco"   />
-          <field field_ref="ibgsaltco"    name="ibgsaltco"   />
-
-          <field field_ref="ibgvfx"       name="ibgvfx"      />
-          <field field_ref="ibgvfxbog"    name="ibgvfxbog"   />
-          <field field_ref="ibgvfxopw"    name="ibgvfxopw"   />
-          <field field_ref="ibgvfxsni"    name="ibgvfxsni"   />
-          <field field_ref="ibgvfxdyn"    name="ibgvfxdyn"   />
-          <field field_ref="ibgvfxbom"    name="ibgvfxbom"   />
-          <field field_ref="ibgvfxsum"    name="ibgvfxsum"   />
-          <field field_ref="ibgvfxres"    name="ibgvfxres"   />
-          <field field_ref="ibgvfxspr"    name="ibgvfxspr"   />
-          <field field_ref="ibgvfxsnw"    name="ibgvfxsnw"   />
-          <field field_ref="ibgvfxsub"    name="ibgvfxsub"   />
-
-          <field field_ref="ibgsfx"       name="ibgsfx"      />
-          <field field_ref="ibgsfxbri"    name="ibgsfxbri"   />
-          <field field_ref="ibgsfxdyn"    name="ibgsfxdyn"   />
-          <field field_ref="ibgsfxres"    name="ibgsfxres"   />
-          <field field_ref="ibgsfxbog"    name="ibgsfxbog"   />
-          <field field_ref="ibgsfxopw"    name="ibgsfxopw"   />
-          <field field_ref="ibgsfxsni"    name="ibgsfxsni"   />
-          <field field_ref="ibgsfxbom"    name="ibgsfxbom"   />
-          <field field_ref="ibgsfxsum"    name="ibgsfxsum"   />
-
-          <field field_ref="ibghfxdhc"    name="ibghfxdhc"   />
-          <field field_ref="ibghfxspr"    name="ibghfxspr"   />
-
-          <field field_ref="ibghfxres"    name="ibghfxres"   />
-          <field field_ref="ibghfxsub"    name="ibghfxsub"   />
-          <field field_ref="ibghfxdyn"    name="ibghfxdyn"   />
-          <field field_ref="ibghfxthd"    name="ibghfxthd"   />
-          <field field_ref="ibghfxsum"    name="ibghfxsum"   />
-          <field field_ref="ibghfxbom"    name="ibghfxbom"   />
-          <field field_ref="ibghfxbog"    name="ibghfxbog"   />
-          <field field_ref="ibghfxdif"    name="ibghfxdif"   />
-          <field field_ref="ibghfxopw"    name="ibghfxopw"   />
-          <field field_ref="ibghfxout"    name="ibghfxout"   />
-          <field field_ref="ibghfxin"     name="ibghfxin"    />
-          <field field_ref="ibghfxsnw"    name="ibghfxsnw"   />
-
-          <field field_ref="ibgfrcvol"    name="ibgfrcvol"   />
-          <field field_ref="ibgfrcsfx"    name="ibgfrcsfx"   />
-          <field field_ref="ibgvolgrm"    name="ibgvolgrm"   />
-
-        </file>
-	<file id="file4" name_suffix="_icemod" description="ice variables" enabled=".false." >
-	  <field field_ref="snowthic_cea"     name="snthic"     long_name="surface_snow_thickness"   />
-	  <field field_ref="icethic_cea"      name="sithic"     long_name="sea_ice_thickness"        />
-          <field field_ref="icevolu"          name="sivolu"  />
-          <field field_ref="snowvol"          name="snvolu"  />
-          <field field_ref="iceconc"          name="siconc"  />
-
-          <field field_ref="vfxbog"           name="vfxbog"  />
-          <field field_ref="vfxdyn"           name="vfxdyn"  />
-          <field field_ref="vfxopw"           name="vfxopw"  />
-          <field field_ref="vfxsni"           name="vfxsni"  />
-          <field field_ref="vfxsum"           name="vfxsum"  />
-          <field field_ref="vfxbom"           name="vfxbom"  />
-          <field field_ref="vfxres"           name="vfxres"  />
-          <field field_ref="vfxice"           name="vfxice"  />
-          <field field_ref="vfxsnw"           name="vfxsnw"  />
-          <field field_ref="vfxsub"           name="vfxsub"  />
-          <field field_ref="vfxspr"           name="vfxspr"  />
-
-          <field field_ref="icetrp"           name="sivtrp"  />
-          <field field_ref="snwtrp"           name="snvtrp"  />
-          <field field_ref="saltrp"           name="saltrp"  />
-          <field field_ref="deitrp"           name="deitrp"  />
-          <field field_ref="destrp"           name="destrp"  />
-
-          <field field_ref="sfxbri"           name="sfxbri"  />
-          <field field_ref="sfxdyn"           name="sfxdyn"  />
-          <field field_ref="sfxres"           name="sfxres"  />
-          <field field_ref="sfxbog"           name="sfxbog"  />
-          <field field_ref="sfxbom"           name="sfxbom"  />
-          <field field_ref="sfxsum"           name="sfxsum"  />
-          <field field_ref="sfxsni"           name="sfxsni"  />
-          <field field_ref="sfxopw"           name="sfxopw"  />
-          <field field_ref="sfx"              name="sfx"     />
-
-          <field field_ref="hfxsum"           name="hfxsum"  />
-          <field field_ref="hfxbom"           name="hfxbom"  />
-          <field field_ref="hfxbog"           name="hfxbog"  />
-          <field field_ref="hfxdif"           name="hfxdif"  />
-          <field field_ref="hfxopw"           name="hfxopw"  />
-          <field field_ref="hfxout"           name="hfxout"  />
-          <field field_ref="hfxin"            name="hfxin"   />
-          <field field_ref="hfxsnw"           name="hfxsnw"  />
-          <field field_ref="hfxerr"           name="hfxerr"  />
-          <field field_ref="hfxerr_rem"       name="hfxerr_rem"    /> 
-
-	  <!-- ice-ocean heat flux from mass exchange -->
-          <field field_ref="hfxdyn"          name="hfxdyn"    />
-          <field field_ref="hfxres"          name="hfxres"    />
-          <field field_ref="hfxthd"          name="hfxthd"    />
-	  <!-- ice-atm. heat flux from mass exchange -->
-          <field field_ref="hfxsub"          name="hfxsub"    />
-          <field field_ref="hfxspr"          name="hfxspr"    />
-
-	  <!-- diags -->
-          <field field_ref="hfxdhc"          name="hfxdhc"    />
-          <field field_ref="hfxtur"          name="hfxtur"    />
-
-          <field field_ref="isst"             name="sst"      />
-          <field field_ref="isss"             name="sss"      />
-          <field field_ref="micesalt"         name="sisali"   />
-          <field field_ref="micet"            name="sitemp"   />
-          <field field_ref="icest"            name="sistem"   />
-          <field field_ref="icehc"            name="siheco"   />
-          <field field_ref="isnowhc"          name="snheco"   />
-          <field field_ref="miceage"          name="siages"   /> 
-
-          <field field_ref="uice_ipa"         name="sivelu"   />
-          <field field_ref="vice_ipa"         name="sivelv"   />
-          <field field_ref="icevel"           name="sivelo"   />
-          <field field_ref="idive"            name="sidive"   />
-          <field field_ref="ishear"           name="sishea"   />
-          <field field_ref="icestr"           name="sistre"   /> 
-
-          <field field_ref="ibrinv"           name="sibrin"   />
-          <field field_ref="icecolf"          name="sicolf"   />
-
-          <field field_ref="iceage_cat"       name="siagecat" />
-          <field field_ref="iceconc_cat"      name="siconcat" />
-          <field field_ref="icethic_cat"      name="sithicat" />
-          <field field_ref="snowthic_cat"     name="snthicat" />
-          <field field_ref="salinity_cat"     name="salincat" />
-          <field field_ref="brinevol_cat"     name="sibricat" />
-
-	</file>
-
-  </file_group> 
-
-
-      <file_group id="1m" output_freq="1mo" output_level="10" sync_freq="1m" enabled="_1M_ENABLE_"> <!-- real monthly files -->
-
-        <file id="file10" name_suffix="_grid_T" >
-	  <field field_ref="e3t" long_name="T-cell thickness" />
-          <field field_ref="botpres"      name="pbo"      long_name="Pressure_at_sea_floor"                                          />
-          <!-- pso : sea_water_pressure_at_sea_water_surface = 0 -->
-          <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                                 />
-          <field field_ref="ssh2"         name="zossq"    long_name="square_of_sea_surface_height_above_geoid"             level="2" />
-
-          <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"   operation="instant" freq_op="1mo" > @toce_e3t / @e3t </field>      
-          <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                              level="1" />
-          <field field_ref="sst2"         name="tossq"    long_name="square_of_sea_surface_temperature"                    level="2" />
-          <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                operation="instant" freq_op="1mo" > @soce_e3t / @e3t </field>       
-          <field field_ref="soce_e3t"                     long_name="salinity * e3t"                    operation="instant" freq_op="1mo" > soce * e3t </field >  
-          <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                                 level="1" />
-          <field field_ref="rhop"         name="rhopoto"  long_name="sea_water_potential_density"                          level="2" />
-          <!-- no agessc : sea_water_age_since_surface_contact -->
-          <!-- no cfc11  : moles_per_unit_mass_of_cfc11_in_sea_water -->
-          <!-- msftbarot : ocean_barotropic_mass_streamfunction : offline -->
-          <!-- mlotst    :           ocean_mixed_layer_thickness_defined_by_sigma_t : must be done offline -->
-          <!-- mlotstsq  : square_of_ocean_mixed_layer_thickness_defined_by_sigma_t : must be done offline -->
-          <field field_ref="mldkz5"       name="omlmax"   long_name="ocean_mixed_layer_thickness_defined_by_mixing_scheme" level="2" operation="maximum" />
-          <field field_ref="mldkz5"       name="mldkz5"   level="2"  />
-          <field field_ref="mldr10_1"     name="mldr10_1" level="2" />
-          <field field_ref="runoffs"      name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
-          <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
-          <!-- wfonocorr : water_flux_into_sea_water_without_flux_correction : emp - erp -->
-          <field field_ref="erp"          name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
-          <field field_ref="qns"          name="nshfls"    long_name="surface_net_downward_non_solar_flux"                    level="1" />
-          <field field_ref="qsr"          name="rsntds"    long_name="surface_net_downward_shortwave_flux"                    level="1" />
-          <field field_ref="qsr3d"        name="rsds"      long_name="downwelling_shortwave_flux_in_sea_water"                level="1" />
-          <field field_ref="qrp"          name="hfcorr"    long_name="heat_flux_correction"                                   level="1" />
-        </file>
-
-	<file id="file11" name_suffix="_grid_U" description="ocean U grid variables" >
-	  <field field_ref="e3u"  />
-	  <field field_ref="ssu"          name="uos"     long_name="sea_surface_x_velocity"    />
-	  <field field_ref="uoce"         name="uo"      long_name="sea_water_x_velocity" operation="instant" freq_op="5d" > @uoce_e3u / @e3u </field>
-	  <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
-          <!-- available with key_diaar5 -->
-	  <field field_ref="u_masstr"     name="vozomatr"  />
-	  <field field_ref="u_heattr"     name="sozohetr"  />
-          <field field_ref="u_salttr"     name="sozosatr"  />
-	</file>
-	
-	<file id="file12" name_suffix="_grid_V" description="ocean V grid variables" >
-	  <field field_ref="e3v"  />
-	  <field field_ref="ssv"          name="vos"     long_name="sea_surface_y_velocity"    />
-	  <field field_ref="voce"         name="vo"      long_name="sea_water_y_velocity" operation="instant" freq_op="5d" > @voce_e3v / @e3v </field>
-	  <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
-          <!-- available with key_diaar5 -->
-	  <field field_ref="v_masstr"     name="vomematr"  />
-	  <field field_ref="v_heattr"     name="somehetr"  />
-          <field field_ref="v_salttr"     name="somesatr"  />
-	</file>
-	
-	<file id="file13" name_suffix="_grid_W" description="ocean W grid variables" >
-	  <field field_ref="e3w"  />
-	  <field field_ref="woce"         name="wo"      long_name="ocean vertical velocity" operation="instant" freq_op="5d" > @woce_e3w / @e3w </field>
-	  <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
-	  <field field_ref="w_masstr"     name="vovematr"  />
-	</file>
-
-	<file id="file14" name_suffix="_icemod" description="ice variables" enabled=".true." >
-	  <field field_ref="snowthic_cea"    name="snthic"     long_name="surface_snow_thickness"   />
-	  <field field_ref="icethic_cea"     name="sithic"     long_name="sea_ice_thickness"        />
-          <field field_ref="icevolu"         name="sivolu" />
-          <field field_ref="snowvol"         name="snvolu" />
-          <field field_ref="iceconc"         name="siconc" />
-
-          <field field_ref="vfxbog"          name="vfxbog" />
-          <field field_ref="vfxdyn"          name="vfxdyn" />
-          <field field_ref="vfxopw"          name="vfxopw" />
-          <field field_ref="vfxsni"          name="vfxsni" />
-          <field field_ref="vfxsum"          name="vfxsum" />
-          <field field_ref="vfxbom"          name="vfxbom" />
-          <field field_ref="vfxres"          name="vfxres" />
-          <field field_ref="vfxice"          name="vfxice" />
-          <field field_ref="vfxsnw"          name="vfxsnw" />
-          <field field_ref="vfxsub"          name="vfxsub" />
-          <field field_ref="vfxspr"          name="vfxspr" />
-
-          <field field_ref="icetrp"          name="sivtrp" />
-          <field field_ref="snwtrp"          name="snvtrp" />
-          <field field_ref="saltrp"          name="saltrp" />
-          <field field_ref="deitrp"          name="deitrp" />
-          <field field_ref="destrp"          name="destrp" />
-
-          <field field_ref="sfxbri"          name="sfxbri" />
-          <field field_ref="sfxdyn"          name="sfxdyn" />
-          <field field_ref="sfxres"          name="sfxres" />
-          <field field_ref="sfxbog"          name="sfxbog" />
-          <field field_ref="sfxbom"          name="sfxbom" />
-          <field field_ref="sfxsum"          name="sfxsum" />
-          <field field_ref="sfxsni"          name="sfxsni" />
-          <field field_ref="sfxopw"          name="sfxopw" />
-          <field field_ref="sfx"             name="sfx"    />
-
-          <field field_ref="hfxsum"          name="hfxsum" />
-          <field field_ref="hfxbom"          name="hfxbom" />
-          <field field_ref="hfxbog"          name="hfxbog" />
-          <field field_ref="hfxdif"          name="hfxdif" />
-          <field field_ref="hfxopw"          name="hfxopw" />
-          <field field_ref="hfxout"          name="hfxout" />
-          <field field_ref="hfxin"           name="hfxin"  />
-          <field field_ref="hfxsnw"          name="hfxsnw" />
-          <field field_ref="hfxerr"          name="hfxerr" />
-          <field field_ref="hfxerr_rem"      name="hfxerr_rem"    />
-
-	  <!-- ice-ocean heat flux from mass exchange -->
-          <field field_ref="hfxdyn"          name="hfxdyn"    />
-          <field field_ref="hfxres"          name="hfxres"    />
-          <field field_ref="hfxthd"          name="hfxthd"    />
-	  <!-- ice-atm. heat flux from mass exchange -->
-          <field field_ref="hfxsub"          name="hfxsub"    />
-          <field field_ref="hfxspr"          name="hfxspr"    />
-
-	  <!-- diags -->
-          <field field_ref="hfxdhc"          name="hfxdhc"    />
-          <field field_ref="hfxtur"          name="hfxtur"    />
-
-          <field field_ref="isst"             name="sst"      />
-          <field field_ref="isss"             name="sss"      />
-          <field field_ref="micesalt"         name="sisali"   />
-          <field field_ref="micet"            name="sitemp"   />
-          <field field_ref="icest"            name="sistem"   />
-          <field field_ref="icehc"            name="siheco"   />
-          <field field_ref="isnowhc"          name="snheco"   />
-          <field field_ref="miceage"          name="siages"   />
-
-          <field field_ref="uice_ipa"         name="sivelu"   />
-          <field field_ref="vice_ipa"         name="sivelv"   />
-          <field field_ref="icevel"           name="sivelo"   />
-          <field field_ref="idive"            name="sidive"   />
-          <field field_ref="ishear"           name="sishea"   />
-          <field field_ref="icestr"           name="sistre"   />
-
-          <field field_ref="ibrinv"           name="sibrin"   />
-          <field field_ref="icecolf"          name="sicolf"   />
-
-          <field field_ref="iceage_cat"       name="siagecat" />
-          <field field_ref="iceconc_cat"      name="siconcat" />
-          <field field_ref="icethic_cat"      name="sithicat" />
-          <field field_ref="snowthic_cat"     name="snthicat" />
-          <field field_ref="salinity_cat"     name="salincat" />
-          <field field_ref="brinevol_cat"     name="sibricat" />
-
-	</file>
-
-        <file id="file15" name_suffix="_scalar" description="scalar variables" enabled=".true." >
-          <field field_ref="voltot"       name="scvoltot"    />
-          <field field_ref="sshtot"       name="scsshtot"    />
-          <field field_ref="sshsteric"    name="scsshste"    />
-          <field field_ref="sshthster"    name="scsshtst"    />
-          <field field_ref="masstot"      name="scmastot"    />
-          <field field_ref="temptot"      name="sctemtot"    />
-          <field field_ref="saltot"       name="scsaltot"    />
-
-          <field field_ref="bgtemper"     name="bgtemper"    />
-          <field field_ref="bgsaline"     name="bgsaline"    />
-          <field field_ref="bgheatco"     name="bgheatco"    />
-          <field field_ref="bgsaltco"     name="bgsaltco"    />
-          <field field_ref="bgvolssh"     name="bgvolssh"    /> 
-          <field field_ref="bgvole3t"     name="bgvole3t"    />
-          <field field_ref="bgfrcvol"     name="bgfrcvol"    />
-          <field field_ref="bgfrctem"     name="bgfrctem"    />
-          <field field_ref="bgfrcsal"     name="bgfrcsal"    />
-
-          <field field_ref="ibgvoltot"    name="ibgvoltot"   />
-          <field field_ref="sbgvoltot"    name="sbgvoltot"   />
-          <field field_ref="ibgarea"      name="ibgarea"     />
-          <field field_ref="ibgsaline"    name="ibgsaline"   />
-          <field field_ref="ibgtemper"    name="ibgtemper"   />
-          <field field_ref="ibgheatco"    name="ibgheatco"   />
-          <field field_ref="sbgheatco"    name="sbgheatco"   />
-          <field field_ref="ibgsaltco"    name="ibgsaltco"   />
-
-          <field field_ref="ibgvfx"       name="ibgvfx"      />
-          <field field_ref="ibgvfxbog"    name="ibgvfxbog"   />
-          <field field_ref="ibgvfxopw"    name="ibgvfxopw"   />
-          <field field_ref="ibgvfxsni"    name="ibgvfxsni"   />
-          <field field_ref="ibgvfxdyn"    name="ibgvfxdyn"   />
-          <field field_ref="ibgvfxbom"    name="ibgvfxbom"   />
-          <field field_ref="ibgvfxsum"    name="ibgvfxsum"   />
-          <field field_ref="ibgvfxres"    name="ibgvfxres"   />
-          <field field_ref="ibgvfxspr"    name="ibgvfxspr"   />
-          <field field_ref="ibgvfxsnw"    name="ibgvfxsnw"   />
-          <field field_ref="ibgvfxsub"    name="ibgvfxsub"   />
-
-          <field field_ref="ibgsfx"       name="ibgsfx"      />
-          <field field_ref="ibgsfxbri"    name="ibgsfxbri"   />
-          <field field_ref="ibgsfxdyn"    name="ibgsfxdyn"   />
-          <field field_ref="ibgsfxres"    name="ibgsfxres"   />
-          <field field_ref="ibgsfxbog"    name="ibgsfxbog"   />
-          <field field_ref="ibgsfxopw"    name="ibgsfxopw"   />
-          <field field_ref="ibgsfxsni"    name="ibgsfxsni"   />
-          <field field_ref="ibgsfxbom"    name="ibgsfxbom"   />
-          <field field_ref="ibgsfxsum"    name="ibgsfxsum"   />
-
-          <field field_ref="ibghfxdhc"    name="ibghfxdhc"   />
-          <field field_ref="ibghfxspr"    name="ibghfxspr"   />
-
-          <field field_ref="ibghfxres"    name="ibghfxres"   />
-          <field field_ref="ibghfxsub"    name="ibghfxsub"   />
-          <field field_ref="ibghfxdyn"    name="ibghfxdyn"   />
-          <field field_ref="ibghfxthd"    name="ibghfxthd"   />
-          <field field_ref="ibghfxsum"    name="ibghfxsum"   />
-          <field field_ref="ibghfxbom"    name="ibghfxbom"   />
-          <field field_ref="ibghfxbog"    name="ibghfxbog"   />
-          <field field_ref="ibghfxdif"    name="ibghfxdif"   />
-          <field field_ref="ibghfxopw"    name="ibghfxopw"   />
-          <field field_ref="ibghfxout"    name="ibghfxout"   />
-          <field field_ref="ibghfxin"    name="ibghfxin"     />
-          <field field_ref="ibghfxsnw"    name="ibghfxsnw"   />
-
-          <field field_ref="ibgfrcvol"    name="ibgfrcvol"   />
-          <field field_ref="ibgfrcsfx"    name="ibgfrcsfx"   />
-          <field field_ref="ibgvolgrm"    name="ibgvolgrm"   />
-
-        </file>
-
-	<file id="file16" name_suffix="_diaptr" description="diaptr variables" >
-           <field field_ref="zomsfglo"   />
-           <field field_ref="zomsfatl"   />
-           <field field_ref="zomsfpac"   />
-           <field field_ref="zomsfind"   />
-           <field field_ref="zomsfipc"   />
-           <field field_ref="zotemglo"   />
-           <field field_ref="zotematl"   />
-           <field field_ref="zotempac"   />
-           <field field_ref="zotemind"   />
-           <field field_ref="zotemipc"   />
-           <field field_ref="zosalglo"   />
-           <field field_ref="zosalatl"   />
-           <field field_ref="zosalpac"   />
-           <field field_ref="zosalind"   />
-           <field field_ref="zosalipc"   />
-           <field field_ref="zosrfglo"   />
-           <field field_ref="zosrfatl"   />
-           <field field_ref="zosrfpac"   />
-           <field field_ref="zosrfind"   />
-           <field field_ref="zosrfipc"   />
-           <field field_ref="sophtadv"   />
-           <field field_ref="sophtldf"   />
-           <field field_ref="sopstadv"   />
-           <field field_ref="sopstldf"   />
-	</file>
-	
-	<!--
-	<file id="file8" name_suffix="_Tides" description="tidal harmonics" >
-	  <field field_ref="M2x"          name="M2x"      long_name="M2 Elevation harmonic real part"                       />
-	  <field field_ref="M2y"          name="M2y"      long_name="M2 Elevation harmonic imaginary part"                  />
-	  <field field_ref="M2x_u"        name="M2x_u"    long_name="M2 current barotrope along i-axis harmonic real part "       />
-	  <field field_ref="M2y_u"        name="M2y_u"    long_name="M2 current barotrope along i-axis harmonic imaginary part "  />
-	  <field field_ref="M2x_v"        name="M2x_v"    long_name="M2 current barotrope along j-axis harmonic real part "       />
-	  <field field_ref="M2y_v"        name="M2y_v"    long_name="M2 current barotrope along j-axis harmonic imaginary part "  />
-	</file>
-	-->
-
-      </file_group>
-
-
-      <file_group id="2m" output_freq="2mo" output_level="10" enabled=".TRUE."/> <!-- real 2m files -->
-      <file_group id="3m" output_freq="3mo" output_level="10" enabled=".TRUE."/> <!-- real 3m files -->
-      <file_group id="4m" output_freq="4mo" output_level="10" enabled=".TRUE."/> <!-- real 4m files -->
-      <file_group id="6m" output_freq="6mo" output_level="10" enabled=".TRUE."/> <!-- real 6m files -->
-
-      <file_group id="1y"  output_freq="1y" sync_freq="1y" output_level="10" enabled=".TRUE."> <!-- real yearly files -->
-
-    <file id="file20" name_suffix="_grid_T" description="ocean T grid variables" >
-      <field field_ref="e3t"  />
-      <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                       />
-      <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                          />
-      <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                />
-      <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"      operation="instant" freq_op="1y" > @toce_e3t / @e3t </field>        
-      <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                   operation="instant" freq_op="1y" > @soce_e3t / @e3t </field>         
-      <field field_ref="sst2"         name="tossq"    long_name="square_of_sea_surface_temperature"             />
-      <field field_ref="ssh2"         name="zossq"    long_name="square_of_sea_surface_height_above_geoid"      />
-      <field field_ref="mldr10_1"     />
-      <field field_ref="mldkz5"       name="omlmax"   long_name="ocean_mixed_layer_thickness_defined_by_mixing_scheme" level="2" operation="maximum" />
-      <field field_ref="runoffs"      name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
-      <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
-      <field field_ref="erp"          name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
-      <field field_ref="qns"          name="nshfls"   long_name="surface_net_downward_non_solar_flux"                     level="1" />
-      <field field_ref="qsr"          name="rsntds"   long_name="surface_net_downward_shortwave_flux"                     level="1" />
-      <field field_ref="qsr3d"        name="rsds"     long_name="downwelling_shortwave_flux_in_sea_water"                 level="1" />
-      <field field_ref="qt"           name="tohfls"   long_name="surface_net_downward_total_heat_flux"          />
-      <field field_ref="saltflx"      name="sosflxdo"   />
-      <field field_ref="taum"         name="taum" />
-      <field field_ref="wspd"         name="sowindsp"   />
-       <field field_ref="precip"       name="soprecip"  />
-       <!-- available with ln_blk_clio or ln_blk_core -->
-       <!-- <field field_ref="qns_oce"      name="sonshdoo"  /> -->
-       <!-- <field field_ref="qlw_oce"      name="solwhdoo"  /> -->
-       <!-- <field field_ref="qsb_oce"      name="sosehdoo"  /> -->
-       <!-- <field field_ref="qla_oce"      name="solahdoo"  /> -->
-       <!-- <field field_ref="taum_oce"     name="sowndsto"  /> -->
-        <!-- ice and snow -->
-       <field field_ref="snowpre"      name="isnowpre"  />
-       <field field_ref="utau_ice"     name="iicestru"  />
-       <field field_ref="vtau_ice"     name="iicestrv"  />
-     </file>
-
-    <file id="file21" name_suffix="_grid_U" description="ocean U grid variables" >
-      <field field_ref="e3u"  />
-      <field field_ref="ssu"          name="uos"     long_name="sea_surface_x_velocity"    />
-      <field field_ref="uoce"         name="uo"      long_name="sea_water_x_velocity"      operation="instant" freq_op="1y" > @uoce_e3u / @e3u </field> 
-      <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
-      <field field_ref="uocetr_eff"   name="uocetr_eff"  />
-    </file>
-
-    <file id="file22" name_suffix="_grid_V" description="ocean V grid variables" >
-      <field field_ref="e3v"  />
-      <field field_ref="ssv"          name="vos"     long_name="sea_surface_y_velocity"    />
-      <field field_ref="voce"         name="vo"      long_name="sea_water_y_velocity"     operation="instant" freq_op="1y" > @voce_e3v / @e3v </field>
-      <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
-      <field field_ref="uocetr_eff"   name="uocetr_eff"  />
-    </file>
-
-     <file id="file23" name_suffix="_grid_W" description="ocean W grid variables" >
-      <field field_ref="e3w"  />
-      <field field_ref="woce"         name="wo"      long_name="ocean vertical velocity"         />
-      <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
-      <field field_ref="wocetr_eff"   name="wocetr_eff"  />
-    </file>
-
-
-      </file_group>
-
-      <file_group id="2y"  output_freq="2y" output_level="10" enabled=".TRUE."/> <!-- real 2y files -->
-      <file_group id="5y"  output_freq="5y" output_level="10" enabled=".TRUE."/> <!-- real 5y files -->
-      <file_group id="10y" output_freq="10y" output_level="10" enabled=".TRUE."/> <!-- real 10y files -->
-
-   </file_definition>
+    <file_definition src="./file_def_nemo.xml"/>
     
     <!-- 
Index: CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo.xml
===================================================================
--- CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo.xml	(revision 2560)
+++ CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo.xml	(revision 2560)
@@ -0,0 +1,650 @@
+<!-- 
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own files                                         =
+=                                         put the variables you want...                                    =
+============================================================================================================
+-->
+<file_definition type="one_file" name="@expname@_@freq@" sync_freq="10d" min_digits="4">
+  
+  <file_group id="1ts" output_freq="1ts" sync_freq="1ts" output_level="10" enabled=".FALSE."> <!-- 1 time step files -->
+    <file id="file51" name_suffix="_grid_T" description="ocean T grid variables" >
+      <field field_ref="e3t" long_name="T-cell thickness" />
+      <field field_ref="botpres"         name="pbo"      long_name="Pressure_at_sea_floor"                                          />
+      <!-- pso : sea_water_pressure_at_sea_water_surface = 0 -->
+      <field field_ref="ssh"             name="zos"      long_name="sea_surface_height_above_geoid"                                 />
+      <field field_ref="sst"             name="tos"      long_name="sea_surface_temperature"                       />
+      <field field_ref="sss"             name="sos"      long_name="sea_surface_salinity"                          />
+      <field field_ref="toce_e3t"                        long_name="temperature * e3t"                 operation="instant" freq_op="1ts" > toce * e3t </field >  
+      <field field_ref="soce_e3t"                        long_name="salinity * e3t"                    operation="instant" freq_op="1ts" > soce * e3t </field >  
+      <field field_ref="toce"            name="thetao"   long_name="sea_water_potential_temperature"   operation="instant" freq_op="1ts" > @toce_e3t / @e3t </field>      
+      <field field_ref="soce"            name="so"       long_name="sea_water_salinity"                operation="instant" freq_op="1ts" > @soce_e3t / @e3t </field>       
+      <field field_ref="rhop"            name="rhopoto"  long_name="sea_water_potential_density"                          level="2" />
+      <field field_ref="mldkz5"          name="mldkz5"   level="2"  />
+      <field field_ref="mldr10_1"        name="mldr10_1" level="2" />
+      <field field_ref="runoffs"         name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
+      <field field_ref="empmr"           name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
+      <field field_ref="erp"             name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
+      <field field_ref="qns"             name="nshfls"   long_name="surface_net_downward_non_solar_flux"                    level="1" />
+      <field field_ref="qsr"             name="rsntds"   long_name="surface_net_downward_shortwave_flux"                    level="1" />
+      <field field_ref="qsr3d"           name="rsds"     long_name="downwelling_shortwave_flux_in_sea_water"                level="1" />
+      <field field_ref="qrp"             name="hfcorr"   long_name="heat_flux_correction"                                   level="1" />
+      <field field_ref="uoce"            name="uo"       long_name="sea_water_x_velocity" operation="instant" freq_op="5d" > @uoce_e3u / @e3u </field>
+      <field field_ref="utau"            name="tauuo"    long_name="surface_downward_x_stress" />
+      <field field_ref="voce"            name="vo"       long_name="sea_water_y_velocity" operation="instant" freq_op="5d" > @voce_e3v / @e3v </field>
+      <field field_ref="vtau"            name="tauvo"    long_name="surface_downward_y_stress" />
+      <field field_ref="woce"            name="wo"       long_name="ocean vertical velocity" operation="instant" freq_op="5d" > @woce_e3w / @e3w </field>
+      <field field_ref="avt"             name="difvho"   long_name="ocean_vertical_heat_diffusivity" />
+      <field field_ref="snowthic_cea"    name="snthic"   long_name="surface_snow_thickness"   />
+      <field field_ref="icethic_cea"     name="sithic"    long_name="sea_ice_thickness"        />
+      <field field_ref="icevolu"         name="sivolu" />
+      <field field_ref="snowvol"         name="snvolu" />
+      <field field_ref="iceconc"         name="siconc" />
+
+      <field field_ref="vfxbog"          name="vfxbog" />
+      <field field_ref="vfxdyn"          name="vfxdyn" />
+      <field field_ref="vfxopw"          name="vfxopw" />
+      <field field_ref="vfxsni"          name="vfxsni" />
+      <field field_ref="vfxsum"          name="vfxsum" />
+      <field field_ref="vfxbom"          name="vfxbom" />
+      <field field_ref="vfxres"          name="vfxres" />
+      <field field_ref="vfxice"          name="vfxice" />
+      <field field_ref="vfxsnw"          name="vfxsnw" />
+      <field field_ref="vfxsub"          name="vfxsub" />
+      <field field_ref="vfxspr"          name="vfxspr" />
+
+      <field field_ref="icetrp"          name="sivtrp" />
+      <field field_ref="snwtrp"          name="snvtrp" />
+      <field field_ref="saltrp"          name="saltrp" />
+      <field field_ref="deitrp"          name="deitrp" />
+      <field field_ref="destrp"          name="destrp" />
+
+      <field field_ref="sfxbri"          name="sfxbri" />
+      <field field_ref="sfxdyn"          name="sfxdyn" />
+      <field field_ref="sfxres"          name="sfxres" />
+      <field field_ref="sfxbog"          name="sfxbog" />
+      <field field_ref="sfxbom"          name="sfxbom" />
+      <field field_ref="sfxsum"          name="sfxsum" />
+      <field field_ref="sfxsni"          name="sfxsni" />
+      <field field_ref="sfxopw"          name="sfxopw" />
+      <field field_ref="sfx"             name="sfx"    />
+
+      <field field_ref="hfxsum"          name="hfxsum" />
+      <field field_ref="hfxbom"          name="hfxbom" />
+      <field field_ref="hfxbog"          name="hfxbog" />
+      <field field_ref="hfxdif"          name="hfxdif" />
+      <field field_ref="hfxopw"          name="hfxopw" />
+      <field field_ref="hfxout"          name="hfxout" />
+      <field field_ref="hfxin"           name="hfxin"  />
+      <field field_ref="hfxsnw"          name="hfxsnw" />
+      <field field_ref="hfxerr"          name="hfxerr" />
+      <field field_ref="hfxerr_rem"      name="hfxerr_rem"    />
+
+      <!-- ice-ocean heat flux from mass exchange -->
+      <field field_ref="hfxdyn"          name="hfxdyn"    />
+      <field field_ref="hfxres"          name="hfxres"    />
+      <field field_ref="hfxthd"          name="hfxthd"    />
+      <!-- ice-atm. heat flux from mass exchange -->
+      <field field_ref="hfxsub"          name="hfxsub"    />
+      <field field_ref="hfxspr"          name="hfxspr"    />
+
+      <!-- diags -->
+      <field field_ref="hfxdhc"          name="hfxdhc"    />
+      <field field_ref="hfxtur"          name="hfxtur"    />
+
+      <field field_ref="isst"             name="sst"      />
+      <field field_ref="isss"             name="sss"      />
+      <field field_ref="micesalt"         name="sisali"   />
+      <field field_ref="micet"            name="sitemp"   />
+      <field field_ref="icest"            name="sistem"   />
+      <field field_ref="icehc"            name="siheco"   />
+      <field field_ref="isnowhc"          name="snheco"   />
+      <field field_ref="miceage"          name="siages"   />
+
+      <field field_ref="uice_ipa"         name="sivelu"   />
+      <field field_ref="vice_ipa"         name="sivelv"   />
+      <field field_ref="icevel"           name="sivelo"   />
+      <field field_ref="idive"            name="sidive"   />
+      <field field_ref="ishear"           name="sishea"   />
+      <field field_ref="icestr"           name="sistre"   />
+
+      <field field_ref="ibrinv"           name="sibrin"   />
+      <field field_ref="icecolf"          name="sicolf"   />
+
+      <field field_ref="iceage_cat"       name="siagecat" />
+      <field field_ref="iceconc_cat"      name="siconcat" />
+      <field field_ref="icethic_cat"      name="sithicat" />
+      <field field_ref="snowthic_cat"     name="snthicat" />
+      <field field_ref="salinity_cat"     name="salincat" />
+      <field field_ref="brinevol_cat"     name="sibricat" />
+      
+    </file>
+
+  </file_group>
+  
+  <file_group id="1h" output_freq="1h"  output_level="10" enabled=".TRUE."/> <!-- 1h files -->
+
+  <file_group id="2h" output_freq="2h"  output_level="10" enabled=".TRUE."/> <!-- 2h files -->
+
+  <file_group id="3h" output_freq="3h"  output_level="10" enabled=".TRUE."/> <!-- 3h files -->     
+
+  <file_group id="4h" output_freq="4h"  output_level="10" enabled=".TRUE."/> <!-- 4h files -->
+
+  <file_group id="6h" output_freq="6h"  output_level="10" enabled=".TRUE."/> <!-- 6h files -->     
+  
+  <file_group id="1d" output_freq="1d"  output_level="10" enabled="_1D_ENABLE_">  <!-- 5d files -->   
+    
+    <file id="file1" name_suffix="_grid_T" description="ocean T grid variables" >
+      <field field_ref="e3t"  />
+      <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"                    operation="instant" freq_op="1d" > @toce_e3t / @e3t </field>
+      <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                                 operation="instant" freq_op="1d" > @soce_e3t / @e3t </field>
+      <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                       />
+      <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                          />
+      <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                />
+      <field field_ref="sst"          name="tosstd"   long_name="sea_surface_temperature_standard_deviation"         operation="instant" freq_op="1d" > sqrt( @sst2 - @sst * @sst ) </field>
+      <field field_ref="ssh"          name="zosstd"   long_name="sea_surface_height_above_geoid_standard_deviation"  operation="instant" freq_op="1d" > sqrt( @ssh2 - @ssh * @ssh ) </field>
+      <field field_ref="sst"          name="sstdcy"   long_name="amplitude of sst diurnal cycle" operation="average" freq_op="1d" > @sstmax - @sstmin </field>
+      <field field_ref="mldkz5"       />
+      <field field_ref="mldr10_1"     />
+      <field field_ref="mldr10_1"     name="mldr10_1dcy"  long_name="amplitude of mldr10_1 diurnal cycle" operation="average" freq_op="1d" > @mldr10_1max - @mldr10_1min </field>
+      <field field_ref="sbt"                          />
+      <field field_ref="heatc"        name="heatc"    long_name="Heat content vertically integrated"            />
+      <field field_ref="saltc"        name="saltc"    long_name="Salt content vertically integrated"            />  
+    </file>
+
+    <file id="file2" name_suffix="_scalar" description="scalar variables" enabled=".true." >
+      <field field_ref="voltot"       name="scvoltot"    />
+      <field field_ref="sshtot"       name="scsshtot"    />
+      <field field_ref="sshsteric"    name="scsshste"    />
+      <field field_ref="sshthster"    name="scsshtst"    />
+      <field field_ref="masstot"      name="scmastot"    />
+      <field field_ref="temptot"      name="sctemtot"    />
+      <field field_ref="saltot"       name="scsaltot"    />
+
+      <field field_ref="bgtemper"     name="bgtemper"    />
+      <field field_ref="bgsaline"     name="bgsaline"    />
+      <field field_ref="bgheatco"     name="bgheatco"    />
+      <field field_ref="bgsaltco"     name="bgsaltco"    />
+      <field field_ref="bgvolssh"     name="bgvolssh"    /> 
+      <field field_ref="bgvole3t"     name="bgvole3t"    />
+      <field field_ref="bgfrcvol"     name="bgfrcvol"    />
+      <field field_ref="bgfrctem"     name="bgfrctem"    />
+      <field field_ref="bgfrcsal"     name="bgfrcsal"    />
+    </file>
+
+    <file id="file3" name_suffix="_SBC_scalar" description="scalar variables" enabled=".true." >
+      <field field_ref="ibgvoltot"    name="ibgvoltot"   />
+      <field field_ref="sbgvoltot"    name="sbgvoltot"   />
+      <field field_ref="ibgarea"      name="ibgarea"     />
+      <field field_ref="ibgsaline"    name="ibgsaline"   />
+      <field field_ref="ibgtemper"    name="ibgtemper"   />
+      <field field_ref="ibgheatco"    name="ibgheatco"   />
+      <field field_ref="sbgheatco"    name="sbgheatco"   />
+      <field field_ref="ibgsaltco"    name="ibgsaltco"   />
+
+      <field field_ref="ibgvfx"       name="ibgvfx"      />
+      <field field_ref="ibgvfxbog"    name="ibgvfxbog"   />
+      <field field_ref="ibgvfxopw"    name="ibgvfxopw"   />
+      <field field_ref="ibgvfxsni"    name="ibgvfxsni"   />
+      <field field_ref="ibgvfxdyn"    name="ibgvfxdyn"   />
+      <field field_ref="ibgvfxbom"    name="ibgvfxbom"   />
+      <field field_ref="ibgvfxsum"    name="ibgvfxsum"   />
+      <field field_ref="ibgvfxres"    name="ibgvfxres"   />
+      <field field_ref="ibgvfxspr"    name="ibgvfxspr"   />
+      <field field_ref="ibgvfxsnw"    name="ibgvfxsnw"   />
+      <field field_ref="ibgvfxsub"    name="ibgvfxsub"   />
+
+      <field field_ref="ibgsfx"       name="ibgsfx"      />
+      <field field_ref="ibgsfxbri"    name="ibgsfxbri"   />
+      <field field_ref="ibgsfxdyn"    name="ibgsfxdyn"   />
+      <field field_ref="ibgsfxres"    name="ibgsfxres"   />
+      <field field_ref="ibgsfxbog"    name="ibgsfxbog"   />
+      <field field_ref="ibgsfxopw"    name="ibgsfxopw"   />
+      <field field_ref="ibgsfxsni"    name="ibgsfxsni"   />
+      <field field_ref="ibgsfxbom"    name="ibgsfxbom"   />
+      <field field_ref="ibgsfxsum"    name="ibgsfxsum"   />
+
+      <field field_ref="ibghfxdhc"    name="ibghfxdhc"   />
+      <field field_ref="ibghfxspr"    name="ibghfxspr"   />
+
+      <field field_ref="ibghfxres"    name="ibghfxres"   />
+      <field field_ref="ibghfxsub"    name="ibghfxsub"   />
+      <field field_ref="ibghfxdyn"    name="ibghfxdyn"   />
+      <field field_ref="ibghfxthd"    name="ibghfxthd"   />
+      <field field_ref="ibghfxsum"    name="ibghfxsum"   />
+      <field field_ref="ibghfxbom"    name="ibghfxbom"   />
+      <field field_ref="ibghfxbog"    name="ibghfxbog"   />
+      <field field_ref="ibghfxdif"    name="ibghfxdif"   />
+      <field field_ref="ibghfxopw"    name="ibghfxopw"   />
+      <field field_ref="ibghfxout"    name="ibghfxout"   />
+      <field field_ref="ibghfxin"     name="ibghfxin"    />
+      <field field_ref="ibghfxsnw"    name="ibghfxsnw"   />
+
+      <field field_ref="ibgfrcvol"    name="ibgfrcvol"   />
+      <field field_ref="ibgfrcsfx"    name="ibgfrcsfx"   />
+      <field field_ref="ibgvolgrm"    name="ibgvolgrm"   />
+
+    </file>
+    <file id="file4" name_suffix="_icemod" description="ice variables" enabled=".false." >
+      <field field_ref="snowthic_cea"     name="snthic"     long_name="surface_snow_thickness"   />
+      <field field_ref="icethic_cea"      name="sithic"     long_name="sea_ice_thickness"        />
+      <field field_ref="icevolu"          name="sivolu"  />
+      <field field_ref="snowvol"          name="snvolu"  />
+      <field field_ref="iceconc"          name="siconc"  />
+
+      <field field_ref="vfxbog"           name="vfxbog"  />
+      <field field_ref="vfxdyn"           name="vfxdyn"  />
+      <field field_ref="vfxopw"           name="vfxopw"  />
+      <field field_ref="vfxsni"           name="vfxsni"  />
+      <field field_ref="vfxsum"           name="vfxsum"  />
+      <field field_ref="vfxbom"           name="vfxbom"  />
+      <field field_ref="vfxres"           name="vfxres"  />
+      <field field_ref="vfxice"           name="vfxice"  />
+      <field field_ref="vfxsnw"           name="vfxsnw"  />
+      <field field_ref="vfxsub"           name="vfxsub"  />
+      <field field_ref="vfxspr"           name="vfxspr"  />
+
+      <field field_ref="icetrp"           name="sivtrp"  />
+      <field field_ref="snwtrp"           name="snvtrp"  />
+      <field field_ref="saltrp"           name="saltrp"  />
+      <field field_ref="deitrp"           name="deitrp"  />
+      <field field_ref="destrp"           name="destrp"  />
+
+      <field field_ref="sfxbri"           name="sfxbri"  />
+      <field field_ref="sfxdyn"           name="sfxdyn"  />
+      <field field_ref="sfxres"           name="sfxres"  />
+      <field field_ref="sfxbog"           name="sfxbog"  />
+      <field field_ref="sfxbom"           name="sfxbom"  />
+      <field field_ref="sfxsum"           name="sfxsum"  />
+      <field field_ref="sfxsni"           name="sfxsni"  />
+      <field field_ref="sfxopw"           name="sfxopw"  />
+      <field field_ref="sfx"              name="sfx"     />
+
+      <field field_ref="hfxsum"           name="hfxsum"  />
+      <field field_ref="hfxbom"           name="hfxbom"  />
+      <field field_ref="hfxbog"           name="hfxbog"  />
+      <field field_ref="hfxdif"           name="hfxdif"  />
+      <field field_ref="hfxopw"           name="hfxopw"  />
+      <field field_ref="hfxout"           name="hfxout"  />
+      <field field_ref="hfxin"            name="hfxin"   />
+      <field field_ref="hfxsnw"           name="hfxsnw"  />
+      <field field_ref="hfxerr"           name="hfxerr"  />
+      <field field_ref="hfxerr_rem"       name="hfxerr_rem"    /> 
+
+      <!-- ice-ocean heat flux from mass exchange -->
+      <field field_ref="hfxdyn"          name="hfxdyn"    />
+      <field field_ref="hfxres"          name="hfxres"    />
+      <field field_ref="hfxthd"          name="hfxthd"    />
+      <!-- ice-atm. heat flux from mass exchange -->
+      <field field_ref="hfxsub"          name="hfxsub"    />
+      <field field_ref="hfxspr"          name="hfxspr"    />
+
+      <!-- diags -->
+      <field field_ref="hfxdhc"          name="hfxdhc"    />
+      <field field_ref="hfxtur"          name="hfxtur"    />
+
+      <field field_ref="isst"             name="sst"      />
+      <field field_ref="isss"             name="sss"      />
+      <field field_ref="micesalt"         name="sisali"   />
+      <field field_ref="micet"            name="sitemp"   />
+      <field field_ref="icest"            name="sistem"   />
+      <field field_ref="icehc"            name="siheco"   />
+      <field field_ref="isnowhc"          name="snheco"   />
+      <field field_ref="miceage"          name="siages"   /> 
+
+      <field field_ref="uice_ipa"         name="sivelu"   />
+      <field field_ref="vice_ipa"         name="sivelv"   />
+      <field field_ref="icevel"           name="sivelo"   />
+      <field field_ref="idive"            name="sidive"   />
+      <field field_ref="ishear"           name="sishea"   />
+      <field field_ref="icestr"           name="sistre"   /> 
+
+      <field field_ref="ibrinv"           name="sibrin"   />
+      <field field_ref="icecolf"          name="sicolf"   />
+
+      <field field_ref="iceage_cat"       name="siagecat" />
+      <field field_ref="iceconc_cat"      name="siconcat" />
+      <field field_ref="icethic_cat"      name="sithicat" />
+      <field field_ref="snowthic_cat"     name="snthicat" />
+      <field field_ref="salinity_cat"     name="salincat" />
+      <field field_ref="brinevol_cat"     name="sibricat" />
+
+    </file>
+
+  </file_group> 
+
+
+  <file_group id="1m" output_freq="1mo" output_level="10" sync_freq="1m" enabled="_1M_ENABLE_"> <!-- real monthly files -->
+
+    <file id="file10" name_suffix="_grid_T" >
+      <field field_ref="e3t" long_name="T-cell thickness" />
+      <field field_ref="botpres"      name="pbo"      long_name="Pressure_at_sea_floor"                                          />
+      <!-- pso : sea_water_pressure_at_sea_water_surface = 0 -->
+      <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                                 />
+      <field field_ref="ssh2"         name="zossq"    long_name="square_of_sea_surface_height_above_geoid"             level="2" />
+
+      <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"   operation="instant" freq_op="1mo" > @toce_e3t / @e3t </field>      
+      <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                              level="1" />
+      <field field_ref="sst2"         name="tossq"    long_name="square_of_sea_surface_temperature"                    level="2" />
+      <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                operation="instant" freq_op="1mo" > @soce_e3t / @e3t </field>       
+      <field field_ref="soce_e3t"                     long_name="salinity * e3t"                    operation="instant" freq_op="1mo" > soce * e3t </field >  
+      <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                                 level="1" />
+      <field field_ref="rhop"         name="rhopoto"  long_name="sea_water_potential_density"                          level="2" />
+      <!-- no agessc : sea_water_age_since_surface_contact -->
+      <!-- no cfc11  : moles_per_unit_mass_of_cfc11_in_sea_water -->
+      <!-- msftbarot : ocean_barotropic_mass_streamfunction : offline -->
+      <!-- mlotst    :           ocean_mixed_layer_thickness_defined_by_sigma_t : must be done offline -->
+      <!-- mlotstsq  : square_of_ocean_mixed_layer_thickness_defined_by_sigma_t : must be done offline -->
+      <field field_ref="mldkz5"       name="omlmax"   long_name="ocean_mixed_layer_thickness_defined_by_mixing_scheme" level="2" operation="maximum" />
+      <field field_ref="mldkz5"       name="mldkz5"   level="2"  />
+      <field field_ref="mldr10_1"     name="mldr10_1" level="2" />
+      <field field_ref="runoffs"      name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
+      <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
+      <!-- wfonocorr : water_flux_into_sea_water_without_flux_correction : emp - erp -->
+      <field field_ref="erp"          name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
+      <field field_ref="qns"          name="nshfls"    long_name="surface_net_downward_non_solar_flux"                    level="1" />
+      <field field_ref="qsr"          name="rsntds"    long_name="surface_net_downward_shortwave_flux"                    level="1" />
+      <field field_ref="qsr3d"        name="rsds"      long_name="downwelling_shortwave_flux_in_sea_water"                level="1" />
+      <field field_ref="qrp"          name="hfcorr"    long_name="heat_flux_correction"                                   level="1" />
+    </file>
+
+    <file id="file11" name_suffix="_grid_U" description="ocean U grid variables" >
+      <field field_ref="e3u"  />
+      <field field_ref="ssu"          name="uos"     long_name="sea_surface_x_velocity"    />
+      <field field_ref="uoce"         name="uo"      long_name="sea_water_x_velocity" operation="instant" freq_op="5d" > @uoce_e3u / @e3u </field>
+      <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
+      <!-- available with key_diaar5 -->
+      <field field_ref="u_masstr"     name="vozomatr"  />
+      <field field_ref="u_heattr"     name="sozohetr"  />
+      <field field_ref="u_salttr"     name="sozosatr"  />
+    </file>
+    
+    <file id="file12" name_suffix="_grid_V" description="ocean V grid variables" >
+      <field field_ref="e3v"  />
+      <field field_ref="ssv"          name="vos"     long_name="sea_surface_y_velocity"    />
+      <field field_ref="voce"         name="vo"      long_name="sea_water_y_velocity" operation="instant" freq_op="5d" > @voce_e3v / @e3v </field>
+      <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
+      <!-- available with key_diaar5 -->
+      <field field_ref="v_masstr"     name="vomematr"  />
+      <field field_ref="v_heattr"     name="somehetr"  />
+      <field field_ref="v_salttr"     name="somesatr"  />
+    </file>
+    
+    <file id="file13" name_suffix="_grid_W" description="ocean W grid variables" >
+      <field field_ref="e3w"  />
+      <field field_ref="woce"         name="wo"      long_name="ocean vertical velocity" operation="instant" freq_op="5d" > @woce_e3w / @e3w </field>
+      <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
+      <field field_ref="w_masstr"     name="vovematr"  />
+    </file>
+
+    <file id="file14" name_suffix="_icemod" description="ice variables" enabled=".true." >
+      <field field_ref="snowthic_cea"    name="snthic"     long_name="surface_snow_thickness"   />
+      <field field_ref="icethic_cea"     name="sithic"     long_name="sea_ice_thickness"        />
+      <field field_ref="icevolu"         name="sivolu" />
+      <field field_ref="snowvol"         name="snvolu" />
+      <field field_ref="iceconc"         name="siconc" />
+
+      <field field_ref="vfxbog"          name="vfxbog" />
+      <field field_ref="vfxdyn"          name="vfxdyn" />
+      <field field_ref="vfxopw"          name="vfxopw" />
+      <field field_ref="vfxsni"          name="vfxsni" />
+      <field field_ref="vfxsum"          name="vfxsum" />
+      <field field_ref="vfxbom"          name="vfxbom" />
+      <field field_ref="vfxres"          name="vfxres" />
+      <field field_ref="vfxice"          name="vfxice" />
+      <field field_ref="vfxsnw"          name="vfxsnw" />
+      <field field_ref="vfxsub"          name="vfxsub" />
+      <field field_ref="vfxspr"          name="vfxspr" />
+
+      <field field_ref="icetrp"          name="sivtrp" />
+      <field field_ref="snwtrp"          name="snvtrp" />
+      <field field_ref="saltrp"          name="saltrp" />
+      <field field_ref="deitrp"          name="deitrp" />
+      <field field_ref="destrp"          name="destrp" />
+
+      <field field_ref="sfxbri"          name="sfxbri" />
+      <field field_ref="sfxdyn"          name="sfxdyn" />
+      <field field_ref="sfxres"          name="sfxres" />
+      <field field_ref="sfxbog"          name="sfxbog" />
+      <field field_ref="sfxbom"          name="sfxbom" />
+      <field field_ref="sfxsum"          name="sfxsum" />
+      <field field_ref="sfxsni"          name="sfxsni" />
+      <field field_ref="sfxopw"          name="sfxopw" />
+      <field field_ref="sfx"             name="sfx"    />
+
+      <field field_ref="hfxsum"          name="hfxsum" />
+      <field field_ref="hfxbom"          name="hfxbom" />
+      <field field_ref="hfxbog"          name="hfxbog" />
+      <field field_ref="hfxdif"          name="hfxdif" />
+      <field field_ref="hfxopw"          name="hfxopw" />
+      <field field_ref="hfxout"          name="hfxout" />
+      <field field_ref="hfxin"           name="hfxin"  />
+      <field field_ref="hfxsnw"          name="hfxsnw" />
+      <field field_ref="hfxerr"          name="hfxerr" />
+      <field field_ref="hfxerr_rem"      name="hfxerr_rem"    />
+
+      <!-- ice-ocean heat flux from mass exchange -->
+      <field field_ref="hfxdyn"          name="hfxdyn"    />
+      <field field_ref="hfxres"          name="hfxres"    />
+      <field field_ref="hfxthd"          name="hfxthd"    />
+      <!-- ice-atm. heat flux from mass exchange -->
+      <field field_ref="hfxsub"          name="hfxsub"    />
+      <field field_ref="hfxspr"          name="hfxspr"    />
+
+      <!-- diags -->
+      <field field_ref="hfxdhc"          name="hfxdhc"    />
+      <field field_ref="hfxtur"          name="hfxtur"    />
+
+      <field field_ref="isst"             name="sst"      />
+      <field field_ref="isss"             name="sss"      />
+      <field field_ref="micesalt"         name="sisali"   />
+      <field field_ref="micet"            name="sitemp"   />
+      <field field_ref="icest"            name="sistem"   />
+      <field field_ref="icehc"            name="siheco"   />
+      <field field_ref="isnowhc"          name="snheco"   />
+      <field field_ref="miceage"          name="siages"   />
+
+      <field field_ref="uice_ipa"         name="sivelu"   />
+      <field field_ref="vice_ipa"         name="sivelv"   />
+      <field field_ref="icevel"           name="sivelo"   />
+      <field field_ref="idive"            name="sidive"   />
+      <field field_ref="ishear"           name="sishea"   />
+      <field field_ref="icestr"           name="sistre"   />
+
+      <field field_ref="ibrinv"           name="sibrin"   />
+      <field field_ref="icecolf"          name="sicolf"   />
+
+      <field field_ref="iceage_cat"       name="siagecat" />
+      <field field_ref="iceconc_cat"      name="siconcat" />
+      <field field_ref="icethic_cat"      name="sithicat" />
+      <field field_ref="snowthic_cat"     name="snthicat" />
+      <field field_ref="salinity_cat"     name="salincat" />
+      <field field_ref="brinevol_cat"     name="sibricat" />
+
+    </file>
+
+    <file id="file15" name_suffix="_scalar" description="scalar variables" enabled=".true." >
+      <field field_ref="voltot"       name="scvoltot"    />
+      <field field_ref="sshtot"       name="scsshtot"    />
+      <field field_ref="sshsteric"    name="scsshste"    />
+      <field field_ref="sshthster"    name="scsshtst"    />
+      <field field_ref="masstot"      name="scmastot"    />
+      <field field_ref="temptot"      name="sctemtot"    />
+      <field field_ref="saltot"       name="scsaltot"    />
+
+      <field field_ref="bgtemper"     name="bgtemper"    />
+      <field field_ref="bgsaline"     name="bgsaline"    />
+      <field field_ref="bgheatco"     name="bgheatco"    />
+      <field field_ref="bgsaltco"     name="bgsaltco"    />
+      <field field_ref="bgvolssh"     name="bgvolssh"    /> 
+      <field field_ref="bgvole3t"     name="bgvole3t"    />
+      <field field_ref="bgfrcvol"     name="bgfrcvol"    />
+      <field field_ref="bgfrctem"     name="bgfrctem"    />
+      <field field_ref="bgfrcsal"     name="bgfrcsal"    />
+
+      <field field_ref="ibgvoltot"    name="ibgvoltot"   />
+      <field field_ref="sbgvoltot"    name="sbgvoltot"   />
+      <field field_ref="ibgarea"      name="ibgarea"     />
+      <field field_ref="ibgsaline"    name="ibgsaline"   />
+      <field field_ref="ibgtemper"    name="ibgtemper"   />
+      <field field_ref="ibgheatco"    name="ibgheatco"   />
+      <field field_ref="sbgheatco"    name="sbgheatco"   />
+      <field field_ref="ibgsaltco"    name="ibgsaltco"   />
+
+      <field field_ref="ibgvfx"       name="ibgvfx"      />
+      <field field_ref="ibgvfxbog"    name="ibgvfxbog"   />
+      <field field_ref="ibgvfxopw"    name="ibgvfxopw"   />
+      <field field_ref="ibgvfxsni"    name="ibgvfxsni"   />
+      <field field_ref="ibgvfxdyn"    name="ibgvfxdyn"   />
+      <field field_ref="ibgvfxbom"    name="ibgvfxbom"   />
+      <field field_ref="ibgvfxsum"    name="ibgvfxsum"   />
+      <field field_ref="ibgvfxres"    name="ibgvfxres"   />
+      <field field_ref="ibgvfxspr"    name="ibgvfxspr"   />
+      <field field_ref="ibgvfxsnw"    name="ibgvfxsnw"   />
+      <field field_ref="ibgvfxsub"    name="ibgvfxsub"   />
+
+      <field field_ref="ibgsfx"       name="ibgsfx"      />
+      <field field_ref="ibgsfxbri"    name="ibgsfxbri"   />
+      <field field_ref="ibgsfxdyn"    name="ibgsfxdyn"   />
+      <field field_ref="ibgsfxres"    name="ibgsfxres"   />
+      <field field_ref="ibgsfxbog"    name="ibgsfxbog"   />
+      <field field_ref="ibgsfxopw"    name="ibgsfxopw"   />
+      <field field_ref="ibgsfxsni"    name="ibgsfxsni"   />
+      <field field_ref="ibgsfxbom"    name="ibgsfxbom"   />
+      <field field_ref="ibgsfxsum"    name="ibgsfxsum"   />
+
+      <field field_ref="ibghfxdhc"    name="ibghfxdhc"   />
+      <field field_ref="ibghfxspr"    name="ibghfxspr"   />
+
+      <field field_ref="ibghfxres"    name="ibghfxres"   />
+      <field field_ref="ibghfxsub"    name="ibghfxsub"   />
+      <field field_ref="ibghfxdyn"    name="ibghfxdyn"   />
+      <field field_ref="ibghfxthd"    name="ibghfxthd"   />
+      <field field_ref="ibghfxsum"    name="ibghfxsum"   />
+      <field field_ref="ibghfxbom"    name="ibghfxbom"   />
+      <field field_ref="ibghfxbog"    name="ibghfxbog"   />
+      <field field_ref="ibghfxdif"    name="ibghfxdif"   />
+      <field field_ref="ibghfxopw"    name="ibghfxopw"   />
+      <field field_ref="ibghfxout"    name="ibghfxout"   />
+      <field field_ref="ibghfxin"    name="ibghfxin"     />
+      <field field_ref="ibghfxsnw"    name="ibghfxsnw"   />
+
+      <field field_ref="ibgfrcvol"    name="ibgfrcvol"   />
+      <field field_ref="ibgfrcsfx"    name="ibgfrcsfx"   />
+      <field field_ref="ibgvolgrm"    name="ibgvolgrm"   />
+
+    </file>
+
+    <file id="file16" name_suffix="_diaptr" description="diaptr variables" >
+      <field field_ref="zomsfglo"   />
+      <field field_ref="zomsfatl"   />
+      <field field_ref="zomsfpac"   />
+      <field field_ref="zomsfind"   />
+      <field field_ref="zomsfipc"   />
+      <field field_ref="zotemglo"   />
+      <field field_ref="zotematl"   />
+      <field field_ref="zotempac"   />
+      <field field_ref="zotemind"   />
+      <field field_ref="zotemipc"   />
+      <field field_ref="zosalglo"   />
+      <field field_ref="zosalatl"   />
+      <field field_ref="zosalpac"   />
+      <field field_ref="zosalind"   />
+      <field field_ref="zosalipc"   />
+      <field field_ref="zosrfglo"   />
+      <field field_ref="zosrfatl"   />
+      <field field_ref="zosrfpac"   />
+      <field field_ref="zosrfind"   />
+      <field field_ref="zosrfipc"   />
+      <field field_ref="sophtadv"   />
+      <field field_ref="sophtldf"   />
+      <field field_ref="sopstadv"   />
+      <field field_ref="sopstldf"   />
+    </file>
+    
+    <!--
+       <file id="file8" name_suffix="_Tides" description="tidal harmonics" >
+	 <field field_ref="M2x"          name="M2x"      long_name="M2 Elevation harmonic real part"                       />
+	 <field field_ref="M2y"          name="M2y"      long_name="M2 Elevation harmonic imaginary part"                  />
+	 <field field_ref="M2x_u"        name="M2x_u"    long_name="M2 current barotrope along i-axis harmonic real part "       />
+	 <field field_ref="M2y_u"        name="M2y_u"    long_name="M2 current barotrope along i-axis harmonic imaginary part "  />
+	 <field field_ref="M2x_v"        name="M2x_v"    long_name="M2 current barotrope along j-axis harmonic real part "       />
+	 <field field_ref="M2y_v"        name="M2y_v"    long_name="M2 current barotrope along j-axis harmonic imaginary part "  />
+       </file>
+       -->
+
+  </file_group>
+
+
+  <file_group id="2m" output_freq="2mo" output_level="10" enabled=".TRUE."/> <!-- real 2m files -->
+  <file_group id="3m" output_freq="3mo" output_level="10" enabled=".TRUE."/> <!-- real 3m files -->
+  <file_group id="4m" output_freq="4mo" output_level="10" enabled=".TRUE."/> <!-- real 4m files -->
+  <file_group id="6m" output_freq="6mo" output_level="10" enabled=".TRUE."/> <!-- real 6m files -->
+
+  <file_group id="1y"  output_freq="1y" sync_freq="1y" output_level="10" enabled=".TRUE."> <!-- real yearly files -->
+
+    <file id="file20" name_suffix="_grid_T" description="ocean T grid variables" >
+      <field field_ref="e3t"  />
+      <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                       />
+      <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                          />
+      <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                />
+      <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"      operation="instant" freq_op="1y" > @toce_e3t / @e3t </field>        
+      <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                   operation="instant" freq_op="1y" > @soce_e3t / @e3t </field>         
+      <field field_ref="sst2"         name="tossq"    long_name="square_of_sea_surface_temperature"             />
+      <field field_ref="ssh2"         name="zossq"    long_name="square_of_sea_surface_height_above_geoid"      />
+      <field field_ref="mldr10_1"     />
+      <field field_ref="mldkz5"       name="omlmax"   long_name="ocean_mixed_layer_thickness_defined_by_mixing_scheme" level="2" operation="maximum" />
+      <field field_ref="runoffs"      name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
+      <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
+      <field field_ref="erp"          name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
+      <field field_ref="qns"          name="nshfls"   long_name="surface_net_downward_non_solar_flux"                     level="1" />
+      <field field_ref="qsr"          name="rsntds"   long_name="surface_net_downward_shortwave_flux"                     level="1" />
+      <field field_ref="qsr3d"        name="rsds"     long_name="downwelling_shortwave_flux_in_sea_water"                 level="1" />
+      <field field_ref="qt"           name="tohfls"   long_name="surface_net_downward_total_heat_flux"          />
+      <field field_ref="saltflx"      name="sosflxdo"   />
+      <field field_ref="taum"         name="taum" />
+      <field field_ref="wspd"         name="sowindsp"   />
+      <field field_ref="precip"       name="soprecip"  />
+      <!-- available with ln_blk_clio or ln_blk_core -->
+      <!-- <field field_ref="qns_oce"      name="sonshdoo"  /> -->
+      <!-- <field field_ref="qlw_oce"      name="solwhdoo"  /> -->
+      <!-- <field field_ref="qsb_oce"      name="sosehdoo"  /> -->
+      <!-- <field field_ref="qla_oce"      name="solahdoo"  /> -->
+      <!-- <field field_ref="taum_oce"     name="sowndsto"  /> -->
+      <!-- ice and snow -->
+      <field field_ref="snowpre"      name="isnowpre"  />
+      <field field_ref="utau_ice"     name="iicestru"  />
+      <field field_ref="vtau_ice"     name="iicestrv"  />
+    </file>
+
+    <file id="file21" name_suffix="_grid_U" description="ocean U grid variables" >
+      <field field_ref="e3u"  />
+      <field field_ref="ssu"          name="uos"     long_name="sea_surface_x_velocity"    />
+      <field field_ref="uoce"         name="uo"      long_name="sea_water_x_velocity"      operation="instant" freq_op="1y" > @uoce_e3u / @e3u </field> 
+      <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
+      <field field_ref="uocetr_eff"   name="uocetr_eff"  />
+    </file>
+
+    <file id="file22" name_suffix="_grid_V" description="ocean V grid variables" >
+      <field field_ref="e3v"  />
+      <field field_ref="ssv"          name="vos"     long_name="sea_surface_y_velocity"    />
+      <field field_ref="voce"         name="vo"      long_name="sea_water_y_velocity"     operation="instant" freq_op="1y" > @voce_e3v / @e3v </field>
+      <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
+      <field field_ref="uocetr_eff"   name="uocetr_eff"  />
+    </file>
+
+    <file id="file23" name_suffix="_grid_W" description="ocean W grid variables" >
+      <field field_ref="e3w"  />
+      <field field_ref="woce"         name="wo"      long_name="ocean vertical velocity"         />
+      <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
+      <field field_ref="wocetr_eff"   name="wocetr_eff"  />
+    </file>
+
+
+  </file_group>
+
+  <file_group id="2y"  output_freq="2y" output_level="10" enabled=".TRUE."/> <!-- real 2y files -->
+  <file_group id="5y"  output_freq="5y" output_level="10" enabled=".TRUE."/> <!-- real 5y files -->
+  <file_group id="10y" output_freq="10y" output_level="10" enabled=".TRUE."/> <!-- real 10y files -->
+
+</file_definition>
