Index: /CONFIG/UNIFORM/v6/IPSLCM6/AA_make
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/AA_make	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/AA_make	(revision 2876)
@@ -69,5 +69,5 @@
 
 liborchidee : ../../modeles/ORCHIDEE/
-	(cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios)
+	(cd ../../modeles/ORCHIDEE/ ; ./makeorchidee_fcm -parallel mpi_omp -arch $(FCM_ARCH) -j 8 -xios2)
 
 lmdz96x95x39:
@@ -82,5 +82,5 @@
 lmdz: ../../modeles/LMDZ
 #	(cd ../../modeles/LMDZ; ./makelmdz_fcm -d $(RESOL_LMDZ) -arch $(FCM_ARCH) -j 8 ce0l ; cp bin/ce0l_$(RESOL_LMDZ)_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
-	(cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -mem -cosp false -v true -parallel mpi_omp -io xios -rrtm true -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; cp bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple.e ../../bin/gcm.e ; )
+	(cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -mem -cosp true -v true -parallel mpi_omp -io xios -rrtm true -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; cp bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_orch_couple.e ../../bin/gcm.e ; )
 
 xios: ../../modeles/XIOS
@@ -128,5 +128,5 @@
 
 cleanioipsl :
-	( cd ../../modeles/IOIPSL ; make clean )
+	( cd ../../modeles/IOIPSL/src ; gmake clean )
 	( cd $(BINDIR) ; rm -f calendar.mod  defprec.mod  errioipsl.mod  flincom.mod  fliocom.mod  getincom.mod  histcom.mod  ioipsl.mod  libioipsl.a	mathelp.mod  restcom.mod  stringop.mod )	
 
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/lim3.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/lim3.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/lim3.card	(revision 2876)
@@ -17,4 +17,7 @@
 List=	(${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/namelist_ice_lim3_ref , namelist_ice_ref ), \
         (${SUBMIT_DIR}/PARAM/namelist_lim3_${RESOL_OCE}_cfg             , namelist_ice_cfg )
+        (${SUBMIT_DIR}/PARAM/file_def_nemo-lim3.xml                  , file_def_nemo-lim.xml   ), \
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/field_def_nemo-lim.xml                  , field_def_nemo-lim.xml   )
+
 
 [RestartFiles]
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/lmdz.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/lmdz.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/lmdz.card	(revision 2876)
@@ -74,6 +74,6 @@
         (${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_XY},    gcm.def),          \
         (${SUBMIT_DIR}/PARAM/vert.def_L${RESOL_ATM_Z},   vert.def),         \
-        (${SUBMIT_DIR}/PARAM/cosp_input_nl.txt,                .),          \
-        (${SUBMIT_DIR}/PARAM/cosp_output_nl.txt,               .),          \
+        (${MODIPSL}/modeles/LMDZ/DefLists/cosp_input_nl.txt,   .),          \
+        (${MODIPSL}/modeles/LMDZ/DefLists/cosp_output_nl.txt,  .),          \
         (${SUBMIT_DIR}/PARAM/config.def_${ConfType},  config.def),          \
         (${SUBMIT_DIR}/PARAM/guide.def, .),                                 \
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/opa9.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/opa9.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/opa9.card	(revision 2876)
@@ -25,5 +25,6 @@
             (${R_IN}/OCE/IPSLCM6/${opa9_UserChoices_ORCA_version}/weights_Goutorbe1_2_eorca1_bilinear.nc               ,  . ), \
             (${R_IN}/OCE/IPSLCM6/${opa9_UserChoices_ORCA_version}/merged_ESACCI_BIOMER4V1R1_CHL_REG05.nc               ,  . ), \
-            (${R_IN}/OCE/IPSLCM6/${opa9_UserChoices_ORCA_version}/weights_reg05_2_eorca1_bilinear.nc                   ,  . )
+            (${R_IN}/OCE/IPSLCM6/${opa9_UserChoices_ORCA_version}/weights_reg05_2_eorca1_bilinear.nc                   ,  . ), \
+	    (${R_IN}/OCE/IPSLCM6/${opa9_UserChoices_ORCA_version}/vosaline_360x180-ORCA1_WOA13_climatemonth.nc         , sali_ref_clim_monthly.nc )
 
 
@@ -32,10 +33,11 @@
 
 [ParametersFiles]
-List=	(${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/namelist_ref  , namelist_ref        ), \
-        (${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/field_def.xml , field_def_nemo.xml  ), \
-        (${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/domain_def.xml, domain_def_nemo.xml ), \
+List=   (${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/namelist_ref  , namelist_ref        ), \
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/field_def_nemo-opa.xml , field_def_nemo-opa.xml  ), \
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/domain_def_nemo.xml, domain_def_nemo.xml ), \
         (${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}_cfg          , namelist_cfg        ), \
-        (${SUBMIT_DIR}/PARAM/context_nemo.xml                   , context_nemo.xml    ), \
-	(${SUBMIT_DIR}/PARAM/file_def_nemo.xml                  , file_def_nemo.xml   )
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/context_nemo.xml                   , context_nemo.xml    ), \
+        (${SUBMIT_DIR}/PARAM/file_def_nemo-opa.xml                  , file_def_nemo-opa.xml   )
+
    
 
@@ -85,5 +87,5 @@
 [Post_1M_grid_T]
 Patches = ()
-GatherWithInternal = (nav_lon, nav_lat, deptht, time_instant, time_counter, time_centered, time_centered_bounds)
+GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter, time_centered, time_centered_bounds)
 TimeSeriesVars2D = (zos, zossq, tos, sos, tossq, omlmax, mldkz5, mldr10_1, nshfls, rsntds, rsds, friver, hc300, wfo)
 ChunckJob2D = NONE
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/orchidee.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/orchidee.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/orchidee.card	(revision 2876)
@@ -15,5 +15,5 @@
 List=	(${R_IN}/SRF/soils_param.nc,        . ), \
 	(${R_IN}/SRF/routing.nc,            . ), \
-	(${R_IN}/SRF/albedo/alb_bg_jrctip.nc, . ), \
+    (${R_IN}/SRF/albedo/alb_bg_modisopt.nc, alb_bg.nc), \
 	(${R_IN}/SRF/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_2000.nc, PFTmap.nc), \
         (${R_IN}/SRF/cartepente2d_15min.nc, .)
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/pisces.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/pisces.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/pdControl/COMP/pisces.card	(revision 2876)
@@ -35,4 +35,7 @@
         (${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/namelist_pisces_ref, namelist_pisces_ref) ,\
         (${SUBMIT_DIR}/PARAM/namelist_pisces_${RESOL_OCE}_cfg        , namelist_pisces_cfg)
+        (${SUBMIT_DIR}/PARAM/file_def_nemo-pisces.xml                  , file_def_nemo-pisces.xml   ), \
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/field_def_nemo-pisces.xml                  , field_def_nemo-pisces.xml   )
+        
 
 [RestartFiles]
@@ -45,8 +48,8 @@
 List=   (${config_UserChoices_JobName}_1y_ptrc_T.nc        , ${R_OUT_MBG_O_Y}/${PREFIX}_1Y_ptrc_T.nc    , Post_1Y_ptrc_T   ) , \
         (${config_UserChoices_JobName}_1y_diad_T.nc        , ${R_OUT_MBG_O_Y}/${PREFIX}_1Y_diad_T.nc    , Post_1Y_diad_T   ) , \
-	(${config_UserChoices_JobName}_1m_bioscalar.nc_T.nc, ${R_OUT_MBG_O_M}/${PREFIX}_1M_bioscalar.nc , Post_1D_bioscalar) , \
+	(${config_UserChoices_JobName}_1m_bioscalar.nc     , ${R_OUT_MBG_O_M}/${PREFIX}_1M_bioscalar.nc , Post_1M_bioscalar) , \
         (${config_UserChoices_JobName}_1m_ptrc_T.nc        , ${R_OUT_MBG_O_M}/${PREFIX}_1M_ptrc_T.nc    , Post_1M_ptrc_T   ) , \
         (${config_UserChoices_JobName}_1m_diad_T.nc        , ${R_OUT_MBG_O_M}/${PREFIX}_1M_diad_T.nc    , Post_1M_diad_T   ) , \
-	(${config_UserChoices_JobName}_1d_bioscalar.nc_T.nc, ${R_OUT_MBG_O_M}/${PREFIX}_1D_bioscalar.nc , Post_1D_bioscalar)
+	(${config_UserChoices_JobName}_1d_bioscalar.nc     , ${R_OUT_MBG_O_M}/${PREFIX}_1D_bioscalar.nc , Post_1D_bioscalar)
 
 
@@ -54,5 +57,14 @@
 [Post_1D_bioscalar]
 Patches = ()
-GatherWithInternal = (time_counter, time_instant, time_centered_bounds)
+GatherWithInternal = (time_counter, time_instant, time_instant_bounds)
+TimeSeriesVars2D = (pno3tot, ppo4tot, psiltot, palktot, pfertot, tcflx, tcflxcum, tcexp, tintpp, tnfix, tdenit)
+ChunckJob2D = OFF
+TimeSeriesVars3D = ()
+ChunckJob3D = 50Y
+Seasonal=OFF
+
+[Post_1M_bioscalar]
+Patches = ()
+GatherWithInternal = (time_counter, time_instant, time_instant_bounds)
 TimeSeriesVars2D = (pno3tot, ppo4tot, psiltot, palktot, pfertot, tcflx, tcflxcum, tcexp, tintpp, tnfix, tdenit)
 ChunckJob2D = OFF
@@ -63,5 +75,5 @@
 [Post_1M_ptrc_T]
 Patches = ()
-GatherWithInternal = (nav_lon, nav_lat, time_counter, time_instant, time_counter_bounds)
+GatherWithInternal = (nav_lon, nav_lat, time_counter, time_centered, time_centered_bounds)
 TimeSeriesVars2D = ()
 ChunckJob2D = 50Y
@@ -81,5 +93,5 @@
 [Post_1Y_ptrc_T]
 Patches = ()
-GatherWithInternal = (nav_lon, nav_lat, time_counter, time_instant, time_counter_bounds)
+GatherWithInternal = (nav_lon, nav_lat, time_counter, time_centered, time_centered_bounds)
 TimeSeriesVars2D = ()
 ChunckJob2D = OFF
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/lim3.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/lim3.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/lim3.card	(revision 2876)
@@ -17,4 +17,7 @@
 List=	(${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/namelist_ice_lim3_ref , namelist_ice_ref ), \
         (${SUBMIT_DIR}/PARAM/namelist_lim3_${RESOL_OCE}_cfg             , namelist_ice_cfg )
+        (${SUBMIT_DIR}/PARAM/file_def_nemo-lim3.xml                  , file_def_nemo-lim.xml   ), \
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/field_def_nemo-lim.xml                  , field_def_nemo-lim.xml   )
+
 
 [RestartFiles]
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/lmdz.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/lmdz.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/lmdz.card	(revision 2876)
@@ -72,6 +72,6 @@
         (${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_XY},    gcm.def),          \
         (${SUBMIT_DIR}/PARAM/vert.def_L${RESOL_ATM_Z},   vert.def),         \
-        (${SUBMIT_DIR}/PARAM/cosp_input_nl.txt,                .),          \
-        (${SUBMIT_DIR}/PARAM/cosp_output_nl.txt,               .),          \
+        (${MODIPSL}/modeles/LMDZ/DefLists/cosp_input_nl.txt,   .),          \
+        (${MODIPSL}/modeles/LMDZ/DefLists/cosp_output_nl.txt,  .),          \
         (${SUBMIT_DIR}/PARAM/config.def_${ConfType},  config.def),          \
         (${SUBMIT_DIR}/PARAM/guide.def, .),                                 \
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/opa9.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/opa9.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/opa9.card	(revision 2876)
@@ -33,10 +33,11 @@
 
 [ParametersFiles]
-List=	(${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/namelist_ref  , namelist_ref        ), \
-        (${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/field_def.xml , field_def_nemo.xml  ), \
-        (${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/domain_def.xml, domain_def_nemo.xml ), \
+List=   (${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/namelist_ref  , namelist_ref        ), \
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/field_def_nemo-opa.xml , field_def_nemo-opa.xml  ), \
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/domain_def_nemo.xml, domain_def_nemo.xml ), \
         (${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}_cfg          , namelist_cfg        ), \
-        (${SUBMIT_DIR}/PARAM/context_nemo.xml                   , context_nemo.xml    ), \
-	(${SUBMIT_DIR}/PARAM/file_def_nemo.xml                  , file_def_nemo.xml   )
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/context_nemo.xml                   , context_nemo.xml    ), \
+        (${SUBMIT_DIR}/PARAM/file_def_nemo-opa.xml                  , file_def_nemo-opa.xml   )
+
    
 
@@ -86,5 +87,5 @@
 [Post_1M_grid_T]
 Patches = ()
-GatherWithInternal = (nav_lon, nav_lat, deptht, time_instant, time_counter, time_centered, time_centered_bounds)
+GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter, time_centered, time_centered_bounds)
 TimeSeriesVars2D = (zos, zossq, tos, sos, tossq, omlmax, mldkz5, mldr10_1, nshfls, rsntds, rsds, friver, hc300, wfo)
 ChunckJob2D = NONE
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/orchidee.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/orchidee.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/orchidee.card	(revision 2876)
@@ -15,5 +15,5 @@
 List=	(${R_IN}/SRF/soils_param.nc,        . ), \
 	(${R_IN}/SRF/routing.nc,            . ), \
-	(${R_IN}/SRF/albedo/alb_bg_jrctip.nc, . ), \
+	(${R_IN}/SRF/albedo/alb_bg_modisopt.nc, alb_bg.nc), \
 	(${R_IN}/SRF/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_1850.nc, PFTmap.nc), \
         (${R_IN}/SRF/cartepente2d_15min.nc, .)
Index: /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/pisces.card
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/pisces.card	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/EXPERIMENTS/IPSLCM/piControl/COMP/pisces.card	(revision 2876)
@@ -35,4 +35,7 @@
         (${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/namelist_pisces_ref, namelist_pisces_ref) ,\
         (${SUBMIT_DIR}/PARAM/namelist_pisces_${RESOL_OCE}_cfg        , namelist_pisces_cfg)
+        (${SUBMIT_DIR}/PARAM/file_def_nemo-pisces.xml                  , file_def_nemo-pisces.xml   ), \
+        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/field_def_nemo-pisces.xml                  , field_def_nemo-pisces.xml   )
+        
 
 [RestartFiles]
@@ -54,5 +57,5 @@
 [Post_1D_bioscalar]
 Patches = ()
-GatherWithInternal = (time_counter, time_instant, time_centered_bounds)
+GatherWithInternal = (time_counter, time_instant, time_instant_bounds)
 TimeSeriesVars2D = (pno3tot, ppo4tot, psiltot, palktot, pfertot, tcflx, tcflxcum, tcexp, tintpp, tnfix, tdenit)
 ChunckJob2D = OFF
@@ -63,5 +66,5 @@
 [Post_1M_bioscalar]
 Patches = ()
-GatherWithInternal = (time_counter, time_instant, time_centered_bounds)
+GatherWithInternal = (time_counter, time_instant, time_instant_bounds)
 TimeSeriesVars2D = (pno3tot, ppo4tot, psiltot, palktot, pfertot, tcflx, tcflxcum, tcexp, tintpp, tnfix, tdenit)
 ChunckJob2D = OFF
@@ -72,5 +75,5 @@
 [Post_1M_ptrc_T]
 Patches = ()
-GatherWithInternal = (nav_lon, nav_lat, time_counter, time_instant, time_counter_bounds)
+GatherWithInternal = (nav_lon, nav_lat, time_counter, time_centered, time_centered_bounds)
 TimeSeriesVars2D = ()
 ChunckJob2D = 50Y
@@ -90,5 +93,5 @@
 [Post_1Y_ptrc_T]
 Patches = ()
-GatherWithInternal = (nav_lon, nav_lat, time_counter, time_instant, time_counter_bounds)
+GatherWithInternal = (nav_lon, nav_lat, time_counter, time_centered, time_centered_bounds)
 TimeSeriesVars2D = ()
 ChunckJob2D = OFF
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/lmdz.driver
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/lmdz.driver	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/lmdz.driver	(revision 2876)
@@ -434,4 +434,12 @@
 	IGCM_comp_modifyDefFile nonblocker config.def ok_cdnc n	
     fi 
+
+    # config.def : Activate COSP
+    if [ ! X${lmdz_UserChoices_LMDZ_COSP_OK} = X ]; then 
+	IGCM_comp_modifyDefFile nonblocker config.def ok_cosp ${lmdz_UserChoices_LMDZ_COSP_OK}
+    else
+	IGCM_comp_modifyDefFile nonblocker config.def ok_cosp n	
+    fi 
+
 
     # guide.def : Activate nudging if ok_guide=y set in lmdz.card
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver	(revision 2876)
@@ -159,8 +159,16 @@
     IGCM_debug_Print 1 ${V1D_ENABLE} ${V1M_ENABLE} ${V1Y_ENABLE}
 
-    IGCM_comp_modifyXmlFile nonblocker file_def_nemo.xml 1d enabled ${V1D_ENABLE}
-    IGCM_comp_modifyXmlFile nonblocker file_def_nemo.xml 1m enabled ${V1M_ENABLE}
-    IGCM_comp_modifyXmlFile nonblocker file_def_nemo.xml 1y enabled ${V1Y_ENABLE}
+    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1d enabled ${V1D_ENABLE}
+    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1m enabled ${V1M_ENABLE}
+    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1y enabled ${V1Y_ENABLE}
 	
+    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d enabled ${V1D_ENABLE}
+    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m enabled ${V1M_ENABLE}
+    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y enabled ${V1Y_ENABLE}
+
+    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1d enabled ${V1D_ENABLE}
+    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1m enabled ${V1M_ENABLE}
+    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1y enabled ${V1Y_ENABLE}
+
     # vargas/titane/MPP and switch from 1 proc to 5 procs. We need to suppres restartopa the second month, if restartopa_0000 exist
     # same thing for restart_trc and restart_ice_in
@@ -181,5 +189,5 @@
     #Long Name as global attribute (if LongName is not empty)
     if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then
-	listfile=$(ls file_def*nemo.xml)
+	listfile=$(ls file_def_nemo*.xml)
 	echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp
 	for file in ${listfile}
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_actuel
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_actuel	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_actuel	(revision 2876)
@@ -64,2 +64,4 @@
 # 2: read two ozone climatologies, the average day and night climatology and the daylight climatology
 read_climoz=_AUTO_
+# COSP
+ok_cosp=_AUTO_
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_annuel
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_annuel	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_annuel	(revision 2876)
@@ -64,2 +64,4 @@
 # 2: read two ozone climatologies, the average day and night climatology and the daylight climatology
 read_climoz=_AUTO_
+# COSP
+ok_cosp=_AUTO_
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_preind
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_preind	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_preind	(revision 2876)
@@ -66,2 +66,4 @@
 # 2: read two ozone climatologies, the average day and night climatology and the daylight climatology
 read_climoz=_AUTO_
+# COSP
+ok_cosp=_AUTO_
Index: NFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/cosp_input_nl.txt
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/cosp_input_nl.txt	(revision 2875)
+++ 	(revision )
@@ -1,99 +1,0 @@
-! (c) British Crown Copyright 2008, the Met Office.
-! All rights reserved.
-! 
-! Redistribution and use in source and binary forms, with or without modification, are permitted 
-! provided that the following conditions are met:
-! 
-!     * Redistributions of source code must retain the above copyright notice, this list 
-!       of conditions and the following disclaimer.
-!     * Redistributions in binary form must reproduce the above copyright notice, this list
-!       of conditions and the following disclaimer in the documentation and/or other materials 
-!       provided with the distribution.
-!     * Neither the name of the Met Office nor the names of its contributors may be used 
-!       to endorse or promote products derived from this software without specific prior written 
-!       permission.
-! 
-! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 
-! IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 
-! FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-! CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
-! DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-! DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 
-! IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
-! OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-! Namelist that sets up the main COSP options
-&COSP_INPUT
-  NPOINTS_IT=10000,! Max number of gridpoints to be processed in one iteration
-  NCOLUMNS=20,  ! Number of subcolumns
-  USE_VGRID=.false., ! Use fixed vertical grid for outputs? (if .true. then you need to define number of levels with Nlr)
-  NLR=40,       ! Number of levels in statistical outputs (only used if USE_VGRID=.true.)
-  CSAT_VGRID=.false., ! CloudSat vertical grid? (if .true. then the CloudSat standard grid is used for the outputs.
-                     !  USE_VGRID needs also be .true.)
-  !----------------------------------------------------------------------------------
-  !--------------- Inputs related to radar simulations
-  !----------------------------------------------------------------------------------
-  RADAR_FREQ=94.0, ! CloudSat radar frequency (GHz)
-  SURFACE_RADAR=0, ! surface=1, spaceborne=0
-  use_mie_tables=0,! use a precomputed lookup table? yes=1,no=0
-  use_gas_abs=1,   ! include gaseous absorption? yes=1,no=0
-  do_ray=0,        ! calculate/output Rayleigh refl=1, not=0
-  melt_lay=0,      ! melting layer model off=0, on=1
-  k2=-1,           ! |K|^2, -1=use frequency dependent default
-  use_reff=.true., ! True if you want effective radius to be used by radar simulator (always used by lidar)
-  use_precipitation_fluxes=.true.,  ! True if precipitation fluxes are input to the algorithm 
-  !----------------------------------------------------------------------------------
-  !---------------- Inputs related to lidar simulations
-  !----------------------------------------------------------------------------------
-  Nprmts_max_hydro=12, ! Max number of parameters for hydrometeor size distributions
-  Naero=1,             ! Number of aerosol species (Not used)
-  Nprmts_max_aero=1,   ! Max number of parameters for aerosol size distributions (Not used)
-  lidar_ice_type=0,    ! Ice particle shape in lidar calculations (0=ice-spheres ; 1=ice-non-spherical)
-  OVERLAP=3,   !  overlap type: 1=max, 2=rand, 3=max/rand
-  !----------------------------------------------------------------------------------
-  !---------------- Inputs related to ISCCP simulator
-  !----------------------------------------------------------------------------------
-  ISCCP_TOPHEIGHT=1,  !  1 = adjust top height using both a computed
-                       !  infrared brightness temperature and the visible
-                       !  optical depth to adjust cloud top pressure. Note
-                       !  that this calculation is most appropriate to compare
-                       !  to ISCCP data during sunlit hours.
-                      !  2 = do not adjust top height, that is cloud top
-                       !  pressure is the actual cloud top pressure
-                       !  in the model
-                      !  3 = adjust top height using only the computed
-                       !  infrared brightness temperature. Note that this
-                       !  calculation is most appropriate to compare to ISCCP
-                       !  IR only algortihm (i.e. you can compare to nighttime
-                       !  ISCCP data with this option)
-  ISCCP_TOPHEIGHT_DIRECTION=2,   ! direction for finding atmosphere pressure level
-                                 ! with interpolated temperature equal to the radiance
-                                 ! determined cloud-top temperature
-                                 ! 1 = find the *lowest* altitude (highest pressure) level
-                                 ! with interpolated temperature equal to the radiance
-                                 ! determined cloud-top temperature
-                                 ! 2 = find the *highest* altitude (lowest pressure) level
-                                 ! with interpolated temperature equal to the radiance 
-                                 ! determined cloud-top temperature
-                                 ! ONLY APPLICABLE IF top_height EQUALS 1 or 3
-                                 ! 1 = default setting, and matches all versions of 
-                                 ! ISCCP simulator with versions numbers 3.5.1 and lower
-                                 ! 2 = experimental setting  
-  !----------------------------------------------------------------------------------
-  !-------------- RTTOV inputs
-  !----------------------------------------------------------------------------------
-  Platform=1,    ! satellite platform
-  Satellite=15,  ! satellite
-  Instrument=0,  ! instrument
-  Nchannels=8,   ! Number of channels to be computed
-  Channels=1,3,5,6,8,10,11,13,        ! Channel numbers (please be sure that you supply Nchannels)
-  Surfem=0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,  ! Surface emissivity (please be sure that you supply Nchannels)
-  ZenAng=50.0, ! Satellite Zenith Angle
-  CO2=5.241e-04, ! Mixing ratios of trace gases
-  CH4=9.139e-07,
-  N2O=4.665e-07,
-  CO=2.098e-07
-/
-
-
Index: NFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/cosp_output_nl.txt
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/cosp_output_nl.txt	(revision 2875)
+++ 	(revision )
@@ -1,63 +1,0 @@
-! (c) British Crown Copyright 2008, the Met Office.
-! All rights reserved.
-! 
-! Redistribution and use in source and binary forms, with or without modification, are permitted 
-! provided that the following conditions are met:
-! 
-!     * Redistributions of source code must retain the above copyright notice, this list 
-!       of conditions and the following disclaimer.
-!     * Redistributions in binary form must reproduce the above copyright notice, this list
-!       of conditions and the following disclaimer in the documentation and/or other materials 
-!       provided with the distribution.
-!     * Neither the name of the Met Office nor the names of its contributors may be used 
-!       to endorse or promote products derived from this software without specific prior written 
-!       permission.
-! 
-! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 
-! IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 
-! FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-! CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
-! DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-! DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 
-! IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
-! OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-! Namelist that sets up output-related variables. It controls 
-! the instrument simulators to run and the list of variables 
-! to be written to file
-&COSP_OUTPUT
-  ! Simulator flags
-  Lradar_sim=.false.,
-  Llidar_sim=.true.,
-  Lisccp_sim=.true.,
-  Lmisr_sim=.false.,
-  ! Output variables
-  Lalbisccp=.true.,
-  Latb532=.true.,
-  Lboxptopisccp=.true.,
-  Lboxtauisccp=.true.,
-  Lcfad_dbze94=.false.,
-  Lcfad_lidarsr532=.true.,
-  Lclcalipso=.true.,
-  Lclhcalipso=.true.,
-  Lclisccp2=.true.,
-  Lcllcalipso=.true.,
-  Lclmcalipso=.true.,
-  Lcltcalipso=.true.,
-  Lctpisccp=.true.,
-  Ldbze94=.false.,
-  Ltauisccp=.true.,
-  Ltclisccp=.true.,
-  Llongitude=.false.,
-  Llatitude=.false.,
-  Lparasol_refl=.true.,
-  LclMISR=.false.,
-  Lmeantbisccp=.true.,
-  Lmeantbclrisccp=.true.,
-  ! Use lidar and radar
-  Lclcalipso2=.false.,
-  Lcltlidarradar=.false.,
-  ! These are provided for debugging or special purposes
-  Lfrac_out=.false.,
-  Lbeta_mol532=.true.,  
-/
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo-lim3.xml
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo-lim3.xml	(revision 2876)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo-lim3.xml	(revision 2876)
@@ -0,0 +1,123 @@
+<?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@" 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."/>  <!-- 5d files -->   	
+      <file_group id="5d" output_freq="5d"  output_level="10" enabled=".TRUE."/>  <!-- 5d files -->   	
+
+      <file_group id="1m" output_freq="1mo" output_level="10" enabled="_AUTO_"> <!-- real monthly files -->
+
+	<file id="file16" name_suffix="_icemod" description="ice variables" enabled=".TRUE." >
+	  <field field_ref="snowthic_cea"     name="snthic"     long_name="surface_snow_thickness"   />
+	  <field field_ref="icethic_cea"      name="sithic"     long_name="sea_ice_thickness"        />
+          <field field_ref="icevolu"          name="sivolu" />
+          <field field_ref="snowvol"          name="snvolu" />
+          <field field_ref="iceconc"          name="siconc"  />
+
+          <field field_ref="vfxbog"          name="vfxbog" />
+          <field field_ref="vfxdyn"          name="vfxdyn" />
+          <field field_ref="vfxopw"          name="vfxopw" />
+          <field field_ref="vfxsni"          name="vfxsni" />
+          <field field_ref="vfxsum"          name="vfxsum" />
+          <field field_ref="vfxbom"          name="vfxbom" />
+          <field field_ref="vfxres"          name="vfxres" />
+          <field field_ref="vfxice"          name="vfxice" />
+          <field field_ref="vfxsnw"          name="vfxsnw" />
+          <field field_ref="vfxsub"          name="vfxsub" />
+          <field field_ref="vfxspr"          name="vfxspr" />
+
+          <field field_ref="icetrp"          name="sivtrp" />
+          <field field_ref="snwtrp"          name="snvtrp" />
+          <field field_ref="saltrp"          name="saltrp" />
+          <field field_ref="deitrp"          name="deitrp" />
+          <field field_ref="destrp"          name="destrp" />
+
+          <field field_ref="sfxbri"           name="sfxbri" />
+          <field field_ref="sfxdyn"           name="sfxdyn" />
+          <field field_ref="sfxres"           name="sfxres" />
+          <field field_ref="sfxbog"           name="sfxbog" />
+          <field field_ref="sfxbom"           name="sfxbom" />
+          <field field_ref="sfxsum"           name="sfxsum" />
+          <field field_ref="sfxsni"           name="sfxsni" />
+          <field field_ref="sfxopw"           name="sfxopw" />
+          <field field_ref="sfx"              name="sfx" />
+
+          <field field_ref="hfxsum"          name="hfxsum"    />
+          <field field_ref="hfxbom"          name="hfxbom"    />
+          <field field_ref="hfxbog"          name="hfxbog"    />
+          <field field_ref="hfxdif"          name="hfxdif"    />
+          <field field_ref="hfxopw"          name="hfxopw"    />
+          <field field_ref="hfxout"          name="hfxout"    />
+          <field field_ref="hfxin"           name="hfxin"    />
+          <field field_ref="hfxsnw"          name="hfxsnw"    />
+          <field field_ref="hfxerr"          name="hfxerr"    />
+          <field field_ref="hfxerr_rem"      name="hfxerr_rem"    />
+
+	  <!-- ice-ocean heat flux from mass exchange -->
+          <field field_ref="hfxdyn"          name="hfxdyn"    />
+          <field field_ref="hfxres"          name="hfxres"    />
+          <field field_ref="hfxthd"          name="hfxthd"    />
+	  <!-- ice-atm. heat flux from mass exchange -->
+          <field field_ref="hfxsub"          name="hfxsub"    />
+          <field field_ref="hfxspr"          name="hfxspr"    />
+
+	  <!-- diags -->
+          <field field_ref="hfxdhc"          name="hfxdhc"    />
+          <field field_ref="hfxtur"          name="hfxtur"    />
+
+          <field field_ref="isst"             name="sst" />
+          <field field_ref="isss"             name="sss" />
+          <field field_ref="micesalt"         name="sisali" />
+          <field field_ref="micet"            name="sitemp" />
+          <field field_ref="icest"            name="sistem" />
+          <field field_ref="icehc"            name="siheco" />
+          <field field_ref="isnowhc"          name="snheco" />
+          <field field_ref="miceage"          name="siages" />
+
+          <field field_ref="uice_ipa"         name="sivelu" />
+          <field field_ref="vice_ipa"         name="sivelv" />
+          <field field_ref="icevel"           name="sivelo" />
+          <field field_ref="idive"            name="sidive" />
+          <field field_ref="ishear"           name="sishea" />
+          <field field_ref="icestr"           name="sistre" />
+
+          <field field_ref="ibrinv"           name="sibrin" />
+          <field field_ref="icecolf"          name="sicolf" />
+
+          <field field_ref="iceage_cat"       name="siagecat"/>
+          <field field_ref="iceconc_cat"      name="siconcat"/>
+          <field field_ref="icethic_cat"      name="sithicat"/>
+          <field field_ref="snowthic_cat"     name="snthicat"/>
+          <field field_ref="salinity_cat"     name="salincat"/>
+          <field field_ref="brinevol_cat"     name="sibricat"/>
+
+	</file>
+
+      </file_group>
+
+
+      <file_group id="2m" output_freq="2mo" output_level="10" enabled=".TRUE."/> <!-- real 2m files -->
+      <file_group id="3m" output_freq="3mo" output_level="10" enabled=".TRUE."/> <!-- real 3m files -->
+      <file_group id="4m" output_freq="4mo" output_level="10" enabled=".TRUE."/> <!-- real 4m files -->
+      <file_group id="6m" output_freq="6mo" output_level="10" enabled=".TRUE."/> <!-- real 6m files -->
+      <file_group id="1y"  output_freq="1y" 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: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo-opa.xml
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo-opa.xml	(revision 2876)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo-opa.xml	(revision 2876)
@@ -0,0 +1,402 @@
+<?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@" 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="_AUTO_">  <!-- 5d files -->   
+	
+        <file id="file1" name_suffix="_grid_T" description="ocean T grid variables" >
+	  <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                       />
+	  <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                          />
+	  <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                />
+	  <field field_ref="sst"          name="tosstd"   long_name="sea_surface_temperature_standard_deviation"         operation="average" freq_op="1d" > sqrt( @sst2 - @sst * @sst ) </field>
+	  <field field_ref="ssh"          name="zosstd"   long_name="sea_surface_height_above_geoid_standard_deviation"  operation="average" freq_op="1d" > sqrt( @ssh2 - @ssh * @ssh ) </field>
+	  <field field_ref="sst"          name="sstdcy"   long_name="amplitude of sst diurnal cycle" operation="average" freq_op="1d" > @sstmax - @sstmin </field>
+	  <field field_ref="mldr10_1"     />
+	  <field field_ref="mldr10_1"     name="mldr10_1dcy"  long_name="amplitude of mldr10_1 diurnal cycle" operation="average" freq_op="1d" > @mldr10_1max - @mldr10_1min </field>
+	</file>
+       
+        <file id="file2" name_suffix="_scalar" description="scalar variables" enabled=".true." >
+      <field field_ref="voltot"  grid_ref="grid_1point"     name="scvoltot"  />
+      <field field_ref="sshtot"  grid_ref="grid_1point"     name="scsshtot"  />
+      <field field_ref="sshsteric" grid_ref="grid_1point"   name="scsshste"  />
+      <field field_ref="sshthster" grid_ref="grid_1point"   name="scsshtst"  />
+      <field field_ref="masstot"   grid_ref="grid_1point"   name="scmastot"  />
+      <field field_ref="temptot"   grid_ref="grid_1point"   name="sctemtot"  />
+      <field field_ref="saltot"    grid_ref="grid_1point"   name="scsaltot"  />
+
+          <field field_ref="bgtemper"     grid_ref="grid_1point" name="bgtemper"    />
+          <field field_ref="bgsaline"     grid_ref="grid_1point" name="bgsaline"    />
+          <field field_ref="bgheatco"     grid_ref="grid_1point" name="bgheatco"    />
+          <field field_ref="bgsaltco"     grid_ref="grid_1point" name="bgsaltco"    />
+          <field field_ref="bgvolssh"     grid_ref="grid_1point" name="bgvolssh"    /> 
+          <field field_ref="bgvole3t"     grid_ref="grid_1point" name="bgvole3t"    />
+          <field field_ref="bgfrcvol"     grid_ref="grid_1point" name="bgfrcvol"    />
+          <field field_ref="bgfrctem"     grid_ref="grid_1point" name="bgfrctem"    />
+          <field field_ref="bgfrcsal"     grid_ref="grid_1point" name="bgfrcsal"    />
+	</file>
+
+        <file id="file3" name_suffix="_SBC_scalar" description="scalar variables" enabled=".true." >
+      <field field_ref="ibgvoltot"  grid_ref="grid_1point"  name="ibgvoltot"   />
+      <field field_ref="sbgvoltot"  grid_ref="grid_1point"  name="sbgvoltot"   />
+      <field field_ref="ibgarea"    grid_ref="grid_1point"  name="ibgarea"     />
+      <field field_ref="ibgsaline"  grid_ref="grid_1point"  name="ibgsaline"   />
+      <field field_ref="ibgtemper"  grid_ref="grid_1point"  name="ibgtemper"   />
+      <field field_ref="ibgheatco"  grid_ref="grid_1point"  name="ibgheatco"   />
+      <field field_ref="sbgheatco"  grid_ref="grid_1point"  name="sbgheatco"   />
+      <field field_ref="ibgsaltco"  grid_ref="grid_1point"  name="ibgsaltco"   />
+      
+      <field field_ref="ibgvfx"     grid_ref="grid_1point"  name="ibgvfx"      />
+      <field field_ref="ibgvfxbog"  grid_ref="grid_1point"  name="ibgvfxbog"      />
+      <field field_ref="ibgvfxopw"  grid_ref="grid_1point"  name="ibgvfxopw"      />
+      <field field_ref="ibgvfxsni"  grid_ref="grid_1point"  name="ibgvfxsni"      />
+      <field field_ref="ibgvfxdyn"  grid_ref="grid_1point"  name="ibgvfxdyn"      />
+      <field field_ref="ibgvfxbom"  grid_ref="grid_1point"  name="ibgvfxbom"      />
+      <field field_ref="ibgvfxsum"  grid_ref="grid_1point"  name="ibgvfxsum"      />
+      <field field_ref="ibgvfxres"  grid_ref="grid_1point"  name="ibgvfxres"      />
+      <field field_ref="ibgvfxspr"  grid_ref="grid_1point"  name="ibgvfxspr"      />
+      <field field_ref="ibgvfxsnw"  grid_ref="grid_1point"  name="ibgvfxsnw"      />
+      <field field_ref="ibgvfxsub"  grid_ref="grid_1point"  name="ibgvfxsub"      />
+      
+      <field field_ref="ibgsfx"     grid_ref="grid_1point"  name="ibgsfx"     />
+      <field field_ref="ibgsfxbri"  grid_ref="grid_1point"  name="ibgsfxbri"    />
+      <field field_ref="ibgsfxdyn"  grid_ref="grid_1point"  name="ibgsfxdyn" />
+      <field field_ref="ibgsfxres"  grid_ref="grid_1point"  name="ibgsfxres" />
+      <field field_ref="ibgsfxbog"  grid_ref="grid_1point"  name="ibgsfxbog"      />
+      <field field_ref="ibgsfxopw"  grid_ref="grid_1point"  name="ibgsfxopw"      />
+      <field field_ref="ibgsfxsni"  grid_ref="grid_1point"  name="ibgsfxsni"      />
+      <field field_ref="ibgsfxbom"  grid_ref="grid_1point"  name="ibgsfxbom"      />
+      <field field_ref="ibgsfxsum"  grid_ref="grid_1point"  name="ibgsfxsum"      />
+      
+      <field field_ref="ibghfxdhc"  grid_ref="grid_1point"  name="ibghfxdhc"    />
+      <field field_ref="ibghfxspr"  grid_ref="grid_1point"  name="ibghfxspr"    />
+      
+      <field field_ref="ibghfxres"   grid_ref="grid_1point" name="ibghfxres"    />
+      <field field_ref="ibghfxsub"   grid_ref="grid_1point" name="ibghfxsub"    />
+      <field field_ref="ibghfxdyn"   grid_ref="grid_1point" name="ibghfxdyn"    />
+      <field field_ref="ibghfxthd"   grid_ref="grid_1point" name="ibghfxthd"    />
+      <field field_ref="ibghfxsum"   grid_ref="grid_1point" name="ibghfxsum"    />
+      <field field_ref="ibghfxbom"   grid_ref="grid_1point" name="ibghfxbom"    />
+      <field field_ref="ibghfxbog"   grid_ref="grid_1point" name="ibghfxbog"    />
+      <field field_ref="ibghfxdif"   grid_ref="grid_1point" name="ibghfxdif"    />
+      <field field_ref="ibghfxopw"   grid_ref="grid_1point" name="ibghfxopw"    />
+      <field field_ref="ibghfxout"   grid_ref="grid_1point" name="ibghfxout"    />
+      <field field_ref="ibghfxin"   grid_ref="grid_1point"  name="ibghfxin"     />
+      <field field_ref="ibghfxsnw"   grid_ref="grid_1point" name="ibghfxsnw"    />
+      
+      <field field_ref="ibgfrcvol"   grid_ref="grid_1point" name="ibgfrcvol"   />
+      <field field_ref="ibgfrcsfx"   grid_ref="grid_1point" name="ibgfrcsfx"  />
+      <field field_ref="ibgvolgrm"   grid_ref="grid_1point" name="ibgvolgrm"    />
+      
+        </file>
+
+	<file id="file4" name_suffix="_SBC" description="surface fluxes variables" > <!-- time step automaticaly defined based on nn_fsbc -->
+	  <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                     />
+	  <field field_ref="qsr_oce"      name="qsr_oce"  long_name="downward shortwave flux at ocean surface"           />
+	  <field field_ref="qns_oce"      name="qns_oce"  long_name="downward non solar flux at ocean surface"           />
+	  <field field_ref="qt_oce"       name="qt_oce"   long_name="downward total flux at ocean surface"           />
+	  <field field_ref="qsr_ice"      name="qsr_ice"  long_name="downward shortwave flux at ice surface"           />
+	  <field field_ref="qns_ice"      name="qns_ice"  long_name="downward non solar flux at ice surface"           />
+	  <field field_ref="qtr_ice"      name="qtr_ice"  long_name="shortwave flux transmitted thru the ice"           />
+	  <field field_ref="qt_ice"       name="qt_ice"   long_name="downward total flux at ice surface"           />
+	  <field field_ref="saltflx"      name="sfx"  />
+	  <field field_ref="taum"         name="taum" />
+	  <field field_ref="wspd"         name="windsp"  />
+	  <field field_ref="precip"       name="precip" />
+	  <!-- ice and snow -->
+	  <field field_ref="snowpre"      />
+	  <field field_ref="utau_ice"         name="utau_ice" />
+	  <field field_ref="vtau_ice"         name="vtau_ice" />
+	</file>
+
+      </file_group> 
+
+      <file_group id="5d" output_freq="5d"  output_level="10" enabled=".TRUE."/>  <!-- 5d files -->   
+	
+      <file_group id="1m" output_freq="1mo" output_level="10" enabled="_AUTO_"> <!-- real monthly files -->
+
+        <file id="file5" name_suffix="_grid_T" >
+	  <field field_ref="e3t" long_name="T-cell thickness" />
+          <field field_ref="botpres"      name="pbo"      long_name="Pressure_at_sea_floor"                                          />
+          <!-- pso : sea_water_pressure_at_sea_water_surface = 0 -->
+          <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                                 />
+          <field field_ref="ssh2"         name="zossq"    long_name="square_of_sea_surface_height_above_geoid"             level="2" />
+
+          <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"   operation="average" freq_op="1mo" > @toce_e3t / @e3t </field>      
+          <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                              level="1" />
+          <field field_ref="sst2"         name="tossq"    long_name="square_of_sea_surface_temperature"                    level="2" />
+          <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                operation="average" freq_op="1mo" > @soce_e3t / @e3t </field>       
+          <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                                 level="1" />
+          <field field_ref="rhop"         name="rhopoto"  long_name="sea_water_potential_density"                          level="2" />
+          <!-- no agessc : sea_water_age_since_surface_contact -->
+          <!-- no cfc11  : moles_per_unit_mass_of_cfc11_in_sea_water -->
+          <!-- msftbarot : ocean_barotropic_mass_streamfunction : offline -->
+          <!-- mlotst    :           ocean_mixed_layer_thickness_defined_by_sigma_t : must be done offline -->
+          <!-- mlotstsq  : square_of_ocean_mixed_layer_thickness_defined_by_sigma_t : must be done offline -->
+          <field field_ref="mldkz5"       name="omlmax"   long_name="ocean_mixed_layer_thickness_defined_by_mixing_scheme" level="2" operation="maximum" />
+          <field field_ref="mldkz5"       name="mldkz5"   level="2"  />
+          <field field_ref="mldr10_1"     name="mldr10_1" level="2" />
+          <field field_ref="mldr10_1max"  name="mldr10_1max"  long_name="max of Mixed Layer Depth 0.01 ref.10m"              operation="maximum" />
+          <field field_ref="runoffs"      name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
+          <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
+          <!-- wfonocorr : water_flux_into_sea_water_without_flux_correction : emp - erp -->
+          <field field_ref="erp"          name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
+          <field field_ref="qns"           name="nshfls"      long_name="surface_net_downward_non_solar_flux"                                         level="1" />
+          <field field_ref="qsr"           name="rsntds"      long_name="surface_net_downward_shortwave_flux"                                         level="1" />
+          <field field_ref="qsr3d"         name="rsds"        long_name="downwelling_shortwave_flux_in_sea_water"                                     level="1" />
+          <field field_ref="qrp"           name="hfcorr"      long_name="heat_flux_correction"                                                        level="1" />
+      <!-- next variables available with key_diahth -->
+      <field field_ref="mlddzt"        level="1" />
+      <field field_ref="mldr10_3"      level="1" />
+      <field field_ref="mldr0_1"       level="1" />
+      <field field_ref="mldr0_3"       level="1" />
+      <field field_ref="mld_dt02"      level="1" />
+      <field field_ref="topthdep"      level="1" />
+      <field field_ref="pycndep"       level="1" />
+      <field field_ref="BLT"           level="1" />
+      <field field_ref="tinv"          level="1" />
+      <field field_ref="depti"         level="1" />
+      <!-- <field field_ref="20d"           level="1" /> -->
+      <!-- <field field_ref="28d"           level="1" /> -->
+      <field field_ref="hc300"         level="1" />
+        </file>
+
+	<file id="file6" name_suffix="_grid_U" description="ocean U grid variables" >
+	  <field field_ref="e3u"  />
+	  <field field_ref="ssu"          name="uos"     long_name="sea_surface_x_velocity"    />
+	  <field field_ref="uoce"         name="uo"      long_name="sea_water_x_velocity" operation="average" freq_op="1mo" > @uoce_e3u / @e3u </field>
+	  <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
+      <!-- available with key_diaar5 -->
+      <field field_ref="u_masstr"     name="vozomatr"  />
+      <field field_ref="u_heattr"     name="sozohetr"  />
+      <field field_ref="u_salttr"     name="sozosatr"  />
+	</file>
+	
+	<file id="file7" name_suffix="_grid_V" description="ocean V grid variables" >
+	  <field field_ref="e3v"  />
+	  <field field_ref="ssv"          name="vos"     long_name="sea_surface_y_velocity"    />
+	  <field field_ref="voce"         name="vo"      long_name="sea_water_y_velocity" operation="average" freq_op="1mo" > @voce_e3v / @e3v </field>
+	  <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
+      <!-- available with key_diaar5 -->
+      <field field_ref="v_masstr"     name="vomematr"  />
+      <field field_ref="v_heattr"     name="somehetr"  />
+      <field field_ref="v_salttr"     name="somesatr"  />
+	</file>
+	
+	<file id="file8" name_suffix="_grid_W" description="ocean W grid variables" >
+	  <field field_ref="e3w"  />
+	  <field field_ref="woce"         name="wo"     />
+	  <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
+	  <field field_ref="w_masstr"     name="vovematr"  />
+	</file>
+
+	<file id="file9" name_suffix="_scalar" description="scalar variables" enabled=".true." >
+      <field field_ref="voltot"   grid_ref="grid_1point"    name="scvoltot"  />
+      <field field_ref="sshtot"   grid_ref="grid_1point"    name="scsshtot"  />
+      <field field_ref="sshsteric" grid_ref="grid_1point"   name="scsshste"  />
+      <field field_ref="sshthster" grid_ref="grid_1point"   name="scsshtst"  />
+      <field field_ref="masstot"    grid_ref="grid_1point"  name="scmastot"  />
+      <field field_ref="temptot"   grid_ref="grid_1point"   name="sctemtot"  />
+      <field field_ref="saltot"    grid_ref="grid_1point"   name="scsaltot"  />
+
+      <field field_ref="bgtemper"   grid_ref="grid_1point"  name="bgtemper"    />
+      <field field_ref="bgsaline"   grid_ref="grid_1point"  name="bgsaline"    />
+      <field field_ref="bgheatco"   grid_ref="grid_1point"  name="bgheatco"    />
+      <field field_ref="bgsaltco"   grid_ref="grid_1point"  name="bgsaltco"    />
+      <field field_ref="bgvolssh"   grid_ref="grid_1point"  name="bgvolssh"    /> 
+      <field field_ref="bgvole3t"   grid_ref="grid_1point"  name="bgvole3t"    />
+      <field field_ref="bgfrcvol"   grid_ref="grid_1point"  name="bgfrcvol"    />
+      <field field_ref="bgfrctem"   grid_ref="grid_1point"  name="bgfrctem"    />
+      <field field_ref="bgfrcsal"   grid_ref="grid_1point"  name="bgfrcsal"    />
+
+      <field field_ref="ibgvoltot"  grid_ref="grid_1point"  name="ibgvoltot"   />
+      <field field_ref="sbgvoltot"  grid_ref="grid_1point"  name="sbgvoltot"   />
+      <field field_ref="ibgarea"    grid_ref="grid_1point"  name="ibgarea"     />
+      <field field_ref="ibgsaline"  grid_ref="grid_1point"  name="ibgsaline"   />
+      <field field_ref="ibgtemper"  grid_ref="grid_1point"  name="ibgtemper"   />
+      <field field_ref="ibgheatco"  grid_ref="grid_1point"  name="ibgheatco"   />
+      <field field_ref="sbgheatco"   grid_ref="grid_1point" name="sbgheatco"   />
+      <field field_ref="ibgsaltco"   grid_ref="grid_1point" name="ibgsaltco"   />
+
+      <field field_ref="ibgvfx"     grid_ref="grid_1point"  name="ibgvfx"      />
+      <field field_ref="ibgvfxbog"  grid_ref="grid_1point"  name="ibgvfxbog"      />
+      <field field_ref="ibgvfxopw"  grid_ref="grid_1point"  name="ibgvfxopw"      />
+      <field field_ref="ibgvfxsni"  grid_ref="grid_1point"  name="ibgvfxsni"      />
+      <field field_ref="ibgvfxdyn"  grid_ref="grid_1point"  name="ibgvfxdyn"      />
+      <field field_ref="ibgvfxbom"  grid_ref="grid_1point"  name="ibgvfxbom"      />
+      <field field_ref="ibgvfxsum"  grid_ref="grid_1point"  name="ibgvfxsum"      />
+      <field field_ref="ibgvfxres"  grid_ref="grid_1point"  name="ibgvfxres"      />
+      <field field_ref="ibgvfxspr"  grid_ref="grid_1point"  name="ibgvfxspr"      />
+      <field field_ref="ibgvfxsnw"  grid_ref="grid_1point"  name="ibgvfxsnw"      />
+      <field field_ref="ibgvfxsub"  grid_ref="grid_1point"  name="ibgvfxsub"      />
+
+      <field field_ref="ibgsfx"     grid_ref="grid_1point"  name="ibgsfx"     />
+      <field field_ref="ibgsfxbri"   grid_ref="grid_1point" name="ibgsfxbri"    />
+      <field field_ref="ibgsfxdyn"   grid_ref="grid_1point" name="ibgsfxdyn" />
+      <field field_ref="ibgsfxres"  grid_ref="grid_1point"  name="ibgsfxres" />
+      <field field_ref="ibgsfxbog"  grid_ref="grid_1point"  name="ibgsfxbog"      />
+      <field field_ref="ibgsfxopw"  grid_ref="grid_1point"  name="ibgsfxopw"      />
+      <field field_ref="ibgsfxsni"  grid_ref="grid_1point"  name="ibgsfxsni"      />
+      <field field_ref="ibgsfxbom"  grid_ref="grid_1point"  name="ibgsfxbom"      />
+      <field field_ref="ibgsfxsum"  grid_ref="grid_1point"  name="ibgsfxsum"      />
+
+      <field field_ref="ibghfxdhc"  grid_ref="grid_1point"  name="ibghfxdhc"    />
+      <field field_ref="ibghfxspr"  grid_ref="grid_1point"  name="ibghfxspr"    />
+
+      <field field_ref="ibghfxres" grid_ref="grid_1point"   name="ibghfxres"    />
+      <field field_ref="ibghfxsub"  grid_ref="grid_1point"  name="ibghfxsub"    />
+      <field field_ref="ibghfxdyn"  grid_ref="grid_1point"  name="ibghfxdyn"    />
+      <field field_ref="ibghfxthd"  grid_ref="grid_1point"   name="ibghfxthd"    />
+      <field field_ref="ibghfxsum"  grid_ref="grid_1point"   name="ibghfxsum"    />
+      <field field_ref="ibghfxbom"  grid_ref="grid_1point"   name="ibghfxbom"    />
+      <field field_ref="ibghfxbog"  grid_ref="grid_1point"   name="ibghfxbog"    />
+      <field field_ref="ibghfxdif"  grid_ref="grid_1point"   name="ibghfxdif"    />
+      <field field_ref="ibghfxopw"  grid_ref="grid_1point"   name="ibghfxopw"    />
+      <field field_ref="ibghfxout"  grid_ref="grid_1point"   name="ibghfxout"    />
+      <field field_ref="ibghfxin"   grid_ref="grid_1point"  name="ibghfxin"    />
+      <field field_ref="ibghfxsnw"  grid_ref="grid_1point"   name="ibghfxsnw"    />
+
+      <field field_ref="ibgfrcvol"   grid_ref="grid_1point"  name="ibgfrcvol"   />
+      <field field_ref="ibgfrcsfx"   grid_ref="grid_1point"  name="ibgfrcsfx"  />
+      <field field_ref="ibgvolgrm"   grid_ref="grid_1point"  name="ibgvolgrm"    />
+
+        </file>
+
+	<file id="file10" name_suffix="_diaptr" description="diaptr variables" enabled=".true." >
+	  <field field_ref="zomsfglo"          name="zomsfglo"  grid_ref="grid_ptr_W_3D" />
+          <field field_ref="zomsfatl"          name="zomsfatl"  grid_ref="grid_ptr_W_3D" />
+          <field field_ref="zomsfpac"          name="zomsfpac"  grid_ref="grid_ptr_W_3D" />
+          <field field_ref="zomsfind"          name="zomsfind"  grid_ref="grid_ptr_W_3D" />
+          <field field_ref="zomsfipc"          name="zomsfipc"  grid_ref="grid_ptr_W_3D" />
+          <field field_ref="zotemglo"          name="zotemglo"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zotematl"          name="zotematl"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zotempac"          name="zotempac"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zotemind"          name="zotemind"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zotemipc"          name="zotemipc"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosalglo"          name="zosalglo"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosalatl"          name="zosalatl"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosalpac"          name="zosalpac"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosalind"          name="zosalind"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosalipc"          name="zosalipc"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosrfglo"          name="zosrfglo"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosrfatl"          name="zosrfatl"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosrfpac"          name="zosrfpac"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosrfind"          name="zosrfind"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="zosrfipc"          name="zosrfipc"  grid_ref="grid_ptr_T_3D" />
+          <field field_ref="sophtadv"          name="sophtadv"  grid_ref="grid_ptr_T_2D" />
+          <field field_ref="sophtldf"          name="sophtldf"  grid_ref="grid_ptr_T_2D" />
+          <field field_ref="sopstadv"          name="sopstadv"  grid_ref="grid_ptr_T_2D" />
+          <field field_ref="sopstldf"          name="sopstldf"  grid_ref="grid_ptr_T_2D" />
+        </file>
+
+      </file_group>
+
+
+      <file_group id="2m" output_freq="2mo" output_level="10" enabled=".TRUE."/> <!-- real 2m files -->
+      <file_group id="3m" output_freq="3mo" output_level="10" enabled=".TRUE."/> <!-- real 3m files -->
+      <file_group id="4m" output_freq="4mo" output_level="10" enabled=".TRUE."/> <!-- real 4m files -->
+      <file_group id="6m" output_freq="6mo" output_level="10" enabled=".TRUE."/> <!-- real 6m files -->
+
+      <file_group id="1y"  output_freq="1y" output_level="10" enabled="_AUTO_"> <!-- real yearly files -->
+
+    <file id="file11" name_suffix="_grid_T" description="ocean T grid variables" >
+      <field field_ref="e3t"  />
+      <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                       />
+      <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                          />
+      <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                />
+      <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"      operation="average" freq_op="1y" > @toce_e3t / @e3t </field>        
+      <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                   operation="average" freq_op="1y" > @soce_e3t / @e3t </field>         
+      <field field_ref="sst2"         name="tossq"    long_name="square_of_sea_surface_temperature"             />
+      <field field_ref="ssh2"         name="zossq"    long_name="square_of_sea_surface_height_above_geoid"      />
+      <field field_ref="mldr10_1"     />
+      <field field_ref="mldkz5"       name="omlmax"   long_name="ocean_mixed_layer_thickness_defined_by_mixing_scheme" level="2" operation="maximum" />
+      <field field_ref="runoffs"      name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
+      <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
+      <field field_ref="erp"          name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
+      <field field_ref="qns"          name="nshfls"      long_name="surface_net_downward_non_solar_flux"                                         level="1" />
+      <field field_ref="qsr"          name="rsntds"      long_name="surface_net_downward_shortwave_flux"                                         level="1" />
+      <field field_ref="qsr3d"        name="rsds"        long_name="downwelling_shortwave_flux_in_sea_water"                                     level="1" />
+      <field field_ref="qt"           name="tohfls"   long_name="surface_net_downward_total_heat_flux"          />
+      <field field_ref="saltflx"      name="sosflxdo"  />
+      <field field_ref="taum"         name="taum" />
+      <field field_ref="wspd"         name="sowindsp"  />
+      <field field_ref="precip"       name="soprecip" />
+      <!-- available with ln_blk_clio or ln_blk_core -->
+      <field field_ref="qns_oce"      name="sonshdoo"  />
+      <field field_ref="qlw_oce"      name="solwhdoo"  />
+      <field field_ref="qsb_oce"      name="sosehdoo"  />
+      <field field_ref="qla_oce"      name="solahdoo"  />
+      <field field_ref="taum_oce"     name="sowndsto"  />
+      <!-- ice and snow -->
+      <field field_ref="snowpre"      name="isnowpre"/>
+      <field field_ref="utau_ice"     name="iicestru" />
+      <field field_ref="vtau_ice"     name="iicestrv" />
+    </file>
+
+    <file id="file12" name_suffix="_grid_U" description="ocean U grid variables" >
+      <field field_ref="e3u"  />
+      <field field_ref="ssu"          name="uos"     long_name="sea_surface_x_velocity"    />
+      <field field_ref="uoce"         name="uo"      long_name="sea_water_x_velocity"      operation="average" freq_op="1y" > @uoce_e3u / @e3u </field> 
+      <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
+      <field field_ref="uocetr_eff"   name="uocetr_eff"  />
+    </file>
+
+    <file id="file13" name_suffix="_grid_V" description="ocean V grid variables" >
+      <field field_ref="e3v"  />
+      <field field_ref="ssv"          name="vos"     long_name="sea_surface_y_velocity"    />
+      <field field_ref="voce"         name="vo"      long_name="sea_water_y_velocity"     operation="average" freq_op="1y" > @voce_e3v / @e3v </field>
+      <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
+      <field field_ref="vocetr_eff"   name="vocetr_eff"  />
+    </file>
+
+    <file id="file14" name_suffix="_grid_W" description="ocean W grid variables" >
+      <field field_ref="e3w"  />
+      <field field_ref="woce"         name="wo"      long_name="ocean vertical velocity"         />
+      <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
+      <field field_ref="wocetr_eff"   name="wocetr_eff"  />
+    </file>
+
+    <file id="file15" name_suffix="_diaptr" description="diaptr variables" enabled=".TRUE." >
+      <field field_ref="zotemglo" grid_ref="grid_ptr_T_3D"  />
+      <field field_ref="zosalglo" grid_ref="grid_ptr_T_3D"  />
+      <field field_ref="zosrfglo" grid_ref="grid_ptr_T_3D"  />
+      <field field_ref="zomsfglo" grid_ref="grid_ptr_W_3D"  />
+      <field field_ref="zotematl" grid_ref="grid_ptr_T_3D"  />
+      <field field_ref="zosalatl" grid_ref="grid_ptr_T_3D"  />
+      <field field_ref="zosrfatl" grid_ref="grid_ptr_T_3D"  />
+      <field field_ref="zomsfatl" grid_ref="grid_ptr_W_3D"  />
+      <field field_ref="zotempac" grid_ref="grid_ptr_T_3D"   />
+      <field field_ref="zosalpac" grid_ref="grid_ptr_T_3D"  />
+      <field field_ref="zosrfpac" grid_ref="grid_ptr_T_3D"  />
+
+    </file>   
+   </file_group>
+
+      <file_group id="2y"  output_freq="2y" output_level="10" enabled=".TRUE."/> <!-- real 2y files -->
+      <file_group id="5y"  output_freq="5y" output_level="10" enabled=".TRUE."/> <!-- real 5y files -->
+      <file_group id="10y" output_freq="10y" output_level="10" enabled=".TRUE."/> <!-- real 10y files -->
+
+   </file_definition>
+    
+
+
+
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo-pisces.xml
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo-pisces.xml	(revision 2876)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo-pisces.xml	(revision 2876)
@@ -0,0 +1,158 @@
+    <!-- $id$ -->
+    
+    <!-- 
+
+============================================================================================================
+=                                           output files definition                                        =
+=                                            Define your own files ocean biogeochemistry                                         =
+=                                         put the variables you want...                                    =
+============================================================================================================
+    -->
+    
+    <file_definition type="one_file" name="@expname@_@freq@" 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="_AUTO_">  <!-- 5d files -->   
+
+        <file id="file17" name_suffix="_bioscalar" description="pisces sms variables" >
+          <field field_ref="tdenit"   name="tdenit"   grid_ref="grid_1point" unit="TgN/yr" operation="instant" > tdenit * 14. * 86400. * 365. / 1e12 </field>
+          <field field_ref="tnfix"    name="tnfix"    grid_ref="grid_1point" unit="TgN/yr" operation="instant" > tnfix * 14. * 86400. * 365. / 1e12 </field>
+          <field field_ref="tcflx"    name="tcflx"    grid_ref="grid_1point" unit="PgC/yr" operation="instant" > tcflx * -1. * 12. * 86400. * 365. / 1e15 </field>
+          <field field_ref="tcflxcum" name="tcflxcum" grid_ref="grid_1point" unit="PgC"    operation="instant" > tcflxcum * -1. * 12. / 1e15 </field>
+          <field field_ref="tcexp"    name="tcexp"    grid_ref="grid_1point" unit="PgC/yr" operation="instant" > tcexp * 12. * 86400. * 365. / 1e15 </field>
+          <field field_ref="tintpp"   name="tintpp"   grid_ref="grid_1point" unit="PgC/yr" operation="instant" > tintpp * 12. * 86400. * 365. / 1e15 </field>
+          <field field_ref="pno3tot"  name="pno3tot"  grid_ref="grid_1point" unit="umolN"  operation="instant" > pno3tot * 16. / 122. * 1e6 </field>
+          <field field_ref="ppo4tot"  name="ppo4tot"  grid_ref="grid_1point" unit="umolP"  operation="instant" > ppo4tot * 1. / 122. * 1e6 </field>
+          <field field_ref="psiltot"  name="psiltot"  grid_ref="grid_1point" unit="umolC"  operation="instant" > psiltot * 1e6  </field>
+          <field field_ref="palktot"  name="palktot"  grid_ref="grid_1point" unit="umolC"  operation="instant" > palktot * 1e6  </field>
+          <field field_ref="pfertot"  name="pfertot"  grid_ref="grid_1point" unit="nmolFe" operation="instant" > pfertot * 1e9  </field>
+        </file>
+
+      </file_group> 
+
+      <file_group id="5d" output_freq="5d"  output_level="10" enabled=".TRUE."/>  <!-- 5d files -->   
+	
+      <file_group id="1m" output_freq="1mo" output_level="10" enabled="_AUTO_"> <!-- real monthly files -->
+
+
+        <file id="file18" name_suffix="_ptrc_T" description="pisces sms variables" >
+          <field field_ref="DIC"       name="DIC"      operation="average" freq_op="1mo" > @DIC_E3T / @e3t </field>
+          <field field_ref="Alkalini"  name="Alkalini" operation="average" freq_op="1mo" > @Alkalini_E3T / @e3t </field>
+          <field field_ref="O2"        name="O2"       operation="average" freq_op="1mo" > @O2_E3T / @e3t </field>
+          <field field_ref="PO4"       name="PO4"      operation="average" freq_op="1mo" > @PO4_E3T / @e3t </field>
+          <field field_ref="Si"        name="Si"       operation="average" freq_op="1mo" > @Si_E3T / @e3t </field>
+          <field field_ref="Fer"       name="Fer"      operation="average" freq_op="1mo" > @Fer_E3T / @e3t </field>
+          <field field_ref="NCHL"      name="NCHL"     operation="average" freq_op="1mo" > @NCHL_E3T / @e3t </field>
+          <field field_ref="DCHL"      name="DCHL"     operation="average" freq_op="1mo" > @DCHL_E3T / @e3t </field>
+          <field field_ref="NO3"       name="NO3"      operation="average" freq_op="1mo" > @NO3_E3T / @e3t </field>
+       </file>
+
+       <file id="file19" name_suffix="_diad_T" description="additional pisces diagnostics" >
+         <field field_ref="Cflx"      name="Cflx"    />
+         <field field_ref="Dpco2"     name="Dpco2"   />
+         <field field_ref="PAR"       name="PAR"   />
+         <field field_ref="PARDM"     name="PARDM"  />
+         <field field_ref="TPP"       name="TPP"  />
+         <field field_ref="INTPP"     name="INTPP"  />
+         <field field_ref="EPC100"    name="EPC100"  />
+       </file>
+       
+       <file id="file20" name_suffix="_bioscalar" description="pisces sms variables" >
+          <field field_ref="tdenit"   name="tdenit"   grid_ref="grid_1point" unit="TgN/yr" operation="instant" > tdenit * 14. * 86400. * 365. / 1e12 </field>
+          <field field_ref="tnfix"    name="tnfix"    grid_ref="grid_1point" unit="TgN/yr" operation="instant" > tnfix * 14. * 86400. * 365. / 1e12 </field>
+          <field field_ref="tcflx"    name="tcflx"    grid_ref="grid_1point" unit="PgC/yr" operation="instant" > tcflx * -1. * 12. * 86400. * 365. / 1e15 </field>
+          <field field_ref="tcflxcum" name="tcflxcum" grid_ref="grid_1point" unit="PgC"    operation="instant" > tcflxcum * -1. * 12. / 1e15 </field>
+          <field field_ref="tcexp"    name="tcexp"    grid_ref="grid_1point" unit="PgC/yr" operation="instant" > tcexp * 12. * 86400. * 365. / 1e15 </field>
+          <field field_ref="tintpp"   name="tintpp"   grid_ref="grid_1point" unit="PgC/yr" operation="instant" > tintpp * 12. * 86400. * 365. / 1e15 </field>
+          <field field_ref="pno3tot"  name="pno3tot"  grid_ref="grid_1point" unit="umolN"  operation="instant" > pno3tot * 16. / 122. * 1e6 </field>
+          <field field_ref="ppo4tot"  name="ppo4tot"  grid_ref="grid_1point" unit="umolP"  operation="instant" > ppo4tot * 1. / 122. * 1e6 </field>
+          <field field_ref="psiltot"  name="psiltot"  grid_ref="grid_1point" unit="umolC"  operation="instant" > psiltot * 1e6  </field>
+          <field field_ref="palktot"  name="palktot"  grid_ref="grid_1point" unit="umolC"  operation="instant" > palktot * 1e6  </field>
+          <field field_ref="pfertot"  name="pfertot"  grid_ref="grid_1point" unit="nmolFe" operation="instant" > pfertot * 1e9  </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="1y"  output_freq="1y" output_level="10" enabled="_AUTO_"> <!-- real yearly files -->
+
+ 
+       <file id="file21" name_suffix="_ptrc_T" description="pisces sms variables" enabled=".TRUE.">
+          <field field_ref="DIC"       name="DIC"      operation="average" freq_op="1y" > @DIC_E3T / @e3t </field>
+          <field field_ref="Alkalini"  name="Alkalini" operation="average" freq_op="1y" > @Alkalini_E3T / @e3t </field>
+          <field field_ref="O2"        name="O2"       operation="average" freq_op="1y" > @O2_E3T / @e3t </field>
+          <field field_ref="CaCO3"     name="CaCO3"    operation="average" freq_op="1y" > @CaCO3_E3T / @e3t </field>
+          <field field_ref="PO4"       name="PO4"      operation="average" freq_op="1y" > @PO4_E3T / @e3t </field>
+          <field field_ref="POC"       name="POC"      operation="average" freq_op="1y" > @POC_E3T / @e3t </field>
+          <field field_ref="Si"        name="Si"       operation="average" freq_op="1y" > @Si_E3T / @e3t </field>
+          <field field_ref="PHY"       name="PHY"      operation="average" freq_op="1y" > @PHY_E3T / @e3t </field>
+          <field field_ref="ZOO"       name="ZOO"      operation="average" freq_op="1y" > @ZOO_E3T / @e3t </field>
+          <field field_ref="DOC"       name="DOC"      operation="average" freq_op="1y" > @DOC_E3T / @e3t </field>
+          <field field_ref="PHY2"      name="PHY2"     operation="average" freq_op="1y" > @PHY2_E3T / @e3t </field>
+          <field field_ref="ZOO2"      name="ZOO2"     operation="average" freq_op="1y" > @ZOO2_E3T / @e3t </field>
+          <field field_ref="DSi"       name="DSi"      operation="average" freq_op="1y" > @DSi_E3T / @e3t </field>
+          <field field_ref="Fer"       name="Fer"      operation="average" freq_op="1y" > @Fer_E3T / @e3t </field>
+          <field field_ref="BFe"       name="BFe"      operation="average" freq_op="1y" > @BFe_E3T / @e3t </field>
+          <field field_ref="GOC"       name="GOC"      operation="average" freq_op="1y" > @GOC_E3T / @e3t </field>
+          <field field_ref="SFe"       name="SFe"      operation="average" freq_op="1y" > @SFe_E3T / @e3t </field>
+          <field field_ref="DFe"       name="DFe"      operation="average" freq_op="1y" > @DFe_E3T / @e3t </field>
+          <field field_ref="GSi"       name="GSi"      operation="average" freq_op="1y" > @GSi_E3T / @e3t </field>
+          <field field_ref="NFe"       name="NFe"      operation="average" freq_op="1y" > @NFe_E3T / @e3t </field>
+          <field field_ref="NCHL"      name="NCHL"     operation="average" freq_op="1y" > @NCHL_E3T / @e3t </field>
+          <field field_ref="DCHL"      name="DCHL"     operation="average" freq_op="1y" > @DCHL_E3T / @e3t </field>
+          <field field_ref="NO3"       name="NO3"      operation="average" freq_op="1y" > @NO3_E3T / @e3t </field>
+          <field field_ref="NH4"       name="NH4"      operation="average" freq_op="1y" > @NH4_E3T / @e3t </field>
+    </file>
+
+   <file id="file22" name_suffix="_diad_T" description="additional pisces diagnostics" enabled=".TRUE." >
+       <field field_ref="PH"         name="PH" />
+       <field field_ref="PAR"        name="PAR"   />
+       <field field_ref="PARDM"      name="PARDM"   />
+       <field field_ref="Cflx"       name="Cflx"  />
+        <field field_ref="Oflx"      name="Oflx"  />
+       <field field_ref="Dpco2"      name="Dpco2"   />
+       <field field_ref="Dpo2"       name="Dpo2"   />
+        <field field_ref="Heup"      name="Heup"  />
+        <field field_ref="Irondep"   name="Irondep"  />
+        <field field_ref="Ironsed"   name="Ironsed"  />
+        <field field_ref="Nfix"      name="Nfix"  />
+        <field field_ref="LNnut"     name="LNnut"  />
+        <field field_ref="LDnut"     name="LDnut"  />
+        <field field_ref="LNFe"      name="LNFe"  />
+        <field field_ref="LDFe"      name="LDFe"  />
+        <field field_ref="LNlight"   name="LNlight"  />
+        <field field_ref="LDlight"   name="LDlight"  />
+        <field field_ref="TPP"       name="TPP"  />
+       <field field_ref="TPNEW"      name="TPNEW"  />
+        <field field_ref="EPC100"    name="EPC100"  />
+        <field field_ref="EPFE100"   name="EPFE100"  />
+        <field field_ref="EPSI100"   name="EPSI100"  />
+        <field field_ref="EPCAL100"  name="EPCAL100"  />
+        <field field_ref="xfracal"   name="xfracal"  />
+        <field field_ref="GRAZ1"     name="GRAZT" operation="average" freq_op="1y" > @GRAZ1 + @GRAZ2 </field> 
+    </file>
+
+      </file_group>
+
+      <file_group id="2y"  output_freq="2y" output_level="10" enabled=".TRUE."/> <!-- real 2y files -->
+      <file_group id="5y"  output_freq="5y" output_level="10" enabled=".TRUE."/> <!-- real 5y files -->
+      <file_group id="10y" output_freq="10y" output_level="10" enabled=".TRUE."/> <!-- real 10y files -->
+
+   </file_definition>
+
Index: NFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo.xml
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/file_def_nemo.xml	(revision 2875)
+++ 	(revision )
@@ -1,611 +1,0 @@
-<?xml version="1.0"?>
-<!-- 
-============================================================================================================
-=                                           output files definition                                        =
-=                                            Define your own files                                         =
-=                                         put the variables you want...                                    =
-============================================================================================================
--->
-
-<file_definition type="one_file" name="@expname@_@freq@" sync_freq="1d" min_digits="4">
-    
-  <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="_AUTO_">  <!-- 1d files -->   
-    
-    <file id="file1" name_suffix="_grid_T" description="ocean T grid variables" >
-  	  <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                       />
-	  <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                          />
-	  <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                />
-	  <field field_ref="sst"          name="tosstd"   long_name="sea_surface_temperature_standard_deviation"         operation="instant" freq_op="1d" > sqrt( @sst2 - @sst * @sst ) </field>
-	  <field field_ref="ssh"          name="zosstd"   long_name="sea_surface_height_above_geoid_standard_deviation"  operation="instant" freq_op="1d" > sqrt( @ssh2 - @ssh * @ssh ) </field>
-	  <field field_ref="sst"          name="sstdcy"   long_name="amplitude of sst diurnal cycle" operation="average" freq_op="1d" > @sstmax - @sstmin </field>
-	  <field field_ref="mldr10_1"     />
-	  <field field_ref="mldr10_1"     name="mldr10_1dcy"  long_name="amplitude of mldr10_1 diurnal cycle" operation="average" freq_op="1d" > @mldr10_1max - @mldr10_1min </field>
-    </file>
-    
-    <file id="file2" name_suffix="_scalar" description="scalar variables" enabled=".true." >
-      <field field_ref="voltot"       name="scvoltot"  />
-      <field field_ref="sshtot"       name="scsshtot"  />
-      <field field_ref="sshsteric"    name="scsshste"  />
-      <field field_ref="sshthster"    name="scsshtst"  />
-      <field field_ref="masstot"      name="scmastot"  />
-      <field field_ref="temptot"      name="sctemtot"  />
-      <field field_ref="saltot"       name="scsaltot"  />
-      
-      <field field_ref="bgtemper"     name="bgtemper"    />
-      <field field_ref="bgsaline"     name="bgsaline"    />
-      <field field_ref="bgheatco"     name="bgheatco"    />
-      <field field_ref="bgsaltco"     name="bgsaltco"    />
-      <field field_ref="bgvolssh"     name="bgvolssh"    /> 
-      <field field_ref="bgvole3t"     name="bgvole3t"    />
-      <field field_ref="bgfrcvol"     name="bgfrcvol"    />
-      <field field_ref="bgfrctem"     name="bgfrctem"    />
-      <field field_ref="bgfrcsal"     name="bgfrcsal"    />
-    </file>
-    
-    <file id="file3" name_suffix="_SBC_scalar" description="scalar variables" enabled=".true." >
-      <field field_ref="ibgvoltot"    name="ibgvoltot"   />
-      <field field_ref="sbgvoltot"    name="sbgvoltot"   />
-      <field field_ref="ibgarea"      name="ibgarea"     />
-      <field field_ref="ibgsaline"    name="ibgsaline"   />
-      <field field_ref="ibgtemper"    name="ibgtemper"   />
-      <field field_ref="ibgheatco"    name="ibgheatco"   />
-      <field field_ref="sbgheatco"    name="sbgheatco"   />
-      <field field_ref="ibgsaltco"    name="ibgsaltco"   />
-      
-      <field field_ref="ibgvfx"       name="ibgvfx"      />
-      <field field_ref="ibgvfxbog"    name="ibgvfxbog"      />
-      <field field_ref="ibgvfxopw"    name="ibgvfxopw"      />
-      <field field_ref="ibgvfxsni"    name="ibgvfxsni"      />
-      <field field_ref="ibgvfxdyn"    name="ibgvfxdyn"      />
-      <field field_ref="ibgvfxbom"    name="ibgvfxbom"      />
-      <field field_ref="ibgvfxsum"    name="ibgvfxsum"      />
-      <field field_ref="ibgvfxres"    name="ibgvfxres"      />
-      <field field_ref="ibgvfxspr"    name="ibgvfxspr"      />
-      <field field_ref="ibgvfxsnw"    name="ibgvfxsnw"      />
-      <field field_ref="ibgvfxsub"    name="ibgvfxsub"      />
-      
-      <field field_ref="ibgsfx"       name="ibgsfx"     />
-      <field field_ref="ibgsfxbri"    name="ibgsfxbri"    />
-      <field field_ref="ibgsfxdyn"    name="ibgsfxdyn" />
-      <field field_ref="ibgsfxres"    name="ibgsfxres" />
-      <field field_ref="ibgsfxbog"    name="ibgsfxbog"      />
-      <field field_ref="ibgsfxopw"    name="ibgsfxopw"      />
-      <field field_ref="ibgsfxsni"    name="ibgsfxsni"      />
-      <field field_ref="ibgsfxbom"    name="ibgsfxbom"      />
-      <field field_ref="ibgsfxsum"    name="ibgsfxsum"      />
-      
-      <field field_ref="ibghfxdhc"    name="ibghfxdhc"    />
-      <field field_ref="ibghfxspr"    name="ibghfxspr"    />
-      
-      <field field_ref="ibghfxres"    name="ibghfxres"    />
-      <field field_ref="ibghfxsub"    name="ibghfxsub"    />
-      <field field_ref="ibghfxdyn"    name="ibghfxdyn"    />
-      <field field_ref="ibghfxthd"    name="ibghfxthd"    />
-      <field field_ref="ibghfxsum"    name="ibghfxsum"    />
-      <field field_ref="ibghfxbom"    name="ibghfxbom"    />
-      <field field_ref="ibghfxbog"    name="ibghfxbog"    />
-      <field field_ref="ibghfxdif"    name="ibghfxdif"    />
-      <field field_ref="ibghfxopw"    name="ibghfxopw"    />
-      <field field_ref="ibghfxout"    name="ibghfxout"    />
-      <field field_ref="ibghfxin"     name="ibghfxin"     />
-      <field field_ref="ibghfxsnw"    name="ibghfxsnw"    />
-      
-      <field field_ref="ibgfrcvol"    name="ibgfrcvol"   />
-      <field field_ref="ibgfrcsfx"    name="ibgfrcsfx"  />
-      <field field_ref="ibgvolgrm"    name="ibgvolgrm"    />
-      
-    </file>
-   
-    <file id="file4" name_suffix="_bioscalar" description="pisces sms variables" >
-      <field field_ref="tdenit"   name="tdenit"   unit="TgN/yr" operation="instant" > tdenit * 14. * 86400. * 365. / 1e12 </field>
-      <field field_ref="tnfix"    name="tnfix"    unit="TgN/yr" operation="instant" > tnfix * 14. * 86400. * 365. / 1e12 </field>
-      <field field_ref="tcflx"    name="tcflx"    unit="PgC/yr" operation="instant" > tcflx * -1. * 12. * 86400. * 365. / 1e15 </field>
-      <field field_ref="tcflxcum" name="tcflxcum" unit="PgC"    operation="instant" > tcflxcum * -1. * 12. / 1e15 </field>
-      <field field_ref="tcexp"    name="tcexp"    unit="PgC/yr" operation="instant" > tcexp * 12. * 86400. * 365. / 1e15 </field>
-      <field field_ref="tintpp"   name="tintpp"   unit="PgC/yr" operation="instant" > tintpp * 12. * 86400. * 365. / 1e15 </field>
-      <field field_ref="pno3tot"  name="pno3tot"  unit="umolN"  operation="instant" > pno3tot * 16. / 122. * 1e6 </field>
-      <field field_ref="ppo4tot"  name="ppo4tot"  unit="umolP"  operation="instant" > ppo4tot * 1. / 122. * 1e6 </field>
-      <field field_ref="psiltot"  name="psiltot"  unit="umolC"  operation="instant" > psiltot * 1e6  </field>
-      <field field_ref="palktot"  name="palktot"  unit="umolC"  operation="instant" > palktot * 1e6  </field>
-      <field field_ref="pfertot"  name="pfertot"  unit="nmolFe" operation="instant" > pfertot * 1e9  </field>
-    </file>
-    
-    <file id="file5" name_suffix="_SBC" description="surface fluxes variables" > <!-- time step automaticaly defined based on nn_fsbc -->
-      <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                     />
-      <field field_ref="qsr_oce"      name="qsr_oce"  long_name="downward shortwave flux at ocean surface"           />
-      <field field_ref="qns_oce"      name="qns_oce"  long_name="downward non solar flux at ocean surface"           />
-      <field field_ref="qt_oce"       name="qt_oce"   long_name="downward total flux at ocean surface"           />
-      <field field_ref="qsr_ice"      name="qsr_ice"  long_name="downward shortwave flux at ice surface"           />
-      <field field_ref="qns_ice"      name="qns_ice"  long_name="downward non solar flux at ice surface"           />
-      <field field_ref="qtr_ice"      name="qtr_ice"  long_name="shortwave flux transmitted thru the ice"           />
-      <field field_ref="qt_ice"       name="qt_ice"   long_name="downward total flux at ice surface"           />
-      <field field_ref="saltflx"      name="sfx"  />
-      <field field_ref="taum"         name="taum" />
-      <field field_ref="wspd"         name="windsp"  />
-      <field field_ref="precip"       name="precip" />
-      <!-- ice and snow -->
-      <field field_ref="snowpre"      />
-      <field field_ref="utau_ice"         name="utau_ice" />
-      <field field_ref="vtau_ice"         name="vtau_ice" />
-    </file>
-  </file_group> 
-
-  <file_group id="1m" output_freq="1mo" output_level="10" enabled="_AUTO_"> <!-- real monthly files -->
-    
-    <file id="file10" name_suffix="_grid_T" >
-      <field field_ref="e3t" long_name="T-cell thickness" />
-      <field field_ref="botpres"      name="pbo"      long_name="Pressure_at_sea_floor"                                          />
-      <!-- pso : sea_water_pressure_at_sea_water_surface = 0 -->
-      <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                                 />
-      <field field_ref="ssh2"         name="zossq"    long_name="square_of_sea_surface_height_above_geoid"             level="2" />
-      
-      <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"   operation="instant" freq_op="1mo" > @toce_e3t / @e3t </field>      
-      <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                              level="1" />
-      <field field_ref="sst2"         name="tossq"    long_name="square_of_sea_surface_temperature"                    level="2" />
-      <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                operation="instant" freq_op="1mo" > @soce_e3t / @e3t </field>       
-      <field field_ref="soce_e3t"                     long_name="salinity * e3t"                    operation="instant" freq_op="1mo" > soce * e3t </field >  
-      <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                                 level="1" />
-      <field field_ref="rhop"         name="rhopoto"  long_name="sea_water_potential_density"                          level="2" />
-      <!-- no agessc : sea_water_age_since_surface_contact -->
-      <!-- no cfc11  : moles_per_unit_mass_of_cfc11_in_sea_water -->
-      <!-- msftbarot : ocean_barotropic_mass_streamfunction : offline -->
-      <!-- mlotst    :           ocean_mixed_layer_thickness_defined_by_sigma_t : must be done offline -->
-      <!-- mlotstsq  : square_of_ocean_mixed_layer_thickness_defined_by_sigma_t : must be done offline -->
-      <field field_ref="mldkz5"       name="omlmax"   long_name="ocean_mixed_layer_thickness_defined_by_mixing_scheme" level="2" operation="maximum" />
-      <field field_ref="mldkz5"       name="mldkz5"   level="2"  />
-      <field field_ref="mldr10_1"     name="mldr10_1" level="2" />
-      <field field_ref="mldr10_1max"  name="mldr10_1max"  long_name="max of Mixed Layer Depth 0.01 ref.10m"              operation="maximum" />
-      <field field_ref="runoffs"      name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
-      <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
-      <!-- wfonocorr : water_flux_into_sea_water_without_flux_correction : emp - erp -->
-      <field field_ref="erp"          name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
-      <field field_ref="qns"           name="nshfls"      long_name="surface_net_downward_non_solar_flux"                                         level="1" />
-      <field field_ref="qsr"           name="rsntds"      long_name="surface_net_downward_shortwave_flux"                                         level="1" />
-      <field field_ref="qsr3d"         name="rsds"        long_name="downwelling_shortwave_flux_in_sea_water"                                     level="1" />
-      <field field_ref="qrp"           name="hfcorr"      long_name="heat_flux_correction"                                                        level="1" />
-      <!-- next variables available with key_diahth -->
-      <field field_ref="mlddzt"        level="1" />
-      <field field_ref="mldr10_3"      level="1" />
-      <field field_ref="mldr0_1"       level="1" />
-      <field field_ref="mldr0_3"       level="1" />
-      <field field_ref="mld_dt02"      level="1" />
-      <field field_ref="topthdep"      level="1" />
-      <field field_ref="pycndep"       level="1" />
-      <field field_ref="BLT"           level="1" />
-      <field field_ref="tinv"          level="1" />
-      <field field_ref="depti"         level="1" />
-      <!-- <field field_ref="20d"           level="1" /> -->
-      <!-- <field field_ref="28d"           level="1" /> -->
-      <field field_ref="hc300"         level="1" />
-
-      
-    </file>
-    
-    <file id="file11" name_suffix="_grid_U" description="ocean U grid variables" >
-      <field field_ref="e3u"  />
-      <field field_ref="ssu"          name="uos"     long_name="sea_surface_x_velocity"    />
-      <field field_ref="uoce"         name="uo"      long_name="sea_water_x_velocity" operation="instant" freq_op="5d" > @uoce_e3u / @e3u </field>
-      <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
-      <!-- available with key_diaar5 -->
-      <field field_ref="u_masstr"     name="vozomatr"  />
-      <field field_ref="u_heattr"     name="sozohetr"  />
-      <field field_ref="u_salttr"     name="sozosatr"  />
-    </file>
-    
-    <file id="file12" name_suffix="_grid_V" description="ocean V grid variables" >
-      <field field_ref="e3v"  />
-      <field field_ref="ssv"          name="vos"     long_name="sea_surface_y_velocity"    />
-      <field field_ref="voce"         name="vo"      long_name="sea_water_y_velocity" operation="instant" freq_op="5d" > @voce_e3v / @e3v </field>
-      <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
-      <!-- available with key_diaar5 -->
-      <field field_ref="v_masstr"     name="vomematr"  />
-      <field field_ref="v_heattr"     name="somehetr"  />
-      <field field_ref="v_salttr"     name="somesatr"  />
-    </file>
-    
-    <file id="file13" name_suffix="_grid_W" description="ocean W grid variables" >
-      <field field_ref="e3w"  />
-      <field field_ref="woce"         name="wo"     />
-      <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
-      <field field_ref="w_masstr"     name="vovematr"  />
-    </file>
-
-    <file id="file14" name_suffix="_icemod" description="ice variables" enabled=".true." >
-      <field field_ref="snowthic_cea"     name="snthic"     long_name="surface_snow_thickness"   />
-      <field field_ref="icethic_cea"      name="sithic"     long_name="sea_ice_thickness"        />
-      <field field_ref="icevolu"          name="sivolu" />
-      <field field_ref="snowvol"          name="snvolu" />
-      <field field_ref="iceconc"          name="siconc"  />
-
-      <field field_ref="vfxbog"          name="vfxbog" />
-      <field field_ref="vfxdyn"          name="vfxdyn" />
-      <field field_ref="vfxopw"          name="vfxopw" />
-      <field field_ref="vfxsni"          name="vfxsni" />
-      <field field_ref="vfxsum"          name="vfxsum" />
-      <field field_ref="vfxbom"          name="vfxbom" />
-      <field field_ref="vfxres"          name="vfxres" />
-      <field field_ref="vfxice"          name="vfxice" />
-      <field field_ref="vfxsnw"          name="vfxsnw" />
-      <field field_ref="vfxsub"          name="vfxsub" />
-      <field field_ref="vfxspr"          name="vfxspr" />
-
-      <field field_ref="icetrp"          name="sivtrp" />
-      <field field_ref="snwtrp"          name="snvtrp" />
-      <field field_ref="saltrp"          name="saltrp" />
-      <field field_ref="deitrp"          name="deitrp" />
-      <field field_ref="destrp"          name="destrp" />
-
-      <field field_ref="sfxbri"           name="sfxbri" />
-      <field field_ref="sfxdyn"           name="sfxdyn" />
-      <field field_ref="sfxres"           name="sfxres" />
-      <field field_ref="sfxbog"           name="sfxbog" />
-      <field field_ref="sfxbom"           name="sfxbom" />
-      <field field_ref="sfxsum"           name="sfxsum" />
-      <field field_ref="sfxsni"           name="sfxsni" />
-      <field field_ref="sfxopw"           name="sfxopw" />
-      <field field_ref="sfx"              name="sfx" />
-
-      <field field_ref="hfxsum"          name="hfxsum"    />
-      <field field_ref="hfxbom"          name="hfxbom"    />
-      <field field_ref="hfxbog"          name="hfxbog"    />
-      <field field_ref="hfxdif"          name="hfxdif"    />
-      <field field_ref="hfxopw"          name="hfxopw"    />
-      <field field_ref="hfxout"          name="hfxout"    />
-      <field field_ref="hfxin"           name="hfxin"    />
-      <field field_ref="hfxsnw"          name="hfxsnw"    />
-      <field field_ref="hfxerr"          name="hfxerr"    />
-      <field field_ref="hfxerr_rem"      name="hfxerr_rem"    />
-
-      <!-- ice-ocean heat flux from mass exchange -->
-      <field field_ref="hfxdyn"          name="hfxdyn"    />
-      <field field_ref="hfxres"          name="hfxres"    />
-      <field field_ref="hfxthd"          name="hfxthd"    />
-      <!-- ice-atm. heat flux from mass exchange -->
-      <field field_ref="hfxsub"          name="hfxsub"    />
-      <field field_ref="hfxspr"          name="hfxspr"    />
-
-      <!-- diags -->
-      <field field_ref="hfxdhc"          name="hfxdhc"    />
-      <field field_ref="hfxtur"          name="hfxtur"    />
-
-      <field field_ref="isst"             name="sst" />
-      <field field_ref="isss"             name="sss" />
-      <field field_ref="micesalt"         name="sisali" />
-      <field field_ref="micet"            name="sitemp" />
-      <field field_ref="icest"            name="sistem" />
-      <field field_ref="icehc"            name="siheco" />
-      <field field_ref="isnowhc"          name="snheco" />
-      <field field_ref="miceage"          name="siages" />
-
-      <field field_ref="uice_ipa"         name="sivelu" />
-      <field field_ref="vice_ipa"         name="sivelv" />
-      <field field_ref="icevel"           name="sivelo" />
-      <field field_ref="idive"            name="sidive" />
-      <field field_ref="ishear"           name="sishea" />
-      <field field_ref="icestr"           name="sistre" />
-
-      <field field_ref="ibrinv"           name="sibrin" />
-      <field field_ref="icecolf"          name="sicolf" />
-
-      <field field_ref="iceage_cat"       name="siagecat"/>
-      <field field_ref="iceconc_cat"      name="siconcat"/>
-      <field field_ref="icethic_cat"      name="sithicat"/>
-      <field field_ref="snowthic_cat"     name="snthicat"/>
-      <field field_ref="salinity_cat"     name="salincat"/>
-      <field field_ref="brinevol_cat"     name="sibricat"/>
-
-    </file>
-
-    <file id="file15" name_suffix="_scalar" description="scalar variables" enabled=".true." >
-      <field field_ref="voltot"       name="scvoltot"  />
-      <field field_ref="sshtot"       name="scsshtot"  />
-      <field field_ref="sshsteric"    name="scsshste"  />
-      <field field_ref="sshthster"    name="scsshtst"  />
-      <field field_ref="masstot"      name="scmastot"  />
-      <field field_ref="temptot"      name="sctemtot"  />
-      <field field_ref="saltot"       name="scsaltot"  />
-
-      <field field_ref="bgtemper"     name="bgtemper"    />
-      <field field_ref="bgsaline"     name="bgsaline"    />
-      <field field_ref="bgheatco"     name="bgheatco"    />
-      <field field_ref="bgsaltco"     name="bgsaltco"    />
-      <field field_ref="bgvolssh"     name="bgvolssh"    /> 
-      <field field_ref="bgvole3t"     name="bgvole3t"    />
-      <field field_ref="bgfrcvol"     name="bgfrcvol"    />
-      <field field_ref="bgfrctem"     name="bgfrctem"    />
-      <field field_ref="bgfrcsal"     name="bgfrcsal"    />
-
-      <field field_ref="ibgvoltot"    name="ibgvoltot"   />
-      <field field_ref="sbgvoltot"    name="sbgvoltot"   />
-      <field field_ref="ibgarea"      name="ibgarea"     />
-      <field field_ref="ibgsaline"    name="ibgsaline"   />
-      <field field_ref="ibgtemper"    name="ibgtemper"   />
-      <field field_ref="ibgheatco"    name="ibgheatco"   />
-      <field field_ref="sbgheatco"    name="sbgheatco"   />
-      <field field_ref="ibgsaltco"    name="ibgsaltco"   />
-
-      <field field_ref="ibgvfx"       name="ibgvfx"      />
-      <field field_ref="ibgvfxbog"    name="ibgvfxbog"      />
-      <field field_ref="ibgvfxopw"    name="ibgvfxopw"      />
-      <field field_ref="ibgvfxsni"    name="ibgvfxsni"      />
-      <field field_ref="ibgvfxdyn"    name="ibgvfxdyn"      />
-      <field field_ref="ibgvfxbom"    name="ibgvfxbom"      />
-      <field field_ref="ibgvfxsum"    name="ibgvfxsum"      />
-      <field field_ref="ibgvfxres"    name="ibgvfxres"      />
-      <field field_ref="ibgvfxspr"    name="ibgvfxspr"      />
-      <field field_ref="ibgvfxsnw"    name="ibgvfxsnw"      />
-      <field field_ref="ibgvfxsub"    name="ibgvfxsub"      />
-
-      <field field_ref="ibgsfx"       name="ibgsfx"     />
-      <field field_ref="ibgsfxbri"    name="ibgsfxbri"    />
-      <field field_ref="ibgsfxdyn"    name="ibgsfxdyn" />
-      <field field_ref="ibgsfxres"    name="ibgsfxres" />
-      <field field_ref="ibgsfxbog"    name="ibgsfxbog"      />
-      <field field_ref="ibgsfxopw"    name="ibgsfxopw"      />
-      <field field_ref="ibgsfxsni"    name="ibgsfxsni"      />
-      <field field_ref="ibgsfxbom"    name="ibgsfxbom"      />
-      <field field_ref="ibgsfxsum"    name="ibgsfxsum"      />
-
-      <field field_ref="ibghfxdhc"    name="ibghfxdhc"    />
-      <field field_ref="ibghfxspr"    name="ibghfxspr"    />
-
-      <field field_ref="ibghfxres"    name="ibghfxres"    />
-      <field field_ref="ibghfxsub"    name="ibghfxsub"    />
-      <field field_ref="ibghfxdyn"    name="ibghfxdyn"    />
-      <field field_ref="ibghfxthd"    name="ibghfxthd"    />
-      <field field_ref="ibghfxsum"    name="ibghfxsum"    />
-      <field field_ref="ibghfxbom"    name="ibghfxbom"    />
-      <field field_ref="ibghfxbog"    name="ibghfxbog"    />
-      <field field_ref="ibghfxdif"    name="ibghfxdif"    />
-      <field field_ref="ibghfxopw"    name="ibghfxopw"    />
-      <field field_ref="ibghfxout"    name="ibghfxout"    />
-      <field field_ref="ibghfxin"    name="ibghfxin"    />
-      <field field_ref="ibghfxsnw"    name="ibghfxsnw"    />
-
-      <field field_ref="ibgfrcvol"    name="ibgfrcvol"   />
-      <field field_ref="ibgfrcsfx"    name="ibgfrcsfx"  />
-      <field field_ref="ibgvolgrm"    name="ibgvolgrm"    />
-
-    </file>
-
-    <file id="file16" name_suffix="_diaptr" description="diaptr variables" >
-      <field field_ref="zotemglo"   />
-      <field field_ref="zosalglo"   />
-      <field field_ref="zosrfglo"   />
-      <field field_ref="zomsfglo"   />
-      <field field_ref="zotematl"   />
-      <field field_ref="zosalatl"   />
-      <field field_ref="zosrfatl"   />
-      <field field_ref="zomsfatl"   />
-      <field field_ref="zotempac"   />
-      <field field_ref="zosalpac"   />
-      <field field_ref="zosrfpac"   />
-      <field field_ref="zomsfpac"   />
-      <field field_ref="zotemind"   />
-      <field field_ref="zosalind"   />
-      <field field_ref="zosrfind"   />
-      <field field_ref="zomsfind"   />
-      <field field_ref="zotemipc"   />
-      <field field_ref="zosalipc"   />
-      <field field_ref="zosrfipc"   />
-      <field field_ref="zomsfipc"   />
-      <field field_ref="sophtadv"   />
-      <field field_ref="sophtldf"   />
-      <field field_ref="sopstadv"   />
-      <field field_ref="sopstldf"   />
-    </file>
-    
-    <!--
-	<file id="file8" name_suffix="_Tides" description="tidal harmonics" >
-	<field field_ref="M2x"          name="M2x"      long_name="M2 Elevation harmonic real part"                       />
-	<field field_ref="M2y"          name="M2y"      long_name="M2 Elevation harmonic imaginary part"                  />
-	<field field_ref="M2x_u"        name="M2x_u"    long_name="M2 current barotrope along i-axis harmonic real part "       />
-	<field field_ref="M2y_u"        name="M2y_u"    long_name="M2 current barotrope along i-axis harmonic imaginary part "  />
-	<field field_ref="M2x_v"        name="M2x_v"    long_name="M2 current barotrope along j-axis harmonic real part "       />
-	<field field_ref="M2y_v"        name="M2y_v"    long_name="M2 current barotrope along j-axis harmonic imaginary part "  />
-	</file>
-    -->
-    
-    <file id="file17" name_suffix="_ptrc_T" description="pisces sms variables" >
-      <field field_ref="DIC"               operation="instant" freq_op="1mo" > @DIC_E3T / @e3t </field>
-      <field field_ref="Alkalini"          operation="instant" freq_op="1mo" > @Alkalini_E3T / @e3t </field>
-      <field field_ref="O2"                operation="instant" freq_op="1mo" > @O2_E3T / @e3t </field>
-      <field field_ref="PO4"               operation="instant" freq_op="1mo" > @PO4_E3T / @e3t </field>
-      <field field_ref="Si"                operation="instant" freq_op="1mo" > @Si_E3T / @e3t </field>
-      <field field_ref="Fer"               operation="instant" freq_op="1mo" > @Fer_E3T / @e3t </field>
-      <field field_ref="NO3"               operation="instant" freq_op="1mo" > @NO3_E3T / @e3t </field>
-      <field field_ref="NCHL"              operation="instant" freq_op="1mo" > @NCHL_E3T / @e3t </field>
-      <field field_ref="DCHL"              operation="instant" freq_op="1mo" > @DCHL_E3T / @e3t </field>
-    </file>
-    
-    <file id="file18" name_suffix="_diad_T" description="additional pisces diagnostics" >
-      <field field_ref="Cflx"   />
-      <field field_ref="Dpco2"  />
-      <field field_ref="PAR"    />
-      <field field_ref="PARDM"  />
-      <field field_ref="TPP"    />
-      <field field_ref="INTPP"  />
-      <field field_ref="EPC100" />
-    </file>
-    
-    <file id="file19" name_suffix="_bioscalar" description="pisces sms variables" >
-      <field field_ref="tdenit"   name="tdenit"   unit="TgN/yr" operation="instant" > tdenit * 14. * 86400. * 365. / 1e12 </field>
-      <field field_ref="tnfix"    name="tnfix"    unit="TgN/yr" operation="instant" > tnfix * 14. * 86400. * 365. / 1e12 </field>
-      <field field_ref="tcflx"    name="tcflx"    unit="PgC/yr" operation="instant" > tcflx * -1. * 12. * 86400. * 365. / 1e15 </field>
-      <field field_ref="tcflxcum" name="tcflxcum" unit="PgC"    operation="instant" > tcflxcum * -1. * 12. / 1e15 </field>
-      <field field_ref="tcexp"    name="tcexp"    unit="PgC/yr" operation="instant" > tcexp * 12. * 86400. * 365. / 1e15 </field>
-      <field field_ref="tintpp"   name="tintpp"   unit="PgC/yr" operation="instant" > tintpp * 12. * 86400. * 365. / 1e15 </field>
-      <field field_ref="pno3tot"  name="pno3tot"  unit="umolN"  operation="instant" > pno3tot * 16. / 122. * 1e6 </field>
-      <field field_ref="ppo4tot"  name="ppo4tot"  unit="umolP"  operation="instant" > ppo4tot * 1. / 122. * 1e6 </field>
-      <field field_ref="psiltot"  name="psiltot"  unit="umolC"  operation="instant" > psiltot * 1e6  </field>
-      <field field_ref="palktot"  name="palktot"  unit="umolC"  operation="instant" > palktot * 1e6  </field>
-      <field field_ref="pfertot"  name="pfertot"  unit="nmolFe" operation="instant" > pfertot * 1e9  </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="1y"  output_freq="1y" output_level="10" enabled="_AUTO_"> <!-- real yearly files -->
-
-    <file id="file20" name_suffix="_grid_T" description="ocean T grid variables" >
-      <field field_ref="e3t"  />
-      <field field_ref="sst"          name="tos"      long_name="sea_surface_temperature"                       />
-      <field field_ref="sss"          name="sos"      long_name="sea_surface_salinity"                          />
-      <field field_ref="ssh"          name="zos"      long_name="sea_surface_height_above_geoid"                />
-      <field field_ref="toce"         name="thetao"   long_name="sea_water_potential_temperature"      operation="instant" freq_op="1y" > @toce_e3t / @e3t </field>        
-      <field field_ref="soce"         name="so"       long_name="sea_water_salinity"                   operation="instant" freq_op="1y" > @soce_e3t / @e3t </field>         
-      <field field_ref="sst2"         name="tossq"    long_name="square_of_sea_surface_temperature"             />
-      <field field_ref="ssh2"         name="zossq"    long_name="square_of_sea_surface_height_above_geoid"      />
-      <field field_ref="mldr10_1"     />
-      <field field_ref="mldkz5"       name="omlmax"   long_name="ocean_mixed_layer_thickness_defined_by_mixing_scheme" level="2" operation="maximum" />
-      <field field_ref="runoffs"      name="friver"   long_name="water_flux_into_sea_water_from_rivers"                   level="1" />
-      <field field_ref="empmr"        name="wfo"      long_name="water_flux_into_sea_water"                               level="1" />
-      <field field_ref="erp"          name="wfcorr"   long_name="water_flux_correction"                                   level="1" /> <!-- usually = 0 -->
-      <field field_ref="qns"          name="nshfls"      long_name="surface_net_downward_non_solar_flux"                                         level="1" />
-      <field field_ref="qsr"          name="rsntds"      long_name="surface_net_downward_shortwave_flux"                                         level="1" />
-      <field field_ref="qsr3d"        name="rsds"        long_name="downwelling_shortwave_flux_in_sea_water"                                     level="1" />
-      <field field_ref="qt"           name="tohfls"   long_name="surface_net_downward_total_heat_flux"          />
-      <field field_ref="saltflx"      name="sosflxdo"  />
-      <field field_ref="taum"         name="taum" />
-      <field field_ref="wspd"         name="sowindsp"  />
-      <field field_ref="precip"       name="soprecip" />
-      <!-- available with ln_blk_clio or ln_blk_core -->
-      <field field_ref="qns_oce"      name="sonshdoo"  />
-      <field field_ref="qlw_oce"      name="solwhdoo"  />
-      <field field_ref="qsb_oce"      name="sosehdoo"  />
-      <field field_ref="qla_oce"      name="solahdoo"  />
-      <field field_ref="taum_oce"     name="sowndsto"  />
-      <!-- ice and snow -->
-      <field field_ref="snowpre"      name="isnowpre"/>
-      <field field_ref="utau_ice"     name="iicestru" />
-      <field field_ref="vtau_ice"     name="iicestrv" />
-    </file>
-
-    <file id="file21" name_suffix="_grid_U" description="ocean U grid variables" >
-      <field field_ref="e3u"  />
-      <field field_ref="ssu"          name="uos"     long_name="sea_surface_x_velocity"    />
-      <field field_ref="uoce"         name="uo"      long_name="sea_water_x_velocity"      operation="instant" freq_op="1y" > @uoce_e3u / @e3u </field> 
-      <field field_ref="utau"         name="tauuo"   long_name="surface_downward_x_stress" />
-      <field field_ref="uocetr_eff"   name="uocetr_eff"  />
-    </file>
-
-    <file id="file22" name_suffix="_grid_V" description="ocean V grid variables" >
-      <field field_ref="e3v"  />
-      <field field_ref="ssv"          name="vos"     long_name="sea_surface_y_velocity"    />
-      <field field_ref="voce"         name="vo"      long_name="sea_water_y_velocity"     operation="instant" freq_op="1y" > @voce_e3v / @e3v </field>
-      <field field_ref="vtau"         name="tauvo"   long_name="surface_downward_y_stress" />
-      <field field_ref="vocetr_eff"   name="vocetr_eff"  />
-    </file>
-
-    <file id="file23" name_suffix="_grid_W" description="ocean W grid variables" >
-      <field field_ref="e3w"  />
-      <field field_ref="woce"         name="wo"      long_name="ocean vertical velocity"         />
-      <field field_ref="avt"          name="difvho"  long_name="ocean_vertical_heat_diffusivity" />
-      <field field_ref="wocetr_eff"   name="wocetr_eff"  />
-    </file>
-
-    <file id="file24" name_suffix="_ptrc_T" description="pisces sms variables" enabled=".TRUE." >
-      <field field_ref="DIC"      operation="instant" freq_op="1y" > @DIC_E3T / @e3t </field>
-      <field field_ref="Alkalini" operation="instant" freq_op="1y" > @Alkalini_E3T / @e3t </field>
-      <field field_ref="O2"       operation="instant" freq_op="1y" > @O2_E3T / @e3t </field>
-      <field field_ref="CaCO3"    operation="instant" freq_op="1y" > @CaCO3_E3T / @e3t </field>
-      <field field_ref="PO4"      operation="instant" freq_op="1y" > @PO4_E3T / @e3t </field>
-      <field field_ref="POC"      operation="instant" freq_op="1y" > @POC_E3T / @e3t </field>
-      <field field_ref="Si"       operation="instant" freq_op="1y" > @Si_E3T / @e3t </field>
-      <field field_ref="PHY"      operation="instant" freq_op="1y" > @PHY_E3T / @e3t </field>
-      <field field_ref="ZOO"      operation="instant" freq_op="1y" > @ZOO_E3T / @e3t </field>
-      <field field_ref="DOC"      operation="instant" freq_op="1y" > @DOC_E3T / @e3t </field>
-      <field field_ref="PHY2"     operation="instant" freq_op="1y" > @PHY2_E3T / @e3t </field>
-      <field field_ref="ZOO2"     operation="instant" freq_op="1y" > @ZOO2_E3T / @e3t </field>
-      <field field_ref="DSi"      operation="instant" freq_op="1y" > @DSi_E3T / @e3t </field>
-      <field field_ref="Fer"      operation="instant" freq_op="1y" > @Fer_E3T / @e3t </field>
-      <field field_ref="BFe"      operation="instant" freq_op="1y" > @BFe_E3T / @e3t </field>
-      <field field_ref="GOC"      operation="instant" freq_op="1y" > @GOC_E3T / @e3t </field>
-      <field field_ref="SFe"      operation="instant" freq_op="1y" > @SFe_E3T / @e3t </field>
-      <field field_ref="DFe"      operation="instant" freq_op="1y" > @DFe_E3T / @e3t </field>
-      <field field_ref="GSi"      operation="instant" freq_op="1y" > @GSi_E3T / @e3t </field>
-      <field field_ref="NFe"      operation="instant" freq_op="1y" > @NFe_E3T / @e3t </field>
-      <field field_ref="NCHL"     operation="instant" freq_op="1y" > @NCHL_E3T / @e3t </field>
-      <field field_ref="DCHL"     operation="instant" freq_op="1y" > @DCHL_E3T / @e3t </field>
-      <field field_ref="NO3"      operation="instant" freq_op="1y" > @NO3_E3T / @e3t </field>
-      <field field_ref="NH4"      operation="instant" freq_op="1y" > @NH4_E3T / @e3t </field>
-    </file>
-    
-    <file id="file25" name_suffix="_diad_T" description="additional pisces diagnostics" enabled=".TRUE." >
-      <field field_ref="PH"       />
-      <field field_ref="PAR"      />
-      <field field_ref="PARDM"    />
-      <field field_ref="Cflx"     />
-      <field field_ref="Oflx"     />
-      <field field_ref="Dpco2"    />
-      <field field_ref="Dpo2"     />
-      <field field_ref="Heup"     />
-      <field field_ref="Irondep"  />
-      <field field_ref="Ironsed"  />
-      <field field_ref="Nfix"     />
-      <field field_ref="LNnut"    />
-      <field field_ref="LDnut"    />
-      <field field_ref="LNFe"     />
-      <field field_ref="LDFe"     />
-      <field field_ref="LNlight"  />
-      <field field_ref="LDlight"  />
-      <field field_ref="TPP"      />
-      <field field_ref="TPNEW"    />
-      <field field_ref="EPC100"   />
-      <field field_ref="EPFE100"  />
-      <field field_ref="EPSI100"  />
-      <field field_ref="EPCAL100" />
-      <field field_ref="xfracal"  />
-      <field field_ref="GRAZ1"  name="GRAZT" operation="instant" freq_op="1y" > @GRAZ1 + @GRAZ2 </field>
-    </file>
-
-    <file id="file26" name_suffix="_diaptr" description="diaptr variables" enabled=".TRUE." >
-      <field field_ref="zotemglo"   />
-      <field field_ref="zosalglo"   />
-      <field field_ref="zosrfglo"   />
-      <field field_ref="zomsfglo"   />
-      <field field_ref="zotematl"   />
-      <field field_ref="zosalatl"   />
-      <field field_ref="zosrfatl"   />
-      <field field_ref="zomsfatl"   />
-      <field field_ref="zotempac"   />
-      <field field_ref="zosalpac"   />
-      <field field_ref="zosrfpac"   />
-
-      <field field_ref="LDnut"    />
-        <field field_ref="LNFe"     />
-        <field field_ref="LDFe"     />
-        <field field_ref="LNlight"  />
-        <field field_ref="LDlight"  />
-        <field field_ref="TPP"   />
-       <field field_ref="TPNEW"   />
-        <field field_ref="EPC100"   />
-        <field field_ref="EPFE100"  />
-        <field field_ref="EPSI100"  />
-        <field field_ref="EPCAL100" />
-        <field field_ref="xfracal"  />
-        <field field_ref="GRAZ1"  name="GRAZT" operation="instant" freq_op="1y" > @GRAZ1 + @GRAZ2 </field> 
-    </file>
-
-      </file_group>
-
-      <file_group id="2y"  output_freq="2y" output_level="10" enabled=".TRUE."/> <!-- real 2y files -->
-      <file_group id="5y"  output_freq="5y" output_level="10" enabled=".TRUE."/> <!-- real 5y files -->
-      <file_group id="10y" output_freq="10y" output_level="10" enabled=".TRUE."/> <!-- real 10y files -->
-
-</file_definition>
-
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/iodef.xml
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/iodef.xml	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/iodef.xml	(revision 2876)
@@ -13,16 +13,14 @@
   <context id="xios">
 
-    <variable_definition>
-	
-     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) -->
-	  <variable id="buffer_size"               type="integer">10000000</variable>
-	  <variable id="buffer_server_factor_size" type="integer">2</variable>
-	  <variable id="info_level"                type="integer">1</variable>
-	  <variable id="using_server"              type="boolean">false</variable>
-	  <variable id="using_oasis"               type="boolean">false</variable>
-	  <variable id="oasis_codes_id"            type="string" >LMDZ,oceanx</variable>
-	
-      </variable_definition>
-               
+    <variable_definition>	
+      <variable id="optimal_buffer_size" type="string">performance</variable>
+      <variable id="buffer_size_factor" type="double">2.0</variable>
+      <variable id="min_buffer_size" type="int">10000000</variable>
+      <variable id="info_level"            type="int">1</variable>
+      <variable id="using_server"          type="bool">false</variable>
+      <variable id="using_oasis"           type="bool">false</variable>
+      <variable id="oasis_codes_id"        type="string" >LMDZ,oceanx</variable>	
+    </variable_definition>
+    
   </context>
 
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/orchidee.def_CWRR
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/orchidee.def_CWRR	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/orchidee.def_CWRR	(revision 2876)
@@ -95,2 +95,8 @@
 CO2_FOR_BVOC_POSSELL=n
 
+ALB_BG_FILE=alb_bg.nc
+ROUGH_DYN=n
+OK_FREEZE=y
+DEPTH_MAX_T=90
+OK_EXPLICITSNOW=y 
+READ_REFTEMP=n
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/POST/monitoring01_lim3_ORCA1.cfg
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/POST/monitoring01_lim3_ORCA1.cfg	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/POST/monitoring01_lim3_ORCA1.cfg	(revision 2876)
@@ -44,12 +44,9 @@
 # Temporary fix
  siconc_north    | "sivolu sithic"  | eORCA1.1_grid.nc | "(sivolu[d=1]/sithic[d=2]"   | "Ice Fraction (NORTH)"            | "-"     | "if lat[d=3] ge 0 then mask[k=1,d=3]*area[d=3]"
- siconc_south    | "sivolu sithic"  | eORCA1.1_grid.nc | "(sivolu[d=1]/sithic[d=2]"   | "Ice Fraction (NORTH)"            | "-"     | "if lat[d=3] le 0 then mask[k=1,d=3]*area[d=3]"
- icesurf_north   | "sivolu sithic"  | eORCA1.1_grid.nc | "(if lat[d=2] ge 0 then sivolu[d=1]/sithic[d=2]*mask[k=1,d=3]*area[d=3])"   | "Ice Volume (NORTH)"    | "m3"    | "2"
- icesurf_south   | "sivolu sithic"  | eORCA1.1_grid.nc | "(if lat[d=2] le 0 then sivolu[d=1]/sithic[d=2]*mask[k=1,d=3]*area[d=3])"   | "Ice Volume (SOUTH)"    | "m3"    | "2"
-#
+ siconc_south    | "sivolu sithic"  | eORCA1.1_grid.nc | "(sivolu[d=1]/sithic[d=2]"   | "Ice Fraction (SOUTH)"            | "-"     | "if lat[d=3] le 0 then mask[k=1,d=3]*area[d=3]"
  snowvol_north   | "snvolu"  | eORCA1.1_grid.nc | "(if lat[d=2] ge 0 then snvolu[d=1]*mask[k=1,d=2]*area[d=2])"   | "Snow Volume (NORTH)"   | "m3"    | "2"
- snowvol_south   | "snvolu"  | eORCA1.1_grid.nc | "(if lat[d=3] le 0 then sivolu[d=1]*mask[k=1,d=2]*area[d=2])"   | "Ice Volum  (SOUTH)"    | "m3"    | "2"
- icevol_north    | "sivolu"  | eORCA1.1_grid.nc | "(if lat[d=2] ge 0 then snvolu[d=1]*mask[k=1,d=2]*area[d=2])"   | "Snow Volume (SOUTH)"   | "m3"    | "2"
- icevol_south    | "sivolu"  | eORCA1.1_grid.nc | "(if lat[d=2] le 0 then snvolu[d=1]*mask[k=1,d=2]*area[d=2])"   | "Snow Volume (SOUTH)"   | "m3"    | "2"
+ snowvol_south   | "snvolu"  | eORCA1.1_grid.nc | "(if lat[d=2] le 0 then snvolu[d=1]*mask[k=1,d=2]*area[d=2])"   | "Snow Volume  (SOUTH)"    | "m3"    | "2"
+ icevol_north    | "sivolu"  | eORCA1.1_grid.nc | "(if lat[d=2] ge 0 then sivolu[d=1]*mask[k=1,d=2]*area[d=2])"   | "Ice Volume (NORTH)"   | "m3"    | "2"
+ icevol_south    | "sivolu"  | eORCA1.1_grid.nc | "(if lat[d=2] le 0 then sivolu[d=1]*mask[k=1,d=2]*area[d=2])"   | "Ice Volume (SOUTH)"   | "m3"    | "2"  
  iicethic_north  | "sithic"  | eORCA1.1_grid.nc | "(sithic[d=1])"   | "Ice thickness (NORTH)"           | "m"     | "if lat[d=2] ge 0 then mask[k=1,d=2]*area[d=2]"
  iicethic_south  | "sithic"  | eORCA1.1_grid.nc | "(sithic[d=1])"   | "Ice thickness (SOUTH)"           | "m"     | "if lat[d=2] le 0 then mask[k=1,d=2]*area[d=2]"
Index: /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/POST/monitoring01_opa9_ORCA1.cfg
===================================================================
--- /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/POST/monitoring01_opa9_ORCA1.cfg	(revision 2875)
+++ /CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/POST/monitoring01_opa9_ORCA1.cfg	(revision 2876)
@@ -41,5 +41,5 @@
  sosaline_global  | "sos"      | eORCA1.1_grid.nc | "(sos[d=1])"                                         | "Sea Surface Salinity (GLOBAL)"    | "PSU"   | "mask[k=1,d=2]*area[d=2]"
  sossheig_global  | "zos"      | eORCA1.1_grid.nc | "(zos[d=1])"                                         | "Sea Surface Heigh (GLOBAL)"       | "m"     | "mask[k=1,d=2]*area[d=2]"
- sohefldo_global  | "nshfls+rsntds" | eORCA1.1_grid.nc | "(nshfls[d=1]+rsntds[d=2])"                     | "Net Downward Heat Flux (GLOBAL)"  | "W/m^2" | "mask[k=1,d=2]*area[d=3]"
+ sohefldo_global  | "nshfls rsntds" | eORCA1.1_grid.nc | "(nshfls[d=1]+rsntds[d=2])"                     | "Net Downward Heat Flux (GLOBAL)"  | "W/m^2" | "mask[k=1,d=3]*area[d=3]"
  somxl010_north   | "mldr10_1" | eORCA1.1_grid.nc | "(mldr10_1[d=1])" | "Mixed layer depth (NORTH)"      | "m"     | "(if lat[d=2] gt 0 then mask[k=1,d=2]*area[d=2])"
  somxl010_south   | "mldr10_1" | eORCA1.1_grid.nc | "(mldr10_1[d=1])" | "Mixed layer depth (SOUTH)"      | "m"     | "(if lat[d=2] lt 0 then mask[k=1,d=2]*area[d=2])"
