Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/context_nemo-BASIC.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/context_nemo-BASIC.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/context_nemo-BASIC.xml	(revision 11717)
@@ -0,0 +1,46 @@
+<!--
+ ============================================================================================== 
+    NEMO context
+============================================================================================== 
+-->
+<context id="nemo">
+<!-- $id$ -->
+<!-- Fields definition -->
+    <field_definition src="./field_def_nemo-oce.xml"/>   <!--  NEMO ocean dynamics                     -->
+    <field_definition src="./field_def_nemo-ice.xml"/>   <!--  NEMO ocean sea ice                      -->
+<!--    <field_definition src="./field_def_nemo-bgc.xml"/>   <!--  NEMO ocean biogeochemistry with PISCES  -->
+
+
+<!-- Files definition -->
+    <file_definition src="./file_def_nemo-oce-BASIC.xml"/>     <!--  NEMO ocean dynamics                     -->
+    <file_definition src="./file_def_nemo-ice-BASIC.xml"/>     <!--  NEMO ocean sea ice                      -->
+<!--    <file_definition src="./file_def_nemo-bgc.xml"/>     <!--  NEMO ocean biogeochemistry with PISCES  -->
+    <!-- 
+============================================================================================================
+= grid definition = = DO NOT CHANGE =
+============================================================================================================
+    -->
+    
+    <axis_definition>
+      <axis id="deptht" long_name="Vertical T levels" unit="m" positive="down" />
+      <axis id="deptht300" axis_ref="deptht" >
+         <zoom_axis begin="0" n="35" />
+      </axis>
+      <axis id="depthu" long_name="Vertical U levels" unit="m" positive="down" />
+      <axis id="depthv" long_name="Vertical V levels" unit="m" positive="down" />
+      <axis id="depthw" long_name="Vertical W levels" unit="m" positive="down" />
+      <axis id="nfloat" long_name="Float number"      unit="-"                 />
+      <axis id="icbcla"  long_name="Iceberg class"      unit="1"               />
+      <axis id="ncatice" long_name="Ice category"       unit="1"               />
+      <axis id="iax_20C" long_name="20 degC isotherm"   unit="degC"            />
+      <axis id="iax_28C" long_name="28 degC isotherm"   unit="degC"            />
+      <axis id="deptht_surface" axis_ref="deptht" >
+         <zoom_axis begin=" 0 " n=" 1 " />
+      </axis>
+    </axis_definition>
+ 
+    <domain_definition src="./domain_def_nemo.xml"/>
+  
+    <grid_definition src="./grid_def_nemo.xml"/>
+
+</context>
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/context_nemo-CMIP6.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/context_nemo-CMIP6.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/context_nemo-CMIP6.xml	(revision 11717)
@@ -0,0 +1,46 @@
+<!--
+ ============================================================================================== 
+    NEMO context
+============================================================================================== 
+-->
+<context id="nemo">
+<!-- $id$ -->
+<!-- Fields definition -->
+    <field_definition src="./field_def_nemo-oce.xml"/>   <!--  NEMO ocean dynamics                     -->
+    <field_definition src="./field_def_nemo-ice.xml"/>   <!--  NEMO ocean sea ice                      -->
+<!--    <field_definition src="./field_def_nemo-bgc.xml"/>   <!--  NEMO ocean biogeochemistry with PISCES  -->
+
+
+<!-- Files definition -->
+    <file_definition src="./file_def_nemo-oce-CMIP6.xml"/>     <!--  NEMO ocean dynamics                     -->
+    <file_definition src="./file_def_nemo-ice-CMIP6.xml"/>     <!--  NEMO ocean sea ice                      -->
+<!--    <file_definition src="./file_def_nemo-bgc.xml"/>     <!--  NEMO ocean biogeochemistry with PISCES  -->
+    <!-- 
+============================================================================================================
+= grid definition = = DO NOT CHANGE =
+============================================================================================================
+    -->
+    
+    <axis_definition>
+      <axis id="deptht" long_name="Vertical T levels" unit="m" positive="down" />
+      <axis id="deptht300" axis_ref="deptht" >
+         <zoom_axis begin="0" n="35" />
+      </axis>
+      <axis id="depthu" long_name="Vertical U levels" unit="m" positive="down" />
+      <axis id="depthv" long_name="Vertical V levels" unit="m" positive="down" />
+      <axis id="depthw" long_name="Vertical W levels" unit="m" positive="down" />
+      <axis id="nfloat" long_name="Float number"      unit="-"                 />
+      <axis id="icbcla"  long_name="Iceberg class"      unit="1"               />
+      <axis id="ncatice" long_name="Ice category"       unit="1"               />
+      <axis id="iax_20C" long_name="20 degC isotherm"   unit="degC"            />
+      <axis id="iax_28C" long_name="28 degC isotherm"   unit="degC"            />
+      <axis id="deptht_surface" axis_ref="deptht" >
+         <zoom_axis begin=" 0 " n=" 1 " />
+      </axis>
+    </axis_definition>
+ 
+    <domain_definition src="./domain_def_nemo.xml"/>
+  
+    <grid_definition src="./grid_def_nemo.xml"/>
+
+</context>
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/context_nemo-CUSTOM.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/context_nemo-CUSTOM.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/context_nemo-CUSTOM.xml	(revision 11717)
@@ -0,0 +1,46 @@
+<!--
+ ============================================================================================== 
+    NEMO context
+============================================================================================== 
+-->
+<context id="nemo">
+<!-- $id$ -->
+<!-- Fields definition -->
+    <field_definition src="./field_def_nemo-oce.xml"/>   <!--  NEMO ocean dynamics                     -->
+    <field_definition src="./field_def_nemo-ice.xml"/>   <!--  NEMO ocean sea ice                      -->
+<!--    <field_definition src="./field_def_nemo-bgc.xml"/>   <!--  NEMO ocean biogeochemistry with PISCES  -->
+
+
+<!-- Files definition -->
+    <file_definition src="./file_def_nemo-oce.xml"/>     <!--  NEMO ocean dynamics                     -->
+    <file_definition src="./file_def_nemo-ice.xml"/>     <!--  NEMO ocean sea ice                      -->
+<!--    <file_definition src="./file_def_nemo-bgc.xml"/>     <!--  NEMO ocean biogeochemistry with PISCES  -->
+    <!-- 
+============================================================================================================
+= grid definition = = DO NOT CHANGE =
+============================================================================================================
+    -->
+    
+    <axis_definition>
+      <axis id="deptht" long_name="Vertical T levels" unit="m" positive="down" />
+      <axis id="deptht300" axis_ref="deptht" >
+         <zoom_axis begin="0" n="35" />
+      </axis>
+      <axis id="depthu" long_name="Vertical U levels" unit="m" positive="down" />
+      <axis id="depthv" long_name="Vertical V levels" unit="m" positive="down" />
+      <axis id="depthw" long_name="Vertical W levels" unit="m" positive="down" />
+      <axis id="nfloat" long_name="Float number"      unit="-"                 />
+      <axis id="icbcla"  long_name="Iceberg class"      unit="1"               />
+      <axis id="ncatice" long_name="Ice category"       unit="1"               />
+      <axis id="iax_20C" long_name="20 degC isotherm"   unit="degC"            />
+      <axis id="iax_28C" long_name="28 degC isotherm"   unit="degC"            />
+      <axis id="deptht_surface" axis_ref="deptht" >
+         <zoom_axis begin=" 0 " n=" 1 " />
+      </axis>
+    </axis_definition>
+ 
+    <domain_definition src="./domain_def_nemo.xml"/>
+
+    <grid_definition src="./grid_def_nemo.xml"/>
+  
+</context>
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-BASIC-10D.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-BASIC-10D.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-BASIC-10D.xml	(revision 11717)
@@ -0,0 +1,134 @@
+<?xml version="1.0"?>
+    <!-- $id$ -->
+    
+ <!--
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own files for lim3                                =
+=                                         put the variables you want...                                    =
+============================================================================================================
+ -->
+    
+ <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1mo" min_digits="4">
+   
+   <file_group id="10d" output_freq="10d"  output_level="10" enabled=".TRUE.">  <!-- 10d files -->   	
+     <file id="file21" name_suffix="_icemod" description="ice variables" enabled=".true." >
+
+       <!-- ice mask -->
+       <field field_ref="icemask"          name="simsk"   />
+       <field field_ref="icemask05"        name="simsk05" />
+       <field field_ref="icemask15"        name="simsk15" />
+       
+       <!-- general -->
+       <field field_ref="snwvolu"          name="snvolu" />
+       <field field_ref="icethic"          name="sithic" />
+       <field field_ref="icevolu"          name="sivolu" />
+       <field field_ref="iceconc"          name="siconc" />
+       <field field_ref="icesalt"          name="sisali" />
+       <field field_ref="iceapnd"          name="siapnd" />
+       <field field_ref="icevpnd"          name="sivpnd" />
+       <field field_ref="sst_m"            name="sst_m"  />
+       <field field_ref="sss_m"            name="sss_m"  />
+       
+       <!-- heat -->
+       <field field_ref="icetemp"          name="sitemp" />
+       <field field_ref="icettop"          name="sittop" />
+       <field field_ref="icetbot"          name="sitbot" />
+       
+       <!-- momentum -->
+       <field field_ref="uice"             name="sivelu"  />
+       <field field_ref="vice"             name="sivelv"  />
+       <field field_ref="icevel"           name="sivelo"  />
+       <field field_ref="utau_ai"          name="utau_ai" />
+       <field field_ref="vtau_ai"          name="vtau_ai" />
+       <field field_ref="utau_oi"          name="utau_oi" />
+       <field field_ref="vtau_oi"          name="vtau_oi" />
+       
+       <!-- rheology -->
+       <field field_ref="icediv"           name="sidive"  />
+       <field field_ref="iceshe"           name="sishea"  />
+       <field field_ref="icestr"           name="sistre"  />
+       <field field_ref="normstr"          name="normstr" />
+       <field field_ref="sheastr"          name="sheastr" />
+       <field field_ref="isig1"            name="isig1"   />
+       <field field_ref="isig2"            name="isig2"   />
+       <field field_ref="isig3"            name="isig3"   />
+       
+       <!-- heat fluxes -->
+       <field field_ref="qt_oce_ai"        name="qt_oce_ai"  />
+       <field field_ref="qt_atm_oi"        name="qt_atm_oi"  />
+       <field field_ref="qtr_ice_top"      name="qtr_ice_top"/>
+       <field field_ref="qtr_ice_bot"      name="qtr_ice_bot"/>
+       <field field_ref="qt_ice"           name="qt_ice"     />
+       <field field_ref="qsr_ice"          name="qsr_ice"    />
+       <field field_ref="qns_ice"          name="qns_ice"    />
+       <field field_ref="qemp_ice"         name="qemp_ice"   />
+       <field field_ref="albedo"           name="albedo"     />
+       
+       <field field_ref="hfxcndtop"        name="hfxcndtop"  />
+       <field field_ref="hfxcndbot"        name="hfxcndbot"  />
+       <field field_ref="hfxsensib"        name="hfxsensib"  />
+       
+       <!-- salt fluxes -->
+       <field field_ref="sfxice"           name="sfxice" />
+       
+       <!-- mass fluxes -->
+       <field field_ref="vfxice"           name="vfxice" />
+       <field field_ref="vfxsnw"           name="vfxsnw" />
+       
+       <!-- categories -->
+       <field field_ref="icemask_cat"      name="simskcat"/>
+       <field field_ref="snwthic_cat"      name="snthicat"/>
+       <field field_ref="iceconc_cat"      name="siconcat"/>
+       <field field_ref="icethic_cat"      name="sithicat"/>
+       <field field_ref="icesalt_cat"      name="sisalcat"/>
+       <field field_ref="icetemp_cat"      name="sitemcat"/>
+       <field field_ref="snwtemp_cat"      name="sntemcat"/>
+       
+     </file>
+     
+     <file id="file22" name_suffix="_SBC_scalar" description="scalar variables" enabled=".true." >
+       <!-- global contents -->
+       <field field_ref="ibgvol_tot"       name="ibgvol_tot"   />
+       <field field_ref="sbgvol_tot"       name="sbgvol_tot"   />
+       <field field_ref="ibgarea_tot"      name="ibgarea_tot"  />
+       <field field_ref="ibgsalt_tot"      name="ibgsalt_tot"  />
+       <field field_ref="ibgheat_tot"      name="ibgheat_tot"  />
+       <field field_ref="sbgheat_tot"      name="sbgheat_tot"  />
+       
+       <!-- global drifts (conservation checks) -->
+       <field field_ref="ibgvolume"        name="ibgvolume"    />
+       <field field_ref="ibgsaltco"        name="ibgsaltco"    />
+       <field field_ref="ibgheatco"        name="ibgheatco"    />
+       <field field_ref="ibgheatfx"        name="ibgheatfx"    />
+       
+       <!-- global forcings  -->
+       <field field_ref="ibgfrcvoltop"     name="ibgfrcvoltop" />
+       <field field_ref="ibgfrcvolbot"     name="ibgfrcvolbot" />
+       <field field_ref="ibgfrctemtop"     name="ibgfrctemtop" />
+       <field field_ref="ibgfrctembot"     name="ibgfrctembot" />
+       <field field_ref="ibgfrcsal"        name="ibgfrcsal"    />
+       <field field_ref="ibgfrchfxtop"     name="ibgfrchfxtop" />
+       <field field_ref="ibgfrchfxbot"     name="ibgfrchfxbot" />
+     </file>
+     
+   </file_group>
+   
+   <file_group id="1ts" output_freq="1ts" output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->
+   <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="1m"  output_freq="1mo" output_level="10" enabled=".TRUE."/> <!-- real monthly files -->
+   <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"  output_level="10" enabled=".TRUE."/> <!-- real yearly files -->
+   <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>
+ 
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-BASIC-1M.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-BASIC-1M.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-BASIC-1M.xml	(revision 11717)
@@ -0,0 +1,134 @@
+<?xml version="1.0"?>
+    <!-- $id$ -->
+    
+ <!--
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own files for lim3                                =
+=                                         put the variables you want...                                    =
+============================================================================================================
+ -->
+    
+ <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1mo" min_digits="4">
+   
+   <file_group id="1m" output_freq="1mo"  output_level="10" enabled=".TRUE.">  <!-- 1m files -->   	
+     <file id="file21" name_suffix="_icemod" description="ice variables" enabled=".true." >
+
+       <!-- ice mask -->
+       <field field_ref="icemask"          name="simsk"   />
+       <field field_ref="icemask05"        name="simsk05" />
+       <field field_ref="icemask15"        name="simsk15" />
+       
+       <!-- general -->
+       <field field_ref="snwvolu"          name="snvolu" />
+       <field field_ref="icethic"          name="sithic" />
+       <field field_ref="icevolu"          name="sivolu" />
+       <field field_ref="iceconc"          name="siconc" />
+       <field field_ref="icesalt"          name="sisali" />
+       <field field_ref="iceapnd"          name="siapnd" />
+       <field field_ref="icevpnd"          name="sivpnd" />
+       <field field_ref="sst_m"            name="sst_m"  />
+       <field field_ref="sss_m"            name="sss_m"  />
+       
+       <!-- heat -->
+       <field field_ref="icetemp"          name="sitemp" />
+       <field field_ref="icettop"          name="sittop" />
+       <field field_ref="icetbot"          name="sitbot" />
+       
+       <!-- momentum -->
+       <field field_ref="uice"             name="sivelu"  />
+       <field field_ref="vice"             name="sivelv"  />
+       <field field_ref="icevel"           name="sivelo"  />
+       <field field_ref="utau_ai"          name="utau_ai" />
+       <field field_ref="vtau_ai"          name="vtau_ai" />
+       <field field_ref="utau_oi"          name="utau_oi" />
+       <field field_ref="vtau_oi"          name="vtau_oi" />
+       
+       <!-- rheology -->
+       <field field_ref="icediv"           name="sidive"  />
+       <field field_ref="iceshe"           name="sishea"  />
+       <field field_ref="icestr"           name="sistre"  />
+       <field field_ref="normstr"          name="normstr" />
+       <field field_ref="sheastr"          name="sheastr" />
+       <field field_ref="isig1"            name="isig1"   />
+       <field field_ref="isig2"            name="isig2"   />
+       <field field_ref="isig3"            name="isig3"   />
+       
+       <!-- heat fluxes -->
+       <field field_ref="qt_oce_ai"        name="qt_oce_ai"  />
+       <field field_ref="qt_atm_oi"        name="qt_atm_oi"  />
+       <field field_ref="qtr_ice_top"      name="qtr_ice_top"/>
+       <field field_ref="qtr_ice_bot"      name="qtr_ice_bot"/>
+       <field field_ref="qt_ice"           name="qt_ice"     />
+       <field field_ref="qsr_ice"          name="qsr_ice"    />
+       <field field_ref="qns_ice"          name="qns_ice"    />
+       <field field_ref="qemp_ice"         name="qemp_ice"   />
+       <field field_ref="albedo"           name="albedo"     />
+       
+       <field field_ref="hfxcndtop"        name="hfxcndtop"  />
+       <field field_ref="hfxcndbot"        name="hfxcndbot"  />
+       <field field_ref="hfxsensib"        name="hfxsensib"  />
+       
+       <!-- salt fluxes -->
+       <field field_ref="sfxice"           name="sfxice" />
+       
+       <!-- mass fluxes -->
+       <field field_ref="vfxice"           name="vfxice" />
+       <field field_ref="vfxsnw"           name="vfxsnw" />
+       
+       <!-- categories -->
+       <field field_ref="icemask_cat"      name="simskcat"/>
+       <field field_ref="snwthic_cat"      name="snthicat"/>
+       <field field_ref="iceconc_cat"      name="siconcat"/>
+       <field field_ref="icethic_cat"      name="sithicat"/>
+       <field field_ref="icesalt_cat"      name="sisalcat"/>
+       <field field_ref="icetemp_cat"      name="sitemcat"/>
+       <field field_ref="snwtemp_cat"      name="sntemcat"/>
+       
+     </file>
+     
+     <file id="file22" name_suffix="_SBC_scalar" description="scalar variables" enabled=".true." >
+       <!-- global contents -->
+       <field field_ref="ibgvol_tot"       name="ibgvol_tot"   />
+       <field field_ref="sbgvol_tot"       name="sbgvol_tot"   />
+       <field field_ref="ibgarea_tot"      name="ibgarea_tot"  />
+       <field field_ref="ibgsalt_tot"      name="ibgsalt_tot"  />
+       <field field_ref="ibgheat_tot"      name="ibgheat_tot"  />
+       <field field_ref="sbgheat_tot"      name="sbgheat_tot"  />
+       
+       <!-- global drifts (conservation checks) -->
+       <field field_ref="ibgvolume"        name="ibgvolume"    />
+       <field field_ref="ibgsaltco"        name="ibgsaltco"    />
+       <field field_ref="ibgheatco"        name="ibgheatco"    />
+       <field field_ref="ibgheatfx"        name="ibgheatfx"    />
+       
+       <!-- global forcings  -->
+       <field field_ref="ibgfrcvoltop"     name="ibgfrcvoltop" />
+       <field field_ref="ibgfrcvolbot"     name="ibgfrcvolbot" />
+       <field field_ref="ibgfrctemtop"     name="ibgfrctemtop" />
+       <field field_ref="ibgfrctembot"     name="ibgfrctembot" />
+       <field field_ref="ibgfrcsal"        name="ibgfrcsal"    />
+       <field field_ref="ibgfrchfxtop"     name="ibgfrchfxtop" />
+       <field field_ref="ibgfrchfxbot"     name="ibgfrchfxbot" />
+     </file>
+     
+   </file_group>
+   
+   <file_group id="1ts" output_freq="1ts" output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->
+   <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="1m"  output_freq="1mo" output_level="10" enabled=".TRUE."/> <!-- real monthly files -->
+   <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"  output_level="10" enabled=".TRUE."/> <!-- real yearly files -->
+   <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>
+ 
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-BASIC-INVALID_PERIOD.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-BASIC-INVALID_PERIOD.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-BASIC-INVALID_PERIOD.xml	(revision 11717)
@@ -0,0 +1,4 @@
+You can't use the standard diagnostic options with the current cycling period.
+Choose the "Custom" option, copy the file_def*.xml files that
+you want to use into the Rose app and adjust the meaning period
+accordingly. 
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-CMIP6-10D.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-CMIP6-10D.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-CMIP6-10D.xml	(revision 11717)
@@ -0,0 +1,134 @@
+<?xml version="1.0"?>
+    <!-- $id$ -->
+    
+ <!--
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own files for lim3                                =
+=                                         put the variables you want...                                    =
+============================================================================================================
+ -->
+    
+ <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1mo" min_digits="4">
+   
+   <file_group id="10d" output_freq="10d"  output_level="10" enabled=".TRUE.">  <!-- 10d files -->   	
+     <file id="file21" name_suffix="_icemod" description="ice variables" enabled=".true." >
+
+       <!-- ice mask -->
+       <field field_ref="icemask"          name="simsk"   />
+       <field field_ref="icemask05"        name="simsk05" />
+       <field field_ref="icemask15"        name="simsk15" />
+       
+       <!-- general -->
+       <field field_ref="snwvolu"          name="snvolu" />
+       <field field_ref="icethic"          name="sithic" />
+       <field field_ref="icevolu"          name="sivolu" />
+       <field field_ref="iceconc"          name="siconc" />
+       <field field_ref="icesalt"          name="sisali" />
+       <field field_ref="iceapnd"          name="siapnd" />
+       <field field_ref="icevpnd"          name="sivpnd" />
+       <field field_ref="sst_m"            name="sst_m"  />
+       <field field_ref="sss_m"            name="sss_m"  />
+       
+       <!-- heat -->
+       <field field_ref="icetemp"          name="sitemp" />
+       <field field_ref="icettop"          name="sittop" />
+       <field field_ref="icetbot"          name="sitbot" />
+       
+       <!-- momentum -->
+       <field field_ref="uice"             name="sivelu"  />
+       <field field_ref="vice"             name="sivelv"  />
+       <field field_ref="icevel"           name="sivelo"  />
+       <field field_ref="utau_ai"          name="utau_ai" />
+       <field field_ref="vtau_ai"          name="vtau_ai" />
+       <field field_ref="utau_oi"          name="utau_oi" />
+       <field field_ref="vtau_oi"          name="vtau_oi" />
+       
+       <!-- rheology -->
+       <field field_ref="icediv"           name="sidive"  />
+       <field field_ref="iceshe"           name="sishea"  />
+       <field field_ref="icestr"           name="sistre"  />
+       <field field_ref="normstr"          name="normstr" />
+       <field field_ref="sheastr"          name="sheastr" />
+       <field field_ref="isig1"            name="isig1"   />
+       <field field_ref="isig2"            name="isig2"   />
+       <field field_ref="isig3"            name="isig3"   />
+       
+       <!-- heat fluxes -->
+       <field field_ref="qt_oce_ai"        name="qt_oce_ai"  />
+       <field field_ref="qt_atm_oi"        name="qt_atm_oi"  />
+       <field field_ref="qtr_ice_top"      name="qtr_ice_top"/>
+       <field field_ref="qtr_ice_bot"      name="qtr_ice_bot"/>
+       <field field_ref="qt_ice"           name="qt_ice"     />
+       <field field_ref="qsr_ice"          name="qsr_ice"    />
+       <field field_ref="qns_ice"          name="qns_ice"    />
+       <field field_ref="qemp_ice"         name="qemp_ice"   />
+       <field field_ref="albedo"           name="albedo"     />
+       
+       <field field_ref="hfxcndtop"        name="hfxcndtop"  />
+       <field field_ref="hfxcndbot"        name="hfxcndbot"  />
+       <field field_ref="hfxsensib"        name="hfxsensib"  />
+       
+       <!-- salt fluxes -->
+       <field field_ref="sfxice"           name="sfxice" />
+       
+       <!-- mass fluxes -->
+       <field field_ref="vfxice"           name="vfxice" />
+       <field field_ref="vfxsnw"           name="vfxsnw" />
+       
+       <!-- categories -->
+       <field field_ref="icemask_cat"      name="simskcat"/>
+       <field field_ref="snwthic_cat"      name="snthicat"/>
+       <field field_ref="iceconc_cat"      name="siconcat"/>
+       <field field_ref="icethic_cat"      name="sithicat"/>
+       <field field_ref="icesalt_cat"      name="sisalcat"/>
+       <field field_ref="icetemp_cat"      name="sitemcat"/>
+       <field field_ref="snwtemp_cat"      name="sntemcat"/>
+       
+     </file>
+     
+     <file id="file22" name_suffix="_SBC_scalar" description="scalar variables" enabled=".true." >
+       <!-- global contents -->
+       <field field_ref="ibgvol_tot"       name="ibgvol_tot"   />
+       <field field_ref="sbgvol_tot"       name="sbgvol_tot"   />
+       <field field_ref="ibgarea_tot"      name="ibgarea_tot"  />
+       <field field_ref="ibgsalt_tot"      name="ibgsalt_tot"  />
+       <field field_ref="ibgheat_tot"      name="ibgheat_tot"  />
+       <field field_ref="sbgheat_tot"      name="sbgheat_tot"  />
+       
+       <!-- global drifts (conservation checks) -->
+       <field field_ref="ibgvolume"        name="ibgvolume"    />
+       <field field_ref="ibgsaltco"        name="ibgsaltco"    />
+       <field field_ref="ibgheatco"        name="ibgheatco"    />
+       <field field_ref="ibgheatfx"        name="ibgheatfx"    />
+       
+       <!-- global forcings  -->
+       <field field_ref="ibgfrcvoltop"     name="ibgfrcvoltop" />
+       <field field_ref="ibgfrcvolbot"     name="ibgfrcvolbot" />
+       <field field_ref="ibgfrctemtop"     name="ibgfrctemtop" />
+       <field field_ref="ibgfrctembot"     name="ibgfrctembot" />
+       <field field_ref="ibgfrcsal"        name="ibgfrcsal"    />
+       <field field_ref="ibgfrchfxtop"     name="ibgfrchfxtop" />
+       <field field_ref="ibgfrchfxbot"     name="ibgfrchfxbot" />
+     </file>
+     
+   </file_group>
+   
+   <file_group id="1ts" output_freq="1ts" output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->
+   <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="1m"  output_freq="1mo" output_level="10" enabled=".TRUE."/> <!-- real monthly files -->
+   <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"  output_level="10" enabled=".TRUE."/> <!-- real yearly files -->
+   <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>
+ 
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-CMIP6-1M.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-CMIP6-1M.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-CMIP6-1M.xml	(revision 11717)
@@ -0,0 +1,134 @@
+<?xml version="1.0"?>
+    <!-- $id$ -->
+    
+ <!--
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own files for lim3                                =
+=                                         put the variables you want...                                    =
+============================================================================================================
+ -->
+    
+ <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1mo" min_digits="4">
+   
+   <file_group id="1m" output_freq="1mo"  output_level="10" enabled=".TRUE.">  <!-- 1m files -->   	
+     <file id="file21" name_suffix="_icemod" description="ice variables" enabled=".true." >
+
+       <!-- ice mask -->
+       <field field_ref="icemask"          name="simsk"   />
+       <field field_ref="icemask05"        name="simsk05" />
+       <field field_ref="icemask15"        name="simsk15" />
+       
+       <!-- general -->
+       <field field_ref="snwvolu"          name="snvolu" />
+       <field field_ref="icethic"          name="sithic" />
+       <field field_ref="icevolu"          name="sivolu" />
+       <field field_ref="iceconc"          name="siconc" />
+       <field field_ref="icesalt"          name="sisali" />
+       <field field_ref="iceapnd"          name="siapnd" />
+       <field field_ref="icevpnd"          name="sivpnd" />
+       <field field_ref="sst_m"            name="sst_m"  />
+       <field field_ref="sss_m"            name="sss_m"  />
+       
+       <!-- heat -->
+       <field field_ref="icetemp"          name="sitemp" />
+       <field field_ref="icettop"          name="sittop" />
+       <field field_ref="icetbot"          name="sitbot" />
+       
+       <!-- momentum -->
+       <field field_ref="uice"             name="sivelu"  />
+       <field field_ref="vice"             name="sivelv"  />
+       <field field_ref="icevel"           name="sivelo"  />
+       <field field_ref="utau_ai"          name="utau_ai" />
+       <field field_ref="vtau_ai"          name="vtau_ai" />
+       <field field_ref="utau_oi"          name="utau_oi" />
+       <field field_ref="vtau_oi"          name="vtau_oi" />
+       
+       <!-- rheology -->
+       <field field_ref="icediv"           name="sidive"  />
+       <field field_ref="iceshe"           name="sishea"  />
+       <field field_ref="icestr"           name="sistre"  />
+       <field field_ref="normstr"          name="normstr" />
+       <field field_ref="sheastr"          name="sheastr" />
+       <field field_ref="isig1"            name="isig1"   />
+       <field field_ref="isig2"            name="isig2"   />
+       <field field_ref="isig3"            name="isig3"   />
+       
+       <!-- heat fluxes -->
+       <field field_ref="qt_oce_ai"        name="qt_oce_ai"  />
+       <field field_ref="qt_atm_oi"        name="qt_atm_oi"  />
+       <field field_ref="qtr_ice_top"      name="qtr_ice_top"/>
+       <field field_ref="qtr_ice_bot"      name="qtr_ice_bot"/>
+       <field field_ref="qt_ice"           name="qt_ice"     />
+       <field field_ref="qsr_ice"          name="qsr_ice"    />
+       <field field_ref="qns_ice"          name="qns_ice"    />
+       <field field_ref="qemp_ice"         name="qemp_ice"   />
+       <field field_ref="albedo"           name="albedo"     />
+       
+       <field field_ref="hfxcndtop"        name="hfxcndtop"  />
+       <field field_ref="hfxcndbot"        name="hfxcndbot"  />
+       <field field_ref="hfxsensib"        name="hfxsensib"  />
+       
+       <!-- salt fluxes -->
+       <field field_ref="sfxice"           name="sfxice" />
+       
+       <!-- mass fluxes -->
+       <field field_ref="vfxice"           name="vfxice" />
+       <field field_ref="vfxsnw"           name="vfxsnw" />
+       
+       <!-- categories -->
+       <field field_ref="icemask_cat"      name="simskcat"/>
+       <field field_ref="snwthic_cat"      name="snthicat"/>
+       <field field_ref="iceconc_cat"      name="siconcat"/>
+       <field field_ref="icethic_cat"      name="sithicat"/>
+       <field field_ref="icesalt_cat"      name="sisalcat"/>
+       <field field_ref="icetemp_cat"      name="sitemcat"/>
+       <field field_ref="snwtemp_cat"      name="sntemcat"/>
+       
+     </file>
+     
+     <file id="file22" name_suffix="_SBC_scalar" description="scalar variables" enabled=".true." >
+       <!-- global contents -->
+       <field field_ref="ibgvol_tot"       name="ibgvol_tot"   />
+       <field field_ref="sbgvol_tot"       name="sbgvol_tot"   />
+       <field field_ref="ibgarea_tot"      name="ibgarea_tot"  />
+       <field field_ref="ibgsalt_tot"      name="ibgsalt_tot"  />
+       <field field_ref="ibgheat_tot"      name="ibgheat_tot"  />
+       <field field_ref="sbgheat_tot"      name="sbgheat_tot"  />
+       
+       <!-- global drifts (conservation checks) -->
+       <field field_ref="ibgvolume"        name="ibgvolume"    />
+       <field field_ref="ibgsaltco"        name="ibgsaltco"    />
+       <field field_ref="ibgheatco"        name="ibgheatco"    />
+       <field field_ref="ibgheatfx"        name="ibgheatfx"    />
+       
+       <!-- global forcings  -->
+       <field field_ref="ibgfrcvoltop"     name="ibgfrcvoltop" />
+       <field field_ref="ibgfrcvolbot"     name="ibgfrcvolbot" />
+       <field field_ref="ibgfrctemtop"     name="ibgfrctemtop" />
+       <field field_ref="ibgfrctembot"     name="ibgfrctembot" />
+       <field field_ref="ibgfrcsal"        name="ibgfrcsal"    />
+       <field field_ref="ibgfrchfxtop"     name="ibgfrchfxtop" />
+       <field field_ref="ibgfrchfxbot"     name="ibgfrchfxbot" />
+     </file>
+     
+   </file_group>
+   
+   <file_group id="1ts" output_freq="1ts" output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->
+   <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="1m"  output_freq="1mo" output_level="10" enabled=".TRUE."/> <!-- real monthly files -->
+   <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"  output_level="10" enabled=".TRUE."/> <!-- real yearly files -->
+   <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>
+ 
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-CMIP6-INVALID_PERIOD.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-CMIP6-INVALID_PERIOD.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-ice-CMIP6-INVALID_PERIOD.xml	(revision 11717)
@@ -0,0 +1,4 @@
+You can't use the standard diagnostic options with the current cycling period.
+Choose the "Custom" option, copy the file_def*.xml files that
+you want to use into the Rose app and adjust the meaning period
+accordingly. 
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-BASIC-10D.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-BASIC-10D.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-BASIC-10D.xml	(revision 11717)
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+
+<!--
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own filesfor ocean dynamics context                                         =
+=                                         put the variables you want...                                    =
+============================================================================================================
+    -->
+   
+    <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1d" min_digits="4">
+    
+      <file_group id="1ts" output_freq="1ts"  output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->
+
+      <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="10d" output_freq="10d" output_level="10" split_freq="10d" enabled=".TRUE."> <!-- real 10-daily files -->
+
+        <file id="file8" name_suffix="_grid_T" >
+	  <field field_ref="e3t" long_name="T-cell thickness" />
+          <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"       />
+          <field field_ref="ssh2"         name="zossq"    standard_name="square_of_sea_surface_height_above_geoid" long_name="Square of Sea Surface Height Above Geoid"  />
+          <field field_ref="sst"          name="tos"   standard_name="sea_surface_temperature"                                 />
+          <field field_ref="sss"          name="sos"   standard_name="sea_surface_salinity"                                    />
+          <field field_ref="toce"         name="thetao"   operation="average" freq_op="10d" > @toce_e3t / @e3t </field>
+          <field field_ref="soce"         name="so"       operation="average" freq_op="10d" > @soce_e3t / @e3t </field>
+          <field field_ref="mldzint_1"    name="somxzint1"         />
+	  <field field_ref="qt"           name="hfds"     standard_name="surface_downward_heat_flux_in_sea_water"  />
+	  <field field_ref="qsr3d"        name="rsdo"     standard_name="downwelling_shortwave_flux_in_sea_water"  />
+	  <field field_ref="empmr"        name="sowaflup" standard_name="water_flux_out_of_sea_ice_and_sea_water"  />
+          <field field_ref="ice_cover"    name="soicecov" standard_name="sea_ice_area_fraction"                                   />
+          <field field_ref="berg_melt"       name="ficeberg"     standard_name="water_flux_into_sea_water_from_icebergs"      />
+          <field field_ref="berg_melt_qlat"  name="berg_latent_heat_flux"     standard_name="latent_heat_flux_from_icebergs"                                 />
+	  <field field_ref="emp_oce"      name="soemp_oce"  />
+	  <field field_ref="emp_ice"      name="soemp_ice"  />
+	  <field field_ref="snowpre"      name="sosnowpre"  />
+	  <field field_ref="precip"       name="soprecip"  />
+	  <field field_ref="fmmflx"       name="sofmmflx"  />
+	  <field field_ref="runoffs"      name="sorunoff"  />
+	  <field field_ref="erp"          name="so_erp"  />
+	  <field field_ref="saltflx"      name="sosaltflx"  />
+	  <field field_ref="qlatisf"      name="soqlatisf"  />
+	  <field field_ref="qhcisf"       name="soqhcisf"  />
+	  <field field_ref="fwfisf"       name="sofwfisf"  />
+        </file>
+
+	<file id="file9" name_suffix="_grid_U" description="ocean U grid variables" >
+	  <field field_ref="e3u"  long_name="U-cell thickness" />
+          <field field_ref="ssu"          name="sozocrtx"   standard_name="sea_surface_eastward_sea_water_velocity"                 />
+          <field field_ref="uoce"         name="uo"      operation="average" freq_op="10d" > @uoce_e3u / @e3u </field>
+          <field field_ref="uoce"         name="u2o" standard_name="square_of_sea_water_x_velocity" long_name="UU"  operation="average" freq_op="10d" > @uoce2_e3u / @e3u </field>
+	  <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
+	</file>
+	
+	<file id="file10" name_suffix="_grid_V" description="ocean V grid variables" >
+	  <field field_ref="e3v" long_name="V-cell thickness"  />
+          <field field_ref="ssv"          name="somecrty"   standard_name="sea_surface_northward_sea_water_velocity"                 />
+          <field field_ref="voce"         name="vo"      operation="average" freq_op="10d" > @voce_e3v / @e3v </field>
+          <field field_ref="voce"         name="v2o" standard_name="square_of_sea_water_y_velocity" long_name="VV"  operation="average" freq_op="10d" > @voce2_e3v / @e3v </field>
+	  <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
+	</file>
+	
+	<file id="file11" name_suffix="_grid_W" description="ocean W grid variables" >
+	  <field field_ref="e3w" long_name="W-cell thickness"  />
+	  <field field_ref="woce"         name="wo"       />
+	  <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
+	  <field field_ref="avm"          name="avm"      />
+	</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="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>
+    
+
+
+
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-BASIC-1M.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-BASIC-1M.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-BASIC-1M.xml	(revision 11717)
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+
+<!--
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own filesfor ocean dynamics context                                         =
+=                                         put the variables you want...                                    =
+============================================================================================================
+    -->
+   
+    <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1d" min_digits="4">
+    
+      <file_group id="1ts" output_freq="1ts"  output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->
+
+      <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="1m" output_freq="1mo" output_level="10" split_freq="1mo" enabled=".TRUE."> <!-- real monthly files -->
+
+        <file id="file8" name_suffix="_grid_T" >
+	  <field field_ref="e3t" long_name="T-cell thickness" />
+          <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"       />
+          <field field_ref="ssh2"         name="zossq"    standard_name="square_of_sea_surface_height_above_geoid" long_name="Square of Sea Surface Height Above Geoid"  />
+          <field field_ref="sst"          name="tos"   standard_name="sea_surface_temperature"                                 />
+          <field field_ref="sss"          name="sos"   standard_name="sea_surface_salinity"                                    />
+          <field field_ref="toce"         name="thetao"   operation="average" freq_op="1mo" > @toce_e3t / @e3t </field>
+          <field field_ref="soce"         name="so"       operation="average" freq_op="1mo" > @soce_e3t / @e3t </field>
+          <field field_ref="mldzint_1"    name="somxzint1"         />
+	  <field field_ref="qt"           name="hfds"     standard_name="surface_downward_heat_flux_in_sea_water"  />
+	  <field field_ref="qsr3d"        name="rsdo"     standard_name="downwelling_shortwave_flux_in_sea_water"  />
+	  <field field_ref="empmr"        name="sowaflup" standard_name="water_flux_out_of_sea_ice_and_sea_water"  />
+          <field field_ref="ice_cover"    name="soicecov" standard_name="sea_ice_area_fraction"                                   />
+          <field field_ref="berg_melt"       name="ficeberg"     standard_name="water_flux_into_sea_water_from_icebergs"      />
+          <field field_ref="berg_melt_qlat"  name="berg_latent_heat_flux"     standard_name="latent_heat_flux_from_icebergs"                                 />
+	  <field field_ref="emp_oce"      name="soemp_oce"  />
+	  <field field_ref="emp_ice"      name="soemp_ice"  />
+	  <field field_ref="snowpre"      name="sosnowpre"  />
+	  <field field_ref="precip"       name="soprecip"  />
+	  <field field_ref="fmmflx"       name="sofmmflx"  />
+	  <field field_ref="runoffs"      name="sorunoff"  />
+	  <field field_ref="erp"          name="so_erp"  />
+	  <field field_ref="saltflx"      name="sosaltflx"  />
+	  <field field_ref="qlatisf"      name="soqlatisf"  />
+	  <field field_ref="qhcisf"       name="soqhcisf"  />
+	  <field field_ref="fwfisf"       name="sofwfisf"  />
+        </file>
+
+	<file id="file9" name_suffix="_grid_U" description="ocean U grid variables" >
+	  <field field_ref="e3u"  long_name="U-cell thickness" />
+          <field field_ref="ssu"          name="sozocrtx"   standard_name="sea_surface_eastward_sea_water_velocity"                 />
+          <field field_ref="uoce"         name="uo"      operation="average" freq_op="1mo" > @uoce_e3u / @e3u </field>
+          <field field_ref="uoce"         name="u2o" standard_name="square_of_sea_water_x_velocity" long_name="UU"  operation="average" freq_op="1mo" > @uoce2_e3u / @e3u </field>
+	  <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
+	</file>
+	
+	<file id="file10" name_suffix="_grid_V" description="ocean V grid variables" >
+	  <field field_ref="e3v" long_name="V-cell thickness"  />
+          <field field_ref="ssv"          name="somecrty"   standard_name="sea_surface_northward_sea_water_velocity"                 />
+          <field field_ref="voce"         name="vo"      operation="average" freq_op="1mo" > @voce_e3v / @e3v </field>
+          <field field_ref="voce"         name="v2o" standard_name="square_of_sea_water_y_velocity" long_name="VV"  operation="average" freq_op="1mo" > @voce2_e3v / @e3v </field>
+	  <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
+	</file>
+	
+	<file id="file11" name_suffix="_grid_W" description="ocean W grid variables" >
+	  <field field_ref="e3w" long_name="W-cell thickness"  />
+	  <field field_ref="woce"         name="wo"       />
+	  <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
+	  <field field_ref="avm"          name="avm"      />
+	</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="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>
+    
+
+
+
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-BASIC-INVALID_PERIOD.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-BASIC-INVALID_PERIOD.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-BASIC-INVALID_PERIOD.xml	(revision 11717)
@@ -0,0 +1,4 @@
+You can't use the standard diagnostic options with the current cycling period.
+Choose the "Custom" option, copy the file_def*.xml files that
+you want to use into the Rose app and adjust the meaning period
+accordingly. 
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-CMIP6-10D.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-CMIP6-10D.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-CMIP6-10D.xml	(revision 11717)
@@ -0,0 +1,337 @@
+<?xml version="1.0"?>
+
+<!--
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own filesfor ocean dynamics context                                         =
+=                                         put the variables you want...                                    =
+============================================================================================================
+    -->
+   
+    <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1d" min_digits="4">
+    
+      <file_group id="1ts" output_freq="1ts"  output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->
+
+      <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=".TRUE.">  <!-- 1d files -->   
+
+	<file id="file1" name_suffix="_grid_T" description="ocean T grid variables" >
+          <field field_ref="sst"          name="tos"   standard_name="sea_surface_temperature"                                 />
+          <field field_ref="sst2"          name="tossq"   />
+          <field field_ref="sss"         name="sossq" long_name="Square of Sea Surface Salinity"   standard_name="square_of_sea_surface_Salinity"   unit="1e-06"     > sss * sss </field >
+          <field field_ref="sss"          name="sos"   standard_name="sea_surface_salinity"                                    />
+          <field field_ref="mldr0_3"     name="mlotst"   long_name="Ocean Mixed Layer Thickness Defined by Sigma T"         />
+	  <field field_ref="ssh"       name="zos"   standard_name="sea_surface_height_above_geoid" long_name="Sea Surface Height Above Geoid"      />
+<!-- TO FIX
+          <field field_ref="20d"          name="t20d"  standard_name="depth_of_isosurface_of_sea_water_potential_temperature" />
+-->
+	</file>
+	
+	<file id="file2" name_suffix="_grid_U" description="ocean U grid variables" enabled=".FALSE." >
+          <field field_ref="ssu"          name="sozocrtx"   standard_name="sea_surface_eastward_sea_water_velocity"                 />
+	  <field field_ref="utau"         name="sozotaux"   standard_name="surface_downward_x_stress" />
+	</file>
+	
+	<file id="file3" name_suffix="_grid_V" description="ocean V grid variables"  enabled=".FALSE." >
+          <field field_ref="ssv"          name="somecrty"   standard_name="sea_surface_northward_sea_water_velocity"                 />
+	  <field field_ref="vtau"         name="sometauy"   standard_name="surface_downward_y_stress" />
+	</file>
+
+        <file id="file9" name_suffix="_scalar" description="scalar variables"  enabled=".FALSE." >
+          <field field_ref="sshthster"    name="scsshtst"   />
+          <field field_ref="voltot"       name="scvoltot"   />
+        </file>
+
+      </file_group>
+
+      <file_group id="10d" output_freq="10d"  output_level="10" enabled=".TRUE.">  <!-- 10d files -->   
+
+	<file id="file4" name_suffix="_grid_T" description="ocean T grid variables" >
+          <field field_ref="e3t"          name="thkcello"        standard_name="cell_thickness" />
+<!-- Is this dangerous to include rho0 here as a hard coded value -->
+          <field field_ref="e3t"          name="masscello"        standard_name="sea_water_mass_per_unit_area" unit="kg/m2" long_name="Ocean Grid-Cell Mass per area" > @e3t * 1026.0 </field> 
+          <field field_ref="tpt_dep"      name="zfull"        />
+<!-- TO FIX
+          <field field_ref="20d"          name="t20d"  standard_name="depth_of_isosurface_of_sea_water_potential_temperature" />
+-->
+          <field field_ref="toce"         name="thetao"       operation="average" freq_op="10d" > @toce_e3t / @e3t </field>
+<!-- TO FIX
+          <field field_ref="toce_vmean"   name="thetaot"   />
+          <field field_ref="toce_vmean300"   name="thetaot300"   />
+-->
+          <field field_ref="soce"         name="so"     operation="average" freq_op="10d" > @soce_e3t / @e3t </field>
+	  <field field_ref="ssh"       name="zos"   standard_name="sea_surface_height_above_geoid" long_name="Sea Surface Height Above Geoid"      />
+          <field field_ref="ssh2"      name="zossq"  standard_name="square_of_sea_surface_height_above_geoid" long_name="Square of Sea Surface Height Above Geoid"  />
+	  <field field_ref="runoffs"      name="friver"   standard_name="water_flux_into_sea_water_from_rivers"                     />
+	  <field field_ref="qt"           name="hfds"   standard_name="surface_downward_heat_flux_in_sea_water"                     />
+	  <field field_ref="qsr3d"        name="rsdo"   standard_name="downwelling_shortwave_flux_in_sea_water"                     />
+          <field field_ref="mldr0_3"      name="mlotst"   long_name="Ocean Mixed Layer Thickness Defined by Sigma T"         />
+          <field field_ref="mldr0_3"      name="mlotstsq"  long_name="Square of Ocean Mixed Layer Thickness Defined by Sigma T"  standard_name="square_of_ocean_mixed_layer_thickness_defined_by_sigma_theta" > mldr0_3 * mldr0_3 </field>
+          <field field_ref="mldr0_3"      name="mlotstmax"   long_name="Ocean Mixed Layer Thickness Defined by Sigma T" operation="maximum"        />
+          <field field_ref="mldr0_3"      name="mlotstmin"   long_name="Ocean Mixed Layer Thickness Defined by Sigma T" operation="minimum"        />
+          <field field_ref="berg_melt"       name="ficeberg"     standard_name="water_flux_into_sea_water_from_icebergs"      />
+          <field field_ref="berg_melt_qlat"  name="berg_latent_heat_flux"     standard_name="latent_heat_flux_from_icebergs"                                 />
+          <field field_ref="botpres"      name="pbo"                                                                                />
+          <field field_ref="sst"          name="tos"   standard_name="sea_surface_temperature"                                 />
+          <field field_ref="sst2"          name="tossq"   />
+          <field field_ref="sss"          name="sos"   standard_name="sea_surface_salinity"                                    />
+          <field field_ref="sss"         name="sossq" long_name="Square of Sea Surface Salinity"   standard_name="square_of_sea_surface_Salinity"   unit="1e-06"     > sss * sss </field >
+<!-- TO FIX
+          <field field_ref="rain_ao_cea" name="pr" standard_name="rainfall_flux" long_name="Rainfall Flux" > @rain_ao_cea </field>
+-->
+          <field field_ref="evap_ao_cea" name="evs" standard_name="water_evaporation_flux" long_name="Water Evaporation Flux Where Ice Free Ocean over Sea" />
+          <field field_ref="snow_ao_cea" name="prsn" standard_name="snowfall_flux" long_name="Snowfall Flux" />
+          <field field_ref="hflx_rain_cea" name="hfrainds" long_name="Temperature Flux due to Rain Expressed as Heat Flux In To Sea Water" standard_name="temperature_flux_due_to_rain_expressed_as_heat_flux_into_sea_water" > hflx_rain_cea </field> 
+          <field field_ref="hflx_evap_cea" name="hfevapds" long_name="Temperature Flux due to Evaporation Expressed as Heat Flux Out of Sea Water" standard_name="temperature_flux_due_to_evaporation_expressed_as_heat_flux_out_of_sea_water" />
+          <field field_ref="hflx_rnf_cea" name="hflx_rnf" long_name="Temperature Flux due to Runoff Expressed as Heat Flux into  Sea Water" standard_name="temperature_flux_due_to_runoff_expressed_as_heat_flux_into_sea_water" > hflx_rnf_cea </field> 
+          <field field_ref="saltflx"      name="sfdsi" standard_name="downward_sea_ice_basal_salt_flux" />
+          <field field_ref="fmmflx"       name="fsitherm"      unit="kg/m2/s"   />
+          <field field_ref = "empmr" >@empmr + @fwfisf </field>
+<!-- TO FIX
+          <field field_ref="Age" name="agessc" />
+-->
+          <field field_ref="tnpeo" />
+          <field field_ref="snowpre" name="snowpre" />
+          <field field_ref="snow_ai_cea" name="snow_ai_cea" />
+	  <field field_ref="empmr"        name="sowaflup"   standard_name="water_flux_out_of_sea_ice_and_sea_water"                 />
+	  <field field_ref="saltflx"      name="sosafldo"   standard_name="salt_flux_into_sea_water"                                />
+          <field field_ref="mldkz5"       name="somixhgt"   standard_name="ocean_mixed_layer_thickness_defined_by_vertical_tracer_diffusivity"   />
+          <field field_ref="mldr10_1"     name="somxl010"   standard_name="ocean_mixed_layer_thickness_defined_by_sigma_theta"      />
+          <field field_ref="mldzint_1"    name="somxzint1"   standard_name="ocean_mixed_layer_thickness_defined_by_sigma_theta"      />
+          <field field_ref="ice_cover"    name="soicecov"   standard_name="sea_ice_area_fraction"                                   />
+          <field field_ref="wspd"         name="sowindsp"   standard_name="wind_speed"                                              />          
+          <field field_ref="qlatisf"         name="sohflisf"   standard_name=""                                                        />
+          <field field_ref="qlatisf3d"         name="vohflisf"   standard_name=""                                                        />
+          <field field_ref="qhcisf"         name="sohfcisf"   standard_name=""                                                        />
+          <field field_ref="qhcisf3d"         name="vohfcisf"   standard_name=""                                                        />
+          <field field_ref="fwfisf"       name="sowflisf"   standard_name=""                                                        />
+          <field field_ref="fwfisf3d"     name="vowflisf"   standard_name=""                                                        />
+<!-- TO FIX
+          <field field_ref="ketrd_ldf_vsum"     name="dispkexyfo"   standard_name="Dissipation of kinetic energy by lateral viscosity" grid_ref="vert_sum"/>
+-->
+          <field field_ref="tosmint"       name="opottempmint" />
+          <field field_ref="somint"       name="somint" />
+<!-- TO FIX
+          <field field_ref="toce_e3t_300" name="T300m" />
+          <field field_ref="e3t_300" name="e3t300m" />
+          <field field_ref="toce_e3t_vsum300" name="Tsum300m" />
+          <field field_ref="e3t_vsum300" name="e3t_vsum300m" />
+-->
+          <field field_ref="sbs" name="sob" />
+          <field field_ref="bn2" name="obvfsq" />
+<!-- trend diagnostics-->
+          <field field_ref="ttrd_totad_li"   name="opottempadvect"  unit="W/m2"    />
+          <field field_ref="ttrd_iso_li"     name="opottemppmdiff"  unit="W/m2"    />
+          <field field_ref="ttrd_zdfp_li"    name="opottempdiff"    unit="W/m2"    />
+          <field field_ref="ttrd_evd_li"     name="ttrd_evd_li"                    />
+          <field field_ref="ttrd_qns_li"     name="ttrd_qns_li"                    />
+          <field field_ref="ttrd_qsr_li"     name="rsdoabsorb"      unit="W/m2"    />
+          <field field_ref="ttrd_bbl_li"     name="ttrd_bbl_li"                    />
+          <field field_ref="ttrd_atf_li"     name="ttrd_atf_li"                    />
+          <field field_ref="ttrd_tot_li"     name="opottemptend"    unit="W/m2"    />
+          <field field_ref="strd_totad_li"   name="osaltadvect"     unit="Kg/m2/s" />
+          <field field_ref="strd_iso_li"     name="osaltpmdiff"     unit="kg/m2/s" />
+          <field field_ref="strd_zdfp_li"    name="osaltdiff"       unit="kg/m2/s" />
+          <field field_ref="strd_evd_li"     name="strd_evd_li"                    />
+          <field field_ref="strd_tot_li"     name="osalttend"       unit="kg/m2/s" />
+          <field field_ref="strd_bbl_li"     name="strd_bbl_li"                    />
+          <field field_ref="strd_atf_li"     name="strd_atf_li"                    />
+	</file>
+	
+	<file id="file5" name_suffix="_grid_U" description="ocean U grid variables" >
+          <field field_ref="e3u"          name="thkcello"     standard_name="cell_thickness" />
+          <field field_ref="uoce"         name="uo"     operation="average" freq_op="10d" > @uoce_e3u / @e3u </field>
+	  <field field_ref="utau"         name="tauuo"   standard_name="surface_downward_x_stress"  />
+          <field field_ref="ut"           name="uto" standard_name="product_of_xward_sea_water_velocity_and_temperature" long_name="UT"  operation="average" freq_op="10d" > @ut_e3u / @e3u </field>
+          <field field_ref="us"           name="uso" standard_name="product_of_xward_sea_water_velocity_and_salinity" long_name="US"    operation="average" freq_op="10d" > @us_e3u / @e3u </field>
+          <field field_ref="uoce"         name="u2o" standard_name="square_of_sea_water_x_velocity" long_name="UU"  operation="average" freq_op="10d" > @uoce2_e3u / @e3u </field>
+          <!-- available with key_diaar5 -->
+          <field field_ref="u_masstr"     name="umo" /> 
+          <field field_ref="u_masstr_vint"     name="umo_vint" /> 
+          <field field_ref="u_heattr"     name="hfx" > @uadv_heattr + @udiff_heattr </field> 
+          <field field_ref="uadv_heattr"     name="hfx_adv" /> 
+          <field field_ref="udiff_heattr"     name="hfx_diff" /> 
+<!--below here not in CMOR format yet -->
+          <field field_ref="u_salttr"     name="sozosatr" />
+	</file>
+	
+	<file id="file6" name_suffix="_grid_V" description="ocean V grid variables" >
+          <field field_ref="e3v"          name="thkcello"        standard_name="cell_thickness" />
+          <field field_ref="voce"         name="vo"     operation="average" freq_op="10d" > @voce_e3v / @e3v </field>
+	  <field field_ref="vtau"         name="tauvo"   standard_name="surface_downward_y_stress" />
+          <field field_ref="vt"           name="vto" standard_name="product_of_yward_sea_water_velocity_and_temperature" long_name="VT"  operation="average" freq_op="10d" > @vt_e3v / @e3v </field>
+          <field field_ref="vs"           name="vso" standard_name="product_of_yward_sea_water_velocity_and_salinity" long_name="VS"  operation="average" freq_op="10d" > @vs_e3v / @e3v </field>
+          <field field_ref="voce"         name="v2o" standard_name="square_of_sea_water_y_velocity" long_name="VV"  operation="average" freq_op="10d" > @voce2_e3v / @e3v </field>
+          <!-- available with key_diaar5 -->
+          <field field_ref="v_masstr"     name="vmo" /> 
+          <field field_ref="v_heattr"     name="hfy" > @vadv_heattr + @vdiff_heattr </field>
+          <field field_ref="vadv_heattr"     name="hfy_adv" /> 
+          <field field_ref="vdiff_heattr"     name="hfy_diff" /> 
+<!--below here not in CMOR format yet -->
+          <field field_ref="v_salttr"     name="somesatr" />
+	</file>
+	
+	<file id="file7" name_suffix="_grid_W" description="ocean W grid variables" >
+	  <field field_ref="avt"          name="difvho"   standard_name="ocean_vertical_heat_diffusivity"  />
+	  <field field_ref="avs"          name="difvso"   standard_name="ocean_vertical_salt_diffusivity"   />                 
+          <field field_ref="avm"          name="difvmo"   standard_name="ocean_vertical_momentum_diffusivity"               />
+          <field field_ref="avt_evd"      name="avt_evd"  standard_name="enhanced_vertical_heat_diffusivity"               />
+          <field field_ref="av_tmx"       name="diftrto"  standard_name="ocean_vertical_tracer_diffusivity_due_to_tides"               />
+          <field field_ref="w_masstr"     name="wmo" > w_masstr </field>
+	  <field field_ref="woce"         name="wo" standard_name="upward_sea_water_velocity" long_name="W"                  />
+          <field field_ref="woce"         name="w2o" standard_name="square_of_upward_sea_water_velocity" long_name="WW"  operation="average" > woce * woce </field>
+          <field field_ref="wt"           name="wt"         standard_name="product_of_upward_sea_water_velocity_and_temperature" long_name="WT"         />
+          <field field_ref="ws"           name="ws"         standard_name="product_of_upward_sea_water_velocity_and_salinity" long_name="WS"            />
+<!-- TO FIX
+          <field field_ref="wpt_dep"      name="zhalf"        />
+-->
+	</file>
+	
+        <file id="file8" name_suffix="_scalar" description="scalar variables" enabled=".true." >
+          <field field_ref="voltot"       name="scvoltot"   />
+          <field field_ref="temptot"      name="thetaoga"   />
+          <field field_ref="saltot"       name="soga"   />
+        </file>
+
+        <file id="file10" name_suffix="_diaptr" description="processed diagnostics" >
+          <field field_ref="zomsfglo"     name="zomsfglo"   standard_name="meridional_streamfunction_global"           grid_ref="gznl_W_3D"       />
+          <field field_ref="zotemglo"     name="zotemglo"   standard_name="zonal_mean_temperature_global"              grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfglo"     name="zosrfglo"   standard_name="zonal_mean_surface_global"                  grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalglo"     name="zosalglo"   standard_name="zonal_mean_salinity_global"                 grid_ref="gznl_T_3D"       />          
+          <field field_ref="zomsfatl"     name="zomsfatl"   standard_name="meridional_streamfunction_atlantic"         grid_ref="gznl_W_3D"       />
+          <field field_ref="zotematl"     name="zotematl"   standard_name="zonal_mean_temperature_atlantic"            grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfatl"     name="zosrfatl"   standard_name="zonal_mean_surface_atlantic"                grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalatl"     name="zosalatl"   standard_name="zonal_mean_salinity_atlantic"               grid_ref="gznl_T_3D"       />          
+          <field field_ref="zomsfpac"     name="zomsfpac"   standard_name="meridional_streamfunction_pacific"          grid_ref="gznl_W_3D"       />
+          <field field_ref="zotempac"     name="zotempac"   standard_name="zonal_mean_temperature_pacific"             grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfpac"     name="zosrfpac"   standard_name="zonal_mean_surface_pacific"                 grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalpac"     name="zosalpac"   standard_name="zonal_mean_salinity_pacific"                grid_ref="gznl_T_3D"       />
+          <field field_ref="zomsfind"     name="zomsfind"   standard_name="meridional_streamfunction_indian"           grid_ref="gznl_W_3D"       />
+          <field field_ref="zotemind"     name="zotemind"   standard_name="zonal_mean_temperature_indian"              grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfind"     name="zosrfind"   standard_name="zonal_mean_surface_indian"                  grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalind"     name="zosalind"   standard_name="zonal_mean_salinity_indian"                 grid_ref="gznl_T_3D"       />          
+          <field field_ref="zomsfipc"     name="zomsfipc"   standard_name="meridional_streamfunction_indian_pacific"   grid_ref="gznl_W_3D"       />
+          <field field_ref="zotemipc"     name="zotemipc"   standard_name="zonal_mean_temperature_indian_pacific"      grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfipc"     name="zosrfipc"   standard_name="zonal_mean_surface_indian_pacific"          grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalipc"     name="zosalipc"   standard_name="zonal_mean_salinity_indian_pacific"         grid_ref="gznl_T_3D"       />          
+          <field field_ref="sophtadv"     name="sophtadv"   standard_name="advective_heat_transport"                   grid_ref="gznl_T_2D"       />
+          <field field_ref="sophtadv_atl"    name="sophtadv_atlantic"   standard_name="advective_heat_transport_atlantic"/>
+          <field field_ref="sophtadv_pac"    name="sophtadv_pacific"   standard_name="advective_heat_transport_pacific" />
+          <field field_ref="sophtadv_ind"    name="sophtadv_indian"   standard_name="advective_heat_transport_indian"   />
+          <field field_ref="sophtadv_ipc"    name="sophtadv_ipc"   standard_name="advective_heat_transport_indopacific"  />
+          <field field_ref="sophtbtr"     name="hfovbaro"   standard_name="barotropic_heat_transport"                   grid_ref="gznl_T_2D"       />
+          <field field_ref="sophtbtr_atl"    name="hfovbaro_atlantic"   standard_name="barotropic_heat_transport_atlantic"/>
+          <field field_ref="sophtbtr_pac"    name="hfovbaro_pacific"   standard_name="barotropic_heat_transport_pacific" />
+          <field field_ref="sophtbtr_ind"    name="hfovbaro_indian"   standard_name="barotropic_heat_transport_indian"   />
+          <field field_ref="sophtbtr_ipc"    name="hfovbaro_ipc"   standard_name="barotropic_heat_transport_indopacific"  />
+          <field field_ref="sopstadv"     name="sopstadv"   standard_name="advective_salt_transport"                   grid_ref="gznl_T_2D"       />
+          <field field_ref="sopstadv_atl"    name="sopstadv_atlantic"   standard_name="advective_salt_transport_atlantic"/>
+          <field field_ref="sopstadv_pac"    name="sopstadv_pacific"   standard_name="advective_salt_transport_pacific" />
+          <field field_ref="sopstadv_ind"    name="sopstadv_indian"   standard_name="advective_salt_transport_indian"   />
+          <field field_ref="sopstadv_ipc"    name="sopstadv_ipc"   standard_name="advective_salt_transport_indopacific"  />
+          <field field_ref="sopstbtr"     name="sltovbaro"   standard_name="barotropic_salt_transport"     />
+          <field field_ref="sopstbtr_atl"    name="sltovbaro_atlantic"   standard_name="barotropic_salt_transport_atlantic"/>
+          <field field_ref="sopstbtr_pac"    name="sltovbaro_pacific"   standard_name="barotropic_salt_transport_pacific" />
+          <field field_ref="sopstbtr_ind"    name="sltovbaro_indian"   standard_name="barotropic_salt_transport_indian"   />
+          <field field_ref="sopstbtr_ipc"    name="sltovbaro_ipc"   standard_name="barotropic_salt_transport_indopacific"  />
+          <!--The following variables are to be merged into a single variableis with a basin dimenesion in postprocessing  -->
+          <!-- hfbasin -->
+          <field field_ref="sophtadv" name="hfbasin_global" standard_name="northward_ocean_heat_transport" > @sophtadv + @sophtldf </field>
+          <field field_ref="sophtadv" name="hfbasin_atlantic" standard_name="northward_ocean_heat_transport" > @sophtadv_atl + @sophtldf_atl </field>
+          <field field_ref="sophtadv" name="hfbasin_pacific" standard_name="northward_ocean_heat_transport" > @sophtadv_pac + @sophtldf_pac </field>
+          <field field_ref="sophtadv" name="hfbasin_indian" standard_name="northward_ocean_heat_transport" > @sophtadv_ind + @sophtldf_ind </field>
+          <field field_ref="sophtadv" name="hfbasin_indopacific" standard_name="northward_ocean_heat_transport" > @sophtadv_ipc + @sophtldf_ipc </field>
+          <!-- hfbasinpadv -->
+          <field field_ref="sophteiv"     name="hfbasinpadv_global"   standard_name="bolus_heat_transport"                       grid_ref="gznl_T_2D"       />
+          <field field_ref="sophteiv_atl"    name="hfbasinpadv_atlantic"   standard_name="bolus_heat_transport_atlantic"/>
+          <field field_ref="sophteiv_pac"    name="hfbasinpadv_pacific"   standard_name="bolus_heat_transport_pacific" />
+          <field field_ref="sophteiv_ind"    name="hfbasinpadv_indian"   standard_name="bolus_heat_transport_indian"   />
+          <field field_ref="sophteiv_ipc"    name="hfbasinpadv_indopacific"   standard_name="bolus_heat_transport_indopacific"   />
+          <!-- hfbasinpmadv -->
+          <field field_ref="sophteiv"     name="hfbasinpmadv_global"   standard_name="bolus_heat_transport"                       grid_ref="gznl_T_2D"       />
+          <field field_ref="sophteiv_atl"    name="hfbasinpmadv_atlantic"   standard_name="bolus_heat_transport_atlantic"/>
+          <field field_ref="sophteiv_pac"    name="hfbasinpmadv_pacific"   standard_name="bolus_heat_transport_pacific" />
+          <field field_ref="sophteiv_ind"    name="hfbasinpmadv_indian"   standard_name="bolus_heat_transport_indian"   />
+          <field field_ref="sophteiv_ipc"    name="hfbasinpmadv_indopacific"   standard_name="bolus_heat_transport_indopacific"   />
+          <!-- hfbasinpmdiff -->
+          <field field_ref="sophtldf"     name="hfbasinpmdiff_global"   standard_name="diffusive_transport"                       grid_ref="gznl_T_2D"       />
+          <field field_ref="sophtldf_atl"    name="hfbasinpmdiff_atlantic"   standard_name="diffusive_transport_atlantic"/>
+          <field field_ref="sophtldf_pac"    name="hfbasinpmdiff_pacific"   standard_name="diffusive_transport_pacific" />
+          <field field_ref="sophtldf_ind"    name="hfbasinpmdiff_indian"   standard_name="diffusive_transport_indian"   />
+          <field field_ref="sophtldf_ipc"    name="hfbasinpmdiff_indopacific"   standard_name="diffusive_transport_indopacific"   />
+          <!-- hfovovrt -->
+          <field field_ref="sophtove"     name="hfovovrt_global"   standard_name="overturning_heat_transport"                   grid_ref="gznl_T_2D"       />
+          <field field_ref="sophtove_atl"    name="hfovovrt_atlantic"   standard_name="overturning_heat_transport_atlantic"/>
+          <field field_ref="sophtove_pac"    name="hfovovrt_pacific"   standard_name="overturning_heat_transport_pacific" />
+          <field field_ref="sophtove_ind"    name="hfovovrt_indian"   standard_name="overturning_heat_transport_indian"   />
+          <field field_ref="sophtove_ipc"    name="hfovovrt_indopacific"   standard_name="overturning_heat_transport_indopacific"   />
+          <!-- hfovgyre IS THIS DONE CORRECTLY? SHOULD WE ALSO SUBTRACT THE BAROTROPIC TERM? The CMIP6 data request says not to so leave it for now-->
+          <field field_ref="sophtove"     name="hfovgyre_global"   standard_name="gyre_heat_transport"         > @sophtadv - @sophtove </field>
+          <field field_ref="sophtove_atl"    name="hfovgyre_atlantic"   standard_name="gyre_heat_transport_atlantic" > @sophtadv_atl - @sophtove_atl </field>
+          <field field_ref="sophtove_pac"    name="hfovgyre_pacific"   standard_name="gyre_heat_transport_pacific"  > @sophtadv_pac - @sophtove_pac </field>
+          <field field_ref="sophtove_ind"    name="hfovgyre_indian"   standard_name="gyre_heat_transport_indian"   > @sophtadv_ind - @sophtove_ind </field>
+          <field field_ref="sophtove_ipc"    name="hfovgyre_indopacific"   standard_name="gyre_heat_transport_indopacific"   > @sophtadv_ipc - @sophtove_ipc </field>
+          <!-- sltbasin -->
+          <field field_ref="sopstadv" name="sltbasin_global" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv + @sopstldf)/1000 </field>
+          <field field_ref="sopstadv" name="sltbasin_atlantic" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv_atl + @sopstldf_atl)/1000 </field>
+          <field field_ref="sopstadv" name="sltbasin_pacific" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv_pac + @sopstldf_pac)/1000 </field>
+          <field field_ref="sopstadv" name="sltbasin_indian" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv_ind + @sopstldf_ind)/1000 </field>
+          <field field_ref="sopstadv" name="sltbasin_indopacific" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv_ipc + @sopstldf_ipc)/1000 </field>
+          <!-- sltbasinpadv -->
+          <field field_ref="sopsteiv"        name="sltbasinpadv_global"   standard_name="bolus_salt_transport"  unit="kg s-1"> @sopsteiv/1000   </field>
+          <field field_ref="sopsteiv_atl"    name="sltbasinpadv_atlantic"   standard_name="bolus_salt_transport_atlantic" unit="kg s-1"> @sopsteiv_atl/1000   </field>
+          <field field_ref="sopsteiv_pac"    name="sltbasinpadv_pacific"   standard_name="bolus_salt_transport_pacific" unit="kg s-1"> @sopsteiv_pac/1000   </field>
+          <field field_ref="sopsteiv_ind"    name="sltbasinpadv_indian"   standard_name="bolus_salt_transport_indian"  unit="kg s-1"> @sopsteiv_ind/1000   </field>
+          <field field_ref="sopsteiv_ipc"    name="sltbasinpadv_indopacific"   standard_name="bolus_salt_transport_indopacific"  unit="kg s-1"> @sopsteiv_ipc/1000   </field>
+          <!-- sltbasinpmadv -->
+          <field field_ref="sopsteiv"        name="sltbasinpmadv_global"   standard_name="bolus_salt_transport"  unit="kg s-1"> @sopsteiv/1000   </field>        
+          <field field_ref="sopsteiv_atl"    name="sltbasinpmadv_atlantic"   standard_name="bolus_salt_transport_atlantic" unit="kg s-1"> @sopsteiv_atl/1000   </field>
+          <field field_ref="sopsteiv_pac"    name="sltbasinpmadv_pacific"   standard_name="bolus_salt_transport_pacific" unit="kg s-1"> @sopsteiv_pac/1000   </field>
+          <field field_ref="sopsteiv_ind"    name="sltbasinpmadv_indian"   standard_name="bolus_salt_transport_indian"  unit="kg s-1"> @sopsteiv_ind/1000   </field>
+          <field field_ref="sopsteiv_ipc"    name="sltbasinpmadv_indopacific"   standard_name="bolus_salt_transport_indopacific"  unit="kg s-1"> @sopsteiv_ipc/1000   </field>
+          <!-- sltbasinpmdiff -->
+          <field field_ref="sopstldf"     name="sltbasinpmdiff_global"   standard_name="diffusive_transport" unit="kg s-1">   @sopstldf/1000   </field>
+          <field field_ref="sopstldf_atl"    name="sltbasinpmdiff_atlantic"   standard_name="diffusive_transport_atlantic" unit="kg s-1"> @sopstldf_atl/1000   </field>
+          <field field_ref="sopstldf_pac"    name="sltbasinpmdiff_pacific"   standard_name="diffusive_transport_pacific" unit="kg s-1"> @sopstldf_pac/1000   </field>
+          <field field_ref="sopstldf_ind"    name="sltbasinpmdiff_indian"   standard_name="diffusive_transport_indian" unit="kg s-1">  @sopstldf_ind/1000   </field>
+          <field field_ref="sopstldf_ipc"    name="sltbasinpmdiff_indopacific"   standard_name="diffusive_transport_indopacific" unit="kg s-1">  @sopstldf_ipc/1000   </field>
+          <!-- sltovovrt -->
+          <field field_ref="sopstove"     name="sltovovrt_global"   standard_name="overturning_salt_transport"  unit="kg s-1">   @sopstove/1000   </field>       
+          <field field_ref="sopstove_atl"    name="sltovovrt_atlantic"   standard_name="overturning_salt_transport_atlantic" unit="kg s-1">   @sopstove_atl/1000   </field>
+          <field field_ref="sopstove_pac"    name="sltovovrt_pacific"   standard_name="overturning_salt_transport_pacific"  unit="kg s-1">   @sopstove_pac/1000   </field>
+          <field field_ref="sopstove_ipc"    name="sltovovrt_indopacific"   standard_name="overturning_salt_transport_indopacific"   unit="kg s-1">   @sopstove_ipc/1000   </field>
+          <!-- sltovgyre IS THIS DONE CORRECTLY? SHOULD WE ALSO SUBTRACT THE BAROTROPIC TERM?-->
+          <field field_ref="sopstove"     name="sltovgyre_global"   standard_name="gyre_salt_transport"    unit="kg s-1" > (@sopstadv - @sopstove)/1000 </field>
+          <field field_ref="sopstove_atl"    name="sltovgyre_atlantic"   standard_name="gyre_salt_transport_atlantic" unit="kg s-1" > (@sopstadv_atl - @sopstove_atl)/1000 </field>
+          <field field_ref="sopstove_pac"    name="sltovgyre_pacific"   standard_name="gyre_salt_transport_pacific" unit="kg s-1"  > (@sopstadv_pac - @sopstove_pac)/1000 </field>
+          <field field_ref="sopstove_ind"    name="sltovgyre_indian"   standard_name="gyre_salt_transport_indian" unit="kg s-1"   > (@sopstadv_ind - @sopstove_ind)/1000 </field>
+          <field field_ref="sopstove_ipc"    name="sltovgyre_indopacific"   standard_name="gyre_salt_transport_ipc" unit="kg s-1"   > (@sopstadv_ipc - @sopstove_ipc)/1000 </field>
+        </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="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>
+    
+
+
+
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-CMIP6-1M.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-CMIP6-1M.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-CMIP6-1M.xml	(revision 11717)
@@ -0,0 +1,337 @@
+<?xml version="1.0"?>
+
+<!--
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own filesfor ocean dynamics context                                         =
+=                                         put the variables you want...                                    =
+============================================================================================================
+    -->
+   
+    <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1d" min_digits="4">
+    
+      <file_group id="1ts" output_freq="1ts"  output_level="10" enabled=".TRUE."/> <!-- 1 time step files -->
+
+      <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=".TRUE.">  <!-- 1d files -->   
+
+	<file id="file1" name_suffix="_grid_T" description="ocean T grid variables" >
+          <field field_ref="sst"          name="tos"   standard_name="sea_surface_temperature"                                 />
+          <field field_ref="sst2"          name="tossq"   />
+          <field field_ref="sss"         name="sossq" long_name="Square of Sea Surface Salinity"   standard_name="square_of_sea_surface_Salinity"   unit="1e-06"     > sss * sss </field >
+          <field field_ref="sss"          name="sos"   standard_name="sea_surface_salinity"                                    />
+          <field field_ref="mldr0_3"     name="mlotst"   long_name="Ocean Mixed Layer Thickness Defined by Sigma T"         />
+	  <field field_ref="ssh"       name="zos"   standard_name="sea_surface_height_above_geoid" long_name="Sea Surface Height Above Geoid"      />
+<!-- TO FIX
+          <field field_ref="20d"          name="t20d"  standard_name="depth_of_isosurface_of_sea_water_potential_temperature" />
+-->
+	</file>
+	
+	<file id="file2" name_suffix="_grid_U" description="ocean U grid variables" enabled=".FALSE." >
+          <field field_ref="ssu"          name="sozocrtx"   standard_name="sea_surface_eastward_sea_water_velocity"                 />
+	  <field field_ref="utau"         name="sozotaux"   standard_name="surface_downward_x_stress" />
+	</file>
+	
+	<file id="file3" name_suffix="_grid_V" description="ocean V grid variables"  enabled=".FALSE." >
+          <field field_ref="ssv"          name="somecrty"   standard_name="sea_surface_northward_sea_water_velocity"                 />
+	  <field field_ref="vtau"         name="sometauy"   standard_name="surface_downward_y_stress" />
+	</file>
+
+        <file id="file9" name_suffix="_scalar" description="scalar variables"  enabled=".FALSE." >
+          <field field_ref="sshthster"    name="scsshtst"   />
+          <field field_ref="voltot"       name="scvoltot"   />
+        </file>
+
+      </file_group>
+
+      <file_group id="1m" output_freq="1mo"  output_level="10" enabled=".TRUE.">  <!-- 1mo files -->   
+
+	<file id="file4" name_suffix="_grid_T" description="ocean T grid variables" >
+          <field field_ref="e3t"          name="thkcello"        standard_name="cell_thickness" />
+<!-- Is this dangerous to include rho0 here as a hard coded value -->
+          <field field_ref="e3t"          name="masscello"        standard_name="sea_water_mass_per_unit_area" unit="kg/m2" long_name="Ocean Grid-Cell Mass per area" > @e3t * 1026.0 </field> 
+          <field field_ref="tpt_dep"      name="zfull"        />
+<!-- TO FIX
+          <field field_ref="20d"          name="t20d"  standard_name="depth_of_isosurface_of_sea_water_potential_temperature" />
+-->
+          <field field_ref="toce"         name="thetao"       operation="average" freq_op="1mo" > @toce_e3t / @e3t </field>
+<!-- TO FIX
+          <field field_ref="toce_vmean"   name="thetaot"   />
+          <field field_ref="toce_vmean300"   name="thetaot300"   />
+-->
+          <field field_ref="soce"         name="so"     operation="average" freq_op="1mo" > @soce_e3t / @e3t </field>
+	  <field field_ref="ssh"       name="zos"   standard_name="sea_surface_height_above_geoid" long_name="Sea Surface Height Above Geoid"      />
+          <field field_ref="ssh2"      name="zossq"  standard_name="square_of_sea_surface_height_above_geoid" long_name="Square of Sea Surface Height Above Geoid"  />
+	  <field field_ref="runoffs"      name="friver"   standard_name="water_flux_into_sea_water_from_rivers"                     />
+	  <field field_ref="qt"           name="hfds"   standard_name="surface_downward_heat_flux_in_sea_water"                     />
+	  <field field_ref="qsr3d"        name="rsdo"   standard_name="downwelling_shortwave_flux_in_sea_water"                     />
+          <field field_ref="mldr0_3"      name="mlotst"   long_name="Ocean Mixed Layer Thickness Defined by Sigma T"         />
+          <field field_ref="mldr0_3"      name="mlotstsq"  long_name="Square of Ocean Mixed Layer Thickness Defined by Sigma T"  standard_name="square_of_ocean_mixed_layer_thickness_defined_by_sigma_theta" > mldr0_3 * mldr0_3 </field>
+          <field field_ref="mldr0_3"      name="mlotstmax"   long_name="Ocean Mixed Layer Thickness Defined by Sigma T" operation="maximum"        />
+          <field field_ref="mldr0_3"      name="mlotstmin"   long_name="Ocean Mixed Layer Thickness Defined by Sigma T" operation="minimum"        />
+          <field field_ref="berg_melt"       name="ficeberg"     standard_name="water_flux_into_sea_water_from_icebergs"      />
+          <field field_ref="berg_melt_qlat"  name="berg_latent_heat_flux"     standard_name="latent_heat_flux_from_icebergs"                                 />
+          <field field_ref="botpres"      name="pbo"                                                                                />
+          <field field_ref="sst"          name="tos"   standard_name="sea_surface_temperature"                                 />
+          <field field_ref="sst2"          name="tossq"   />
+          <field field_ref="sss"          name="sos"   standard_name="sea_surface_salinity"                                    />
+          <field field_ref="sss"         name="sossq" long_name="Square of Sea Surface Salinity"   standard_name="square_of_sea_surface_Salinity"   unit="1e-06"     > sss * sss </field >
+<!-- TO FIX
+          <field field_ref="rain_ao_cea" name="pr" standard_name="rainfall_flux" long_name="Rainfall Flux" > @rain_ao_cea </field>
+-->
+          <field field_ref="evap_ao_cea" name="evs" standard_name="water_evaporation_flux" long_name="Water Evaporation Flux Where Ice Free Ocean over Sea" />
+          <field field_ref="snow_ao_cea" name="prsn" standard_name="snowfall_flux" long_name="Snowfall Flux" />
+          <field field_ref="hflx_rain_cea" name="hfrainds" long_name="Temperature Flux due to Rain Expressed as Heat Flux In To Sea Water" standard_name="temperature_flux_due_to_rain_expressed_as_heat_flux_into_sea_water" > hflx_rain_cea </field> 
+          <field field_ref="hflx_evap_cea" name="hfevapds" long_name="Temperature Flux due to Evaporation Expressed as Heat Flux Out of Sea Water" standard_name="temperature_flux_due_to_evaporation_expressed_as_heat_flux_out_of_sea_water" />
+          <field field_ref="hflx_rnf_cea" name="hflx_rnf" long_name="Temperature Flux due to Runoff Expressed as Heat Flux into  Sea Water" standard_name="temperature_flux_due_to_runoff_expressed_as_heat_flux_into_sea_water" > hflx_rnf_cea </field> 
+          <field field_ref="saltflx"      name="sfdsi" standard_name="downward_sea_ice_basal_salt_flux" />
+          <field field_ref="fmmflx"       name="fsitherm"      unit="kg/m2/s"   />
+          <field field_ref = "empmr" >@empmr + @fwfisf </field>
+<!-- TO FIX
+          <field field_ref="Age" name="agessc" />
+-->
+          <field field_ref="tnpeo" />
+          <field field_ref="snowpre" name="snowpre" />
+          <field field_ref="snow_ai_cea" name="snow_ai_cea" />
+	  <field field_ref="empmr"        name="sowaflup"   standard_name="water_flux_out_of_sea_ice_and_sea_water"                 />
+	  <field field_ref="saltflx"      name="sosafldo"   standard_name="salt_flux_into_sea_water"                                />
+          <field field_ref="mldkz5"       name="somixhgt"   standard_name="ocean_mixed_layer_thickness_defined_by_vertical_tracer_diffusivity"   />
+          <field field_ref="mldr10_1"     name="somxl010"   standard_name="ocean_mixed_layer_thickness_defined_by_sigma_theta"      />
+          <field field_ref="mldzint_1"    name="somxzint1"   standard_name="ocean_mixed_layer_thickness_defined_by_sigma_theta"      />
+          <field field_ref="ice_cover"    name="soicecov"   standard_name="sea_ice_area_fraction"                                   />
+          <field field_ref="wspd"         name="sowindsp"   standard_name="wind_speed"                                              />          
+          <field field_ref="qlatisf"         name="sohflisf"   standard_name=""                                                        />
+          <field field_ref="qlatisf3d"         name="vohflisf"   standard_name=""                                                        />
+          <field field_ref="qhcisf"         name="sohfcisf"   standard_name=""                                                        />
+          <field field_ref="qhcisf3d"         name="vohfcisf"   standard_name=""                                                        />
+          <field field_ref="fwfisf"       name="sowflisf"   standard_name=""                                                        />
+          <field field_ref="fwfisf3d"     name="vowflisf"   standard_name=""                                                        />
+<!-- TO FIX
+          <field field_ref="ketrd_ldf_vsum"     name="dispkexyfo"   standard_name="Dissipation of kinetic energy by lateral viscosity" grid_ref="vert_sum"/>
+-->
+          <field field_ref="tosmint"       name="opottempmint" />
+          <field field_ref="somint"       name="somint" />
+<!-- TO FIX
+          <field field_ref="toce_e3t_300" name="T300m" />
+          <field field_ref="e3t_300" name="e3t300m" />
+          <field field_ref="toce_e3t_vsum300" name="Tsum300m" />
+          <field field_ref="e3t_vsum300" name="e3t_vsum300m" />
+-->
+          <field field_ref="sbs" name="sob" />
+          <field field_ref="bn2" name="obvfsq" />
+<!-- trend diagnostics-->
+          <field field_ref="ttrd_totad_li"   name="opottempadvect"  unit="W/m2"    />
+          <field field_ref="ttrd_iso_li"     name="opottemppmdiff"  unit="W/m2"    />
+          <field field_ref="ttrd_zdfp_li"    name="opottempdiff"    unit="W/m2"    />
+          <field field_ref="ttrd_evd_li"     name="ttrd_evd_li"                    />
+          <field field_ref="ttrd_qns_li"     name="ttrd_qns_li"                    />
+          <field field_ref="ttrd_qsr_li"     name="rsdoabsorb"      unit="W/m2"    />
+          <field field_ref="ttrd_bbl_li"     name="ttrd_bbl_li"                    />
+          <field field_ref="ttrd_atf_li"     name="ttrd_atf_li"                    />
+          <field field_ref="ttrd_tot_li"     name="opottemptend"    unit="W/m2"    />
+          <field field_ref="strd_totad_li"   name="osaltadvect"     unit="Kg/m2/s" />
+          <field field_ref="strd_iso_li"     name="osaltpmdiff"     unit="kg/m2/s" />
+          <field field_ref="strd_zdfp_li"    name="osaltdiff"       unit="kg/m2/s" />
+          <field field_ref="strd_evd_li"     name="strd_evd_li"                    />
+          <field field_ref="strd_tot_li"     name="osalttend"       unit="kg/m2/s" />
+          <field field_ref="strd_bbl_li"     name="strd_bbl_li"                    />
+          <field field_ref="strd_atf_li"     name="strd_atf_li"                    />
+	</file>
+	
+	<file id="file5" name_suffix="_grid_U" description="ocean U grid variables" >
+          <field field_ref="e3u"          name="thkcello"     standard_name="cell_thickness" />
+          <field field_ref="uoce"         name="uo"     operation="average" freq_op="1mo" > @uoce_e3u / @e3u </field>
+	  <field field_ref="utau"         name="tauuo"   standard_name="surface_downward_x_stress"  />
+          <field field_ref="ut"           name="uto" standard_name="product_of_xward_sea_water_velocity_and_temperature" long_name="UT"  operation="average" freq_op="1mo" > @ut_e3u / @e3u </field>
+          <field field_ref="us"           name="uso" standard_name="product_of_xward_sea_water_velocity_and_salinity" long_name="US"    operation="average" freq_op="1mo" > @us_e3u / @e3u </field>
+          <field field_ref="uoce"         name="u2o" standard_name="square_of_sea_water_x_velocity" long_name="UU"  operation="average" freq_op="1mo" > @uoce2_e3u / @e3u </field>
+          <!-- available with key_diaar5 -->
+          <field field_ref="u_masstr"     name="umo" /> 
+          <field field_ref="u_masstr_vint"     name="umo_vint" /> 
+          <field field_ref="u_heattr"     name="hfx" > @uadv_heattr + @udiff_heattr </field> 
+          <field field_ref="uadv_heattr"     name="hfx_adv" /> 
+          <field field_ref="udiff_heattr"     name="hfx_diff" /> 
+<!--below here not in CMOR format yet -->
+          <field field_ref="u_salttr"     name="sozosatr" />
+	</file>
+	
+	<file id="file6" name_suffix="_grid_V" description="ocean V grid variables" >
+          <field field_ref="e3v"          name="thkcello"        standard_name="cell_thickness" />
+          <field field_ref="voce"         name="vo"     operation="average" freq_op="1mo" > @voce_e3v / @e3v </field>
+	  <field field_ref="vtau"         name="tauvo"   standard_name="surface_downward_y_stress" />
+          <field field_ref="vt"           name="vto" standard_name="product_of_yward_sea_water_velocity_and_temperature" long_name="VT"  operation="average" freq_op="1mo" > @vt_e3v / @e3v </field>
+          <field field_ref="vs"           name="vso" standard_name="product_of_yward_sea_water_velocity_and_salinity" long_name="VS"  operation="average" freq_op="1mo" > @vs_e3v / @e3v </field>
+          <field field_ref="voce"         name="v2o" standard_name="square_of_sea_water_y_velocity" long_name="VV"  operation="average" freq_op="1mo" > @voce2_e3v / @e3v </field>
+          <!-- available with key_diaar5 -->
+          <field field_ref="v_masstr"     name="vmo" /> 
+          <field field_ref="v_heattr"     name="hfy" > @vadv_heattr + @vdiff_heattr </field>
+          <field field_ref="vadv_heattr"     name="hfy_adv" /> 
+          <field field_ref="vdiff_heattr"     name="hfy_diff" /> 
+<!--below here not in CMOR format yet -->
+          <field field_ref="v_salttr"     name="somesatr" />
+	</file>
+	
+	<file id="file7" name_suffix="_grid_W" description="ocean W grid variables" >
+	  <field field_ref="avt"          name="difvho"   standard_name="ocean_vertical_heat_diffusivity"  />
+	  <field field_ref="avs"          name="difvso"   standard_name="ocean_vertical_salt_diffusivity"   />                 
+          <field field_ref="avm"          name="difvmo"   standard_name="ocean_vertical_momentum_diffusivity"               />
+          <field field_ref="avt_evd"      name="avt_evd"  standard_name="enhanced_vertical_heat_diffusivity"               />
+          <field field_ref="av_tmx"       name="diftrto"  standard_name="ocean_vertical_tracer_diffusivity_due_to_tides"               />
+          <field field_ref="w_masstr"     name="wmo" > w_masstr </field>
+	  <field field_ref="woce"         name="wo" standard_name="upward_sea_water_velocity" long_name="W"                  />
+          <field field_ref="woce"         name="w2o" standard_name="square_of_upward_sea_water_velocity" long_name="WW"  operation="average" > woce * woce </field>
+          <field field_ref="wt"           name="wt"         standard_name="product_of_upward_sea_water_velocity_and_temperature" long_name="WT"         />
+          <field field_ref="ws"           name="ws"         standard_name="product_of_upward_sea_water_velocity_and_salinity" long_name="WS"            />
+<!-- TO FIX
+          <field field_ref="wpt_dep"      name="zhalf"        />
+-->
+	</file>
+	
+        <file id="file8" name_suffix="_scalar" description="scalar variables" enabled=".true." >
+          <field field_ref="voltot"       name="scvoltot"   />
+          <field field_ref="temptot"      name="thetaoga"   />
+          <field field_ref="saltot"       name="soga"   />
+        </file>
+
+        <file id="file10" name_suffix="_diaptr" description="processed diagnostics" >
+          <field field_ref="zomsfglo"     name="zomsfglo"   standard_name="meridional_streamfunction_global"           grid_ref="gznl_W_3D"       />
+          <field field_ref="zotemglo"     name="zotemglo"   standard_name="zonal_mean_temperature_global"              grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfglo"     name="zosrfglo"   standard_name="zonal_mean_surface_global"                  grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalglo"     name="zosalglo"   standard_name="zonal_mean_salinity_global"                 grid_ref="gznl_T_3D"       />          
+          <field field_ref="zomsfatl"     name="zomsfatl"   standard_name="meridional_streamfunction_atlantic"         grid_ref="gznl_W_3D"       />
+          <field field_ref="zotematl"     name="zotematl"   standard_name="zonal_mean_temperature_atlantic"            grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfatl"     name="zosrfatl"   standard_name="zonal_mean_surface_atlantic"                grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalatl"     name="zosalatl"   standard_name="zonal_mean_salinity_atlantic"               grid_ref="gznl_T_3D"       />          
+          <field field_ref="zomsfpac"     name="zomsfpac"   standard_name="meridional_streamfunction_pacific"          grid_ref="gznl_W_3D"       />
+          <field field_ref="zotempac"     name="zotempac"   standard_name="zonal_mean_temperature_pacific"             grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfpac"     name="zosrfpac"   standard_name="zonal_mean_surface_pacific"                 grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalpac"     name="zosalpac"   standard_name="zonal_mean_salinity_pacific"                grid_ref="gznl_T_3D"       />
+          <field field_ref="zomsfind"     name="zomsfind"   standard_name="meridional_streamfunction_indian"           grid_ref="gznl_W_3D"       />
+          <field field_ref="zotemind"     name="zotemind"   standard_name="zonal_mean_temperature_indian"              grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfind"     name="zosrfind"   standard_name="zonal_mean_surface_indian"                  grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalind"     name="zosalind"   standard_name="zonal_mean_salinity_indian"                 grid_ref="gznl_T_3D"       />          
+          <field field_ref="zomsfipc"     name="zomsfipc"   standard_name="meridional_streamfunction_indian_pacific"   grid_ref="gznl_W_3D"       />
+          <field field_ref="zotemipc"     name="zotemipc"   standard_name="zonal_mean_temperature_indian_pacific"      grid_ref="gznl_T_3D"       />
+          <field field_ref="zosrfipc"     name="zosrfipc"   standard_name="zonal_mean_surface_indian_pacific"          grid_ref="gznl_T_3D"       />
+          <field field_ref="zosalipc"     name="zosalipc"   standard_name="zonal_mean_salinity_indian_pacific"         grid_ref="gznl_T_3D"       />          
+          <field field_ref="sophtadv"     name="sophtadv"   standard_name="advective_heat_transport"                   grid_ref="gznl_T_2D"       />
+          <field field_ref="sophtadv_atl"    name="sophtadv_atlantic"   standard_name="advective_heat_transport_atlantic"/>
+          <field field_ref="sophtadv_pac"    name="sophtadv_pacific"   standard_name="advective_heat_transport_pacific" />
+          <field field_ref="sophtadv_ind"    name="sophtadv_indian"   standard_name="advective_heat_transport_indian"   />
+          <field field_ref="sophtadv_ipc"    name="sophtadv_ipc"   standard_name="advective_heat_transport_indopacific"  />
+          <field field_ref="sophtbtr"     name="hfovbaro"   standard_name="barotropic_heat_transport"                   grid_ref="gznl_T_2D"       />
+          <field field_ref="sophtbtr_atl"    name="hfovbaro_atlantic"   standard_name="barotropic_heat_transport_atlantic"/>
+          <field field_ref="sophtbtr_pac"    name="hfovbaro_pacific"   standard_name="barotropic_heat_transport_pacific" />
+          <field field_ref="sophtbtr_ind"    name="hfovbaro_indian"   standard_name="barotropic_heat_transport_indian"   />
+          <field field_ref="sophtbtr_ipc"    name="hfovbaro_ipc"   standard_name="barotropic_heat_transport_indopacific"  />
+          <field field_ref="sopstadv"     name="sopstadv"   standard_name="advective_salt_transport"                   grid_ref="gznl_T_2D"       />
+          <field field_ref="sopstadv_atl"    name="sopstadv_atlantic"   standard_name="advective_salt_transport_atlantic"/>
+          <field field_ref="sopstadv_pac"    name="sopstadv_pacific"   standard_name="advective_salt_transport_pacific" />
+          <field field_ref="sopstadv_ind"    name="sopstadv_indian"   standard_name="advective_salt_transport_indian"   />
+          <field field_ref="sopstadv_ipc"    name="sopstadv_ipc"   standard_name="advective_salt_transport_indopacific"  />
+          <field field_ref="sopstbtr"     name="sltovbaro"   standard_name="barotropic_salt_transport"     />
+          <field field_ref="sopstbtr_atl"    name="sltovbaro_atlantic"   standard_name="barotropic_salt_transport_atlantic"/>
+          <field field_ref="sopstbtr_pac"    name="sltovbaro_pacific"   standard_name="barotropic_salt_transport_pacific" />
+          <field field_ref="sopstbtr_ind"    name="sltovbaro_indian"   standard_name="barotropic_salt_transport_indian"   />
+          <field field_ref="sopstbtr_ipc"    name="sltovbaro_ipc"   standard_name="barotropic_salt_transport_indopacific"  />
+          <!--The following variables are to be merged into a single variableis with a basin dimenesion in postprocessing  -->
+          <!-- hfbasin -->
+          <field field_ref="sophtadv" name="hfbasin_global" standard_name="northward_ocean_heat_transport" > @sophtadv + @sophtldf </field>
+          <field field_ref="sophtadv" name="hfbasin_atlantic" standard_name="northward_ocean_heat_transport" > @sophtadv_atl + @sophtldf_atl </field>
+          <field field_ref="sophtadv" name="hfbasin_pacific" standard_name="northward_ocean_heat_transport" > @sophtadv_pac + @sophtldf_pac </field>
+          <field field_ref="sophtadv" name="hfbasin_indian" standard_name="northward_ocean_heat_transport" > @sophtadv_ind + @sophtldf_ind </field>
+          <field field_ref="sophtadv" name="hfbasin_indopacific" standard_name="northward_ocean_heat_transport" > @sophtadv_ipc + @sophtldf_ipc </field>
+          <!-- hfbasinpadv -->
+          <field field_ref="sophteiv"     name="hfbasinpadv_global"   standard_name="bolus_heat_transport"                       grid_ref="gznl_T_2D"       />
+          <field field_ref="sophteiv_atl"    name="hfbasinpadv_atlantic"   standard_name="bolus_heat_transport_atlantic"/>
+          <field field_ref="sophteiv_pac"    name="hfbasinpadv_pacific"   standard_name="bolus_heat_transport_pacific" />
+          <field field_ref="sophteiv_ind"    name="hfbasinpadv_indian"   standard_name="bolus_heat_transport_indian"   />
+          <field field_ref="sophteiv_ipc"    name="hfbasinpadv_indopacific"   standard_name="bolus_heat_transport_indopacific"   />
+          <!-- hfbasinpmadv -->
+          <field field_ref="sophteiv"     name="hfbasinpmadv_global"   standard_name="bolus_heat_transport"                       grid_ref="gznl_T_2D"       />
+          <field field_ref="sophteiv_atl"    name="hfbasinpmadv_atlantic"   standard_name="bolus_heat_transport_atlantic"/>
+          <field field_ref="sophteiv_pac"    name="hfbasinpmadv_pacific"   standard_name="bolus_heat_transport_pacific" />
+          <field field_ref="sophteiv_ind"    name="hfbasinpmadv_indian"   standard_name="bolus_heat_transport_indian"   />
+          <field field_ref="sophteiv_ipc"    name="hfbasinpmadv_indopacific"   standard_name="bolus_heat_transport_indopacific"   />
+          <!-- hfbasinpmdiff -->
+          <field field_ref="sophtldf"     name="hfbasinpmdiff_global"   standard_name="diffusive_transport"                       grid_ref="gznl_T_2D"       />
+          <field field_ref="sophtldf_atl"    name="hfbasinpmdiff_atlantic"   standard_name="diffusive_transport_atlantic"/>
+          <field field_ref="sophtldf_pac"    name="hfbasinpmdiff_pacific"   standard_name="diffusive_transport_pacific" />
+          <field field_ref="sophtldf_ind"    name="hfbasinpmdiff_indian"   standard_name="diffusive_transport_indian"   />
+          <field field_ref="sophtldf_ipc"    name="hfbasinpmdiff_indopacific"   standard_name="diffusive_transport_indopacific"   />
+          <!-- hfovovrt -->
+          <field field_ref="sophtove"     name="hfovovrt_global"   standard_name="overturning_heat_transport"                   grid_ref="gznl_T_2D"       />
+          <field field_ref="sophtove_atl"    name="hfovovrt_atlantic"   standard_name="overturning_heat_transport_atlantic"/>
+          <field field_ref="sophtove_pac"    name="hfovovrt_pacific"   standard_name="overturning_heat_transport_pacific" />
+          <field field_ref="sophtove_ind"    name="hfovovrt_indian"   standard_name="overturning_heat_transport_indian"   />
+          <field field_ref="sophtove_ipc"    name="hfovovrt_indopacific"   standard_name="overturning_heat_transport_indopacific"   />
+          <!-- hfovgyre IS THIS DONE CORRECTLY? SHOULD WE ALSO SUBTRACT THE BAROTROPIC TERM? The CMIP6 data request says not to so leave it for now-->
+          <field field_ref="sophtove"     name="hfovgyre_global"   standard_name="gyre_heat_transport"         > @sophtadv - @sophtove </field>
+          <field field_ref="sophtove_atl"    name="hfovgyre_atlantic"   standard_name="gyre_heat_transport_atlantic" > @sophtadv_atl - @sophtove_atl </field>
+          <field field_ref="sophtove_pac"    name="hfovgyre_pacific"   standard_name="gyre_heat_transport_pacific"  > @sophtadv_pac - @sophtove_pac </field>
+          <field field_ref="sophtove_ind"    name="hfovgyre_indian"   standard_name="gyre_heat_transport_indian"   > @sophtadv_ind - @sophtove_ind </field>
+          <field field_ref="sophtove_ipc"    name="hfovgyre_indopacific"   standard_name="gyre_heat_transport_indopacific"   > @sophtadv_ipc - @sophtove_ipc </field>
+          <!-- sltbasin -->
+          <field field_ref="sopstadv" name="sltbasin_global" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv + @sopstldf)/1000 </field>
+          <field field_ref="sopstadv" name="sltbasin_atlantic" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv_atl + @sopstldf_atl)/1000 </field>
+          <field field_ref="sopstadv" name="sltbasin_pacific" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv_pac + @sopstldf_pac)/1000 </field>
+          <field field_ref="sopstadv" name="sltbasin_indian" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv_ind + @sopstldf_ind)/1000 </field>
+          <field field_ref="sopstadv" name="sltbasin_indopacific" standard_name="northward_ocean_heat_transport" unit="kg s-1"> (@sopstadv_ipc + @sopstldf_ipc)/1000 </field>
+          <!-- sltbasinpadv -->
+          <field field_ref="sopsteiv"        name="sltbasinpadv_global"   standard_name="bolus_salt_transport"  unit="kg s-1"> @sopsteiv/1000   </field>
+          <field field_ref="sopsteiv_atl"    name="sltbasinpadv_atlantic"   standard_name="bolus_salt_transport_atlantic" unit="kg s-1"> @sopsteiv_atl/1000   </field>
+          <field field_ref="sopsteiv_pac"    name="sltbasinpadv_pacific"   standard_name="bolus_salt_transport_pacific" unit="kg s-1"> @sopsteiv_pac/1000   </field>
+          <field field_ref="sopsteiv_ind"    name="sltbasinpadv_indian"   standard_name="bolus_salt_transport_indian"  unit="kg s-1"> @sopsteiv_ind/1000   </field>
+          <field field_ref="sopsteiv_ipc"    name="sltbasinpadv_indopacific"   standard_name="bolus_salt_transport_indopacific"  unit="kg s-1"> @sopsteiv_ipc/1000   </field>
+          <!-- sltbasinpmadv -->
+          <field field_ref="sopsteiv"        name="sltbasinpmadv_global"   standard_name="bolus_salt_transport"  unit="kg s-1"> @sopsteiv/1000   </field>        
+          <field field_ref="sopsteiv_atl"    name="sltbasinpmadv_atlantic"   standard_name="bolus_salt_transport_atlantic" unit="kg s-1"> @sopsteiv_atl/1000   </field>
+          <field field_ref="sopsteiv_pac"    name="sltbasinpmadv_pacific"   standard_name="bolus_salt_transport_pacific" unit="kg s-1"> @sopsteiv_pac/1000   </field>
+          <field field_ref="sopsteiv_ind"    name="sltbasinpmadv_indian"   standard_name="bolus_salt_transport_indian"  unit="kg s-1"> @sopsteiv_ind/1000   </field>
+          <field field_ref="sopsteiv_ipc"    name="sltbasinpmadv_indopacific"   standard_name="bolus_salt_transport_indopacific"  unit="kg s-1"> @sopsteiv_ipc/1000   </field>
+          <!-- sltbasinpmdiff -->
+          <field field_ref="sopstldf"     name="sltbasinpmdiff_global"   standard_name="diffusive_transport" unit="kg s-1">   @sopstldf/1000   </field>
+          <field field_ref="sopstldf_atl"    name="sltbasinpmdiff_atlantic"   standard_name="diffusive_transport_atlantic" unit="kg s-1"> @sopstldf_atl/1000   </field>
+          <field field_ref="sopstldf_pac"    name="sltbasinpmdiff_pacific"   standard_name="diffusive_transport_pacific" unit="kg s-1"> @sopstldf_pac/1000   </field>
+          <field field_ref="sopstldf_ind"    name="sltbasinpmdiff_indian"   standard_name="diffusive_transport_indian" unit="kg s-1">  @sopstldf_ind/1000   </field>
+          <field field_ref="sopstldf_ipc"    name="sltbasinpmdiff_indopacific"   standard_name="diffusive_transport_indopacific" unit="kg s-1">  @sopstldf_ipc/1000   </field>
+          <!-- sltovovrt -->
+          <field field_ref="sopstove"     name="sltovovrt_global"   standard_name="overturning_salt_transport"  unit="kg s-1">   @sopstove/1000   </field>       
+          <field field_ref="sopstove_atl"    name="sltovovrt_atlantic"   standard_name="overturning_salt_transport_atlantic" unit="kg s-1">   @sopstove_atl/1000   </field>
+          <field field_ref="sopstove_pac"    name="sltovovrt_pacific"   standard_name="overturning_salt_transport_pacific"  unit="kg s-1">   @sopstove_pac/1000   </field>
+          <field field_ref="sopstove_ipc"    name="sltovovrt_indopacific"   standard_name="overturning_salt_transport_indopacific"   unit="kg s-1">   @sopstove_ipc/1000   </field>
+          <!-- sltovgyre IS THIS DONE CORRECTLY? SHOULD WE ALSO SUBTRACT THE BAROTROPIC TERM?-->
+          <field field_ref="sopstove"     name="sltovgyre_global"   standard_name="gyre_salt_transport"    unit="kg s-1" > (@sopstadv - @sopstove)/1000 </field>
+          <field field_ref="sopstove_atl"    name="sltovgyre_atlantic"   standard_name="gyre_salt_transport_atlantic" unit="kg s-1" > (@sopstadv_atl - @sopstove_atl)/1000 </field>
+          <field field_ref="sopstove_pac"    name="sltovgyre_pacific"   standard_name="gyre_salt_transport_pacific" unit="kg s-1"  > (@sopstadv_pac - @sopstove_pac)/1000 </field>
+          <field field_ref="sopstove_ind"    name="sltovgyre_indian"   standard_name="gyre_salt_transport_indian" unit="kg s-1"   > (@sopstadv_ind - @sopstove_ind)/1000 </field>
+          <field field_ref="sopstove_ipc"    name="sltovgyre_indopacific"   standard_name="gyre_salt_transport_ipc" unit="kg s-1"   > (@sopstadv_ipc - @sopstove_ipc)/1000 </field>
+        </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="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>
+    
+
+
+
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-CMIP6-INVALID_PERIOD.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-CMIP6-INVALID_PERIOD.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/file_def_nemo-oce-CMIP6-INVALID_PERIOD.xml	(revision 11717)
@@ -0,0 +1,4 @@
+You can't use the standard diagnostic options with the current cycling period.
+Choose the "Custom" option, copy the file_def*.xml files that
+you want to use into the Rose app and adjust the meaning period
+accordingly. 
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/iodef.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/iodef.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/iodef.xml	(revision 11717)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<simulation> 
+
+<!-- ============================================================================================ -->
+<!-- XIOS context                                                                                 -->
+<!-- ============================================================================================ -->
+
+  <context id="xios" >
+
+      <variable_definition>
+	
+	  <variable id="info_level"                type="int">-1</variable>
+	  <variable id="using_server"              type="bool">true</variable>
+	  <variable id="using_oasis"               type="bool">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+  </context>
+
+<!-- ============================================================================================ -->
+<!-- NEMO  CONTEXT add and suppress the components you need                                       -->
+<!-- ============================================================================================ -->
+
+  <context id="nemo" src="./context_nemo.xml"/>       <!--  NEMO       -->
+
+</simulation>
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/iodef_coupled.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/iodef_coupled.xml	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/METO_GO/EXPREF/iodef_coupled.xml	(revision 11717)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<simulation> 
+
+<!-- ============================================================================================ -->
+<!-- XIOS context                                                                                 -->
+<!-- ============================================================================================ -->
+
+  <context id="xios" >
+
+      <variable_definition>
+	
+	  <variable id="info_level"                type="int">-1</variable>
+	  <variable id="using_server"              type="bool">true</variable>
+	  <variable id="using_oasis"               type="bool">true</variable>
+	  <variable id="oasis_codes_id"            type="string" >toyoce</variable>
+	
+      </variable_definition>
+  </context>
+
+<!-- ============================================================================================ -->
+<!-- NEMO  CONTEXT add and suppress the components you need                                       -->
+<!-- ============================================================================================ -->
+
+  <context id="nemo" src="./context_nemo.xml"/>       <!--  NEMO       -->
+
+</simulation>
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/SHARED/domain_def_nemo.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/SHARED/domain_def_nemo.xml	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/SHARED/domain_def_nemo.xml	(revision 11717)
@@ -179,4 +179,7 @@
      <!--   zonal mean grid   -->
      <domain id="gznl" long_name="gznl"/>
+     <domain id="ptr" domain_ref="gznl" >
+	 <zoom_domain id="ptr" ibegin="0000" jbegin="0" ni="1" nj="0000" />
+     </domain>  
      <domain id="znl_T" domain_ref="gznl" > <zoom_domain id="znl_T"/> </domain>
      <domain id="znl_W" domain_ref="gznl" > <zoom_domain id="znl_W"/> </domain>
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/SHARED/field_def_nemo-oce.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/SHARED/field_def_nemo-oce.xml	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/SHARED/field_def_nemo-oce.xml	(revision 11717)
@@ -20,5 +20,5 @@
       <field_group id="grid_T" grid_ref="grid_T_2D" >
         <field id="e3t"          long_name="T-cell thickness"                    standard_name="cell_thickness"     unit="m"   grid_ref="grid_T_3D" />
-        <field id="e3t_surf"     long_name="T-cell thickness"   field_ref="e3t"  standard_name="cell_thickness"     unit="m"   grid_ref="grid_T_SFC"/>
+        <field id="e3t_surf"     long_name="T-cell thickness"   field_ref="e3t"  standard_name="cell_thickness"     unit="m"   grid_ref="grid_T_surface_extract"/>
         <field id="e3t_0"        long_name="Initial T-cell thickness"            standard_name="ref_cell_thickness" unit="m"   grid_ref="grid_T_3D" />
 
@@ -62,4 +62,14 @@
         <field id="mldr10_1max"  long_name="Max of Mixed Layer Depth (dsigma = 0.01 wrt 10m)"   field_ref="mldr10_1"   operation="maximum"                                                                          />
         <field id="mldr10_1min"  long_name="Min of Mixed Layer Depth (dsigma = 0.01 wrt 10m)"   field_ref="mldr10_1"   operation="minimum"                                                                          />
+         <field id="mldzint_1"    long_name="Mixed Layer Depth interpolated"                     standard_name="ocean_mixed_layer_thickness"                                                       unit="m"          />
+         <field id="mldzint_2"    long_name="Mixed Layer Depth interpolated"                     standard_name="ocean_mixed_layer_thickness"                                                       unit="m"          />
+         <field id="mldzint_3"    long_name="Mixed Layer Depth interpolated"                     standard_name="ocean_mixed_layer_thickness"                                                       unit="m"          />
+         <field id="mldzint_4"    long_name="Mixed Layer Depth interpolated"                     standard_name="ocean_mixed_layer_thickness"                                                       unit="m"          />
+         <field id="mldzint_5"    long_name="Mixed Layer Depth interpolated"                     standard_name="ocean_mixed_layer_thickness"                                                       unit="m"          />
+         <field id="mldhtc_1"     long_name="Mixed Layer Depth integrated heat content"          standard_name="integral_of_sea_water_potential_temperature_wrt_depth_expressed_as_heat_content"   unit="J/m2"       />
+         <field id="mldhtc_2"     long_name="Mixed Layer Depth integrated heat content"          standard_name="integral_of_sea_water_potential_temperature_wrt_depth_expressed_as_heat_content"   unit="J/m2"       />
+         <field id="mldhtc_3"     long_name="Mixed Layer Depth integrated heat content"          standard_name="integral_of_sea_water_potential_temperature_wrt_depth_expressed_as_heat_content"   unit="J/m2"       />
+         <field id="mldhtc_4"     long_name="Mixed Layer Depth integrated heat content"          standard_name="integral_of_sea_water_potential_temperature_wrt_depth_expressed_as_heat_content"   unit="J/m2"       />
+         <field id="mldhtc_5"     long_name="Mixed Layer Depth integrated heat content"          standard_name="integral_of_sea_water_potential_temperature_wrt_depth_expressed_as_heat_content"   unit="J/m2"       />
         <field id="heatc"        long_name="Heat content vertically integrated"                 standard_name="integral_of_sea_water_potential_temperature_wrt_depth_expressed_as_heat_content"   unit="J/m2"       />
         <field id="saltc"        long_name="Salt content vertically integrated"                                                                                                                   unit="1e-3*kg/m2" />
@@ -354,4 +364,5 @@
         <field id="uoce"         long_name="ocean current along i-axis"                             standard_name="sea_water_x_velocity"        unit="m/s"        grid_ref="grid_U_3D" />
         <field id="uoce_e3u"     long_name="ocean current along i-axis  (thickness weighted)"                                                   unit="m/s"        grid_ref="grid_U_3D"  > uoce * e3u </field>
+        <field id="uoce2_e3u"    long_name="ocean current along i-axis squared (thickness weighted)"                                            unit="m3/s2"      grid_ref="grid_U_3D"  > uoce * uoce * e3u </field>
         <field id="ssu"          long_name="ocean surface current along i-axis"                                                                 unit="m/s"                             />
         <field id="sbu"          long_name="ocean bottom current along i-axis"                                                                  unit="m/s"                             />
@@ -408,4 +419,5 @@
         <field id="voce"         long_name="ocean current along j-axis"                             standard_name="sea_water_y_velocity"        unit="m/s"        grid_ref="grid_V_3D" />
         <field id="voce_e3v"     long_name="ocean current along j-axis  (thickness weighted)"                                                   unit="m/s"        grid_ref="grid_V_3D"  > voce * e3v </field>
+        <field id="voce2_e3v"    long_name="ocean current along j-axis squared (thickness weighted)"                                            unit="m3/s2"      grid_ref="grid_V_3D"  > voce * voce * e3v </field>
         <field id="ssv"          long_name="ocean surface current along j-axis"                                                                 unit="m/s"                             />
         <field id="sbv"          long_name="ocean bottom current along j-axis"                                                                  unit="m/s"                             />
@@ -497,4 +509,27 @@
       <field id="ahmf_3d"      long_name=" 3D      f-eddy viscosity coefficient"   unit="m2/s or m4/s"  grid_ref="grid_T_3D"/>
 
+      <!-- product fields -->
+      <field_group id="diaprod">
+	<field id="ut"           long_name="product_of_sea_water_x_velocity_and_potential_temperature"      unit="degree_C m/s"      grid_ref="grid_U_3D"   />
+        <field id="ut_e3u"       long_name="product_of_sea_water_x_velocity_and_potential_temperature * e3u"  unit="degree_C m2/s"   grid_ref="grid_U_3D" > ut * e3u </field >
+	<field id="us"           long_name="product_of_sea_water_x_velocity_and_salinity"                   unit="PSU m/s"       grid_ref="grid_U_3D"   />
+        <field id="us_e3u"       long_name="product_of_sea_water_x_velocity_and_salinity * e3u"             unit="PSU m2/s"      grid_ref="grid_U_3D" > us * e3u </field >
+	<field id="urhop"        long_name="product_of_sea_water_x_velocity_and_potential_density"          unit="(kg/m3).(m/s)" grid_ref="grid_U_3D"   />
+        <field id="urhop_e3u"    long_name="product_of_sea_water_x_velocity_and_potential_density * e3u"    unit="(kg/m3).(m2/s)"   grid_ref="grid_U_3D" > urhop * e3u </field >
+	<field id="vt"           long_name="product_of_sea_water_y_velocity_and_potential_temperature"      unit="degree_C m/s"      grid_ref="grid_V_3D"   />
+        <field id="vt_e3v"       long_name="product_of_sea_water_y_velocity_and_potential_temperature * e3v"  unit="degree_C m2/s"   grid_ref="grid_V_3D" > vt * e3v </field >
+	<field id="vs"           long_name="product_of_sea_water_y_velocity_and_salinity"                   unit="PSU m/s"       grid_ref="grid_V_3D"   />
+        <field id="vs_e3v"       long_name="product_of_sea_water_y_velocity_and_salinity * e3t"             unit="PSU m2/s"      grid_ref="grid_V_3D" > vs * e3v </field >
+	<field id="vrhop"        long_name="product_of_sea_water_y_velocity_and_potential_density"          unit="(kg/m3).(m/s)" grid_ref="grid_V_3D"   />
+        <field id="vrhop_e3v"    long_name="product_of_sea_water_y_velocity_and_potential_density * e3t"    unit="(kg/m3).(m2/s)"  grid_ref="grid_V_3D" > vrhop * e3v </field >
+	<field id="wt"           long_name="product_of_upward_sea_water_velocity_and_potential_temperature" unit="degree_C m/s"      grid_ref="grid_W_3D"   />
+	<field id="ws"           long_name="product_of_upward_sea_water_velocity_and_salinity"              unit="PSU m/s"       grid_ref="grid_W_3D"   />
+	<field id="wrhop"        long_name="product_of_upward_sea_water_velocity_and_potential_density"     unit="(kg/m3).(m/s)" grid_ref="grid_W_3D"   />
+	<field id="uv"           long_name="product_of_sea_water_x_velocity_and_sea_water_y_velocity"       unit="m2/s2   "      grid_ref="grid_T_3D"   />
+	<field id="uw"           long_name="product_of_upward_sea_water_velocity_and_sea_water_x_velocity"  unit="m2/s2   "      grid_ref="grid_W_3D"   />
+	<field id="vw"           long_name="product_of_upward_sea_water_velocity_and_sea_water_y_velocity"  unit="m2/s2"         grid_ref="grid_W_3D"   />
+      </field_group>
+
+      <field_group id="scalar"  grid_ref="grid_T_2D"  >
       <field_group id="scalar"  grid_ref="grid_scalar"  >
       	<!-- Need to have a salinity reference climatological file : sali_ref_clim_monthly -->
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/SHARED/grid_def_nemo.xml
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/SHARED/grid_def_nemo.xml	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/cfgs/SHARED/grid_def_nemo.xml	(revision 11717)
@@ -57,4 +57,46 @@
         <scalar/>
       </grid>
+        <!--  -->
+       <grid id="grid_EqT" >
+         <domain id="EqT" />
+       </grid>
+        <!--  -->
+       <grid id="gznl_T_2D">
+         <domain id="ptr" />
+       </grid>
+        <!--  -->
+       <grid id="gznl_T_3D">
+         <domain id="ptr" />
+         <axis axis_ref="deptht" />
+       </grid>
+        <!--  -->
+       <grid id="gznl_W_2D">
+         <domain id="ptr" />
+       </grid>
+        <!--  -->
+       <grid id="gznl_W_3D">
+         <domain id="ptr" />
+         <axis axis_ref="depthw" />
+       </grid>
+       <grid id="vert_sum">
+         <domain id="grid_T"/>
+         <scalar>
+            <reduce_axis operation="sum" />
+         </scalar>
+       </grid>
+       <grid id="zoom_300">
+         <domain id="grid_T" />
+         <axis axis_ref="deptht300"/>
+       </grid>
+       <grid id="zoom_300_sum">
+         <domain id="grid_T" />
+         <scalar>
+            <reduce_axis operation="sum" />
+         </scalar>
+       </grid>
+       <grid id="grid_T_surface_extract">
+         <domain id="grid_T" />
+         <axis   axis_ref="deptht_surface" />
+       </grid>
 
     </grid_definition>
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/ICE/icerst.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/ICE/icerst.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/ICE/icerst.F90	(revision 11717)
@@ -23,4 +23,5 @@
    USE in_out_manager ! I/O manager
    USE iom            ! I/O manager library
+   USE ioipsl, ONLY : ju2ymds    ! for calendar
    USE lib_mpp        ! MPP library
    USE lib_fortran    ! fortran utilities (glob_sum + no signed zero)
@@ -48,4 +49,7 @@
       INTEGER, INTENT(in) ::   kt       ! number of iteration
       !
+      INTEGER             ::   iyear, imonth, iday
+      REAL (wp)           ::   zsec
+      REAL (wp)           ::   zfjulday
       CHARACTER(len=20)   ::   clkt     ! ocean time-step define as a character
       CHARACTER(len=50)   ::   clname   ! ice output restart file name
@@ -63,6 +67,13 @@
          IF( nitrst <= nitend .AND. nitrst > 0 ) THEN
             ! beware of the format used to write kt (default is i8.8, that should be large enough...)
-            IF( nitrst > 99999999 ) THEN   ;   WRITE(clkt, *       ) nitrst
-            ELSE                           ;   WRITE(clkt, '(i8.8)') nitrst
+            IF ( ln_rstdate ) THEN
+               zfjulday = fjulday + (2*nn_fsbc+1)*rdt / rday
+               IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday )   zfjulday = REAL(NINT(zfjulday),wp)   ! avoid truncation error
+               CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec )           
+               WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday
+            ELSE
+               IF( nitrst > 99999999 ) THEN   ;   WRITE(clkt, *       ) nitrst
+               ELSE                           ;   WRITE(clkt, '(i8.8)') nitrst
+               ENDIF
             ENDIF
             ! create the file
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/DIA/diaprod.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/DIA/diaprod.F90	(revision 11717)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/DIA/diaprod.F90	(revision 11717)
@@ -0,0 +1,270 @@
+MODULE diaprod
+! Requires key_iom_put
+# if defined key_iomput
+   !!======================================================================
+   !!                     ***  MODULE  diaprod  ***
+   !! Ocean diagnostics :  write ocean product diagnostics
+   !!=====================================================================
+   !! History :  3.4  ! 2012  (D. Storkey)  Original code
+   !!            4.0  ! 2019  (D. Storkey)
+   !!----------------------------------------------------------------------
+
+   !!----------------------------------------------------------------------
+   !!   dia_prod      : calculate and write out product diagnostics
+   !!----------------------------------------------------------------------
+   USE oce             ! ocean dynamics and tracers 
+   USE dom_oce         ! ocean space and time domain
+   USE domvvl          ! for thickness weighted diagnostics if key_vvl
+   USE eosbn2          ! equation of state  (eos call)
+   USE phycst          ! physical constants
+   USE lbclnk          ! ocean lateral boundary conditions (or mpp link)
+   USE in_out_manager  ! I/O manager
+   USE iom
+   USE ioipsl
+   USE lib_mpp         ! MPP library
+   USE timing          ! preformance summary
+
+   IMPLICIT NONE
+   PRIVATE
+
+   PUBLIC   dia_prod                 ! routines called by step.F90
+
+   !! * Substitutions
+#  include "vectopt_loop_substitute.h90"
+   !!----------------------------------------------------------------------
+   !! NEMO/OPA 3.4 , NEMO Consortium (2012)
+   !! $Id$
+   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
+   !!----------------------------------------------------------------------
+CONTAINS
+
+   SUBROUTINE dia_prod( kt )
+      !!---------------------------------------------------------------------
+      !!                  ***  ROUTINE dia_prod  ***
+      !!                   
+      !! ** Purpose :   Write out product diagnostics (uT, vS etc.)
+      !!
+      !! ** Method  :  use iom_put
+      !!               Product diagnostics are not thickness-weighted in this routine.
+      !!               They should be thickness-weighted using XIOS if key_vvl is set. 
+      !!----------------------------------------------------------------------
+      !!
+      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index
+      !!
+      INTEGER                      ::   ji, jj, jk              ! dummy loop indices
+      REAL(wp)                     ::   zztmp, zztmpx, zztmpy   ! 
+      !!
+      REAL(wp), POINTER, DIMENSION(:,:)   :: z2d      ! 2D workspace
+      REAL(wp), POINTER, DIMENSION(:,:,:) :: z3d      ! 3D workspace
+      REAL(wp), POINTER, DIMENSION(:,:,:) :: zrhop    ! potential density
+      !!----------------------------------------------------------------------
+      ! 
+      IF( ln_timing )   CALL timing_start('dia_prod')
+      ! 
+      ALLOCATE( z2d(jpi,jpj), z3d(jpi,jpj,jpk), zrhop(jpi,jpj,jpk) )
+      !
+
+      IF( iom_use("urhop") .OR. iom_use("vrhop") .OR. iom_use("wrhop") &
+#if ! defined key_diaar5
+     &  .OR. iom_use("rhop") &
+#endif
+     & ) THEN
+         CALL eos( tsn, z3d, zrhop )                 ! now in situ and potential density
+         zrhop(:,:,:) = zrhop(:,:,:)-1000.e0         ! reference potential density to 1000 to avoid precision issues in rhop2 calculation
+         zrhop(:,:,jpk) = 0._wp
+#if ! defined key_diaar5
+         CALL iom_put( 'rhop', zrhop )
+#else
+         ! If key_diaar5 set then there is already an iom_put call to output rhop.
+         ! Really should be a standard diagnostics option?
+#endif
+      ENDIF
+
+      IF( iom_use("ut") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jk = 1, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = un(ji,jj,jk) * 0.5 * ( tsn(ji,jj,jk,jp_tem) + tsn(ji+1,jj,jk,jp_tem) )
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "ut", z3d )                  ! product of temperature and zonal velocity at U points
+      ENDIF
+
+      IF( iom_use("vt") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jk = 1, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = vn(ji,jj,jk) * 0.5 * ( tsn(ji,jj,jk,jp_tem) + tsn(ji,jj+1,jk,jp_tem) )
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "vt", z3d )                  ! product of temperature and meridional velocity at V points
+      ENDIF
+
+      IF( iom_use("wt") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jj = 2, jpjm1
+            DO ji = fs_2, fs_jpim1   ! vector opt.
+               z3d(ji,jj,1) = wn(ji,jj,1) * tsn(ji,jj,1,jp_tem)
+            END DO
+         END DO
+         DO jk = 2, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = wn(ji,jj,jk) * 0.5 * ( tsn(ji,jj,jk-1,jp_tem) + tsn(ji,jj,jk,jp_tem) )
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "wt", z3d )                  ! product of temperature and vertical velocity at W points
+      ENDIF
+
+      IF( iom_use("us") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jk = 1, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = un(ji,jj,jk) * 0.5 * ( tsn(ji,jj,jk,jp_sal) + tsn(ji+1,jj,jk,jp_sal) )
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "us", z3d )                  ! product of salinity and zonal velocity at U points
+      ENDIF
+
+      IF( iom_use("vs") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jk = 1, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = vn(ji,jj,jk) * 0.5 * ( tsn(ji,jj,jk,jp_sal) + tsn(ji,jj+1,jk,jp_sal) )
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "vs", z3d )                  ! product of salinity and meridional velocity at V points
+      ENDIF
+
+      IF( iom_use("ws") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jj = 2, jpjm1
+            DO ji = fs_2, fs_jpim1   ! vector opt.
+               z3d(ji,jj,1) = wn(ji,jj,1) * tsn(ji,jj,1,jp_sal)
+            END DO
+         END DO
+         DO jk = 2, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = wn(ji,jj,jk) * 0.5 * ( tsn(ji,jj,jk-1,jp_sal) + tsn(ji,jj,jk,jp_sal) )
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "ws", z3d )                  ! product of salinity and vertical velocity at W points
+      ENDIF
+
+      IF( iom_use("uv") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jk = 1, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = 0.25 * ( un(ji-1,jj,jk) + un(ji,jj,jk) ) * ( vn(ji,jj-1,jk) + vn(ji,jj,jk) ) 
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "uv", z3d )                  ! product of zonal velocity and meridional velocity at T points
+      ENDIF
+
+      IF( iom_use("uw") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jj = 2, jpjm1
+            DO ji = fs_2, fs_jpim1   ! vector opt.
+               z3d(ji,jj,1) = 0.5 * ( wn(ji,jj,1) + wn(ji+1,jj,1) ) * un(ji,jj,1) 
+            END DO
+         END DO
+         DO jk = 2, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = 0.25 * ( wn(ji,jj,jk) + wn(ji+1,jj,jk) ) * ( un(ji,jj,jk-1) + un(ji,jj,jk) ) 
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "uw", z3d )                  ! product of zonal velocity and vertical velocity at UW points
+      ENDIF
+
+      IF( iom_use("vw") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jj = 2, jpjm1
+            DO ji = fs_2, fs_jpim1   ! vector opt.
+               z3d(ji,jj,1) = 0.5 * ( wn(ji,jj,1) + wn(ji,jj+1,1) ) * vn(ji,jj,1) 
+            END DO
+         END DO
+         DO jk = 2, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = 0.25 * ( wn(ji,jj,jk) + wn(ji,jj+1,jk) ) * ( vn(ji,jj,jk-1) + vn(ji,jj,jk) ) 
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "vw", z3d )                  ! product of meriodional velocity and vertical velocity at VW points
+      ENDIF
+
+      IF( iom_use("urhop") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jk = 1, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = un(ji,jj,jk) * 0.5 * ( zrhop(ji,jj,jk) + zrhop(ji+1,jj,jk) )
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "urhop", z3d )                  ! product of density and zonal velocity at U points
+      ENDIF
+
+      IF( iom_use("vrhop") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jk = 1, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = vn(ji,jj,jk) * 0.5 * ( zrhop(ji,jj,jk) + zrhop(ji,jj+1,jk) )
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "vrhop", z3d )                  ! product of density and meridional velocity at V points
+      ENDIF
+
+      IF( iom_use("wrhop") ) THEN
+         z3d(:,:,:) = 0.e0 
+         DO jj = 2, jpjm1
+            DO ji = fs_2, fs_jpim1   ! vector opt.
+               z3d(ji,jj,1) = wn(ji,jj,1) * zrhop(ji,jj,1)
+            END DO
+         END DO
+         DO jk = 2, jpkm1
+            DO jj = 2, jpjm1
+               DO ji = fs_2, fs_jpim1   ! vector opt.
+                  z3d(ji,jj,jk) = wn(ji,jj,jk) * 0.5 * ( zrhop(ji,jj,jk-1) + zrhop(ji,jj,jk) )
+               END DO
+            END DO
+         END DO
+         CALL iom_put( "wrhop", z3d )                  ! product of density and vertical velocity at W points
+      ENDIF
+
+      !
+      DEALLOCATE( z2d, z3d, zrhop )
+      !
+      IF( ln_timing )   CALL timing_stop('dia_prod')
+      !
+   END SUBROUTINE dia_prod
+#else
+   !!----------------------------------------------------------------------
+   !!   Default option :                                         NO diaprod
+   !!----------------------------------------------------------------------
+   LOGICAL, PUBLIC, PARAMETER :: lk_diaprod = .FALSE.   ! coupled flag
+CONTAINS
+   SUBROUTINE dia_prod( kt )   ! Empty routine
+      INTEGER ::   kt
+      WRITE(*,*) 'dia_prod: You should not have seen this print! error?', kt
+   END SUBROUTINE dia_prod
+#endif
+   !!======================================================================
+END MODULE diaprod
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/DOM/domain.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/DOM/domain.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/DOM/domain.F90	(revision 11717)
@@ -292,5 +292,5 @@
          &             nn_it000, nn_itend , nn_date0    , nn_time0     , nn_leapy  , nn_istate ,     &
          &             nn_stock, nn_write , ln_mskland  , ln_clobber   , nn_chunksz, nn_euler  ,     &
-         &             ln_cfmeta, ln_iscpl, ln_xios_read, nn_wxios
+         &             ln_cfmeta, ln_iscpl, ln_xios_read, nn_wxios, ln_rstdate
       NAMELIST/namdom/ ln_linssh, rn_isfhmin, rn_rdt, rn_atfp, ln_crs, ln_meshmask
 #if defined key_netcdf4
@@ -340,4 +340,5 @@
 #endif
          WRITE(numout,*) '      mask land points                ln_mskland      = ', ln_mskland
+         WRITE(numout,*) '      date-stamp restart files        ln_rstdate = ', ln_rstdate
          WRITE(numout,*) '      additional CF standard metadata ln_cfmeta       = ', ln_cfmeta
          WRITE(numout,*) '      overwrite an existing file      ln_clobber      = ', ln_clobber
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/DOM/dommsk.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/DOM/dommsk.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/DOM/dommsk.F90	(revision 11717)
@@ -32,4 +32,6 @@
    USE lbclnk         ! ocean lateral boundary conditions (or mpp link)
    USE lib_mpp        ! Massively Parallel Processing library
+   USE iom             ! For shlat2d
+   USE fldread         ! for sn_shlat2d
 
    IMPLICIT NONE
@@ -92,7 +94,12 @@
       INTEGER  ::   iktop, ikbot   !   -       -
       INTEGER  ::   ios, inum
-      REAL(wp), ALLOCATABLE, DIMENSION(:,:) ::   zwf   ! 2D workspace
-      !!
-      NAMELIST/namlbc/ rn_shlat, ln_vorlat
+      !!
+      INTEGER  :: inum             !  logical unit for shlat2d
+      REAL(wp) :: zshlat           !: locally modified shlat for some strait
+      REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: zshlat2d
+      LOGICAL                         :: ln_shlat2d
+      CHARACTER(len = 256)            :: cn_shlat2d_file, cn_shlat2d_var  
+      !!
+      NAMELIST/namlbc/ rn_shlat, ln_vorlat, ln_shlat2d, cn_shlat2d_file, cn_shlat2d_var
       NAMELIST/nambdy/ ln_bdy ,nb_bdy, ln_coords_file, cn_coords_file,         &
          &             ln_mask_file, cn_mask_file, cn_dyn2d, nn_dyn2d_dta,     &
@@ -121,10 +128,19 @@
       !
       IF(lwp) WRITE(numout,*)
-      IF     (      rn_shlat == 0.               ) THEN   ;   IF(lwp) WRITE(numout,*) '   ==>>>   ocean lateral  free-slip'
-      ELSEIF (      rn_shlat == 2.               ) THEN   ;   IF(lwp) WRITE(numout,*) '   ==>>>   ocean lateral  no-slip'
-      ELSEIF ( 0. < rn_shlat .AND. rn_shlat < 2. ) THEN   ;   IF(lwp) WRITE(numout,*) '   ==>>>   ocean lateral  partial-slip'
-      ELSEIF ( 2. < rn_shlat                     ) THEN   ;   IF(lwp) WRITE(numout,*) '   ==>>>   ocean lateral  strong-slip'
+
+      IF ( ln_shlat2d ) THEN
+         IF(lwp) WRITE(numout,*) '         READ shlat as a 2D coefficient in a file '
+         ALLOCATE( zshlat2d(jpi,jpj) )
+         CALL iom_open(TRIM(cn_shlat2d_file), inum)
+         CALL iom_get (inum, jpdom_data, TRIM(cn_shlat2d_var), zshlat2d, 1) !
+         CALL iom_close(inum)
       ELSE
-         CALL ctl_stop( 'dom_msk: wrong value for rn_shlat (i.e. a negalive value). We stop.' )
+         IF     (      rn_shlat == 0.               ) THEN   ;   IF(lwp) WRITE(numout,*) '   ==>>>   ocean lateral  free-slip'
+         ELSEIF (      rn_shlat == 2.               ) THEN   ;   IF(lwp) WRITE(numout,*) '   ==>>>   ocean lateral  no-slip'
+         ELSEIF ( 0. < rn_shlat .AND. rn_shlat < 2. ) THEN   ;   IF(lwp) WRITE(numout,*) '   ==>>>   ocean lateral  partial-slip'
+         ELSEIF ( 2. < rn_shlat                     ) THEN   ;   IF(lwp) WRITE(numout,*) '   ==>>>   ocean lateral  strong-slip'
+         ELSE
+            CALL ctl_stop( 'dom_msk: wrong value for rn_shlat (i.e. a negalive value). We stop.' )
+         ENDIF
       ENDIF
 
@@ -241,32 +257,40 @@
       ! Lateral boundary conditions on velocity (modify fmask)
       ! ---------------------------------------  
-      IF( rn_shlat /= 0 ) THEN      ! Not free-slip lateral boundary condition
-         !
-         ALLOCATE( zwf(jpi,jpj) )
+      IF( rn_shlat /= 0 .or. ln_shlat2d ) THEN      ! Not free-slip lateral boundary condition everywhere
          !
          DO jk = 1, jpk
-            zwf(:,:) = fmask(:,:,jk)         
-            DO jj = 2, jpjm1
-               DO ji = fs_2, fs_jpim1   ! vector opt.
-                  IF( fmask(ji,jj,jk) == 0._wp ) THEN
-                     fmask(ji,jj,jk) = rn_shlat * MIN( 1._wp , MAX( zwf(ji+1,jj), zwf(ji,jj+1),   &
-                        &                                           zwf(ji-1,jj), zwf(ji,jj-1)  )  )
-                  ENDIF
+            IF (  ln_shlat2d ) THEN
+               DO jj = 2, jpjm1
+                  DO ji = fs_2, fs_jpim1   ! vector opt.
+                     IF( fmask(ji,jj,jk) == 0._wp ) THEN
+                        fmask(ji,jj,jk) = zshlat2d(ji,jj) * MIN( 1._wp , MAX( umask(ji,jj,jk), umask(ji,jj+1,jk),   &
+                           &                                                  vmask(ji,jj,jk), vmask(ji+1,jj,jk)  )  )
+                     ENDIF
+                  END DO
                END DO
-            END DO
+            ELSE
+               DO jj = 2, jpjm1
+                  DO ji = fs_2, fs_jpim1   ! vector opt.
+                     IF( fmask(ji,jj,jk) == 0._wp ) THEN
+                        fmask(ji,jj,jk) = rn_shlat * MIN( 1._wp , MAX( umask(ji,jj,jk), umask(ji,jj+1,jk),   &
+                           &                                           vmask(ji,jj,jk), vmask(ji+1,jj,jk)   )  )
+                     ENDIF
+                  END DO
+               END DO
+            ENDIF
             DO jj = 2, jpjm1
                IF( fmask(1,jj,jk) == 0._wp ) THEN
-                  fmask(1  ,jj,jk) = rn_shlat * MIN( 1._wp , MAX( zwf(2,jj), zwf(1,jj+1), zwf(1,jj-1) ) )
+                  fmask(1  ,jj,jk) = rn_shlat * MIN( 1._wp , MAX( vmask(2,jj,jk), umask(1,jj+1,jk), umask(1,jj,jk) ) )
                ENDIF
                IF( fmask(jpi,jj,jk) == 0._wp ) THEN
-                  fmask(jpi,jj,jk) = rn_shlat * MIN( 1._wp , MAX( zwf(jpi,jj+1), zwf(jpim1,jj), zwf(jpi,jj-1) ) )
+                  fmask(jpi,jj,jk) = rn_shlat * MIN( 1._wp , MAX( umask(jpi,jj+1,jk), vmask(jpim1,jj,jk), umask(jpi,jj-1,jk) ) )
                ENDIF
             END DO         
             DO ji = 2, jpim1
                IF( fmask(ji,1,jk) == 0._wp ) THEN
-                  fmask(ji, 1 ,jk) = rn_shlat * MIN( 1._wp , MAX( zwf(ji+1,1), zwf(ji,2), zwf(ji-1,1) ) )
+                  fmask(ji, 1 ,jk) = rn_shlat * MIN( 1._wp , MAX( vmask(ji+1,1,jk), umask(ji,2,jk), vmask(ji,1,jk) ) )
                ENDIF
                IF( fmask(ji,jpj,jk) == 0._wp ) THEN
-                  fmask(ji,jpj,jk) = rn_shlat * MIN( 1._wp , MAX( zwf(ji+1,jpj), zwf(ji-1,jpj), zwf(ji,jpjm1) ) )
+                  fmask(ji,jpj,jk) = rn_shlat * MIN( 1._wp , MAX( vmask(ji+1,jpj,jk), vmask(ji-1,jpj,jk), umask(ji,jpjm1,jk) ) )
                ENDIF
             END DO
@@ -281,5 +305,5 @@
          END DO
          !
-         DEALLOCATE( zwf )
+         IF( ln_shlat2d ) DEALLOCATE( zshlat2d )
          !
          CALL lbc_lnk( 'dommsk', fmask, 'F', 1._wp )      ! Lateral boundary conditions on fmask
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/ICB/icbrst.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/ICB/icbrst.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/ICB/icbrst.F90	(revision 11717)
@@ -25,4 +25,5 @@
    USE netcdf         ! netcdf routines for IO
    USE iom
+   USE ioipsl, ONLY : ju2ymds    ! for calendar
    USE icb_oce        ! define iceberg arrays
    USE icbutl         ! iceberg utility routines
@@ -190,6 +191,10 @@
       INTEGER ::   jn   ! dummy loop index
       INTEGER ::   ix_dim, iy_dim, ik_dim, in_dim
-      CHARACTER(len=256)     :: cl_path
-      CHARACTER(len=256)     :: cl_filename
+      INTEGER             ::   iyear, imonth, iday
+      REAL (wp)           ::   zsec
+      REAL (wp)           ::   zfjulday
+      CHARACTER(len=256)  :: cl_path
+      CHARACTER(len=256)  :: cl_filename
+      CHARACTER(LEN=20)   ::   clkt     ! ocean time-step deine as a character
       TYPE(iceberg), POINTER :: this
       TYPE(point)  , POINTER :: pt
@@ -206,8 +211,18 @@
          cl_path = TRIM(cn_ocerst_outdir)
          IF( cl_path(LEN_TRIM(cl_path):) /= '/' ) cl_path = TRIM(cl_path) // '/'
+         IF ( ln_rstdate ) THEN
+            zfjulday = fjulday + rdt / rday
+            IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday )   zfjulday = REAL(NINT(zfjulday),wp)   ! avoid truncation error
+            CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec )           
+            WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday
+         ELSE
+            IF( kt > 999999999 ) THEN   ;   WRITE(clkt, *       ) kt
+            ELSE                        ;   WRITE(clkt, '(i8.8)') kt
+            ENDIF
+         ENDIF
          IF( lk_mpp ) THEN
-            WRITE(cl_filename,'(A,"_icebergs_",I8.8,"_restart_",I4.4,".nc")') TRIM(cexper), kt, narea-1
+            WRITE(cl_filename,'(A,"_icebergs_",A,"_restart_",I4.4,".nc")') TRIM(cexper), TRIM(ADJUSTL(clkt)), narea-1
          ELSE
-            WRITE(cl_filename,'(A,"_icebergs_",I8.8,"_restart.nc")') TRIM(cexper), kt
+            WRITE(cl_filename,'(A,"_icebergs_",A,"_restart.nc")') TRIM(cexper), TRIM(ADJUSTL(clkt))
          ENDIF
          IF ( lwp .AND. nn_verbose_level >= 0) WRITE(numout,'(2a)') 'icebergs, write_restart: creating ',  &
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/IOM/in_out_manager.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/IOM/in_out_manager.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/IOM/in_out_manager.F90	(revision 11717)
@@ -40,4 +40,5 @@
    INTEGER, DIMENSION(10) :: nn_stocklist  !: restart dump times
    LOGICAL       ::   ln_mskland       !: mask land points in NetCDF outputs (costly: + ~15%)
+   LOGICAL       ::   ln_rstdate       !: T=> stamp output restart files with date instead of timestep
    LOGICAL       ::   ln_cfmeta        !: output additional data to netCDF files required for compliance with the CF metadata standard
    LOGICAL       ::   ln_clobber       !: clobber (overwrite) an existing file
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/IOM/restart.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/IOM/restart.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/IOM/restart.F90	(revision 11717)
@@ -27,4 +27,5 @@
    USE in_out_manager  ! I/O manager
    USE iom             ! I/O module
+   USE ioipsl, ONLY : ju2ymds    ! for calendar
    USE diurnal_bulk
    USE lib_mpp         ! distribued memory computing library
@@ -59,4 +60,7 @@
       INTEGER, INTENT(in) ::   kt     ! ocean time-step
       !!
+      INTEGER             ::   iyear, imonth, iday
+      REAL (wp)           ::   zsec
+      REAL (wp)           ::   zfjulday
       CHARACTER(LEN=20)   ::   clkt     ! ocean time-step deine as a character
       CHARACTER(LEN=50)   ::   clname   ! ocean output restart file name
@@ -90,6 +94,13 @@
          IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 
             ! beware of the format used to write kt (default is i8.8, that should be large enough...)
-            IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst
-            ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst
+            IF ( ln_rstdate ) THEN
+               zfjulday = fjulday + rdt / rday
+               IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday )   zfjulday = REAL(NINT(zfjulday),wp)   ! avoid truncation error
+               CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec )           
+               WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday
+            ELSE
+               IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst
+               ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst
+               ENDIF
             ENDIF
             ! create the file
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/TRA/trabbl.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/TRA/trabbl.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/TRA/trabbl.F90	(revision 11717)
@@ -513,6 +513,8 @@
       IF( tra_bbl_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'tra_bbl_init : unable to allocate arrays' )
       !
-      IF( nn_bbl_adv == 1 )    WRITE(numout,*) '       * Advective BBL using upper velocity'
-      IF( nn_bbl_adv == 2 )    WRITE(numout,*) '       * Advective BBL using velocity = F( delta rho)'
+      IF(lwp) THEN
+         IF( nn_bbl_adv == 1 )    WRITE(numout,*) '       * Advective BBL using upper velocity'
+         IF( nn_bbl_adv == 2 )    WRITE(numout,*) '       * Advective BBL using velocity = F( delta rho)'
+      ENDIF
       !
       !                             !* vertical index of  "deep" bottom u- and v-points
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/ZDF/zdfmxl.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/ZDF/zdfmxl.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/ZDF/zdfmxl.F90	(revision 11717)
@@ -15,4 +15,5 @@
    USE trc_oce  , ONLY: l_offline         ! ocean space and time domain variables
    USE zdf_oce        ! ocean vertical physics
+   USE eosbn2         ! for zdf_mxl_zint
    !
    USE in_out_manager ! I/O manager
@@ -31,7 +32,18 @@
    REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmlp    !: mixed layer depth  (rho=rho0+zdcrit) [m]   (used by LDF)
    REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmlpt   !: depth of the last T-point inside the mixed layer [m] (used by LDF)
+   REAL(wp), PUBLIC, ALLOCATABLE,       DIMENSION(:,:) ::   hmld_zint  !: vertically-interpolated mixed layer depth   [m]
+   REAL(wp), PUBLIC, ALLOCATABLE,       DIMENSION(:,:) ::   htc_mld    ! Heat content of hmld_zint
+   LOGICAL, PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)    :: ll_found   ! Is T_b to be found by interpolation ?
+   LOGICAL, PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:)  :: ll_belowml ! Flag points below mixed layer when ll_found=F
 
    REAL(wp), PUBLIC ::   rho_c = 0.01_wp    !: density criterion for mixed layer depth
    REAL(wp), PUBLIC ::   avt_c = 5.e-4_wp   ! Kz criterion for the turbocline depth
+
+   TYPE, PUBLIC :: MXL_ZINT   !: Structure for MLD defs
+      INTEGER   :: mld_type   ! mixed layer type     
+      REAL(wp)  :: zref       ! depth of initial T_ref
+      REAL(wp)  :: dT_crit    ! Critical temp diff
+      REAL(wp)  :: iso_frac   ! Fraction of rn_dT_crit 
+   END TYPE MXL_ZINT
 
    !!----------------------------------------------------------------------
@@ -48,5 +60,6 @@
       zdf_mxl_alloc = 0      ! set to zero if no array to be allocated
       IF( .NOT. ALLOCATED( nmln ) ) THEN
-         ALLOCATE( nmln(jpi,jpj), hmld(jpi,jpj), hmlp(jpi,jpj), hmlpt(jpi,jpj), STAT= zdf_mxl_alloc )
+         ALLOCATE( nmln(jpi,jpj), hmld(jpi,jpj), hmlp(jpi,jpj), hmlpt(jpi,jpj), hmld_zint(jpi,jpj),     &
+ 	&          htc_mld(jpi,jpj), ll_found(jpi,jpj), ll_belowml(jpi,jpj,jpk), STAT= zdf_mxl_alloc )         
          !
          CALL mpp_sum ( 'zdfmxl', zdf_mxl_alloc )
@@ -137,7 +150,342 @@
       ENDIF
       !
+      ! Vertically-interpolated mixed-layer depth diagnostic
+      CALL zdf_mxl_zint( kt )
+      !
       IF(ln_ctl)   CALL prt_ctl( tab2d_1=REAL(nmln,wp), clinfo1=' nmln : ', tab2d_2=hmlp, clinfo2=' hmlp : ' )
       !
    END SUBROUTINE zdf_mxl
+
+   SUBROUTINE zdf_mxl_zint_mld( sf ) 
+      !!---------------------------------------------------------------------------------- 
+      !!                    ***  ROUTINE zdf_mxl_zint_mld  *** 
+      !                                                                        
+      !   Calculate vertically-interpolated mixed layer depth diagnostic. 
+      !            
+      !   This routine can calculate the mixed layer depth diagnostic suggested by
+      !   Kara et al, 2000, JGR, 105, 16803, but is more general and can calculate
+      !   vertically-interpolated mixed-layer depth diagnostics with other parameter
+      !   settings set in the namzdf_mldzint namelist.  
+      ! 
+      !   If mld_type=1 the mixed layer depth is calculated as the depth at which the  
+      !   density has increased by an amount equivalent to a temperature difference of  
+      !   0.8C at the surface. 
+      ! 
+      !   For other values of mld_type the mixed layer is calculated as the depth at  
+      !   which the temperature differs by 0.8C from the surface temperature.  
+      !                                                                        
+      !   David Acreman, Daley Calvert                                      
+      ! 
+      !!----------------------------------------------------------------------------------- 
+
+      TYPE(MXL_ZINT), INTENT(in)  :: sf
+
+      ! Diagnostic criteria
+      INTEGER   :: nn_mld_type   ! mixed layer type     
+      REAL(wp)  :: rn_zref       ! depth of initial T_ref
+      REAL(wp)  :: rn_dT_crit    ! Critical temp diff
+      REAL(wp)  :: rn_iso_frac   ! Fraction of rn_dT_crit used
+
+      ! Local variables
+      REAL(wp), PARAMETER :: zepsilon = 1.e-30          ! local small value
+      INTEGER, DIMENSION(jpi,jpj) :: ikmt          ! number of active tracer levels 
+      INTEGER, DIMENSION(jpi,jpj) :: ik_ref        ! index of reference level 
+      INTEGER, DIMENSION(jpi,jpj) :: ik_iso        ! index of last uniform temp level 
+      REAL, DIMENSION(jpi,jpj,jpk)  :: zT            ! Temperature or density 
+      REAL, DIMENSION(jpi,jpj)    :: ppzdep        ! depth for use in calculating d(rho) 
+      REAL, DIMENSION(jpi,jpj)    :: zT_ref        ! reference temperature 
+      REAL    :: zT_b                                   ! base temperature 
+      REAL, DIMENSION(jpi,jpj,jpk)  :: zdTdz         ! gradient of zT 
+      REAL, DIMENSION(jpi,jpj,jpk)  :: zmoddT        ! Absolute temperature difference 
+      REAL    :: zdz                                    ! depth difference 
+      REAL    :: zdT                                    ! temperature difference 
+      REAL, DIMENSION(jpi,jpj)    :: zdelta_T      ! difference critereon 
+      REAL, DIMENSION(jpi,jpj)    :: zRHO1, zRHO2  ! Densities 
+      INTEGER :: ji, jj, jk                             ! loop counter 
+
+      !!------------------------------------------------------------------------------------- 
+      !  
+      ! Unpack structure
+      nn_mld_type = sf%mld_type
+      rn_zref     = sf%zref
+      rn_dT_crit  = sf%dT_crit
+      rn_iso_frac = sf%iso_frac
+
+      ! Set the mixed layer depth criterion at each grid point 
+      IF( nn_mld_type == 0 ) THEN
+         zdelta_T(:,:) = rn_dT_crit
+         zT(:,:,:) = rhop(:,:,:)
+      ELSE IF( nn_mld_type == 1 ) THEN
+         ppzdep(:,:)=0.0 
+         call eos ( tsn(:,:,1,:), ppzdep(:,:), zRHO1(:,:) ) 
+! Use zT temporarily as a copy of tsn with rn_dT_crit added to SST 
+! [assumes number of tracers less than number of vertical levels] 
+         zT(:,:,1:jpts)=tsn(:,:,1,1:jpts) 
+         zT(:,:,jp_tem)=zT(:,:,1)+rn_dT_crit 
+         CALL eos( zT(:,:,1:jpts), ppzdep(:,:), zRHO2(:,:) ) 
+         zdelta_T(:,:) = abs( zRHO1(:,:) - zRHO2(:,:) ) * rau0 
+         ! RHO from eos (2d version) doesn't calculate north or east halo: 
+         CALL lbc_lnk( 'zdfmxl', zdelta_T, 'T', 1. ) 
+         zT(:,:,:) = rhop(:,:,:) 
+      ELSE 
+         zdelta_T(:,:) = rn_dT_crit                      
+         zT(:,:,:) = tsn(:,:,:,jp_tem)                           
+      END IF 
+
+      ! Calculate the gradient of zT and absolute difference for use later 
+      DO jk = 1 ,jpk-2 
+         zdTdz(:,:,jk)  =    ( zT(:,:,jk+1) - zT(:,:,jk) ) / e3w_n(:,:,jk+1) 
+         zmoddT(:,:,jk) = abs( zT(:,:,jk+1) - zT(:,:,jk) ) 
+      END DO 
+
+      ! Find density/temperature at the reference level (Kara et al use 10m).          
+      ! ik_ref is the index of the box centre immediately above or at the reference level 
+      ! Find rn_zref in the array of model level depths and find the ref    
+      ! density/temperature by linear interpolation.                                   
+      DO jk = jpkm1, 2, -1 
+         WHERE ( gdept_n(:,:,jk) > rn_zref ) 
+           ik_ref(:,:) = jk - 1 
+           zT_ref(:,:) = zT(:,:,jk-1) + zdTdz(:,:,jk-1) * ( rn_zref - gdept_n(:,:,jk-1) ) 
+         END WHERE 
+      END DO 
+
+      ! If the first grid box centre is below the reference level then use the 
+      ! top model level to get zT_ref 
+      WHERE ( gdept_n(:,:,1) > rn_zref )  
+         zT_ref = zT(:,:,1) 
+         ik_ref = 1 
+      END WHERE 
+
+      ! The number of active tracer levels is 1 less than the number of active w levels 
+      ikmt(:,:) = mbkt(:,:) - 1 
+
+      ! Initialize / reset
+      ll_found(:,:) = .false.
+
+      IF ( rn_iso_frac - zepsilon > 0. ) THEN
+         ! Search for a uniform density/temperature region where adjacent levels          
+         ! differ by less than rn_iso_frac * deltaT.                                      
+         ! ik_iso is the index of the last level in the uniform layer  
+         ! ll_found indicates whether the mixed layer depth can be found by interpolation 
+         ik_iso(:,:)   = ik_ref(:,:) 
+         DO jj = 1, nlcj 
+            DO ji = 1, nlci 
+!CDIR NOVECTOR 
+               DO jk = ik_ref(ji,jj), ikmt(ji,jj)-1 
+                  IF ( zmoddT(ji,jj,jk) > ( rn_iso_frac * zdelta_T(ji,jj) ) ) THEN 
+                     ik_iso(ji,jj)   = jk 
+                     ll_found(ji,jj) = ( zmoddT(ji,jj,jk) > zdelta_T(ji,jj) ) 
+                     EXIT 
+                  END IF 
+               END DO 
+            END DO 
+         END DO 
+
+         ! Use linear interpolation to find depth of mixed layer base where possible 
+         hmld_zint(:,:) = rn_zref 
+         DO jj = 1, jpj 
+            DO ji = 1, jpi 
+               IF (ll_found(ji,jj) .and. tmask(ji,jj,1) == 1.0) THEN 
+                  zdz =  abs( zdelta_T(ji,jj) / zdTdz(ji,jj,ik_iso(ji,jj)) ) 
+                  hmld_zint(ji,jj) = gdept_n(ji,jj,ik_iso(ji,jj)) + zdz 
+               END IF 
+            END DO 
+         END DO 
+      END IF
+
+      ! If ll_found = .false. then calculate MLD using difference of zdelta_T    
+      ! from the reference density/temperature 
+ 
+! Prevent this section from working on land points 
+      WHERE ( tmask(:,:,1) /= 1.0 ) 
+         ll_found = .true. 
+      END WHERE 
+ 
+      DO jk=1, jpk 
+         ll_belowml(:,:,jk) = abs( zT(:,:,jk) - zT_ref(:,:) ) >= zdelta_T(:,:)  
+      END DO 
+ 
+! Set default value where interpolation cannot be used (ll_found=false)  
+      DO jj = 1, jpj 
+         DO ji = 1, jpi 
+            IF ( .not. ll_found(ji,jj) )  hmld_zint(ji,jj) = gdept_n(ji,jj,ikmt(ji,jj)) 
+         END DO 
+      END DO 
+
+      DO jj = 1, jpj 
+         DO ji = 1, jpi 
+!CDIR NOVECTOR 
+            DO jk = ik_ref(ji,jj)+1, ikmt(ji,jj) 
+               IF ( ll_found(ji,jj) ) EXIT 
+               IF ( ll_belowml(ji,jj,jk) ) THEN                
+                  zT_b = zT_ref(ji,jj) + zdelta_T(ji,jj) * SIGN(1.0, zdTdz(ji,jj,jk-1) ) 
+                  zdT  = zT_b - zT(ji,jj,jk-1)                                      
+                  zdz  = zdT / zdTdz(ji,jj,jk-1)                                       
+                  hmld_zint(ji,jj) = gdept_n(ji,jj,jk-1) + zdz 
+                  EXIT                                                   
+               END IF 
+            END DO 
+         END DO 
+      END DO 
+
+      hmld_zint(:,:) = hmld_zint(:,:)*tmask(:,:,1) 
+      !  
+   END SUBROUTINE zdf_mxl_zint_mld
+
+   SUBROUTINE zdf_mxl_zint_htc( kt )
+      !!----------------------------------------------------------------------
+      !!                  ***  ROUTINE zdf_mxl_zint_htc  ***
+      !! 
+      !! ** Purpose :   
+      !!
+      !! ** Method  :   
+      !!----------------------------------------------------------------------
+
+      INTEGER, INTENT(in) ::   kt   ! ocean time-step index
+
+      INTEGER :: ji, jj, jk
+      INTEGER :: ikmax
+      REAL(wp) :: zc, zcoef
+      !
+      INTEGER,  ALLOCATABLE, DIMENSION(:,:) ::   ilevel
+      REAL(wp), ALLOCATABLE, DIMENSION(:,:) ::   zthick_0, zthick
+
+      !!----------------------------------------------------------------------
+
+      IF( .NOT. ALLOCATED(ilevel) ) THEN
+         ALLOCATE( ilevel(jpi,jpj), zthick_0(jpi,jpj), &
+         &         zthick(jpi,jpj), STAT=ji )
+         IF( lk_mpp  )   CALL mpp_sum( 'zdfmxl', ji )
+         IF( ji /= 0 )   CALL ctl_stop( 'STOP', 'zdf_mxl_zint_htc : unable to allocate arrays' )
+      ENDIF
+
+      ! Find last whole model T level above the MLD
+      ilevel(:,:)   = 0
+      zthick_0(:,:) = 0._wp
+
+      DO jk = 1, jpkm1  
+         DO jj = 1, jpj
+            DO ji = 1, jpi                    
+               zthick_0(ji,jj) = zthick_0(ji,jj) + e3t_n(ji,jj,jk)
+               IF( zthick_0(ji,jj) < hmld_zint(ji,jj) )   ilevel(ji,jj) = jk
+            END DO
+         END DO
+         WRITE(numout,*) 'zthick_0(jk =',jk,') =',zthick_0(2,2)
+         WRITE(numout,*) 'gdepw_n(jk+1 =',jk+1,') =',gdepw_n(2,2,jk+1)
+      END DO
+
+      ! Surface boundary condition
+      IF( ln_linssh ) THEN  ;   zthick(:,:) = sshn(:,:)   ;   htc_mld(:,:) = tsn(:,:,1,jp_tem) * sshn(:,:) * tmask(:,:,1)   
+      ELSE                  ;   zthick(:,:) = 0._wp       ;   htc_mld(:,:) = 0._wp                                   
+      ENDIF
+
+      ! Deepest whole T level above the MLD
+      ikmax = MIN( MAXVAL( ilevel(:,:) ), jpkm1 )
+
+      ! Integration down to last whole model T level
+      DO jk = 1, ikmax
+         DO jj = 1, jpj
+            DO ji = 1, jpi
+               zc = e3t_n(ji,jj,jk) * REAL( MIN( MAX( 0, ilevel(ji,jj) - jk + 1 ) , 1  )  )    ! 0 below ilevel
+               zthick(ji,jj) = zthick(ji,jj) + zc
+               htc_mld(ji,jj) = htc_mld(ji,jj) + zc * tsn(ji,jj,jk,jp_tem) * tmask(ji,jj,jk)
+            END DO
+         END DO
+      END DO
+
+      ! Subsequent partial T level
+      zthick(:,:) = hmld_zint(:,:) - zthick(:,:)   !   remaining thickness to reach MLD
+
+      DO jj = 1, jpj
+         DO ji = 1, jpi
+            htc_mld(ji,jj) = htc_mld(ji,jj) + tsn(ji,jj,ilevel(ji,jj)+1,jp_tem)  & 
+      &                      * MIN( e3t_n(ji,jj,ilevel(ji,jj)+1), zthick(ji,jj) ) * tmask(ji,jj,ilevel(ji,jj)+1)
+         END DO
+      END DO
+
+      WRITE(numout,*) 'htc_mld(after) =',htc_mld(2,2)
+
+      ! Convert to heat content
+      zcoef = rau0 * rcp
+      htc_mld(:,:) = zcoef * htc_mld(:,:)
+
+   END SUBROUTINE zdf_mxl_zint_htc
+
+   SUBROUTINE zdf_mxl_zint( kt )
+      !!----------------------------------------------------------------------
+      !!                  ***  ROUTINE zdf_mxl_zint  ***
+      !! 
+      !! ** Purpose :   
+      !!
+      !! ** Method  :   
+      !!----------------------------------------------------------------------
+
+      INTEGER, INTENT(in) ::   kt   ! ocean time-step index
+
+      INTEGER :: ios
+      INTEGER :: jn
+
+      INTEGER :: nn_mld_diag = 0    ! number of diagnostics
+
+      CHARACTER(len=1) :: cmld
+
+      TYPE(MXL_ZINT) :: sn_mld1, sn_mld2, sn_mld3, sn_mld4, sn_mld5
+      TYPE(MXL_ZINT), SAVE, DIMENSION(5) ::   mld_diags
+
+      NAMELIST/namzdf_mldzint/ nn_mld_diag, sn_mld1, sn_mld2, sn_mld3, sn_mld4, sn_mld5
+
+      !!----------------------------------------------------------------------
+      
+      IF( kt == nit000 ) THEN
+         REWIND( numnam_ref )              ! Namelist namzdf_mldzint in reference namelist 
+         READ  ( numnam_ref, namzdf_mldzint, IOSTAT = ios, ERR = 901)
+901      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_mldzint in reference namelist', lwp )
+
+         REWIND( numnam_cfg )              ! Namelist namzdf_mldzint in configuration namelist 
+         READ  ( numnam_cfg, namzdf_mldzint, IOSTAT = ios, ERR = 902 )
+902      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_mldzint in configuration namelist', lwp )
+         IF(lwm) WRITE ( numond, namzdf_mldzint )
+
+         IF( nn_mld_diag > 5 )   CALL ctl_stop( 'STOP', 'zdf_mxl_ini: Specify no more than 5 MLD definitions' )
+
+         mld_diags(1) = sn_mld1
+         mld_diags(2) = sn_mld2
+         mld_diags(3) = sn_mld3
+         mld_diags(4) = sn_mld4
+         mld_diags(5) = sn_mld5
+
+         IF( lwp .AND. (nn_mld_diag > 0) ) THEN
+            WRITE(numout,*) '=============== Vertically-interpolated mixed layer ================'
+            WRITE(numout,*) '(Diagnostic number, nn_mld_type, rn_zref, rn_dT_crit, rn_iso_frac)'
+            DO jn = 1, nn_mld_diag
+               WRITE(numout,*) 'MLD criterion',jn,':'
+               WRITE(numout,*) '    nn_mld_type =', mld_diags(jn)%mld_type
+               WRITE(numout,*) '    rn_zref ='    , mld_diags(jn)%zref
+               WRITE(numout,*) '    rn_dT_crit =' , mld_diags(jn)%dT_crit
+               WRITE(numout,*) '    rn_iso_frac =', mld_diags(jn)%iso_frac
+            END DO
+            WRITE(numout,*) '===================================================================='
+         ENDIF
+      ENDIF
+
+      IF( nn_mld_diag > 0 ) THEN
+         DO jn = 1, nn_mld_diag
+            WRITE(cmld,'(I1)') jn
+            IF( iom_use( "mldzint_"//cmld ) .OR. iom_use( "mldhtc_"//cmld ) ) THEN
+               CALL zdf_mxl_zint_mld( mld_diags(jn) )
+
+               IF( iom_use( "mldzint_"//cmld ) ) THEN
+                  CALL iom_put( "mldzint_"//cmld, hmld_zint(:,:) )
+               ENDIF
+
+               IF( iom_use( "mldhtc_"//cmld ) )  THEN
+                  CALL zdf_mxl_zint_htc( kt )
+                  CALL iom_put( "mldhtc_"//cmld , htc_mld(:,:)   )
+               ENDIF
+            ENDIF
+         END DO
+      ENDIF
+
+   END SUBROUTINE zdf_mxl_zint
 
    !!======================================================================
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/step.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/step.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/step.F90	(revision 11717)
@@ -209,4 +209,5 @@
                          CALL dia_ar5 ( kstp )        ! ar5 diag
       IF( ln_diaharm )   CALL dia_harm( kstp )        ! Tidal harmonic analysis
+                         CALL dia_prod( kstp )        ! ocean model: product diagnostics
                          CALL dia_wri ( kstp )        ! ocean model: outputs
       !
Index: /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/step_oce.F90
===================================================================
--- /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/step_oce.F90	(revision 11716)
+++ /NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/OCE/step_oce.F90	(revision 11717)
@@ -80,4 +80,5 @@
    USE diahsb          ! heat, salt and volume budgets    (dia_hsb routine)
    USE diaharm
+   USE diaprod
    USE diacfl
    USE diaobs          ! Observation operator
