Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/dynamico.driver
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/dynamico.driver	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/dynamico.driver	(revision 6296)
@@ -21,4 +21,9 @@
 	IGCM_debug_Exit "RESOL_ATM_Z must be set in dynamico.card UserSection"
 	IGCM_debug_Verif_Exit
+    fi
+
+    if [ ! -f ${SUBMIT_DIR}/../../../modeles/DYNAMICO/xml/file_def_dynamico.xml ];  then 
+	module load python3
+	python3 ${SUBMIT_DIR}/../../../modeles/DYNAMICO/xml/file_def_dynamico.xml.py > ${SUBMIT_DIR}/../../../modeles/DYNAMICO/xml/file_def_dynamico.xml
     fi
 
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/lmdz.driver
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/lmdz.driver	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/lmdz.driver	(revision 6296)
@@ -31,4 +31,5 @@
 	RESOL_ATM_Z=${dynamico_UserChoices_RESOL_ATM_Z}
 	RESOL_NBP=${dynamico_UserChoices_RESOL_NBP}
+    RESOL_ATM="nbp${RESOL_NBP}"
     fi
 
@@ -379,5 +380,9 @@
     fi
 
-    if [ X${config_ListOfComponents_CHM} = Xinca ] ; then
+    if [ X${config_UserChoices_ConfigType} = XESMCO2AER ] ; then
+    echo "ESM config, with INCA and CO2i, set type_trac=inco in run.def"
+    IGCM_comp_modifyDefFile blocker run.def type_trac inco
+    IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1
+    elif [ X${config_ListOfComponents_CHM} = Xinca ] ; then
 	echo "Activate coupling to INCA, set type_trac=inca in run.def"
 	IGCM_comp_modifyDefFile blocker run.def type_trac inca
@@ -492,5 +497,5 @@
     fi 
 
-    if [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then
+    if ( [ X${config_UserChoices_ConfigType} = XESMCO2 ] || [ X${config_UserChoices_ConfigType} = XESMCO2AER ] ) ; then
 	# Set carbon cycle parameters according to parmeters in lmdz.card 
 	IGCM_comp_modifyDefFile blocker config.def level_coupling_esm 2 
@@ -498,4 +503,5 @@
 	IGCM_comp_modifyDefFile blocker config.def carbon_cycle_tr ${lmdz_UserChoices_carbon_cycle_tr}
 	IGCM_comp_modifyDefFile blocker config.def carbon_cycle_rad ${lmdz_UserChoices_carbon_cycle_rad}
+	IGCM_comp_modifyDefFile nonblocker config.def co2_ppm0 ${lmdz_UserChoices_co2_ppm0} 
     else
 	# Take default value set in config.def
@@ -504,4 +510,18 @@
 	IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_tr DEFAULT
 	IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_rad DEFAULT
+	IGCM_comp_modifyDefFile nonblocker config.def co2_ppm0 DEFAULT
+    fi
+
+    if ( [ X${config_UserChoices_ConfigType} = XESMCO2 ] ) ; then
+	# Set carbon cycle parameters according to parmeters in lmdz.card 
+	IGCM_comp_modifyDefFile nonblocker config.def read_fco2_ocean_cor ${lmdz_UserChoices_read_fco2_ocean_cor}
+	IGCM_comp_modifyDefFile nonblocker config.def var_fco2_ocean_cor ${lmdz_UserChoices_var_fco2_ocean_cor}
+	IGCM_comp_modifyDefFile nonblocker config.def read_fco2_land_cor ${lmdz_UserChoices_read_fco2_land_cor}
+	IGCM_comp_modifyDefFile nonblocker config.def var_fco2_land_cor ${lmdz_UserChoices_var_fco2_land_cor}
+    else
+	IGCM_comp_modifyDefFile nonblocker config.def read_fco2_ocean_cor DEFAULT
+	IGCM_comp_modifyDefFile nonblocker config.def var_fco2_ocean_cor DEFAULT
+	IGCM_comp_modifyDefFile nonblocker config.def read_fco2_land_cor DEFAULT
+	IGCM_comp_modifyDefFile nonblocker config.def var_fco2_land_cor DEFAULT
     fi
 
@@ -572,5 +592,5 @@
     fi
     # Include xml files for output configuration if running with workflow CMIP6
-    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then
+    if ( [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] || [ X${config_Post_dr2xmlIPSL} = XTRUE ] ) ; then
 	echo '<context id="LMDZ" src="./ping_lmdz.xml"/>' >> add.tmp
 	echo '<context id="LMDZ" src="./dr2xml_lmdz.xml"/>' >> add.tmp
@@ -615,4 +635,7 @@
 	    valuei=720
 	    valuej=360
+    elif [ ${RESOL_NBP} == 320  ] ; then
+        valuei=1440
+        valuej=720
 	else
 	    IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers"
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/orchidee.driver
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/orchidee.driver	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/orchidee.driver	(revision 6296)
@@ -15,4 +15,10 @@
     fi
 
+    # Define the resolution only if the composant ICO for DYNAMICO is set in config.card
+    if [ ! X${config_ListOfComponents_ICO} = X ] ; then
+    RESOL_SRF="nbp${RESOL_NBP}"
+    fi
+
+
     IGCM_debug_PopStack "SRF_Initialize"
 }
@@ -40,8 +46,10 @@
 	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
 	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
-
-        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 enabled .FALSE.
-        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_level 0
-        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_freq 1mo
+	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 enabled .FALSE.
+	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_level 0
+	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_freq 1mo
+	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate4 enabled .FALSE.
+	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate4 output_level 0
+	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate4 output_freq 1mo
     fi
 
@@ -64,4 +72,23 @@
     else
         IGCM_comp_modifyDefFile nonblocker orchidee.def VEGET_UPDATE 0Y
+    fi
+
+    # Set parameters related to ROUTING in orchidee.def
+    if [ X${orchidee_UserChoices_ROUTING} = X ] || [ X${orchidee_UserChoices_ROUTING} = Xstandard ]; then
+	# Nothing is set or ROUTING=standard in orchidee.def, default option
+        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_ROUTING y
+        IGCM_comp_modifyDefFile nonblocker orchidee.def ROUTING_METHOD  standard
+    elif [ X${orchidee_UserChoices_ROUTING} = Xsimple ]; then
+	# ROUTING=simple is set in orchidee.card
+        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_ROUTING y
+        IGCM_comp_modifyDefFile nonblocker orchidee.def ROUTING_METHOD  simple
+    elif [ X${orchidee_UserChoices_ROUTING} = Xhighres ]; then
+	# ROUTING=highres is set in orchidee.card
+        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_ROUTING y
+        IGCM_comp_modifyDefFile nonblocker orchidee.def ROUTING_METHOD  highres
+    else
+	# ROUTING=off, routing will be deactivated
+	IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_ROUTING n
+        IGCM_comp_modifyDefFile nonblocker orchidee.def ROUTING_METHOD  standard
     fi
 
@@ -114,4 +141,5 @@
 	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level ${orchidee_UserChoices_output_level_sechiba_history}
 	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq  ${orchidee_UserChoices_output_freq_sechiba_history}
+	IGCM_comp_modifyXmlFile force      file_def_orchidee.xml groupremap_sechiba1 group_ref remap_${orchidee_UserChoices_output_freq_sechiba_history}
     fi
     
@@ -126,4 +154,5 @@
 	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level ${orchidee_UserChoices_output_level_sechiba_out_2}
 	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq  ${orchidee_UserChoices_output_freq_sechiba_out_2}
+	IGCM_comp_modifyXmlFile force      file_def_orchidee.xml groupremap_sechiba2 group_ref remap_${orchidee_UserChoices_output_freq_sechiba_out_2}		
     fi
     
@@ -138,4 +167,5 @@
 	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level ${orchidee_UserChoices_output_level_sechiba_history_4dim}
 	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq  ${orchidee_UserChoices_output_freq_sechiba_history_4dim}
+	IGCM_comp_modifyXmlFile force      file_def_orchidee.xml groupremap_sechiba3 group_ref remap_${orchidee_UserChoices_output_freq_sechiba_history_4dim}		
     fi
         
@@ -153,8 +183,14 @@
         echo '<context id="orchidee" src="./context_input_orchidee.xml"/>' >> add.tmp
     fi
+
+    # Add inclusion of file context_routing_orchidee.xml if this file exists
+    if [ -f context_routing_orchidee.xml ] ; then
+        echo '<context id="orchidee" src="./context_routing_orchidee.xml"/>' >> add.tmp
+    fi
+
     # Include xml files for output configuration if running with workflow CMIP6
-    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then
-	echo '<context id="orchidee" src="./ping_orchidee.xml"/>' >> add.tmp
-	echo '<context id="orchidee" src="./dr2xml_orchidee.xml"/>' >> add.tmp
+    if ( [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] || [ X${config_Post_dr2xmlIPSL} = XTRUE ] ) ; then
+	  echo '<context id="orchidee" src="./ping_orchidee.xml"/>' >> add.tmp
+	  echo '<context id="orchidee" src="./dr2xml_orchidee.xml"/>' >> add.tmp
     fi
     cp iodef.xml iodef.xml.tmp
@@ -198,4 +234,7 @@
 	    valuei=720
 	    valuej=360
+    elif [ ${RESOL_NBP} == 320  ] ; then
+        valuei=1440
+        valuej=720
 	else
 	    IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers"
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/config.def_actuel
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/config.def_actuel	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/config.def_actuel	(revision 6296)
@@ -8,9 +8,20 @@
 carbon_cycle_rad=_AUTO_ : DEFAULT=n
 
+## read_fco2_ocean_cor : y/n flag d'activation de la correction du flux net de carbone (ocean) 
+read_fco2_ocean_cor=_AUTO_ : DEFAULT=n
+## var_fco2_ocean_cor : valeur de la correction du flux net de carbone (ocean) 
+var_fco2_ocean_cor=_AUTO_: DEFAULT = 0.2576
+## read_fco2_land_cor : y/n flag d'activation de la correction du flux net de carbone (land) 
+read_fco2_land_cor=_AUTO_ : DEFAULT=n
+## var_fco2_land_cor : valeur de la correction du flux net de carbone (land) 
+var_fco2_land_cor=_AUTO_: DEFAULT =-0.2036
+
 ##  Cycle diurne  ou non                 
 iflag_cycle_diurne=1
-##  Soil Model  ou non               
+
+## Soil Model ou non
 soil_model=y
-## Pas de temps de couplage (s).
+
+## Pas de temps de couplage (s)
 t_coupl=_AUTO_
 
@@ -41,4 +52,6 @@
 ### co2_ppm =    taux CO2 en ppm, l'annÃ©e 2000 forcage CMIP6
 co2_ppm = _AUTO_: DEFAULT = 3.6912e+02
+# co2_ppm0 = taux initial du CO2 en ppm, l'annÃ©e 1850 forcage CMIP6 (transport)
+co2_ppm0 = _AUTO_: DEFAULT  = 2.8432e+02
 ### co2_ppm_per =    taux 4xCO2 en ppm (uniqument pour calcul des diags)
 co2_ppm_per = _AUTO_: DEFAULT = 14.7648e+02
@@ -66,5 +79,5 @@
 ###  flag_aerosol = type of coupled aerosol, if aerosol offline 
 ###  0 => no aerosol, 1 => sulfate only, 2 => bc only, 3 => pom only, 4 => seasalt only, 5 => dust only, 6 => all aerosol
-flag_aerosol=_AUTO_ 
+flag_aerosol=_AUTO_
 ### ok_cdnc=y/n   Cloud droplet number concentration
 ok_cdnc=_AUTO_
@@ -79,5 +92,5 @@
 # 2: read two ozone climatologies, the average day and night climatology and the daylight climatology
 read_climoz=_AUTO_
-# 
+#
 # Aerosols stratospheriques utilises par defaut 
 flag_aerosol_strat=_AUTO_ : DEFAULT=2
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/config.def_annuel
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/config.def_annuel	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/config.def_annuel	(revision 6296)
@@ -1,3 +1,3 @@
-# level_coupling_esm : 0(pas d'echange de carbone), 2 (change entre LMDZ/CPL/NEMO et LMDZ/ORCHIDEE)
+## level_coupling_esm : 0(pas d'echange de carbone), 2 (change entre LMDZ/CPL/NEMO et LMDZ/ORCHIDEE)
 level_coupling_esm=  _AUTO_: DEFAULT = 0
 ## carbon_cycle_cpl: couplage des flux de carbone ATM/OCE, ATM/SRF
@@ -8,9 +8,20 @@
 carbon_cycle_rad=_AUTO_ : DEFAULT=n
 
+## read_fco2_ocean_cor : y/n flag d'activation de la correction du flux net de carbone (ocean) 
+read_fco2_ocean_cor=_AUTO_ : DEFAULT=n
+## var_fco2_ocean_cor : valeur de la correction du flux net de carbone (ocean) 
+var_fco2_ocean_cor=_AUTO_: DEFAULT = 0.2576
+## read_fco2_land_cor : y/n flag d'activation de la correction du flux net de carbone (land) 
+read_fco2_land_cor=_AUTO_ : DEFAULT=n
+## var_fco2_land_cor : valeur de la correction du flux net de carbone (land) 
+var_fco2_land_cor=_AUTO_: DEFAULT =-0.2036
+
 ##  Cycle diurne  ou non                 
 iflag_cycle_diurne=1
-##  Soil Model  ou non               
+
+## Soil Model ou non
 soil_model=y
-## Pas de temps de couplage (s).
+
+## Pas de temps de couplage (s)
 t_coupl=_AUTO_
 
@@ -41,4 +52,6 @@
 ### co2_ppm =    taux CO2 en ppm
 co2_ppm = _AUTO_
+# co2_ppm0 = taux initial du CO2 en ppm, l'annÃ©e 1850 forcage CMIP6 (transport)
+co2_ppm0 = _AUTO_: DEFAULT  = 2.8432e+02
 ### co2_ppm_per =    taux 4xCO2 en ppm (uniqument pour calcul des diags)
 co2_ppm_per = _AUTO_
@@ -66,10 +79,9 @@
 ###  flag_aerosol = type of coupled aerosol, if aerosol offline 
 ###  0 => no aerosol, 1 => sulfate only, 2 => bc only, 3 => pom only, 4 => seasalt only, 5 => dust only, 6 => all aerosol
-flag_aerosol=_AUTO_ 
+flag_aerosol=_AUTO_
 ### ok_cdnc=y/n   Cloud droplet number concentration
 ok_cdnc=_AUTO_
 # ok_alw=y flag pour activer l effet LW des poussieres
 ok_alw=y
-#
 #
 # Parametre de lecture de l'ozone
@@ -80,5 +92,5 @@
 # 2: read two ozone climatologies, the average day and night climatology and the daylight climatology
 read_climoz=_AUTO_
-# 
+#
 # Aerosols stratospheriques utilises par defaut 
 flag_aerosol_strat=_AUTO_ : DEFAULT=2
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/config.def_preind
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/config.def_preind	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/config.def_preind	(revision 6296)
@@ -8,12 +8,21 @@
 carbon_cycle_rad=_AUTO_ : DEFAULT=n
 
+## read_fco2_ocean_cor : y/n flag d'activation de la correction du flux net de carbone (ocean) 
+read_fco2_ocean_cor=_AUTO_ : DEFAULT=n
+## var_fco2_ocean_cor : valeur de la correction du flux net de carbone (ocean) 
+var_fco2_ocean_cor=_AUTO_: DEFAULT = 0.2576
+## read_fco2_land_cor : y/n flag d'activation de la correction du flux net de carbone (land) 
+read_fco2_land_cor=_AUTO_ : DEFAULT=n
+## var_fco2_land_cor : valeur de la correction du flux net de carbone (land) 
+var_fco2_land_cor=_AUTO_: DEFAULT =-0.2036
+
 ##  Cycle diurne  ou non                 
 iflag_cycle_diurne=1
 
-## Pas de temps de couplage (s). 
+## Soil Model ou non
+soil_model=y
+
+## Pas de temps de couplage (s)
 t_coupl=_AUTO_
-
-##  Soil Model  ou non               
-soil_model=y
 
 ## Nombre  d'appels des routines de rayonnements ( par jour)                 
@@ -43,4 +52,6 @@
 ### co2_ppm_per =    taux 4xCO2 en ppm (uniqument pour calcul des diags)
 co2_ppm_per = _AUTO_: DEFAULT  =11.3728e+02
+## co2_ppm0 = taux initial du CO2 en ppm, l'annÃ©e 1850 forcage CMIP6 (transport)
+co2_ppm0 = _AUTO_: DEFAULT  = 2.8432e+02
 ### CH4_ppb =    taux CH4 en ppb, l'annÃ©e 1850 forcage CMIP6
 CH4_ppb = _AUTO_: DEFAULT = 8.0825e+02
@@ -81,5 +92,4 @@
 #
 # Aerosols stratospheriques utilises par defaut 
-#
 flag_aerosol_strat=_AUTO_ : DEFAULT=2
 # Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones
@@ -87,4 +97,3 @@
 #
 # COSP
-#
 ok_cosp=_AUTO_
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/file_def_histmth_lmdz.xml
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/file_def_histmth_lmdz.xml	(revision 6296)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/file_def_histmth_lmdz.xml	(revision 6296)
@@ -0,0 +1,749 @@
+<!-- $Id: file_def_histmth_lmdz.xml 4298 2022-10-17 08:15:06Z pcadule $ --> 
+<file_definition>
+        <file_group id="defile">
+        <file id="histmth" name="histmth" output_freq="1mo" output_level="_AUTO_"  enabled="_AUTO_" compression_level="2">
+
+            <!-- VARS 1D -->
+<!--            <field_group operation="once">  -->
+<!--              <field field_ref="Ap" level="1" />  -->
+<!--              <field field_ref="Bp" level="1" />  -->
+<!--              <field field_ref="Alt" level="1" />  -->
+<!--            </field_group>  -->
+
+            <field_group operation="once">
+              <field field_ref="Ahyb" level="1" />
+              <field field_ref="Ahyb_bounds" level="1" />
+              <field field_ref="Bhyb" level="1" />
+              <field field_ref="Bhyb_bounds" level="1" />
+              <field field_ref="Ahyb_mid" level="1" />
+              <field field_ref="Ahyb_mid_bounds" level="1" />
+              <field field_ref="Bhyb_mid" level="1" />
+              <field field_ref="Bhyb_mid_bounds" level="1" />
+            </field_group>
+
+            <field_group operation="instant">
+                <field field_ref="R_ecc" level="1" name="R_ecc" />
+                <field field_ref="R_peri" level="1" name="R_peri" />
+                <field field_ref="R_incl" level="1" name="R_incl" />
+                <field field_ref="solaire" level="1" name="solaire" />
+
+                <field field_ref="rsun1" level="1" name="rsun1" />
+                <field field_ref="rsun2" level="1" name="rsun2" />
+                <field field_ref="rsun3" level="1" name="rsun3" />
+                <field field_ref="rsun4" level="1" name="rsun4" />
+                <field field_ref="rsun5" level="1" name="rsun5" />
+                <field field_ref="rsun6" level="1" name="rsun6" />
+
+                <field field_ref="co2_ppm" level="1" name="co2_ppm" />
+                <field field_ref="CH4_ppb" level="1" name="CH4_ppb" />
+                <field field_ref="N2O_ppb" level="1" name="N2O_ppb" />
+                <field field_ref="CFC11_ppt" level="1" name="CFC11_ppt" />
+                <field field_ref="CFC12_ppt" level="1" name="CFC12_ppt" />
+            </field_group>
+            
+
+           <field_group group_ref="remap_1mo">
+             <!-- VARS 2D -->
+             <field_group operation="average" grid_ref="grid_out">
+                <field field_ref="io_lon" level="1" operation="once"/>
+                <field field_ref="io_lat" level="1" operation="once"/>
+    
+                <field field_ref="phis"         level="1"  />
+                <field field_ref="aire"         level="1"  />
+                <field field_ref="contfracATM"  level="10" />
+                <field field_ref="contfracOR"   level="10" />
+                <field field_ref="flat"         level="5" />
+                <field field_ref="slp"          level="1" />
+                <field field_ref="sza"          level="1" />
+                <field field_ref="ptstar"       level="1" />
+                <field field_ref="pt0"          level="1" />
+                <field field_ref="tsol"         level="1" />
+                <field field_ref="t2m"          level="1" />
+                <field id="ave_t2m_daily_min" field_ref="t2m_min" name="ave_t2m_daily_min" level="1" operation="average" freq_op="1d" expr="@t2m_min" />
+                <field id="ave_t2m_daily_max" field_ref="t2m_max" name="ave_t2m_daily_max" level="1" operation="average" freq_op="1d" expr="@t2m_max" />
+                <field field_ref="t2m_ter" level="10" />
+                <field field_ref="t2m_lic" level="10" />
+                <field field_ref="t2m_oce" level="10" />
+                <field field_ref="t2m_sic" level="10" />
+                <field field_ref="gusts" level="1" />
+                <field field_ref="wind10m" level="1" />
+                <field field_ref="wind10max" level="10" operation="maximum" />
+                <field field_ref="sicf"      level="1" />
+                <field field_ref="q2m"       level="1" />
+                <field field_ref="ustar"     level="1" />
+                <field field_ref="u10m"      level="1" />
+                <field field_ref="v10m"      level="1" />
+                <field field_ref="psol"      level="1" />
+                <field field_ref="qsurf"     level="1" />
+                <field field_ref="ustar_ter" level="10" />
+                <field field_ref="ustar_lic" level="10" />
+                <field field_ref="ustar_oce" level="10" />
+                <field field_ref="ustar_sic" level="10" />
+                <field field_ref="wstar_ter" level="10" />
+                <field field_ref="wstar_lic" level="10" />
+                <field field_ref="wstar_oce" level="10" />
+                <field field_ref="wstar_sic" level="10" />
+                <field field_ref="wstar"    level="5" />
+                <field field_ref="u10m_ter" level="10" />
+                <field field_ref="u10m_lic" level="10" />
+                <field field_ref="u10m_oce" level="10" />
+                <field field_ref="u10m_sic" level="10" />
+                <field field_ref="v10m_ter" level="10" />
+                <field field_ref="v10m_lic" level="10" />
+                <field field_ref="v10m_oce" level="10" />
+                <field field_ref="v10m_sic" level="10" />
+                <field field_ref="qsol"     level="1" />
+                <field field_ref="ndayrain" level="1" operation="instant" />
+                <field field_ref="precip"   level="1" />
+                <field field_ref="rain_fall"   level="1" />
+                <field field_ref="rain_con"   level="1" />
+                <field field_ref="plul"     level="1" />
+                <field field_ref="plun"     level="1" />
+                <field field_ref="pluc"     level="1" />
+                <field field_ref="snow"     level="1" />
+                <field field_ref="evap"     level="1" />
+                <field field_ref="evap_ter" level="1" />
+                <field field_ref="evap_lic" level="1" />
+                <field field_ref="evap_oce" level="1" />
+                <field field_ref="evap_sic" level="1" />
+                <field field_ref="msnow"    level="1" />
+                <field field_ref="fsnow"    level="1" />
+                <field field_ref="tops"     level="1" />
+                <field field_ref="tops0"    level="1" />
+                <field field_ref="topl"     level="1" />
+                <field field_ref="topl0"    level="1" />
+                <field field_ref="SWupTOA"  level="1" />
+                <field field_ref="SWupTOAclr"   level="1" />
+                <field field_ref="SWdnTOA"      level="1" />
+                <field field_ref="SWdnTOAclr"   level="1" />
+                <field field_ref="nettop"       level="1" />
+                <field field_ref="SWup200"      level="15" />
+                <field field_ref="SWup200clr"   level="15" />
+                <field field_ref="SWdn200"      level="15" />
+                <field field_ref="SWdn200clr"   level="15" />
+                <field field_ref="LWup200"      level="15" />
+                <field field_ref="LWup200clr"   level="15" />
+                <field field_ref="LWdn200"      level="15" />
+                <field field_ref="LWdn200clr"   level="15" />
+                <field field_ref="sols"  level="1" />
+                <field field_ref="sols0" level="1" />
+                <field field_ref="soll" level="1" />
+                <field field_ref="soll0" level="1" />
+                <field field_ref="radsol" level="1" />
+                <field field_ref="SWupSFC" level="1" />
+                <field field_ref="SWupSFCclr" level="1" />
+                <field field_ref="SWdnSFC" level="1" />
+                <field field_ref="SWdnSFCclr" level="1" />
+                <field field_ref="LWupSFC" level="1" />
+                <field field_ref="LWupSFCclr" level="1" />
+                <field field_ref="LWdnSFC" level="1" />
+                <field field_ref="LWdnSFCclr" level="1" />
+                <field field_ref="bils" level="1" />
+                <field field_ref="bils_tke" level="1" />
+                <field field_ref="bils_diss" level="1" />
+                <field field_ref="bils_ec" level="1" />
+                <field field_ref="bils_kinetic" level="1" />
+                <field field_ref="bils_enthalp" level="1" />
+                <field field_ref="bils_latent" level="1" />
+                <field field_ref="sens" level="1" />
+                <field field_ref="sens_x" level="11" />
+                <field field_ref="sens_w" level="11" />
+                <field field_ref="flat_x" level="11" />
+                <field field_ref="flat_w" level="11" />
+                <field field_ref="delta_tsurf" level="11" />
+                <field field_ref="cdragh_x" level="11" />
+                <field field_ref="cdragh_w" level="11" />
+                <field field_ref="cdragm_x" level="11" />
+                <field field_ref="cdragm_w" level="11" />
+                <field field_ref="kh" level="11" />
+                <field field_ref="kh_x" level="11" />
+                <field field_ref="kh_w" level="11" />
+                <field field_ref="fder" level="1" />
+                <field field_ref="ffonte" level="1" />
+                <field field_ref="fqcalving" level="1" />
+                <field field_ref="fqfonte" level="1" />
+                <field field_ref="mrroli" level="1" />
+                <field field_ref="runofflic" level="5" />
+                <field field_ref="taux" level="1" />
+                <field field_ref="tauy" level="1" />
+                <field field_ref="taux_ter" level="1" />
+                <field field_ref="taux_lic" level="1" />
+                <field field_ref="taux_oce" level="1" />
+                <field field_ref="taux_sic" level="1" />
+                <field field_ref="tauy_ter" level="1" />
+                <field field_ref="tauy_lic" level="1" />
+                <field field_ref="tauy_oce" level="1" />
+                <field field_ref="tauy_sic" level="1" />
+                <field field_ref="pourc_ter" level="1" />
+                <field field_ref="pourc_lic" level="1" />
+                <field field_ref="pourc_oce" level="1" />
+                <field field_ref="pourc_sic" level="1" />
+                <field field_ref="fract_ter" level="1" />
+                <field field_ref="fract_lic" level="1" />
+                <field field_ref="fract_oce" level="1" />
+                <field field_ref="fract_sic" level="1" />
+                <field field_ref="tsol_ter" level="1" />
+                <field field_ref="tsol_lic" level="1" />
+                <field field_ref="tsol_oce" level="1" />
+                <field field_ref="tsol_sic" level="1" />
+                <field field_ref="evappot_ter" level="1" />
+                <field field_ref="evappot_lic" level="4" />
+                <field field_ref="evappot_oce" level="4" />
+                <field field_ref="evappot_sic" level="4" />
+                <field field_ref="sens_ter" level="1" />
+                <field field_ref="sens_lic" level="1" />
+                <field field_ref="sens_oce" level="1" />
+                <field field_ref="sens_sic" level="1" />
+                <field field_ref="lat_ter" level="1" />
+                <field field_ref="lat_lic" level="1" />
+                <field field_ref="lat_oce" level="1" />
+                <field field_ref="lat_sic" level="1" />
+                <field field_ref="flw_ter" level="1" />
+                <field field_ref="flw_lic" level="1" />
+                <field field_ref="flw_oce" level="1" />
+                <field field_ref="flw_sic" level="1" />
+                <field field_ref="fsw_ter" level="1" />
+                <field field_ref="fsw_lic" level="1" />
+                <field field_ref="fsw_oce" level="1" />
+                <field field_ref="fsw_sic" level="1" />
+                <field field_ref="wbils_ter" level="1" />
+                <field field_ref="wbils_lic" level="1" />
+                <field field_ref="wbils_oce" level="1" />
+                <field field_ref="wbils_sic" level="1" />
+                <field field_ref="wbilo_ter" level="1" />
+                <field field_ref="wbilo_lic" level="1" />
+                <field field_ref="wbilo_oce" level="1" />
+                <field field_ref="wbilo_sic" level="1" />
+                <field field_ref="wevap_ter" level="1" />
+                <field field_ref="wevap_lic" level="1" />
+                <field field_ref="wevap_oce" level="1" />
+                <field field_ref="wevap_sic" level="1" />
+                <field field_ref="wrain_ter" level="1" />
+                <field field_ref="wrain_lic" level="1" />
+                <field field_ref="wrain_oce" level="1" />
+                <field field_ref="wrain_sic" level="1" />
+                <field field_ref="wsnow_ter" level="1" />
+                <field field_ref="wsnow_lic" level="1" />
+                <field field_ref="wsnow_oce" level="1" />
+                <field field_ref="wsnow_sic" level="1" />
+                <field field_ref="cdrm" level="1" />
+                <field field_ref="cdrh" level="1" />
+                <field field_ref="cldl" level="1" />
+                <field field_ref="cldm" level="1" />
+                <field field_ref="cldh" level="1" />
+                <field field_ref="cldt" level="1" />
+                <field field_ref="cldq" level="1" />
+                <field field_ref="cumCO2" level="5" />  <!-- Added PC -->
+                <field field_ref="lwp" level="1" />
+                <field field_ref="iwp" level="1" />
+                <field field_ref="ue" level="1" />
+                <field field_ref="ve" level="1" />
+                <field field_ref="uq" level="1" />
+                <field field_ref="vq" level="1" />
+                <field field_ref="uwat" level="1" />
+                <field field_ref="vwat" level="1" />
+                <field field_ref="cape" level="1" />
+                <field field_ref="pbase" level="1" />
+                <field field_ref="ptop" level="1" />
+                <field field_ref="fbase" level="1" />
+                <field field_ref="plcl" level="1" />
+                <field field_ref="plfc" level="1" />
+                <field field_ref="wbeff" level="1" />
+                <field field_ref="convoccur" level="10" />
+                <field field_ref="prw" level="1" />
+                <field field_ref="prlw" level="1" />
+                <field field_ref="prsw" level="1" />
+                <field field_ref="s_pblh" level="1" />
+                <field field_ref="s_pblt" level="1" />
+                <field field_ref="s_lcl" level="1" />
+                <field field_ref="s_therm" level="1" />
+                <field field_ref="slab_bils_oce" level="1" />
+                <field field_ref="ale_bl" level="1" />
+                <field field_ref="alp_bl" level="1" />
+                <field field_ref="ale_wk" level="1" />
+                <field field_ref="alp_wk" level="1" />
+                <field field_ref="ale" level="1" />
+                <field field_ref="alp" level="1" />
+                <field field_ref="cin" level="1" />
+                <field field_ref="wape" level="1" />
+                <field field_ref="n2" level="1" />
+                <field field_ref="s2" level="1" />
+                <field field_ref="proba_notrig" level="1" />
+                <field field_ref="random_notrig" level="1" />
+                <field field_ref="cv_gen" level="1" />
+                <field field_ref="ale_bl_stat" level="1" />
+                <field field_ref="ale_bl_trig" level="1" />
+                <field field_ref="alp_bl_det" level="1" />
+                <field field_ref="alp_bl_fluct_m" level="1" />
+                <field field_ref="alp_bl_fluct_tke" level="1" />
+                <field field_ref="alp_bl_conv" level="1" />
+                <field field_ref="alp_bl_stat" level="1" />
+                <field field_ref="colO3_strat" level="2" />     <!-- Added ThL -->
+                <field field_ref="colO3_trop"  level="2" />     <!-- Added ThL -->
+                <field field_ref="flx_co2_ocean"  level="1" />
+                <field field_ref="flx_co2_land"   level="1" />
+                <field field_ref="flx_co2_ocean_cor" level="1" /> <!-- Added PC -->
+                <field field_ref="flx_co2_land_cor"  level="1" /> <!-- Added PC -->
+                <field field_ref="flx_co2_ff"  level="1" />
+                <field field_ref="flx_co2_bb"  level="1" />
+
+                <field_group operation="average" detect_missing_value=".true.">
+                    <field field_ref="u850" level="10" />
+                    <field field_ref="u700" level="10" />
+                    <field field_ref="u500" level="10" />
+                    <field field_ref="u200" level="10" />
+                    <field field_ref="u100" level="10" />
+                    <field field_ref="u50" level="10" />
+                    <field field_ref="u10" level="10" />
+                    <field field_ref="v850" level="10" />
+                    <field field_ref="v700" level="10" />
+                    <field field_ref="v500" level="10" />
+                    <field field_ref="v200" level="10" />
+                    <field field_ref="v100" level="10" />
+                    <field field_ref="v50" level="10" />
+                    <field field_ref="v10" level="10" />
+                    <field field_ref="w850" level="10" />
+                    <field field_ref="w700" level="10" />
+                    <field field_ref="w500" level="10" />
+                    <field field_ref="w200" level="10" />
+                    <field field_ref="w100" level="10" />
+                    <field field_ref="w50" level="10" />
+                    <field field_ref="w10" level="10" />
+                    <field field_ref="t850" level="10" />
+                    <field field_ref="t700" level="10" />
+                    <field field_ref="t500" level="10" />
+                    <field field_ref="t200" level="10" />
+                    <field field_ref="t100" level="10" />
+                    <field field_ref="t50" level="10" />
+                    <field field_ref="t10" level="10" />
+                    <field field_ref="q850" level="10" />
+                    <field field_ref="q700" level="10" />
+                    <field field_ref="q500" level="10" />
+                    <field field_ref="q200" level="10" />
+                    <field field_ref="q100" level="10" />
+                    <field field_ref="q50" level="10" />
+                    <field field_ref="q10" level="10" />
+                    <field field_ref="z850" level="10" />
+                    <field field_ref="z700" level="10" />
+                    <field field_ref="z500" level="10" />
+                    <field field_ref="z200" level="10" />
+                    <field field_ref="z100" level="10" />
+                    <field field_ref="z50" level="10" />
+                    <field field_ref="z10" level="10" />
+                </field_group>
+
+                <field field_ref="t_oce_sic" level="1" />
+                <field field_ref="weakinv" level="10" />
+                <field field_ref="dthmin" level="10" />
+                <field field_ref="u10_ter" level="10" />
+                <field field_ref="u10_lic" level="10" />
+                <field field_ref="u10_oce" level="10" />
+                <field field_ref="u10_sic" level="10" />
+                <field field_ref="v10_ter" level="10" />
+                <field field_ref="v10_lic" level="10" />
+                <field field_ref="v10_oce" level="10" />
+                <field field_ref="v10_sic" level="10" />
+                <field field_ref="rh2m" level="5" />
+                <field field_ref="rh2m_min" level="10" operation="minimum" />
+                <field field_ref="rh2m_max" level="10" operation="maximum" />
+                <field field_ref="qsat2m" level="10" />
+                <field field_ref="tpot" level="10" />
+                <field field_ref="tpote" level="10" />
+                <field field_ref="SWnetOR" level="10" />
+                <field field_ref="SWdownOR" level="10" />
+                <field field_ref="LWdownOR" level="10" />
+                <field field_ref="snowl" level="10" />
+                <field field_ref="cape_max" level="10" operation="maximum" />
+                <field field_ref="solldown" level="10" />
+                <field field_ref="dtsvdfo" level="10" />
+                <field field_ref="dtsvdft" level="10" />
+                <field field_ref="dtsvdfg" level="10" />
+                <field field_ref="dtsvdfi" level="10" />
+                <field field_ref="rugs" level="10" />
+                <field field_ref="z0m" level="10" />
+                <field field_ref="z0h" level="10" />
+                <field field_ref="topswad" level="1" />
+                <field field_ref="topswad0" level="1" />
+                <field field_ref="topswai" level="10" />
+                <field field_ref="solswad" level="10" />
+                <field field_ref="solswad0" level="10" />
+                <field field_ref="solswai" level="10" />
+                <field field_ref="toplwad" level="1" />
+                <field field_ref="toplwad0" level="1" />
+                <field field_ref="toplwai" level="10" />
+                <field field_ref="sollwad" level="10" />
+                <field field_ref="sollwad0" level="10" />
+                <field field_ref="sollwai" level="10" />
+                <field field_ref="od550_ASBCM" level="7" />
+                <field field_ref="od550_ASPOMM" level="7" />
+                <field field_ref="od550_ASSO4M" level="7" />
+                <field field_ref="od550_CSSO4M" level="7" />
+                <field field_ref="od550_SSSSM" level="7" />
+                <field field_ref="od550_ASSSM" level="7" />
+                <field field_ref="od550_CSSSM" level="7" />
+                <field field_ref="od550_CIDUSTM" level="7" />
+                <field field_ref="od550_AIBCM" level="7" />
+                <field field_ref="od550_AIPOMM" level="7" />
+                <field field_ref="od550_ASNO3M" level="7" />
+                <field field_ref="od550_CSNO3M" level="7" />
+                <field field_ref="od550_CINO3M" level="7" />
+                <field field_ref="od550_STRAT" level="2" />
+                <field field_ref="dryod550_ASBCM" level="7" />
+                <field field_ref="dryod550_ASPOMM" level="7" />
+                <field field_ref="dryod550_ASSO4M" level="7" />
+                <field field_ref="dryod550_CSSO4M" level="7" />
+                <field field_ref="dryod550_SSSSM" level="7" />
+                <field field_ref="dryod550_ASSSM" level="7" />
+                <field field_ref="dryod550_CSSSM" level="7" />
+                <field field_ref="dryod550_CIDUSTM" level="7" />
+                <field field_ref="dryod550_AIBCM" level="7" />
+                <field field_ref="dryod550_AIPOMM" level="7" />
+                <field field_ref="dryod550_ASNO3M" level="7" />
+                <field field_ref="dryod550_CSNO3M" level="7" />
+                <field field_ref="dryod550_CINO3M" level="7" />
+                <field field_ref="od550aer" level="2" />
+                <field field_ref="dryod550aer" level="2" />
+                <field field_ref="od865aer" level="2" />
+                <field field_ref="abs550aer" level="2" />
+                <field field_ref="od550lt1aer" level="2" />
+                <field field_ref="sconcso4" level="2" />
+                <field field_ref="sconcoa" level="2" />
+                <field field_ref="sconcbc" level="2" />
+                <field field_ref="sconcss" level="11" />
+                <field field_ref="sconcdust" level="11" />
+                <field field_ref="sconcno3" level="11" />
+                <field field_ref="loadso4" level="11" />
+                <field field_ref="loadoa" level="11" />
+                <field field_ref="loadbc" level="11" />
+                <field field_ref="loadss" level="11" />
+                <field field_ref="loaddust" level="11" />
+                <field field_ref="loadno3" level="11" />
+                <field field_ref="swtoaas_nat" level="11" />
+                <field field_ref="swsrfas_nat" level="11" />
+                <field field_ref="swtoacs_nat" level="11" />
+                <field field_ref="swsrfcs_nat" level="11" />
+                <field field_ref="swtoaas_ant" level="11" />
+                <field field_ref="swsrfas_ant" level="11" />
+                <field field_ref="swtoacs_ant" level="11" />
+                <field field_ref="swsrfcs_ant" level="11" />
+                <field field_ref="swtoacf_nat" level="11" />
+                <field field_ref="swsrfcf_nat" level="11" />
+                <field field_ref="swtoacf_ant" level="11" />
+                <field field_ref="swsrfcf_ant" level="11" />
+                <field field_ref="swtoacf_zero" level="11" />
+                <field field_ref="swsrfcf_zero" level="11" />
+                <field field_ref="cldncl" level="11" />
+                <field field_ref="reffclwtop" level="11" />
+                <field field_ref="cldnvi" level="11" />
+                <field field_ref="lcc" level="11" />
+                <field field_ref="wvapp" level="2" />
+                <field field_ref="albe_ter" level="3" />
+                <field field_ref="albe_lic" level="3" />
+                <field field_ref="albe_oce" level="3" />
+                <field field_ref="albe_sic" level="3" />
+                <field field_ref="ages_ter" level="10" />
+                <field field_ref="ages_lic" level="3" />
+                <field field_ref="ages_oce" level="10" />
+                <field field_ref="ages_sic" level="3" />
+                <field field_ref="snow_ter" level="10" />
+                <field field_ref="snow_lic" level="3" />
+                <field field_ref="snow_oce" level="10" />
+                <field field_ref="snow_sic" level="3" />
+                <field field_ref="rugs_ter" level="3" />
+                <field field_ref="rugs_lic" level="3" />
+                <field field_ref="rugs_oce" level="3" />
+                <field field_ref="rugs_sic" level="3" />
+                <field field_ref="z0m_ter" level="3" />
+                <field field_ref="z0m_lic" level="3" />
+                <field field_ref="z0m_oce" level="3" />
+                <field field_ref="z0m_sic" level="3" />
+                <field field_ref="z0h_ter" level="3" />
+                <field field_ref="z0h_lic" level="3" />
+                <field field_ref="z0h_oce" level="3" />
+                <field field_ref="z0h_sic" level="3" />
+                <field field_ref="alb1" level="3" />
+                <field field_ref="alb2" level="3" />
+                <field field_ref="ftime_con" level="4" operation="instant" />
+                <field field_ref="wake_h" level="4" />
+                <field field_ref="wake_dens" level="4" />
+                <field field_ref="wake_s" level="4" />
+                <field field_ref="epmax" level="2" />
+                <field field_ref="plulth" level="10" />
+                <field field_ref="plulst" level="10" />
+                <field field_ref="lmaxth" level="10" />
+                <field field_ref="ftime_th" level="4" />
+                <field field_ref="ftime_deepcv" level="4" />
+                <field field_ref="f0_th" level="4" />
+                <field field_ref="zmax_th" level="4" />
+                <field field_ref="rsut4co2" level="10" />
+                <field field_ref="rlut4co2" level="10" />
+                <field field_ref="rsutcs4co2" level="10" />
+                <field field_ref="rlutcs4co2" level="10" />
+                <field field_ref="dqphy2d" level="2" />
+                <field field_ref="dqlphy2d" level="2" />
+                <field field_ref="dqsphy2d" level="2" />
+                <field field_ref="dqdyn2d" level="4" />
+                <field field_ref="dqldyn2d" level="4" />
+                <field field_ref="dqsdyn2d" level="4" />
+                <field field_ref="dqcon2d" level="4" />
+                <field field_ref="dqwak2d" level="4" />
+                <field field_ref="dqlsc2d" level="4" />
+                <field field_ref="dqvdf2d" level="4" />
+                <field field_ref="dqeva2d" level="4" />
+                <field field_ref="dqlscth2d" level="10" />
+                <field field_ref="dqlscst2d" level="10" />
+                <field field_ref="dqthe2d" level="4" />
+                <field field_ref="dqajs2d" level="4" />
+            </field_group>
+
+            <!-- VARS 3D -->
+            <field_group operation="average" grid_ref="grid_out_presnivs">
+                <field field_ref="CO2" level="5" />  <!-- Added PC -->
+                <field field_ref="dCO2_vdf" level="5" />  <!-- Added PC -->
+                <field field_ref="dCO2_the" level="5" />  <!-- Added PC -->
+                <field field_ref="dCO2_con" level="5" />  <!-- Added PC -->
+                <field field_ref="tke" level="7" />
+                <field field_ref="tke_ter" level="10" />
+                <field field_ref="tke_lic" level="10" />
+                <field field_ref="tke_oce" level="10" />
+                <field field_ref="tke_sic" level="10" />
+                <field field_ref="tke_max_ter" level="10" operation="maximum" />
+                <field field_ref="tke_max_lic" level="10" operation="maximum" />
+                <field field_ref="tke_max_oce" level="10" operation="maximum" />
+                <field field_ref="tke_max_sic" level="10" operation="maximum" />
+                <field field_ref="l_mix_ter" level="10" />
+                <field field_ref="l_mix_lic" level="10" />
+                <field field_ref="l_mix_oce" level="10" />
+                <field field_ref="l_mix_sic" level="10" />
+                <field field_ref="l_mixmin_ter" level="10" />
+                <field field_ref="l_mixmin_lic" level="10" />
+                <field field_ref="l_mixmin_oce" level="10" />
+                <field field_ref="l_mixmin_sic" level="10" />
+                <field field_ref="treedrg_ter" level="10" />
+                <field field_ref="treedrg_lic" level="10" />
+                <field field_ref="treedrg_oce" level="10" />
+                <field field_ref="treedrg_sic" level="10" />
+                
+                
+                <field field_ref="cldtau" level="10" />
+                <field field_ref="cldemi" level="10" />
+                <field field_ref="tke_max" level="4" operation="maximum" />
+                <field field_ref="concso4" level="2" />
+                <field field_ref="concoa" level="2" />
+                <field field_ref="concbc" level="2" />
+                <field field_ref="concss" level="2" />
+                <field field_ref="concdust" level="2" />
+                <field field_ref="concno3" level="2" />
+                <field field_ref="ec550aer" level="2" />
+                <field field_ref="lwcon" level="7" />
+                <field field_ref="iwcon" level="7" />
+                <field field_ref="temp" level="1" />
+                <field field_ref="theta" level="3" />
+                <field field_ref="ovap" level="1" />
+                <field field_ref="ovapinit" level="10" />
+                <field field_ref="oliq" level="1" />
+                <field field_ref="ocond" level="1" />
+                <field field_ref="geop" level="3" />
+                <field field_ref="geoph" level="3" />
+                <field field_ref="vitu" level="1" />
+                <field field_ref="vitv" level="1" />
+                <field field_ref="vitw" level="1" />
+                <field field_ref="pres" level="1" />
+                <field field_ref="paprs" level="3" />
+                <field field_ref="mass" level="3" />
+                <field field_ref="zfull" level="1" />
+                <field field_ref="zhalf" level="7" />
+                <field field_ref="rneb" level="1" />
+                <field field_ref="rnebcon" level="7" />
+                <field field_ref="rnebls" level="7" />
+                <field field_ref="rneblsvol" level="7" />
+                <field field_ref="rhum" level="1" />
+                <field field_ref="ozone" level="3" />
+                <field field_ref="ozone_daylight" level="2" />
+                <field field_ref="upwd" level="7" />
+                <field field_ref="ep" level="7" />
+                <field field_ref="duphy" level="7" />
+                <field field_ref="dtphy" level="7" />
+                <field field_ref="dqphy" level="7" />
+                <field field_ref="dqlphy" level="7" />
+                <field field_ref="dqsphy" level="7" />
+                <field field_ref="pr_con_l" level="3" />
+                <field field_ref="pr_con_i" level="3" />
+                <field field_ref="pr_lsc_l" level="3" />
+                <field field_ref="pr_lsc_i" level="3" />
+                <field field_ref="re" level="5" />
+                <field field_ref="fl" level="5" />
+                <field field_ref="scdnc" level="11" />
+                <field field_ref="reffclws" level="11" />
+                <field field_ref="reffclwc" level="11" />
+                <field field_ref="lcc3d" level="11" />
+                <field field_ref="lcc3dcon" level="11" />
+                <field field_ref="lcc3dstra" level="11" />
+                <field field_ref="cldwatmxrat" level="5" />
+                <field field_ref="icc3dcon" level="11" />
+                <field field_ref="icc3dstra" level="11" />
+                <field field_ref="cldicemxrat" level="5" />
+                <field field_ref="clwcon" level="7" />
+                <field field_ref="Ma" level="7" />
+                <field field_ref="dnwd" level="7" />
+                <field field_ref="dnwd0" level="7" />
+                <field field_ref="mc" level="7" />
+                <field field_ref="dtdyn" level="7" />
+                <field field_ref="dqdyn" level="7" />
+                <field field_ref="dqldyn" level="7" />
+                <field field_ref="dqsdyn" level="7" />
+                <field field_ref="dudyn" level="7" />
+                <field field_ref="dvdyn" level="7" />
+                <field field_ref="dtcon" level="7" />
+                <field field_ref="ducon" level="7" />
+                <field field_ref="dvcon" level="7" />
+                <field field_ref="dqcon" level="7" />
+                <field field_ref="dtwak" level="7" />
+                <field field_ref="dqwak" level="7" />
+                <field field_ref="wake_deltat" level="7" />
+                <field field_ref="wake_deltaq" level="7" />
+                <field field_ref="wake_omg" level="7" />
+                <field field_ref="wdtrainA" level="9" />
+                <field field_ref="wdtrainM" level="9" />
+                <field field_ref="ftd" level="7" />
+                <field field_ref="fqd" level="7" />
+                <field field_ref="dtlsc" level="7" />
+                <field field_ref="dtlschr" level="7" />
+                <field field_ref="dqlsc" level="7" />
+                <field field_ref="beta_prec" level="9" />
+                <field field_ref="dtvdf" level="7" />
+                <field field_ref="dtvdf_x" level="11" />
+                <field field_ref="dtvdf_w" level="11" />
+                <field field_ref="dtdis" level="7" />
+                <field field_ref="dqvdf" level="7" />
+                <field field_ref="dqvdf_x" level="11" />
+                <field field_ref="dqvdf_w" level="11" />
+                <field field_ref="dteva" level="7" />
+                <field field_ref="dqeva" level="7" />
+                <field field_ref="dqlscth" level="10" />
+                <field field_ref="dqlscst" level="10" />
+                <field field_ref="dtlscth" level="10" />
+                <field field_ref="dtlscst" level="10" />
+                <field field_ref="ptconvth" level="7" />
+                <field field_ref="ptconv" level="7" />
+                <field field_ref="ratqs" level="7" />
+                <field field_ref="dtthe" level="7" />
+                <field field_ref="e_th" level="9" />
+                <field field_ref="lambda_th" level="10" />
+                <field field_ref="q_th" level="9" />
+                <field field_ref="s_th" level="9" />
+                <field field_ref="s_env" level="9" />
+                <field field_ref="sigma_th" level="9" />
+                <field field_ref="sigma_env" level="9" />
+                <field field_ref="d_th" level="9" />
+                <field field_ref="dqthe" level="7" />
+                <field field_ref="dtajs" level="7" />
+                <field field_ref="dqajs" level="7" />
+                <field field_ref="dtswr" level="7" />
+                <field field_ref="dtsw0" level="7" />
+                <field field_ref="dtlwr" level="7" />
+                <field field_ref="dtlw0" level="7" />
+                <field field_ref="dtec"  level="7" />
+                <field field_ref="duvdf" level="7" />
+                <field field_ref="dvvdf" level="7" />
+                <field field_ref="duoro" level="7" />
+                <field field_ref="dvoro" level="7" />
+                <field field_ref="dulif" level="7" />
+                <field field_ref="dvlif" level="7" />
+                <field field_ref="du_gwd_hines" level="7" />
+                <field field_ref="dv_gwd_hines" level="7" />
+                <field field_ref="du_gwd_front" level="7" />
+                <field field_ref="dv_gwd_front" level="7" />
+                <field field_ref="east_gwstress" level="10" />
+                <field field_ref="west_gwstress" level="10" />
+                <field field_ref="dtoro" level="10" />
+                <field field_ref="dtlif" level="7" />
+                <field field_ref="dthin" level="7" />
+                <field field_ref="tnt"  level="10" />
+                <field field_ref="tntc" level="10" />
+                <field field_ref="tntr" level="10" />
+                <field field_ref="tntscpbl" level="10" />
+                <field field_ref="tnhus"    level="10" />
+                <field field_ref="tnhusc"   level="10" />
+                <field field_ref="tnhusscpbl" level="10" />
+                <field field_ref="h2o" level="10" />
+                <field field_ref="mcd" level="10" />
+                <field field_ref="dmc" level="10" />
+                <field field_ref="ref_liq" level="5" />
+                <field field_ref="ref_ice" level="10" />
+                <field field_ref="stratomask" level="1" />
+                <field field_ref="cool_volc" level="1" />
+                <field field_ref="heat_volc" level="1" />
+            </field_group>
+
+            <field_group operation="average" grid_ref="grid_out_presinter">
+                <field field_ref="a_th" level="9" />
+                <field field_ref="f_th" level="7" />
+                <field field_ref="w_th" level="7" />
+                <field field_ref="rsucs" level="10" />
+                <field field_ref="rsdcs" level="10" />
+                <field field_ref="rlucs" level="10" />
+                <field field_ref="rldcs" level="10" />
+                <field field_ref="rldcs4co2" level="10" />
+                <field field_ref="rlucs4co2" level="10" />
+                <field field_ref="rsdcs4co2" level="10" />
+                <field field_ref="rsucs4co2" level="10" />
+                <field field_ref="rsu4co2" level="10" />
+                <field field_ref="rlu4co2" level="10" />
+                <field field_ref="rsd4co2" level="10" />
+                <field field_ref="rld4co2" level="10" />
+                <field field_ref="Vprecip" level="11" />
+                <field field_ref="rsu" level="5" />
+                <field field_ref="rsd" level="5" />
+                <field field_ref="rlu" level="5" />
+                <field field_ref="rld" level="5" />
+                <field field_ref="kz" level="4" />
+                <field field_ref="kz_max" level="4" operation="maximum" />
+                <field field_ref="evu" level="10" />
+            </field_group>
+
+<!--
+                <field field_ref="psbg" level="5" />
+                <field field_ref="tro3" level="5" />
+                <field field_ref="tro3_daylight" level="5" />
+-->
+
+            <!-- VARS 3D -->
+<!--
+            <field_group operation="average" grid_ref="grid_out_plev17">
+                <field field_ref="temp" name="ta" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="geop" name="zg" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="ovap" name="hus" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="rhum" name="hur" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitu" name="ua" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitv" name="va" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitw" name="wap" grid_ref="grid_out_plev17" level="4" />
+-->
+<!--
+                <field field_ref="tro3" name="tro3" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="tro3_daylight" name="tro3_daylight" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="tnondef" name="psbg" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitu_vitv" name="uv" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitv_ovap" name="vq" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitv_temp" name="vT" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitw_ovap" name="wq" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitv_geop" name="vphi" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitw_temp" name="wT" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vtiu_vitu" name="u2" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="vitv_vitv" name="v2" grid_ref="grid_out_plev17" level="4" />
+                <field field_ref="temp_temp" name="T2" grid_ref="grid_out_plev17" level="4" />
+-->
+<!--
+            </field_group>
+-->
+            <!-- VARS 3D -->
+            <field_group operation="average" grid_ref="grid_out_spectband">
+                <field field_ref="solbnd" level="10" />
+            </field_group>
+         
+          </field_group>
+
+        </file>
+
+        </file_group>
+    </file_definition>
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/file_def_orchidee.xml
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/file_def_orchidee.xml	(revision 6296)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/file_def_orchidee.xml	(revision 6296)
@@ -0,0 +1,996 @@
+<!-- =========================================================================================================== -->
+<!-- file_def_orchidee.xml : Definition of output files                                                          -->
+<!--                                                                                                             -->
+<!-- Definition of each output file and the list of variables they will include.                                 -->
+<!-- Change this file by adding the files and/or variables you want to write.                                    -->
+<!-- Only variables and groups existing in field_def_orchidee.xml can be used.                                   -->
+<!--                                                                                                             -->
+<!-- Note: The keyword _AUTO_ will be changed by the drivers using libIGCM configurations. It can also be        -->
+<!-- changed manually. For example instead of _AUTO_ set :  enabled=".TRUE." or enabled=".FALSE."                -->
+<!-- output_freq="1mo" for monthly, output_freq="1d" for daily, output_freq="10800s" for 3-hour output frequency,-->
+<!-- output_level="1" for few variables, output_level="12" for writing all variables (depending on file).        -->
+<!--                                                                                                             -->
+<!-- Each file can have different output frequence, different variable content and different output_level.       --> 
+<!-- A file will contain all the variables listed in its section having level lower or equal to output_level     -->
+<!-- which is specified for the file.                                                                            -->
+<!--                                                                                                             -->
+<!-- All variables needed for the monitoring done by libIGCM are set to level="0". Set output_level=0 for file   -->
+<!-- sechiba_history, stomate_history and stomate_ipcc_history to output only these variables. These files       -->
+<!-- should have output_freq="1mo" for a correct monitoring except for SPINUP_ANALYTIC where the frequency       -->
+<!-- should be output_freq="1y".                                                                                 -->
+<!--                                                                                                             -->
+<!-- Key word compression_level activates the corresponding compresion level of netcd4/hdf5 where 0              -->
+<!-- corresponds to no compression and 4 is a middle compression here set as default.                            -->
+<!--                                                                                                             -->
+<!-- field group "remap_1xx" do only have a meaning for unstructured grid when remapping of output is activated. -->
+<!-- For this case, remap_1xx will set a corresponding freq_op done from the fortran code.                       -->
+<!-- For regular grid, this group do not contain any attributes so it'll not make any difference.                -->
+<!--                                                                                                             -->
+<!-- $HeadURL: svn://forge.ipsl.jussieu.fr/orchidee/branches/ORCHIDEE_2_2/ORCHIDEE/src_xml/file_def_orchidee.xml $               -->
+<!-- $Date: 2022-08-01 15:26:27 +0200 (Mon, 01 Aug 2022) $                                                      -->
+<!-- $Revision: 7720 $                                                                                           -->
+<!-- =========================================================================================================== -->
+
+<file_definition type="one_file" par_access="collective" enabled=".TRUE." min_digits="4" compression_level="2" >
+
+  <!-- ========================================================================================================= -->
+  <!-- Definition of output files -->
+  <!-- ========================================================================================================= -->
+
+  <!-- Definition of output files with sechiba diagnostics -->
+
+  <!-- Sechiba file 1 -->
+  <file id="sechiba1" name="sechiba_history" output_level="_AUTO_" output_freq="_AUTO_" enabled="_AUTO_">
+
+   <field_group id="groupremap_sechiba1" group_ref="remap_1mo" grid_ref="grid_landpoints_out" >
+    <!-- level 1 -->
+    <field field_ref="areas" level="0"/>
+    <field field_ref="LandPoints" level="20"/>
+    <field field_ref="contfrac" level="0"/>
+    <field field_ref="vevapp_day" level="0"/>
+    <field field_ref="coastalflow" level="0"/>
+    <field field_ref="riverflow" level="0"/>
+    <field field_ref="coastalflow_cpl" level="1"/>
+    <field field_ref="riverflow_cpl" level="1"/>
+    <field field_ref="temp_sol_new_C" level="0"/>
+    <field field_ref="mrsow" level="1"/>
+    <field field_ref="ksat" grid_ref="grid_nslm_out" level="1"/>
+    <field field_ref="ksref" level="1"/>
+    <field field_ref="precip_rain" level="0" name="rain" unit="mm/d" > @precip_rain*86400  </field>
+    <field field_ref="precip_snow" level="0" name="snowf" unit="mm/d" > @precip_snow*86400  </field>
+    <field field_ref="netrad" level="1"/>
+    <field field_ref="lai" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="reinf_slope" level="1"/>
+    <field field_ref="njsc" level="1"/>
+    <field field_ref="basinmap" level="1"/>
+    <field field_ref="nbrivers" level="1"/>
+    <field field_ref="npp" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="wtd" level="1"/>
+    <field field_ref="tws" level="1"/>
+    <!-- level 2 -->
+    <field field_ref="vevapsno" name="subli" level="0" unit="mm/d" > @vevapsno*86400  </field>
+    <field field_ref="runoff" name="runoff" level="0" unit="mm/d" > @runoff*86400  </field>
+    <field field_ref="drainage" name="drainage" level="0" unit="mm/d" > @drainage*86400  </field>
+    <field field_ref="riversret" level="2"/>
+    <field field_ref="hydrographs" level="2"/>
+    <field field_ref="htuhgmon" name="HTUhydrographs" grid_ref="grid_nbasmon_out" level="2"/>
+    <field field_ref="hydrotemp" name="RiverTemp" level="2"/>
+    <field field_ref="htutempmon" name="HTUTemp" grid_ref="grid_nbasmon_out" level="2"/>
+    <field field_ref="streamlimit" level="2"/>
+    <field field_ref="vevapnu" name="evapnu" level="0" unit="mm/d" > @vevapnu*86400  </field>
+    <field field_ref="evap_bare_lim" level="2"/>
+    <field field_ref="evap_bare_lim_ns" grid_ref="grid_nstm_out" level="2"/>
+    <field field_ref="evapnu_soil" grid_ref="grid_nstm_out" level="2"/>
+    <field field_ref="drainage_soil" grid_ref="grid_nstm_out" level="2"/>
+    <field field_ref="transpir_soil" grid_ref="grid_nstm_out" level="2"/>
+    <field field_ref="runoff_soil" grid_ref="grid_nstm_out" level="2"/>
+    <field field_ref="temp_air" level="0"/>
+    <field field_ref="qair" level="2"/>
+    <field field_ref="soilalb_bg" grid_ref="grid_albtyp_out" level="2"/>
+    <field field_ref="albedo_vis" level="0"/>
+    <field field_ref="albedo_nir" level="0"/>
+    <field field_ref="soilalb_vis" level="2"/>
+    <field field_ref="soilalb_nir" level="2"/>
+    <field field_ref="vegalb_vis" level="2"/>
+    <field field_ref="vegalb_nir" level="2"/>
+    <field field_ref="z0h" level="2"/>
+    <field field_ref="z0m" level="2"/>
+    <field field_ref="roughheight" level="2"/>
+    <field field_ref="transpir" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="inter" grid_ref="grid_nvm_out" level="0"/>
+    <!-- for water budget control -->
+    <field field_ref="delsoilmoist_daily" level="0" />
+    <field field_ref="delintercept_daily" level="0" />
+    <field field_ref="delswe_daily" level="0" />
+    <field field_ref="delfastr_daily" level="1" />
+    <field field_ref="delslowr_daily" level="1" />
+    <field field_ref="delstreamr_daily" level="1" />
+    <field field_ref="dellaker_daily" level="1" />
+    <field field_ref="delpondr_daily" level="1" />
+    <field field_ref="delfloodr_daily" level="1" />
+    <field field_ref="delstock_routing_daily" level="0" />
+    <field field_ref="vevapflo" name="evapflo" level="2" unit="mm/d" > @vevapflo*86400 </field>
+    <field field_ref="undermcr" level="2"/>
+    <field field_ref="ru_corr" level="2"/>
+    <field field_ref="ru_corr2" level="2"/>
+    <field field_ref="dr_corr" level="2"/>
+    <field field_ref="dr_force" level="2"/>
+    <field field_ref="ru_infilt" level="2"/>
+    <field field_ref="qinfilt" level="2"/>
+    <field field_ref="dr_corrnum" level="2"/>
+    <!-- level 3 -->
+    <field field_ref="tsol_max" level="3"/>
+    <field field_ref="tsol_min" level="3"/>
+    <field field_ref="fluxsens" level="0"/>
+    <field field_ref="fluxlat" level="0"/>
+    <field field_ref="snow" level="0"/>
+    
+    <field field_ref="snowage" level="3"/>
+    <field field_ref="snownobio" grid_ref="grid_nnobio_out" level="0"/>
+    <field field_ref="snownobioage" grid_ref="grid_nnobio_out" level="3"/>
+    <field field_ref="vegetfrac" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="maxvegetfrac" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="tot_bare_soil" level="3"/>
+    <field field_ref="nobiofrac" grid_ref="grid_nnobio_out" level="0"/>
+    <field field_ref="reinfiltration" level="3"/>
+    <field field_ref="frac_bare" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="soiltile" grid_ref="grid_nstm_out" level="3"/>
+    <field field_ref="qflux" grid_ref="grid_nslm_out" level="3"/> 
+    <field field_ref="check_top" level="3"/>
+    <field field_ref="check_infilt" level="3"/>
+    <field field_ref="check_tr" level="3"/>
+    <field field_ref="check_over" level="3"/>
+    <field field_ref="check_under" level="3"/>
+    
+    <!-- level 4 -->
+    <field field_ref="humtot" level="4"/>
+    <field field_ref="tmc" grid_ref="grid_nstm_out" level="4"/>
+    <field field_ref="qsintveg" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="rstruct" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="r_soil" level="4"/>
+    <field field_ref="gpp" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="gpp_ipcc2" level="4"/>
+    <field field_ref="gppgrass" level="4"/>
+    <field field_ref="gppcrop" level="0"/>
+    <field field_ref="gpptree" level="4"/>
+    <field field_ref="nee" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="maint_resp" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="hetero_resp" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="growth_resp" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="rh_ipcc2" level="4"/>
+    <field field_ref="rhGrass" level="4"/>
+    <field field_ref="rhCrop" level="0"/>
+    <field field_ref="rhTree" level="4"/>
+    <field field_ref="precisol" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="throughfall" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="drysoil_frac" level="4"/>
+    <field field_ref="evapot" level="4"/>
+    <field field_ref="evapot_corr" level="4"/>
+    <!-- level 5 -->
+    <field field_ref="swnet" level="5"/>
+    <field field_ref="swdown" level="0"/>
+    <field field_ref="lwdown" level="0"/>
+    <field field_ref="lwnet" level="5"/>
+    <field field_ref="diffevap" level="5"/>
+    <field field_ref="snowmelt" level="5"/>
+    <field field_ref="tot_melt" level="5"/>
+    <field field_ref="snowmelt_from_maxmass" level="5"/>
+    <field field_ref="soilcap" level="5"/>
+    <!-- level 6 -->
+    <field field_ref="twbr" level="0"/>
+    <field field_ref="ptn" grid_ref="grid_ngrnd_out" level="6"/>
+    <!-- level 7 -->
+    <field field_ref="fastr" level="7"/>
+    <field field_ref="slowr" level="7"/>
+    <field field_ref="streamr" level="7"/>
+    <field field_ref="laker" level="7"/>
+    <field field_ref="lake_overflow" level="7"/>
+    <field field_ref="mask_coast" level="7"/>
+    <!-- level 8 -->
+    <field field_ref="wbr_fast" level="8"/>
+    <field field_ref="wbr_slow" level="8"/>
+    <field field_ref="wbr_stream" level="8"/>
+    <field field_ref="wbr_lake" level="8"/>
+    <field field_ref="pondr" level="8"/>
+    <field field_ref="swampmap" level="8"/>
+    <field field_ref="irrigation" name="irrigation" level="8" unit="mm/d" > @irrigation*86400  </field>
+    <field field_ref="netirrig" name="netirrig" level="8" unit="mm/d" > @netirrig*86400  </field>
+    <field field_ref="irrigmap" level="8"/>
+    <field field_ref="floodmap" level="8"/>
+    <field field_ref="flood_frac" name="flood_frac" level="8"/>
+    <field field_ref="floodh" level="8"/>
+    <field field_ref="floodr" level="8"/>
+    <field field_ref="floodout" level="8"/>
+    <field field_ref="k_litt" level="8"/>
+    <field field_ref="beta" level="8"/>
+    <field field_ref="raero" level="8"/>
+    <field field_ref="q_cdrag" level="8"/>
+    <field field_ref="wind" level="8"/>
+    <field field_ref="qsatt" level="8"/>
+    <field field_ref="vbeta1" level="8"/>
+    <field field_ref="vbeta4" level="8"/>
+    <field field_ref="vbeta5" level="8"/>
+    <field field_ref="gsmean" grid_ref="grid_nvm_out" level="8"/>
+    <field field_ref="humrel" grid_ref="grid_nvm_out" level="0"/>
+    <!-- level 10 -->
+    <field field_ref="cimean" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="vbeta3" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="rveget" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="vbeta2" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="qsintmax" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="dtes" level="10"/>
+    <field field_ref="tairmax"  level="10"/>
+    <field field_ref="tasmax"  level="10"/>
+    <field field_ref="tairmin"  level="10"/>
+    <field field_ref="tasmin"  level="10"/>
+    <!-- level 11 -->
+    <field field_ref="clayfraction" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="sandfraction" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="siltfraction" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="humtot_top" level="0"/>
+    <field field_ref="humtot" name="mrso" level="0"/>
+    <field field_ref="runoff" name="mrros" level="11"/>
+    <field field_ref="mrro" level="11"/>
+    <field field_ref="prveg" level="11"/>
+    <field field_ref="evspsblveg" level="11"/>
+    <field field_ref="evspsblsoi" level="11"/>
+    <field field_ref="tran" level="11"/>
+    <field field_ref="vegFrac" level="11"/>
+    <field field_ref="treeFrac" level="11"/>
+    <field field_ref="treeFracNdlEvg" level="11"/>
+    <field field_ref="treeFracBdlEvg" level="11"/>
+    <field field_ref="treeFracNdlDcd" level="11"/>
+    <field field_ref="treeFracBdlDcd" level="11"/>
+    <field field_ref="grassFrac" level="11"/>
+    <field field_ref="grassFracC3" level="11"/>
+    <field field_ref="grassFracC4" level="11"/>
+    <field field_ref="cropFrac" level="11"/>
+    <field field_ref="cropFracC3" level="11"/>
+    <field field_ref="cropFracC4" level="11"/>
+    <field field_ref="baresoilFrac" level="11"/>
+    <field field_ref="residualFrac" level="11"/>
+    <field field_ref="PAR" level="11"/>
+    <field field_ref="PARsun" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="PARsh" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="laisun" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="laish" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="PARsuntab" grid_ref="grid_nlaip1_out" level="11"/>
+    <field field_ref="PARshtab" grid_ref="grid_nlaip1_out" level="11"/>
+    <field field_ref="coszang" level="11"/>
+    <field field_ref="PARdf" level="11"/>
+    <field field_ref="PARdr" level="11"/>
+    <field field_ref="flx_fertil_no" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="CRF" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_co2_bbg_year" level="11"/>
+    <field field_ref="N_qt_WRICE_year" level="11"/>
+    <field field_ref="N_qt_OTHER_year" level="11"/>
+    <field field_ref="flx_iso" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_mono" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_ORVOC" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_MBO" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_methanol" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_acetone" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_acetal" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_formal" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_acetic" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_formic" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_no_soil" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_no" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="pb" level="11"/>
+    <field field_ref="slowflow" level="11"/>
+    <field field_ref="qsintveg_tot" level="11"/>
+    <field field_ref="LAImean" level="0"/>
+    <field field_ref="mcs" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="mcr" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="nvg" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="alphavg" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="nroot" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="dlh" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="water2infilt" grid_ref="grid_nstm_out" level="11"/>
+    <field field_ref="flx_apinen" grid_ref="grid_nvm_out"  level="11" />
+    <field field_ref="flx_bpinen" grid_ref="grid_nvm_out"  level="11" />
+    <field field_ref="flx_limonen" grid_ref="grid_nvm_out" level="11" />
+    <field field_ref="flx_myrcen" grid_ref="grid_nvm_out"  level="11" />
+    <field field_ref="flx_sabinen" grid_ref="grid_nvm_out" level="11" />
+    <field field_ref="flx_camphen" grid_ref="grid_nvm_out" level="11" />
+    <field field_ref="flx_3caren" grid_ref="grid_nvm_out"  level="11" />
+    <field field_ref="flx_tbocimen" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_othermono" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="flx_sesquiter" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="fco2" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="cim" grid_ref="grid_nvm_out" level="11"/>
+    <field field_ref="kk_moy" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="psi_moy" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="profil_froz_hydro" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="pkappa" grid_ref="grid_ngrnd_out"  level="11"/>
+    <field field_ref="pkappa_snow" grid_ref="grid_nsnow_out" level="11"/>
+    <field field_ref="pcapa" grid_ref="grid_ngrnd_out"  level="11"/>
+    <field field_ref="pcapa_spec" grid_ref="grid_ngrnd_out"  level="11"/>
+    <field field_ref="pcapa_snow" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowtemp" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowtemp_weighted"  level="0"/>
+    <field field_ref="snowliq" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowdz" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowrho" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowheat" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowgrain" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowdepth"  level="11"/>
+    <field field_ref="frac_snow"  level="0"/>
+    <field field_ref="snowliqtot"  level="11"/>
+    <field field_ref="albedo_snow"  level="11"/>
+    <field field_ref="snowage_glob"  level="11"/>
+    <field field_ref="lake_overflow_coast" level="7"/>
+    <field field_ref="fraclut" grid_ref="grid_nlut_out" level="11"/>
+    <field field_ref="nwdFraclut" grid_ref="grid_nlut_out" level="11"/>
+    <field field_ref="humtot_lut" grid_ref="grid_nlut_out"  level="11"/>
+    <field field_ref="humtot_top_lut" grid_ref="grid_nlut_out"  level="11"/>
+    <field field_ref="mrro_lut" grid_ref="grid_nlut_out"  level="11"/>
+    <field field_ref="gpplut" grid_ref="grid_nlut_out"  level="11"/>
+    <field field_ref="nudgincswe" level="11"/>
+    <field field_ref="nudgincsm" level="11"/>
+    <field field_ref="cnc" level="11"/>
+    <field field_ref="mcfc" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="mcw" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="tmcs" level="11"/>
+    <field field_ref="tmcfc" level="11"/>
+<!--
+    <field field_ref="wilt" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="fldcapacity" grid_ref="grid_nslm_out" level="11"/>
+-->
+    <field field_ref="znetco2" level="11" />
+    <field field_ref="zcarblu" level="11" />
+    <field field_ref="zcarbwh" level="11" />
+    <field field_ref="zcarbha" level="11" />
+    <field field_ref="frac_snow_veg"  level="12"/>
+    <field field_ref="frac_snow_nobio" grid_ref="grid_nnobio_out"  level="12"/>
+    <field field_ref="snowdz_read_current" grid_ref="grid_nsnow_out"  level="12"/>
+    <field field_ref="snowrho_read_current" grid_ref="grid_nsnow_out"  level="12"/>
+    <field field_ref="snowtemp_read_current" grid_ref="grid_nsnow_out"  level="12"/>
+    <field field_ref="mask_snow_interp_out" grid_ref="grid_nsnow_out"  level="12"/>
+
+     <!-- Irrigation scheme  -->
+     <field field_ref="irrigation" name="Qirrig" level="8"/>
+     <field field_ref="irrig_gw_source" name="Qirrig_gw" level="8"/>
+     <field field_ref="irrig_gw_source" name="irrig_gw_source" level="8" unit="mm/d" > this*86400  </field>
+     <field field_ref="irrig_fast_source" name="Qirrig_fast" level="8"/>
+     <field field_ref="irrig_fast_source" name="irrig_fast_source" level="8" unit="mm/d" > this*86400  </field>
+     <field field_ref="irrig_str_source" name="Qirrig_str" level="8"/>
+     <field field_ref="irrig_str_source" name="irrig_str_source" level="8" unit="mm/d" > this*86400  </field>
+     <field field_ref="netirrig" name="Qirrig_req" long_name="Irrigation requirement" level="8"/>
+     <field field_ref="soilflx" level="8"/>
+     <field field_ref="irrig_deficit" name="Qirrig_deficit" level="8"/>
+     <field field_ref="irrig_deficit" name="irrig_deficit" level="8" unit="mm/d" > this*86400  </field>
+     <field field_ref="irrig_adduct" name="Qirrig_adduct" level="8"/>
+     <field field_ref="irrig_adduct" name="irrig_adduct" level="8" unit="mm/d" > this*86400  </field>
+     <field field_ref="Count_failure_slow" name="Count_failure_slow" level="8"/>
+     <field field_ref="Count_failure_fast" name="Count_failure_fast" level="8"/>
+     <field field_ref="Count_failure_stre" name="Count_failure_stre" level="8"/>
+     <!--field field_ref="PotSurfT" level="8"/-->
+     <field field_ref="transpot" grid_ref="grid_nvm_out" level="8"/>
+     <field field_ref="vbeta3pot" grid_ref="grid_nvm_out" level="8"/>
+     <field field_ref="root_deficit" level="8"/>
+     <field field_ref="root_mc_fc" level="8"/>
+     <field field_ref="irrigmap_dyn" level="8"/>
+     <field field_ref="aei_sw" level="8"/>
+
+   </field_group>
+  </file>
+
+  <!-- Sechiba file 2 -->
+  <file id="sechiba2" name="sechiba_out_2" output_level="_AUTO_" output_freq="_AUTO_" enabled="_AUTO_">
+   <field_group id="groupremap_sechiba2" group_ref="remap_1mo" grid_ref="grid_landpoints_out" >
+    <!-- level 1 -->
+    <field field_ref="areas" level="1"/>
+    <field field_ref="LandPoints" level="20"/>
+    <field field_ref="contfrac" level="1"/>
+    <field field_ref="humtot_top" level="1"/>
+    <field field_ref="mrro" level="1"/>
+    <field field_ref="ptn" grid_ref="grid_ngrnd_out" level="1"/>
+    <field field_ref="wtd" level="1"/>
+    <field field_ref="tws" level="1"/>
+    
+    <!-- level 2 -->
+    <field field_ref="q_cdrag" level="2"/>
+    <field field_ref="soilalb_vis" level="2"/>
+    <field field_ref="soilalb_nir" level="2"/>
+    <field field_ref="vegalb_vis" level="2"/>
+    <field field_ref="vegalb_nir" level="2"/>
+    <field field_ref="z0m" level="2"/>
+    <field field_ref="z0h" level="2"/>
+    <field field_ref="coastalflow" level="2"/>
+    <field field_ref="riverflow" level="2"/>
+    <field field_ref="tsol_rad" level="2"/>
+    <field field_ref="vevapnu" name="evapnu" level="2" unit="mm/d" > @vevapnu*86400  </field>
+    <field field_ref="temp_sol_new_C" level="2"/>
+    <field field_ref="qsurf" level="2"/>
+    <field field_ref="fluxsens" level="2"/>
+    <field field_ref="fluxlat" level="2"/>
+    <field field_ref="emis" level="2"/>
+    <field field_ref="riversret" level="2"/>
+    <field field_ref="hydrographs" level="2"/>
+    <field field_ref="undermcr" level="2"/>
+    <field field_ref="ru_corr" level="2"/>
+    <field field_ref="ru_corr2" level="2"/>
+    <field field_ref="dr_corr" level="2"/>
+    <field field_ref="dr_force" level="2"/>
+    <field field_ref="ru_infilt" level="2"/>
+    <field field_ref="qinfilt" level="2"/>
+    <field field_ref="dr_corrnum" level="2"/>
+    <!-- level 3 -->
+    <field field_ref="vevapp_day" level="3"/>
+    <field field_ref="precip_rain" level="3" name="rain" unit="mm/d" > @precip_rain*86400  </field>
+    <field field_ref="precip_snow" level="3" name="snowf" unit="mm/d" > @precip_snow*86400  </field>
+    <field field_ref="netrad" level="3"/>
+    <field field_ref="lai" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="basinmap" level="3"/>
+    <field field_ref="nbrivers" level="3"/>
+    <field field_ref="check_infilt" level="3"/>
+    <field field_ref="check_tr" level="3"/>
+    <field field_ref="check_over" level="3"/>
+    <field field_ref="check_under" level="3"/>
+      
+
+    <!-- level 4 -->
+    <field field_ref="vevapsno" name="subli" level="4" unit="mm/d" > @vevapsno*86400  </field>
+    <field field_ref="runoff" name="runoff" level="4" unit="mm/d" > @runoff*86400  </field>
+    <field field_ref="drainage" name="drainage" level="4" unit="mm/d" > @drainage*86400  </field>
+    <field field_ref="temp_air" level="4"/>
+    <field field_ref="qair" level="4"/>
+    <field field_ref="albedo_vis" level="4"/>
+    <field field_ref="albedo_nir" level="4"/>
+    <field field_ref="roughheight" level="4"/>
+    <field field_ref="transpir" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="inter" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="evapnu_soil" grid_ref="grid_nstm_out" level="4"/>
+    <field field_ref="drainage_soil" grid_ref="grid_nstm_out" level="4"/>
+    <field field_ref="transpir_soil" grid_ref="grid_nstm_out" level="4"/>
+    <field field_ref="runoff_soil" grid_ref="grid_nstm_out" level="4"/>
+    <!-- level 5 -->
+    <field field_ref="tsol_max" level="5"/>
+    <field field_ref="tsol_min" level="5"/>
+    <field field_ref="snow" level="5"/>
+    <field field_ref="snowage" level="5"/>
+    <field field_ref="snownobio" grid_ref="grid_nnobio_out" level="5"/>
+    <field field_ref="snownobioage" grid_ref="grid_nnobio_out" level="5"/>
+    <field field_ref="snowmelt" level="5"/>
+    <field field_ref="tot_melt" level="5"/>
+    <field field_ref="snowmelt_from_maxmass" level="5"/>
+    <field field_ref="soilcap" level="5"/>
+    <field field_ref="vegetfrac" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="maxvegetfrac" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="nobiofrac" grid_ref="grid_nnobio_out" level="5"/>
+    <!-- level 6 -->
+    <field field_ref="humtot" level="6"/>
+    <field field_ref="humtot_liquid" level="6"/>
+    <field field_ref="tmc" grid_ref="grid_nstm_out" level="6"/>
+    <field field_ref="qsintveg" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="rstruct" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="r_soil" level="6"/>
+    <field field_ref="gpp" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="nee" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="maint_resp" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="hetero_resp" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="growth_resp" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="npp" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="precisol" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="drysoil_frac" level="6"/>
+    <field field_ref="evapot" level="6"/>
+    <field field_ref="evapot_corr" level="6"/>
+    <field field_ref="twbr" level="6"/>
+    <!-- level 7 -->
+    <field field_ref="swnet" level="7"/>
+    <field field_ref="swdown" level="7"/>
+    <field field_ref="lwdown" level="7"/>
+    <field field_ref="lwnet" level="7"/>
+    <field field_ref="diffevap" level="7"/>
+    <!-- level 8 -->
+    <field field_ref="fastr" level="8"/>
+    <field field_ref="slowr" level="8"/>
+    <field field_ref="streamr" level="8"/>
+    <field field_ref="floodr" level="8"/>
+    <field field_ref="floodh" level="8"/>
+    <field field_ref="pondr" level="8"/>
+    <field field_ref="laker" level="8"/>
+    <field field_ref="irrigation" name="irrigation" level="8" unit="mm/d" > @irrigation*86400  </field>
+    <field field_ref="netirrig" name="netirrig" level="8" unit="mm/d" > @netirrig*86400  </field>
+    <field field_ref="irrigmap" level="8"/>
+    <field field_ref="floodmap" level="8"/>
+    <field field_ref="flood_frac" name="flood_frac" level="8"/>
+    <field field_ref="swampmap" level="8"/>
+    <field field_ref="vevapflo" name="evapflo" level="8" unit="mm/d" > @vevapflo*86400 </field>
+
+    <!-- level 9 -->
+    <field field_ref="beta" level="9"/>
+    <field field_ref="raero" level="9"/>
+    <field field_ref="wind" level="9"/>
+    <field field_ref="qsatt" level="9"/>
+    <field field_ref="vbeta1" level="9"/>
+    <field field_ref="vbeta4" level="9"/>
+    <field field_ref="gsmean" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="vbeta5" level="9"/>
+    <field field_ref="reinf_slope" level="9"/>
+    <field field_ref="njsc" level="9"/>
+    <field field_ref="humrel" grid_ref="grid_nvm_out" level="9"/>
+    <!-- level 10 -->
+    <field field_ref="cimean" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="vbeta3" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="rveget" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="vbeta2" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="qsintmax" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="PAR" level="10"/>
+    <field field_ref="PARsun" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="PARsh" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="laisun" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="laish" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="PARsuntab" grid_ref="grid_nlaip1_out" level="10"/>
+    <field field_ref="PARshtab" grid_ref="grid_nlaip1_out" level="10"/>
+    <field field_ref="coszang" level="10"/>
+    <field field_ref="PARdf" level="10"/>
+    <field field_ref="PARdr" level="10"/>
+    <field field_ref="flx_fertil_no" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="CRF" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_co2_bbg_year" level="10"/>
+    <field field_ref="N_qt_WRICE_year" level="10"/>
+    <field field_ref="N_qt_OTHER_year" level="10"/>
+    <field field_ref="flx_iso" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_mono" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_ORVOC" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_MBO" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_methanol" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_acetone" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_acetal" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_formal" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_acetic" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_formic" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_no_soil" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="flx_no" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="pb" level="11"/>
+    <field field_ref="slowflow" level="11"/>
+    <field field_ref="qsintveg_tot" level="11"/>
+    <field field_ref="LAImean" level="11"/>
+    <field field_ref="mcs" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="mcr" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="nvg" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="alphavg" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="nroot" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="dlh" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="water2infilt" grid_ref="grid_nstm_out" level="11"/>
+    <field field_ref="kk_moy" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="psi_moy" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="profil_froz_hydro" grid_ref="grid_nslm_out" level="11"/>
+    <field field_ref="pkappa" grid_ref="grid_ngrnd_out"  level="11"/>
+    <field field_ref="pkappa_snow" grid_ref="grid_nsnow_out" level="11"/>
+    <field field_ref="pcapa" grid_ref="grid_ngrnd_out"  level="11"/>
+    <field field_ref="pcapa_spec" grid_ref="grid_ngrnd_out"  level="11"/>
+    <field field_ref="pcapa_snow" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowtemp" grid_ref="grid_nsnow_out"  level="0"/>
+    <field field_ref="snowtemp_weighted"  level="11"/>
+    <field field_ref="snowliq" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowdz" grid_ref="grid_nsnow_out"  level="0"/>
+    <field field_ref="snowrho" grid_ref="grid_nsnow_out"  level="0"/>
+    <field field_ref="snowheat" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowgrain" grid_ref="grid_nsnow_out"  level="11"/>
+    <field field_ref="snowdepth"  level="11"/>
+    <field field_ref="mc" grid_ref="grid_nslm_nstm_out" level="0"/>   <!-- mc is a 4 dimensional variable -->
+    <field field_ref="znetco2" level="11" />
+    <field field_ref="zcarblu" level="11" />
+    <field field_ref="zcarbwh" level="11" />
+    <field field_ref="zcarbha" level="11" />
+    </field_group>
+  </file>
+
+  <!-- Sechiba file 3 -->
+  <!-- This files contains all variables having more than one vertical axis -->
+  <file id="sechiba3" name="sechiba_history_4dim" output_level="_AUTO_" output_freq="_AUTO_" enabled="_AUTO_">
+   <field_group id="groupremap_sechiba3" group_ref="remap_1mo" grid_ref="grid_landpoints_out" >
+    <field field_ref="areas" level="1"/>
+    <field field_ref="contfrac" level="1"/>
+    <field field_ref="mc" grid_ref="grid_nslm_nstm_out" level="1"/>
+    <field field_ref="mc_read_current" grid_ref="grid_nslm_nstm_out" level="2"/>
+    <field field_ref="kfact_root" grid_ref="grid_nslm_nstm_out" level="3"/>
+    <field field_ref="vegetmax_soil" grid_ref="grid_nvm_nstm_out" level="3"/>
+    <field field_ref="profil_froz_hydro_ns" grid_ref="grid_nslm_nstm_out" level="11"/>
+   </field_group>  
+  </file>
+
+
+  <!-- Sechiba alma file 1 -->
+  <file id="sechiba1_alma" name="sechiba_history_alma" output_level="10" output_freq="1mo" enabled=".FALSE.">
+   <field_group group_ref="remap_1mo" grid_ref="grid_landpoints_out" >
+    <field field_ref="areas" level="1"/>
+    <field field_ref="LandPoints" level="20"/>
+    <field field_ref="contfrac" level="1"/>
+    <field field_ref="soilflx" level="1"/>
+    <field field_ref="Qv" level="1"/>
+    <field field_ref="runoff" name="Qs" level="1"/>
+    <field field_ref="drainage" name="Qsb" level="1"/>
+    <field field_ref="coastalflow" name="CoastalFlow" level="1"/>
+    <field field_ref="riverflow" name="RiverFlow" level="1"/>
+    <field field_ref="surfheat_incr" level="1"/>
+    <field field_ref="coldcont_incr" level="1"/>
+    <field field_ref="fluxsens" name="Qh" level="1"/>
+    <field field_ref="fluxlat" name="Qle" level="1"/>
+    <field field_ref="lwnet" name="LWnet" level="1"/>
+    <field field_ref="swnet" name="SWnet" level="1"/>
+    <field field_ref="precip_rain" name="Rainf" level="1"/>
+    <field field_ref="precip_snow" name="Snowf" level="1"/>
+    <field field_ref="vevapp" name="Evap" level="1"/>
+    <field field_ref="tot_melt" name="Qsm" level="1"/>
+    <field field_ref="irrigation" name="Qirrig" level="1"/>
+    <field field_ref="netirrig" name="Qirrig_req" long_name="Irrigation requirement" level="1"/>
+    <field field_ref="temp_sol_new" level="1"/>
+    <field field_ref="fastr" level="1"/>
+    <field field_ref="slowr" level="1"/>
+    <field field_ref="streamr" level="1"/>
+    <field field_ref="laker" level="1"/>
+    <field field_ref="pondr" level="1"/>
+    <field field_ref="albedo_glob" level="1"/>
+    <field field_ref="soilalb_bg" grid_ref="grid_albtyp_out" name="Albedo_Background" level="1"/>
+    <field field_ref="SurfStor" level="1"/>
+    <field field_ref="snow" name="SWE" long_name="Snow Water Equivalent" level="1"/>
+    <field field_ref="soilwet" level="1"/>
+    <field field_ref="evapot_corr" name="PotEvap" long_name="Potential evapotranspiration" unit="kg/m^2/s" level="1"/>
+    <field field_ref="evapot" name="PotEvapOld" long_name="Potential evapotranspiration old method" unit="kg/m^2/s" level="1"/>
+    <field field_ref="ECanop" level="1"/>
+    <field field_ref="TVeg" level="1"/>
+    <field field_ref="vevapsno" name="SubSnow" level="1"/>
+    <field field_ref="irrigmap" name="IrrigationMap" level="1"/>
+    <field field_ref="floodmap" name="FloodplainsMap" level="1"/>
+    <field field_ref="flood_frac" name="flood_frac" level="1"/>
+    <field field_ref="swampmap" name="SwampMap" level="1"/>
+    <field field_ref="hydrographs" name="Dis" level="1"/>
+    <field field_ref="htuhgmon" name="HTUDis" grid_ref="grid_nbasmon_out" level="1"/>
+    <field field_ref="gpp" grid_ref="grid_nvm_out" name="GPP" level="1"/>
+    <field field_ref="nee" grid_ref="grid_nvm_out" name="NEE" level="1"/>
+    <field field_ref="maint_resp" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="hetero_resp" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="growth_resp" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="npp" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="z0m" name="Z0m" long_name="Roughness height for momentum" level="1"/>
+    <field field_ref="z0h" name="Z0h" long_name="Roughness height for heat" level="1"/>
+    <field field_ref="roughheight" name="EffectHeight" long_name="Effective displacement height (h-d)" level="1"/>
+    <field field_ref="delsoilmoist" level="1"/>
+    <field field_ref="delintercept" level="1"/>
+    <field field_ref="delswe" level="1"/>
+    <field field_ref="vevapnu" name="ESoil" level="1"/>
+    <field field_ref="vevapflo" name="EWater" level="1"/>
+    <field field_ref="temp_air" name="Tair" level="2"/>
+    <field field_ref="qair" name="Qair" level="2"/>
+    <field field_ref="vegetfrac" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="maxvegetfrac" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="nobiofrac" grid_ref="grid_nnobio_out" level="3"/>
+    <field field_ref="soilmoist" grid_ref="grid_nslm_out" level="7"/>
+    <field field_ref="humtot" name="RootMoist" long_name="Root zone soil water" level="1"/>
+    <field field_ref="ptn" grid_ref="grid_ngrnd_out" name="SoilTemp" level="7"/>
+    <field field_ref="vbeta1" name="SnowFrac" level="7"/>
+    <field field_ref="albedo_snow" level="7"/>
+    <field field_ref="snowdz" grid_ref="grid_nsnow_out" name="SnowDepth" level="7"/>
+    <field field_ref="temp_sol_new" name="RadT" level="1"/>
+    <field field_ref="twbr" level="1"/>
+   </field_group>
+  </file>
+
+  <!-- Sechiba alma file 2 -->
+  <file id="sechiba2_alma" name="sechiba_out_2_alma" output_level="10" output_freq="1d" enabled=".FALSE.">
+   <field_group group_ref="remap_1d" grid_ref="grid_landpoints_out" >
+    <field field_ref="areas" level="1"/>
+    <field field_ref="LandPoints" level="20"/>
+    <field field_ref="contfrac" level="1"/>
+    <field field_ref="soilflx" level="1"/>
+    <field field_ref="Qv" level="1"/>
+    <field field_ref="runoff" name="Qs" level="1"/>
+    <field field_ref="drainage" name="Qsb" level="1"/>
+    <field field_ref="coastalflow" name="CoastalFlow" level="1"/>
+    <field field_ref="riverflow" name="RiverFlow" level="1"/>
+    <field field_ref="surfheat_incr" level="1"/>
+    <field field_ref="coldcont_incr" level="1"/>
+    <field field_ref="fluxsens" name="Qh" level="1"/>
+    <field field_ref="fluxlat" name="Qle" level="1"/>
+    <field field_ref="lwnet" name="LWnet" level="1"/>
+    <field field_ref="swnet" name="SWnet" level="1"/>
+    <field field_ref="precip_rain" name="Rainf" level="1"/>
+    <field field_ref="precip_snow" name="Snowf" level="1"/>
+    <field field_ref="vevapp" name="Evap" level="1"/>
+    <field field_ref="tot_melt" name="Qsm" level="1"/>
+    <field field_ref="irrigation" name="Qirrig" level="1"/>
+    <field field_ref="netirrig" name="Qirrig_req" long_name="Irrigation requirement" level="1"/>
+    <field field_ref="temp_sol_new" level="1"/>
+    <field field_ref="fastr" level="1"/>
+    <field field_ref="slowr" level="1"/>
+    <field field_ref="streamr" level="1"/>
+    <field field_ref="laker" level="1"/>
+    <field field_ref="pondr" level="1"/>
+    <field field_ref="albedo_glob" level="1"/>
+    <field field_ref="SurfStor" level="1"/>
+    <field field_ref="snow" name="SWE" long_name="Snow Water Equivalent" level="1"/>
+    <field field_ref="soilwet" level="1"/>
+    <field field_ref="ECanop" level="1"/>
+    <field field_ref="TVeg" level="1"/>
+    <field field_ref="vevapsno" name="SubSnow" level="1"/>
+    <field field_ref="irrigmap" name="IrrigationMap" level="1"/>
+    <field field_ref="floodmap" name="FloodplainsMap" level="1"/>
+    <field field_ref="flood_frac" name="flood_frac" level="1"/>
+    <field field_ref="swampmap" name="SwampMap" level="1"/>
+    <field field_ref="hydrographs" name="Dis" level="1"/>
+    <field field_ref="gpp" grid_ref="grid_nvm_out" name="GPP" level="1"/>
+    <field field_ref="nee" grid_ref="grid_nvm_out" name="NEE" level="1"/>
+    <field field_ref="maint_resp" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="hetero_resp" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="growth_resp" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="npp" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="delsoilmoist" level="1"/>
+    <field field_ref="delintercept" level="1"/>
+    <field field_ref="delswe" level="1"/>
+    <field field_ref="vevapnu" name="ESoil" level="1"/>
+    <field field_ref="vevapflo" name="EWater" level="1"/>
+    <field field_ref="soilmoist" grid_ref="grid_nslm_out" level="7"/>
+    <field field_ref="humtot" name="RootMoist" long_name="Root zone soil water" level="1"/>
+    <field field_ref="ptn" grid_ref="grid_ngrnd_out" name="SoilTemp" level="7"/>
+    <field field_ref="vbeta1" name="SnowFrac" level="7"/>
+    <field field_ref="albedo_snow" level="7"/>
+    <field field_ref="snowdz" grid_ref="grid_nsnow_out" name="SnowDepth" level="7"/>
+    <field field_ref="vegetfrac" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="maxvegetfrac" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="nobiofrac" grid_ref="grid_nnobio_out" level="3"/>
+    <field field_ref="temp_sol_new" name="RadT" level="5"/>
+   </field_group>
+
+  </file>
+
+  <!-- Sechiba file 4 containing variables read and interpolated from input files -->
+  <file id="sechiba4" name="sechiba_interp_diag" output_level="1" output_freq="1d" enabled=".TRUE.">
+    <field_group group_ref="remap_1d" grid_ref="grid_landpoints_out" >
+
+      <field field_ref="interp_diag_veget_next" grid_ref="grid_nvm_out" level="1"/>
+      <field field_ref="interp_diag_njsc" level="1"/>
+      <field field_ref="interp_diag_clayfraction"  level="1"/>
+      <field field_ref="interp_diag_sandfraction"  level="1"/>
+      <field field_ref="interp_diag_siltfraction"  level="1"/>
+      <field field_ref="interp_diag_reinf_slope"  level="1"/>
+      <field field_ref="interp_diag_alb_vis"  level="1"/>
+      <field field_ref="interp_diag_alb_nir"  level="1"/>
+      <field field_ref="interp_diag_N_qt_WRICE_year" level="1"/>
+      <field field_ref="interp_diag_N_qt_OTHER_year" level="1"/>
+      <field field_ref="interp_diag_flx_co2_bbg_year" level="1"/>
+      <field field_ref="interp_diag_reftemp" level="1"/>
+      <field field_ref="interp_diag_woodharvest" level="1"/>
+      <!--      <field field_ref="interp_diag_lai" grid_ref="grid_from_lai" level="1"/> -->
+      
+      <field field_ref="interp_avail_aveget"  level="3"/>
+      <field field_ref="interp_diag_vegetrefrac" grid_ref="grid_nvm_out" level="3"/>
+      <field field_ref="interp_avail_atext"  level="3"/>
+      <field field_ref="interp_diag_soilclass" grid_ref="grid_nscm_out" level="3"/>
+      <field field_ref="interp_avail_aslope"  level="3"/>     
+      <field field_ref="interp_avail_aalb_bg"  level="3"/>
+      <field field_ref="interp_avail_asoilcol"  level="3"/>
+      <field field_ref="interp_avail_achem_wrice" level="3"/>
+      <field field_ref="interp_avail_achem_other" level="3"/>
+      <field field_ref="interp_avail_achem_co2" level="3"/>
+      <field field_ref="interp_avail_alaimap"  level="3"/>
+      <field field_ref="interp_avail_areftemp" level="3"/>
+      
+   </field_group>
+  </file>
+
+
+  <!-- Definition of files with stomate diagnostics -->
+  <!-- Stomate file 1 -->
+  <file id="stomate1" name="stomate_history" output_level="_AUTO_" output_freq="_AUTO_" enabled="_AUTO_">
+   <field_group id="groupremap_stomate1" group_ref="remap_1mo" grid_ref="grid_landpoints_out" >
+     
+    <!-- level 1 -->
+    <field field_ref="RESOLUTION_X" level="0"/>
+    <field field_ref="RESOLUTION_Y" level="0"/>
+    <field field_ref="CONTFRAC_STOMATE" level="0"/>
+    <field field_ref="areas" level="0"/>
+    <field field_ref="T2M_MONTH" level="1"/>
+    <field field_ref="T2M_WEEK" level="1"/>
+    <field field_ref="firefrac" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="CO2_FIRE" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="CO2_TAKEN" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="LAI" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="VEGET_COV_MAX" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="NPP_STOMATE" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="GPP" grid_ref="grid_nvm_out" level="0"/>
+    <!-- level 2 -->
+    <field field_ref="LEAF_M" grid_ref="grid_nvm_out" level="2"/>
+    <field field_ref="SAP_M_AB" grid_ref="grid_nvm_out" level="2"/>
+    <field field_ref="SAP_M_BE" grid_ref="grid_nvm_out" level="2"/>
+    <field field_ref="HEART_M_AB" grid_ref="grid_nvm_out" level="2"/>
+    <field field_ref="HEART_M_BE" grid_ref="grid_nvm_out" level="2"/>
+    <field field_ref="ROOT_M" grid_ref="grid_nvm_out" level="2"/>
+    <field field_ref="FRUIT_M" grid_ref="grid_nvm_out" level="2"/>
+    <field field_ref="RESERVE_M" grid_ref="grid_nvm_out" level="2"/>
+    <field field_ref="MAINT_RESP" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="GROWTH_RESP" grid_ref="grid_nvm_out" level="0"/>
+    <!-- level 3 -->
+    <field field_ref="IND" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="ADAPTATION" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="REGENERATION" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="CN_IND" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="WOODMASS_IND" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="MOISTRESS" grid_ref="grid_nvm_out" level="3"/>
+    <field field_ref="HET_RESP" grid_ref="grid_nvm_out" level="0"/>
+    <!-- level 4 -->
+    <field field_ref="SAP_AB_TURN" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="ROOT_TURN" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="FRUIT_TURN" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="TOTAL_BM_LITTER" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="LEAF_BM_LITTER" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="SAP_AB_BM_LITTER" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="SAP_BE_BM_LITTER" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="HEART_AB_BM_LITTER" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="HEART_BE_BM_LITTER" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="ROOT_BM_LITTER" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="FRUIT_BM_LITTER" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="RESERVE_BM_LITTER" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="TOTAL_M" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="TOTAL_TURN" grid_ref="grid_nvm_out" level="4"/>
+    <field field_ref="LEAF_TURN" grid_ref="grid_nvm_out" level="4"/>
+    <!-- level 5 -->
+    <field field_ref="LITTER_STR_AB" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="LITTER_MET_AB" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="LITTER_STR_BE" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="LITTER_MET_BE" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="DEADLEAF_COVER" level="5"/>
+    <field field_ref="TOTAL_SOIL_CARB" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="CARBON_ACTIVE" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="CARBON_SLOW" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="CARBON_PASSIVE" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="LITTERHUM" level="5"/>
+    <field field_ref="BM_ALLOC_LEAF" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="BM_ALLOC_SAP_AB" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="BM_ALLOC_SAP_BE" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="BM_ALLOC_ROOT" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="BM_ALLOC_FRUIT" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="BM_ALLOC_RES" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="HERBIVORES" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="TURNOVER_TIME" grid_ref="grid_nvm_out" level="5"/>
+    <field field_ref="PROD10" grid_ref="grid_P11_out" level="5"/>
+    <field field_ref="FLUX10" grid_ref="grid_P10_out" level="5"/>
+    <field field_ref="PROD100" grid_ref="grid_P101_out" level="5"/>
+    <field field_ref="FLUX100" grid_ref="grid_P100_out" level="5"/>
+    <field field_ref="CONVFLUX" level="0"/>
+    <field field_ref="CFLUX_PROD10" level="0"/>
+    <field field_ref="CFLUX_PROD100" level="0"/>
+    <field field_ref="fDeforestToProduct" level="5"/>
+    <field field_ref="fDeforestToProduct_post" level="5"/>
+    <field field_ref="PROD10_HARVEST" grid_ref="grid_P11_out" level="5"/>
+    <field field_ref="FLUX10_HARVEST" grid_ref="grid_P10_out" level="5"/>
+    <field field_ref="PROD100_HARVEST" grid_ref="grid_P101_out" level="5"/>
+    <field field_ref="FLUX100_HARVEST" grid_ref="grid_P100_out" level="5"/>
+    <field field_ref="CONVFLUX_HARVEST" level="5"/>
+    <field field_ref="CFLUX_PROD10_HARVEST" level="5"/>
+    <field field_ref="CFLUX_PROD100_HARVEST" level="5"/>
+    <field field_ref="WOOD_HARVEST" level="0"/>
+    <field field_ref="WOOD_HARVEST_PFT" grid_ref="grid_nvm_out" level="0"/>
+    <field field_ref="HARVEST_ABOVE" level="0"/>
+    <!-- level 6 -->
+    <field field_ref="VCMAX" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="LEAF_AGE" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="mortality" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="firedeath" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="IND_ESTAB" grid_ref="grid_nvm_out" level="6"/>
+    <field field_ref="ESTABTREE" level="6"/>
+    <field field_ref="ESTABGRASS" level="6"/>
+    <field field_ref="light_death" grid_ref="grid_nvm_out" level="6"/>
+    <!-- level 7 -->
+    <field field_ref="AGE" grid_ref="grid_nvm_out" level="7"/>
+    <field field_ref="HEIGHT" grid_ref="grid_nvm_out" level="7"/>
+    <!-- level 9 -->
+    <field field_ref="WHEN_GROWTHINIT" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="PFTPRESENT" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="GDD_MIDWINTER" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="GDD_M5_DORMANCE" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="NCD_DORMANCE" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="ALLOW_INITPHENO" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="BEGIN_LEAVES" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="t2m_longterm" level="9"/>
+    <field field_ref="TSEASON"  level="9"/>
+    <field field_ref="TMIN_SPRING_TIME" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="ONSET_DATE" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="FPC_MAX" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="MAXFPC_LASTYEAR" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="clitterlut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="csoillut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="cveglut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="lailut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="ctotfirelut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="ralut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="rhlut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="npplut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="cproductlut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="flulccproductlut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="flulccresiduelut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="flulccresidue" grid_ref="grid_nvm_out" level="9"/>
+    <field field_ref="flulccatmlut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="necbLut" grid_ref="grid_nlut_out" level="9"/>
+    <field field_ref="fProductDecomp" level="9"/>
+
+    <!-- level 10 -->
+    <field field_ref="FIREINDEX" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="HET_RESP_SOIL" grid_ref="grid_nvm_out" level="10"/>
+    <field field_ref="HET_RESP_LITTER" grid_ref="grid_nvm_out" level="10"/>
+ 
+   </field_group>  
+    
+  </file>
+
+  <!-- Stomate file 2 -->
+  <file id="stomate2" name="stomate_ipcc_history" output_level="_AUTO_" output_freq="_AUTO_" enabled="_AUTO_">
+   <field_group id="groupremap_stomate2" group_ref="remap_1mo" grid_ref="grid_landpoints_out" >
+    <!-- level 1 -->
+    <field field_ref="RESOLUTION_X" level="1"/>
+    <field field_ref="RESOLUTION_Y" level="1"/>
+    <field field_ref="CONTFRAC_STOMATE" level="0"/>
+    <field field_ref="areas" level="0"/>
+    <field field_ref="cVeg" level="1"/>
+    <field field_ref="cVegGrass" level="1"/>
+    <field field_ref="cVegCrop" level="0"/>
+    <field field_ref="cVegTree" level="1"/>
+    <field field_ref="cLitter" level="1"/>
+    <field field_ref="cLitterGrass" level="1"/>
+    <field field_ref="cLitterCrop" level="0"/>
+    <field field_ref="cLitterTree" level="1"/>
+    <field field_ref="cOther" level="1"/>
+    <field field_ref="cSoil" level="1"/>
+    <field field_ref="cSoilGrass" level="1"/>
+    <field field_ref="cSoilCrop" level="0"/>
+    <field field_ref="cSoilTree" level="1"/>
+    <field field_ref="cLand" level="1"/>
+    <field field_ref="cProduct" level="0"/>
+    <field field_ref="cMassVariation" level="0"/>
+    <field field_ref="lai_ipcc" level="0"/>
+    <field field_ref="gpp_ipcc" level="0"/>
+    <field field_ref="ra" level="0"/>
+    <field field_ref="raGrass" level="1"/>
+    <field field_ref="raCrop" level="0"/>
+    <field field_ref="raTree" level="1"/>
+    <field field_ref="npp_ipcc" level="1"/>
+    <field field_ref="rh" level="1"/>
+    <field field_ref="rhSoil" level="1"/>
+    <field field_ref="rhLitter" level="1"/>
+    <field field_ref="resp_maint_part_weighted" grid_ref="grid_nparts_out" level="1"/>
+    <field field_ref="resp_growth_part_weighted" grid_ref="grid_nparts_out" level="1"/>
+    <field field_ref="tSoilPools" grid_ref="grid_ncarb_out" level="1"/>
+    <field field_ref="fFire" level="1"/>
+    <field field_ref="fHarvest" level="1"/>
+    <field field_ref="fWoodharvest" level="0"/>
+    <field field_ref="fLuc" level="0"/>
+    <field field_ref="fAnthDisturb" level="1"/>
+    <field field_ref="nbp" level="0"/>
+    <field field_ref="fVegLitter" level="0"/>
+    <field field_ref="fLitterSoil" level="0"/>
+    <field field_ref="cLeaf" level="0"/>
+    <field field_ref="cWood" level="0"/>
+    <field field_ref="cStem" level="1"/>
+    <field field_ref="cRoot" level="0"/>
+    <field field_ref="cMisc" level="0"/>
+    <field field_ref="cLitterAbove" level="0"/>
+    <field field_ref="cLitterBelow" level="0"/>
+    <field field_ref="cSoilFast" level="0"/>
+    <field field_ref="cSoilMedium" level="0"/>
+    <field field_ref="cSoilSlow" level="0"/>
+    <field field_ref="cSoilPools" grid_ref="grid_ncarb_out" level="1"/>
+    <field field_ref="landCoverFrac" grid_ref="grid_nvm_out" level="1"/>
+    <field field_ref="treeFracPrimDec" level="0"/>
+    <field field_ref="treeFracPrimEver" level="0"/>
+    <field field_ref="c3PftFrac" level="0"/>
+    <field field_ref="c4PftFrac" level="0"/>
+    <field field_ref="rGrowth" level="0"/>
+    <field field_ref="rMaint" level="0"/>
+    <field field_ref="rGrowth_ipcc" level="1"/>
+    <field field_ref="rMaint_ipcc" level="1"/>
+    <field field_ref="nppLeaf" level="0"/>
+    <field field_ref="nppWood" level="0"/>
+    <field field_ref="nppStem" level="1"/>
+    <field field_ref="nppRoot" level="0"/>
+    <field field_ref="nppGrass" level="1"/>
+    <field field_ref="nppCrop" level="0"/>
+    <field field_ref="nppTree" level="1"/>
+    <field field_ref="nppOther" level="1"/>
+    <field field_ref="nep" level="0"/>
+   </field_group>
+    
+  </file>
+</file_definition>
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/gcm.def_144x142_NPv6.2
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/gcm.def_144x142_NPv6.2	(revision 6296)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/gcm.def_144x142_NPv6.2	(revision 6296)
@@ -0,0 +1,57 @@
+## $Id: gcm.def_144x142_NPv6.1 3668 2018-03-20 14:55:33Z lfairhead $
+## nombre de pas par jour (multiple de iperiod) 
+## ( day_step=672 => dt=2.15min or 15mn/7, physique toutes les 15 mn )
+day_step=672
+## periode pour le pas Matsuno (en pas)
+iperiod=7
+## choix de l'operateur de dissipation (star ou  non star )
+lstardis=y
+## nombre d'iterations de l'operateur de dissipation   gradiv
+nitergdiv=1
+## nombre d'iterations de l'operateur de dissipation  nxgradrot
+nitergrot=2
+## nombre d'iterations de l'operateur de dissipation  divgrad            
+niterh=2
+## temps de dissipation des plus petites long.d ondes pour u,v (gradiv)  
+tetagdiv=3600.
+## temps de dissipation des plus petites long.d ondes pour u,v(nxgradrot)
+tetagrot=21600.
+## temps de dissipation des plus petites long.d ondes pour  h ( divgrad) 
+tetatemp=10800.
+## coefficient pour gamdissip                                            
+coefdis=0.
+## choix du shema d'integration temporelle (Matsuno:y ou Matsuno-leapfrog:n) 
+purmats=n
+## avec ou sans physique
+## 0: pas de physique (e.g. en mode Shallow Water)
+## 1: avec physique (e.g. physique phylmd)
+## 2: avec rappel newtonien dans la dynamique                                         
+iflag_phys=1
+## avec ou sans fichiers de demarrage (start.nc, startphy.nc) ?
+## (sans fichiers de demarrage, initialisation des champs par iniacademic
+##  dans la dynamique)
+read_start=y
+## periode de la physique (en pas dynamiques, n'a de sens que si iflag_phys=1)                                       
+iphysiq=7
+## longitude en degres du centre du zoom                                 
+clon=0.
+## latitude en degres du centre du zoom                                  
+clat=0.
+## facteur de grossissement du zoom,selon longitude                      
+grossismx=1.0
+## facteur de grossissement du zoom ,selon latitude                      
+grossismy=1.0
+##  Fonction  f(y)  hyperbolique  si = .true.  , sinon  sinusoidale         
+fxyhypb=y
+## extension en longitude  de la zone du zoom  ( fraction de la zone totale)
+dzoomx=0.0
+## extension en latitude de la zone  du zoom  ( fraction de la zone totale)
+dzoomy=0.0
+##raideur du zoom en  X
+taux=3.
+##raideur du zoom en  Y
+tauy=3.
+##  Fonction  f(y) avec y = Sin(latit.) si = .true. , sinon y = latit.         
+ysinus=y
+##
+ngroup=4
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/iodef.xml
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/iodef.xml	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/iodef.xml	(revision 6296)
@@ -21,5 +21,5 @@
         <variable_group id="buffer">
             <variable id="optimal_buffer_size" type="string">performance</variable>
-            <variable id="buffer_size_factor" type="double">1.0</variable>
+            <variable id="buffer_size_factor" type="double">2.0</variable>
             <variable id="min_buffer_size" type="int">10000000</variable>
          </variable_group>
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/namcouple_ORCA1xICO40
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/namcouple_ORCA1xICO40	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/namcouple_ORCA1xICO40	(revision 6296)
@@ -60,5 +60,5 @@
 # Mozaic: 1) mapping filename 2) connected unit 3) dataset rank 4) Maximum
 #         number of overlapped neighbors
-rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v1.nc dst
+rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v2.nc dst
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -75,5 +75,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 #
-rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v1.nc dst
+rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v2.nc dst
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -90,5 +90,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # 
-rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v1.nc dst
+rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v2.nc dst
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -105,5 +105,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 #
- rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v1.nc dst
+ rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v2.nc dst
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -119,5 +119,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 #
-rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v1.nc dst
+rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v2.nc dst
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -133,5 +133,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 #
-rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v1.nc dst
+rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v2.nc dst
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #  
@@ -146,5 +146,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 #
-rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v1.nc dst
+rmp_teORCA1.2_to_tICO40_TempIceAlb_1stOrder_MOSAIX_v2.nc dst
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -164,5 +164,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_ueORCA1.2_WindStress_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_ueORCA1.2_WindStress_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -177,5 +177,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_ueORCA1.2_WindStress_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_ueORCA1.2_WindStress_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -190,5 +190,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_ueORCA1.2_WindStress_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_ueORCA1.2_WindStress_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -205,5 +205,5 @@
 MAPPING
 # Interpolation method or mozaic parameters
-rmp_tICO40_to_veORCA1.2_WindStress_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_veORCA1.2_WindStress_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -219,5 +219,5 @@
 MAPPING
 # Interpolation method or mozaic parameters
-rmp_tICO40_to_veORCA1.2_WindStress_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_veORCA1.2_WindStress_2ndOrder_MOSAIX_v2.nc src
 #
 # CHECKOUT: indicate computation of global, land and sea field integrals.
@@ -234,5 +234,5 @@
 MAPPING
 # Interpolation method or mozaic parameters
-rmp_tICO40_to_veORCA1.2_WindStress_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_veORCA1.2_WindStress_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -246,5 +246,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 # 
@@ -259,5 +259,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -272,5 +272,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -285,5 +285,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -298,5 +298,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -311,5 +311,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method or mozaic parameters
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -324,5 +324,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -337,5 +337,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method or mozaic parameters
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -350,5 +350,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -363,5 +363,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_2ndOrder_MOSAIX_v2.nc src
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -377,5 +377,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_calving_nosouth_MOSAIX_v1.nc dst
+rmp_tICO40_to_teORCA1.2_calving_nosouth_MOSAIX_v2.nc dst
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
@@ -391,5 +391,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_calving_iceberg_MOSAIX_v1.nc dst
+rmp_tICO40_to_teORCA1.2_calving_iceberg_MOSAIX_v2.nc dst
 0.5 0
 # CHECKOUT: indicate computation of global, land and sea field integrals.
@@ -405,5 +405,5 @@
 # CHECKIN: indicate computation of global, land and sea field integrals.
 # Interpolation method ou parametres mozaic
-rmp_tICO40_to_teORCA1.2_calving_iceshelf_MOSAIX_v1.nc dst
+rmp_tICO40_to_teORCA1.2_calving_iceshelf_MOSAIX_v2.nc dst
 0.5 0
 # CHECKOUT: indicate computation of global, land and sea field integrals.
@@ -412,17 +412,18 @@
 # Field 27 : liquid run-off (river + direct)  (a->o 18)
 #
-COLIQRUN  O_Runoff 32 <freq_coupling_roff_calv>  3  flxat.nc   <output_mode>
-1 16002 362 332 tico  torc  LAG=<lag_atm_roff_calv> 
-P  0 P  2
-MAPPING CONSERV BLASNEW
+COLIQRUN  O_Runoff 32 <freq_coupling_roff_calv>  4  flxat.nc   <output_mode>
+1 16002 362 332 oico  torc  LAG=<lag_atm_roff_calv> 
+P  0 P  2
+LOCTRANS MAPPING CONSERV BLASNEW
+AVERAGE
 # Interpolation method ou parametres mozaic
 # weights convert from kg/s to kg/m^2/s
-rmp_tICO40_to_teORCA1.2_runoff_Quantity_to_Surfacic_MOSAIX_v1.nc src
-#rmp_tICO40_to_teORCA1.2_Quantity_MOSAIX_v1.nc src
-#rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_MOSAIX_v1.nc src
+rmp_tICO40_to_teORCA1.2_runoff_Quantity_to_Surfacic_MOSAIX_v2.nc dst
+#rmp_tICO40_to_teORCA1.2_Quantity_MOSAIX_v2.nc src
+#rmp_tICO40_to_teORCA1.2_HeatWaterFluxes_MOSAIX_v2.nc src
 # CONSERV
 GLOBAL bfb
 # change units from m/s to kg/s
-1000 0
+1000.0 0
 # CHECKOUT: indicate computation of global, land and sea field integrals.
 #
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/namelist_lim3_ORCA1_cfg_NPv6.2
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/namelist_lim3_ORCA1_cfg_NPv6.2	(revision 6296)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/namelist_lim3_ORCA1_cfg_NPv6.2	(revision 6296)
@@ -0,0 +1,50 @@
+!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+!! NEMO/LIM-3 : Ice configuration namelist. Overwrites SHARED/namelist_ice_lim3_ref
+!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+
+!-----------------------------------------------------------------------
+&namicerun     !   Share parameters for dynamics/advection/thermo
+!-----------------------------------------------------------------------
+   cn_icerst_in  = "restart_ice_in" !  suffix of ice restart name (input)
+   rn_amax_n     = 0.997            !  maximum tolerated ice concentration NH
+   rn_amax_s     = 0.950            !  maximum tolerated ice concentration SH
+   ln_limdiahsb  = .false.          !  check the heat and salt budgets (T) or not (F)
+   ln_limdiaout  = .true.            !  output the heat and salt budgets (T) or not (F)
+/
+!-----------------------------------------------------------------------
+&namiceini     !   ice initialisation
+!-----------------------------------------------------------------------
+/
+!-----------------------------------------------------------------------
+&namicedyn     !   ice dynamic
+!-----------------------------------------------------------------------
+/
+!------------------------------------------------------------------------------
+&namicehdf     !   Ice horizontal diffusion
+!------------------------------------------------------------------------------
+/
+!-----------------------------------------------------------------------
+&namicethd     !   ice thermodynamic
+!-----------------------------------------------------------------------
+   rn_cdsn     = 0.50              !  thermal conductivity of the snow (0.31 W/m/K, Maykut and Untersteiner, 1971)
+                                   !  Obs: 0.1-0.5 (Lecomte et al, JAMES 2013)
+/
+!-----------------------------------------------------------------------
+&namicesal     !   ice salinity
+!-----------------------------------------------------------------------
+/
+!-----------------------------------------------------------------------
+&namiceitdme   !   parameters for mechanical redistribution of ice
+!-----------------------------------------------------------------------
+   rn_astar    =   0.03            !  exponential measure of ridging ice fraction (nn_partfun = 1)
+   rn_hstar    = 25.0             !  determines the maximum thickness of ridged ice (m) (Hibler, 1980)
+/
+!-----------------------------------------------------------------------
+&namicedia     !   ice diagnostics
+!-----------------------------------------------------------------------
+/
+!------------------------------------------------------------------------------
+&namiceitd     !   Ice discretization
+!------------------------------------------------------------------------------
+   rn_himax_bot = 99.             !  max ice thickness in the last category jpl
+/
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/orchidee.def
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/orchidee.def	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/orchidee.def	(revision 6296)
@@ -41,5 +41,8 @@
 # Activate river routing
 # default = y
-RIVER_ROUTING = n 
+RIVER_ROUTING = _AUTO_
+
+# Choice of routing method: standard or simple
+ROUTING_METHOD = _AUTO_
 
 # Activate creation of river_desc.nc file
@@ -133,5 +136,10 @@
 
 # Activate downregulation for CO2
-DOWNREGULATION_CO2=y
+# Set DOWNREGULATION_CO2_NEW=y to activate new revised version of 
+# downregulation parametrization available in ORCHIDEE_2_0 for 
+# configurations v6.1.11 or later or in ORCHIDEE_2_2 from revision 6393 and later. 
+# When DOWNREGULATION_CO2_NEW=y, 
+# DOWNREGULATION_CO2 will be forced to false by the model.
+DOWNREGULATION_CO2_NEW=y
 DOWNREGULATION_CO2_BASELEVEL=380.
 
@@ -218,5 +226,5 @@
 #************************************************************************
 # CHEMISTRY_OK_BVOC :  Activate chemistry
-CHEMISTRY_BVOC =  n
+CHEMISTRY_BVOC = _AUTO_: DEFAULT=n
 
 # CO2 FOR BVOC - WILKINSON :  CO2 inhibition effect for isoprene based on Wilkinson approach?
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/physiq.def_NPv6.2
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/physiq.def_NPv6.2	(revision 6296)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/physiq.def_NPv6.2	(revision 6296)
@@ -0,0 +1,538 @@
+#
+# $Id: physiq.def_NPv6.1 3964 2018-07-06 11:44:14Z acosce $
+#
+
+##############################################################
+# PARAMETRES ET CLES DE LA PHYSIQUE LMDZ
+##############################################################
+# D: Valeur par default
+#
+
+###########################################################
+# divers. Devrait aller dans config.def ?
+###########################################################
+##   Si=.T. ,  lecture du fichier limit avec la bonne annee 
+ok_limitvrai=n
+
+###########################################################
+# Parametres couche limite de surface
+###########################################################
+
+          #  ...
+f_cdrag_stable=1
+
+          # Facteur sur les coefficients de trainee terrestres
+f_cdrag_ter=1
+
+          # Vitesse minimum dans les calculs de trainee Cd ( || V || + Vmin )
+min_wind_speed=0.1
+
+          #  Modelisation des bosquets
+ifl_pbltree=1
+Cd_frein=0.016
+
+###########################################################
+# parameter des flux air-mer
+###########################################################
+
+          # Facteur sur les flux sensibles et latent
+          # Introduit pour reduire l evaporation quand on avait z0h=z0m
+          # CONSEILLE : 1
+f_cdrag_oce=1
+
+          # Flag controlant le calcul des z0
+iflag_z0_oce=1
+
+          # Rapport entre les Z0 latent et sensible
+f_z0qh_oce=1.55
+
+          # Activation des rafales : Oui 1 ou non 0
+iflag_gusts=2
+
+          # facteur pour les rafales des thermiques (bounary layer)
+f_gust_bl=0.845
+
+          # facteur pour les poches (wake)
+f_gust_wk=0.2
+
+          # facteur sur qsat pour tenir compte de la salinite
+f_qsat_oce=0.98
+
+          #cdmmax : valeur max de Cd moment. Sur ocean seulement
+cdmmax=0.2
+
+          #cdhmax : valeur max de Cd evap/sensible. Sur ocean seulement
+cdhmax=0.2
+
+####################################################################
+# Couche limite turbulente
+####################################################################
+
+          # Nouvelle version de Mellor et Yamada
+new_yamada4=y
+
+          # Choix du schema numerique pour new_yamada4=y
+          #  1 schema de MAR. Bien pour CL stables mais detruit les stratocu
+          #  5 schema de MAR modifie. Precaunise.
+yamada4_num=5
+
+          # Flag de controle de la couche limite stable
+iflag_corr_sta=4
+
+          # min sur les fonction de stabilite a la surface
+f_ri_cd_min=0.01
+
+          # max du Ric pour Kz. Decouplage plus grand pour Ric plus grand.
+yamada4_ric=0.18
+
+          # Longueur de melange minimum pour Kz
+lmixmin=0
+
+          #shema de la couche de surface (D:1, 1:LMD, 8:Mellor-Yamada) 
+iflag_pbl=12
+
+          # Seuils pour la diffusion turbulente
+ksta_ter=1e-07
+ksta=1e-10
+
+          #ok_kzmin : calcul Kzmin dans la CL de surface (D: y)
+ok_kzmin=n
+
+          # Creation de TKE par orographie sous-maille
+addtkeoro=2
+alphatkeoro=1
+smallscales_tkeoro=y
+
+
+####################################################################
+# Ondes de gravite / Orographie sous maille
+####################################################################
+
+          #  Orodr  ou  non   pour l orographie
+ok_orodr=y
+
+          #  Orolf  ou  non   pour l orographie              
+ok_orolf=y
+
+          #Rugoro : inclusion de l orographie sous maille dans le Cd de surface
+          # Obsolete avec l activation des ondes de gravite
+f_rugoro=0
+
+          # Parametres controlant l effet de l orographie sous maille
+sso_gfrcri=0.7
+sso_gkdrag=0.6
+sso_gkwake=0.4
+sso_gklift=0.1
+
+          # Random gravity waves
+          #Activitate the stochastic parameterization of convective GWs
+          # (should be equal to ok_strato)
+ok_gwd_rando=y
+
+          # Scale the momentum fluxes due to convective GWs
+gwd_rando_ruwmax=0.5
+
+          #Scale the saturated momentum flux of  convective GWs 
+gwd_rando_sat=0.6
+
+          # Important pour controler la periode de la QBO
+gwd_front_ruwmax=3
+
+
+###############################################################
+# Rayonnement
+###############################################################
+          # activation du nouveau code de rayonnement RRTM
+          # 0 : Ancien code et 1 : RRTM (D=0)
+iflag_rrtm=1
+
+          # Nombre de bandes pour le SW. Mettre 2 si iflag_rrtm=0
+NSW=6
+
+    # Albedo et inertie des calottes
+alb_vis_sno_lic=0.96
+alb_nir_sno_lic=0.68
+    # Controle de l'inertie des glaciers et banquises
+    # inertie_sno : pour la neige (y compris sur les points "ter"
+    #      quand orchidee n'est pas actif utilisÃ©)
+    # inertie_lic/sic : pour les "land ice" et "sea ice"
+inertie_sno=350
+    # iflag_sic=1 pour forcer Ã  garder l'inertie des "sea ice"
+    # a inertie_sic meme si la surface est couverte de neige
+iflag_sic=1
+inertie_lic=2000
+inertie_sic=2000
+    # tau_gl = constante de rappel de la temperature a la surface de la glace (en nombre de jours)
+    #     # Utilise celon le forcage : tau_gl=2 pour Amip et tau_gl=1 pour Hadisst2
+tau_gl= _AUTO_ : DEFAULT = 5.
+
+          # ???
+iflag_albedo=1
+
+          # Frequence appel rayonnement. Nombre appels par jour
+nbapp_cv=48
+
+          # Pour pouvoir revenir a un bug purement informatique de duplication
+          # des constantes thermodynamiques entre LMDZ et RRTM
+          # n : FORTEMENT CONSEILLE
+ok_bad_ecmwf_thermo=n
+
+###############################################################
+# Parametres nuages
+###############################################################
+
+          #seuils de la precipitation des nuages strateformes (D: 2.6e-4 2.6e-4)
+cld_lc_lsc=0.00065
+cld_lc_con=0.00065
+
+          #constante de temps pour eleminer eau lsc et convective
+          # (D: 3600. 3600.)
+cld_tau_lsc=900
+cld_tau_con=900
+
+          #facteurs correctifs sur la vitesse de chute des cristaux de glace (D: 1 1)
+ffallv_lsc=0.8
+ffallv_con=0.8
+
+          # coefficient sur la reevaporation de la pluie (D: 2.e-5 n)
+          # regle a 3.e-5 sur des cas de cumulus en 1D
+coef_eva=0.0001
+
+          # flag pour la reevaporation de la pluie
+          # 0: rien
+          # 1: a l ancienne
+          # 2: prend en compte la surface nuageuse max au dessus pour calculer
+          #    le max de reevaporation, comme ecart a la saturation. CONSEILLE
+iflag_evap_prec=2
+
+          # Modification de la plage de temperature pour la phase mixte
+          # liquide/glace des nuages
+          # Controle par les t_glace_min/max, exposant_glace,
+          # iflag_t_glace (D=0)
+t_glace_min=243.15
+t_glace_max=273.15
+exposant_glace=0.5
+iflag_t_glace=3
+
+          # Activation de la thermodynamique de la glace
+iflag_ice_thermo=1
+
+          # normalement elle ne sert plus a rien dans fisrtilp
+          # sinon elle est un peu toxique:
+          # IF (zt(i) .LT. t_coup.and.reevap_ice) zrfln(i)=0. (Jean-Baptiste)
+reevap_ice=n
+
+          #Bergeron
+iflag_bergeron=2
+
+          # temperature dependency of qsat for iterative procedure
+          # temporary flag to switch between the old (CMIP5, D=0)
+          # and new versions (=1) versions 
+iflag_fisrtilp_qsat=4
+
+          #calcul des proprietes des nuages convectifs (D:1 0.375 1.e-4) 
+iflag_cld_th=6
+fact_cldcon=1
+
+          # ?????
+facttemps=0
+
+          #calcul eau condensee et fraction nuageuse a partir des PDF
+          # (D:0, 0:version avec ratqs sinon nouvelles PDFs)  
+iflag_pdf=1
+
+          #calcul epaisseur optique et emmissivite des nuages (D: y 1 0.01 0.3)
+ok_newmicro=y
+
+          # Controle des ratqs grande echelle
+iflag_ratqs=4
+ratqsp0=45000
+ratqsdp=10000
+ratqsbas=0.002
+ratqshaut=0.4
+
+          #rayon effectif pour les nuages de glace (D:35)
+rad_froid=35
+
+          # Rayons effectif des gouttes nuageuses
+          # ACTIF SI ok_cdnc=0 dans config.def. (D~9 a 12 microns)
+rad_chau1=12
+rad_chau2=11
+
+	  # Rayon effectif des gouttes si ok_cdnc=0
+          # Parameters in CDNC-maer link (Boucher&Lohmann 1995)
+bl95_b0=1.3
+bl95_b1=0.2
+
+          #  Choix ou non  de  New oliq               
+new_oliq=y
+
+          # Seuils oliqmax, oicemax (en g/kg).
+          # Au dela on precipite directement au sol
+oliqmax=0.0015
+oicemax=0.0015
+
+          #Rayons min et max effectifs des particules des nuages
+rei_min=16
+rei_max=61.29
+
+          # Distribution vetricale sous maille pour le schema de de nuages.
+          # 0: rien
+          # 1: Premiere version A. Jam,
+          # 2 : J. Jouhaud, parametre cloudth_vert_alpha D=0.5
+          # 3 : J. Jouhaud, parametre cloudth_vert_alpha D=0.5/C= 1.32
+          #                           cloudth_vert_alpha_th C=2:91
+iflag_cloudth_vert=3
+cloudth_vert_alpha=0.5
+cloudth_vert_alpha_th=0.5
+
+
+######################################################################
+# Convection 
+######################################################################
+
+          #Convection scheme switch
+          # (D:2, 1:LMD, 2:Tiedtke, 3:KE New Physics, 30:KE AR4)
+iflag_con=3
+
+          #output level of energy conservation diagnostics
+if_ebil=0
+
+          #maximum efficiency of cld water->precipitation conversion (D: 0.993)
+epmax=0.999
+
+          #dry convective adjustment at beginning of Emanuel convective scheme (D: n 0)
+ok_adj_ema=n
+iflag_clw=0
+
+          #Convective closure (D:1, 0:AR4, 2:ALE and ALP)
+iflag_clos=2
+
+          #Convective entrainment mixing law (D:1, 0:AR4=flat PDF, 1=PDF)
+iflag_mix=1
+
+          #weights of the bell shaped and flat PDF (used only if iflag_mix=1) (D: 1 0)
+qqa1=1
+qqa2=0
+
+          #Parameters of the bell shaped PDF; Fmax=center (D= 0.65), Gammas=width (D=0.05)
+cvl_corr=1
+
+          #Multiplicative factor of Emanuel convective scheme precipitation (D: 1.)
+Fmax=0.65
+
+          #altitude, in hPa, above LCL at which buoybase is computed,
+          # def = original: -40
+dpbase=-40
+
+          #reference fractional area of precipitating downdraughts,
+          # def = original: 0.01
+sigdz=0.003
+
+          #unsaturated fraction of precipitating downdraughts, def = original: 0.15
+spfac=0.15
+
+          #relaxation time of cloud base mass flux, def = original: 8000
+tau=8000
+
+          #flag for wb (= vert velocity at LFC);
+          # 0->wb=wbmax, 1->wb=f(plfc) bounded, 2->wb=f(plfc) linear, D=1
+          # Si iflag_wb>=10 : wbeff_min=iflag_wb*0.1
+          # wbmax : assymptotic value 
+flag_wb=50
+wbmax=2.8
+
+          # Divers tests
+ok_convstop=n
+tau_stop=15000
+ok_intermittent=n
+
+          # nouvel epluchage de C.Rio
+          #shedding coefficient (used when iflag_mix_adiab=1)
+iflag_mix_adiab=0
+coef_peel=0.25
+
+          #Conversion cld water->precip: Ep=f(pressure) if 0; Ep=f(temperature)
+          #if 1, def=1
+flag_epKEorig=1
+
+          # Case : flag_epKEorig=1
+          # elcrit : max condensed water concentration in kg/kg, D=0.0003,
+          # tlcrit : temperature in degre Celsius, at which Ep=Epmax, D=-55. (original)
+          # original: 0.0011, used only if flag_epKEorig=1
+elcrit=0.0003
+tlcrit=-55
+
+          # Case : flag_epKEorig=0
+          # pbcrit : pressure (hPa), above LCL below which Ep=0, D=150 (original)
+          # ptcrit : pressure (hPa), above LCL above which Ep=Epmax, D=500 (original)
+pbcrit=150
+ptcrit=500
+
+          # Prevent some crashes
+          # Filter out bad wakes
+flag_wk_check_trgl=n
+iflag_wk_check_trgl=2
+iflag_alp_wk_cond=1
+
+
+          # Check whether parcel level temperature and specific humidity
+          # are reasonable and demand that LCL be high enough
+cv_flag_feed=2
+
+          # save 20% CPU 
+ok_optim_yield=y
+
+          # Convective clouds
+iflag_cld_cv=0
+
+          # To get back to bug where convective output variables
+          # were set to 0 at the start of the physics
+ok_bug_cv_trac=_AUTO_: DEFAULT = n
+
+##########################################################
+# Fermeture convective et couplages
+##########################################################
+
+          # Appel separe des thermiques 
+iflag_pbl_split=10
+
+          #rendement sur la puissance fournie par les thermiques a la convection
+alp_bl_k=0.5
+
+          #Constant value to be added to Alp (D: 0.)
+alp_offset=0
+
+          #Convection must reach a level at which T<t_top_max to be active
+t_top_max=1000
+
+          ### nrlmd le 10/04/2012: Declenchement ###
+          #Declenchement par couche-limite (0: deterministe, 1: stochastique)
+iflag_trig_bl=1
+
+          #Surface critique au LCL
+s_trig=12000000
+
+          #Temps de decorrelation entre scenes de cumulus
+tau_trig_shallow=1200
+
+          #Temps de decorrelation entre scenes de cumulonimbus
+tau_trig_deep=1200
+
+          # Pour la stabilisation
+random_notrig_max=0.99
+
+          # Temperature a la quelle on fond les descentes glacees
+tmax_fonte_cv=278.15
+
+          #Fermeture par couche-limite (Nicolas Rochetin)
+          #(0: deterministe, 1: statistique, 2: statistique+convergence
+          # grande echelle)
+iflag_clos_bl=1
+
+          #coefficient in Wape->C_star formula: C_star=stark*sqrt(2*Wape),
+          # def: 0.33
+stark=0.33
+
+          #lifting efficiency of wakes; Alp=Alpk*Fip, Fip=power provided
+          # by wakes, def: 0.25
+alpk=0.25
+
+#
+##########################################################
+# Couche limite convective / modele du thermique
+##########################################################
+
+          # Convection seche (D:0, 0:ajustement sec,=>1:modele du thermique) 
+iflag_thermals=18
+
+          # pas de temps du spliting pour les thermiques
+          # TOURNE MAIS POSE PLUS DE PROBLEME QU ELLE N EN RESOUD
+nsplit_thermals=1
+
+          # tau_thermals pour avoir une constante de temps sur les thermiques.
+          # Non valide
+tau_thermals=0
+
+          # Flag controlant le detrainement et l entrainement
+iflag_thermals_ed=8
+
+          # On va chercher l air a z * ( 1+fact_thermals_ed_dz) pour calculer
+          # le detrainement (A. Jam)
+fact_thermals_ed_dz=0.07
+
+          # Une option de plus sur les thermiques.
+iflag_thermals_optflux=0
+
+          #couplage ou non avec la convection
+iflag_coupl=5
+
+          # Seuil pour desactiver les thermiques en cas de forte inversion
+          # en sommet de couche limite. Actif si iflag_thermals impair.
+seuil_inversion=-0.08
+
+          # Reactivation du calcul d un zmax continu pour les thermiques
+          # reactivation d une fermeture humide des thermiques
+          # iflag_thermals_closure=2 (D=1)
+iflag_thermals_closure=2
+
+
+##########################################################
+# Flags wakes
+##########################################################
+
+          #Wake scheme switch (D:0, 0:AR4, 1:New Physics)
+iflag_wake=1
+
+          #multiplicative factor of the damping by gravity waves, def: 4.
+coefgw=4
+
+          #wake density = number of wake centers per m2, def: 8.E-12
+          #wdens_ref=8.E-12
+wdens_ref_o=1e-09
+wdens_ref_l=8e-12
+
+          # Ajustement convectif prealable au calcul des poches
+ok_adjwk=y
+
+
+####################################################################
+#  Conservation 
+####################################################################
+          # The source terms of the TKE prognostic equation are diagnosed
+# from tendencies (du, dv, dT) 
+          # associated with subrgrid scaleamotions and treated as an 
+          # additional heat source.
+          # Controled by a key, iflag_ener_conserv (D=-1):
+          # 0 : no conservation, -1 : old adhoc correction for kinetic E only
+          # (used for CMIP5) 
+          # 1 : conservation, 101 : conversion from kinetic to heat only,
+          # 110 conversion from potential to heat only
+iflag_ener_conserv=10
+
+          #Activation of corrections for water conservation (D: n). 
+          ##The default is n for compatibility with earlier versions.
+          ##generally it should be y.
+ok_conserv_q=y
+
+fl_cor_ebil=1
+
+####################################################################
+# Ozone
+####################################################################
+          # new treatment for ozone into the tropopause
+adjust_tropopause=y
+
+####################################################################
+#  Conservation de l'eau
+#####################################################################
+          # conservation de l eau sur les calottes
+ok_lic_cond=y
+####################################################################
+
+cdnc_min=10.
+          #min cloud droplet number concentration 
+ok_bug_split_th=n
+          # correct a bug in thermal splitting
+keepbug_ice_frac=n
+          # correct convection bug
Index: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/ping_LMDZ.xml
===================================================================
--- CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/ping_LMDZ.xml	(revision 6014)
+++ CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/ping_LMDZ.xml	(revision 6296)
@@ -174,4 +174,5 @@
    <field id="CMIP6_od550so4so"    field_ref="dummy_not_provided"        /> <!-- P1 (1)  : Stratospheric Optical depth at 550 nm (sulphate only) 2D-field (here we limit the computation of OD to the stratosphere only) --> 
    <field id="CMIP6_od865dust"     field_ref="dummy_not_provided"        /> <!-- P1 (1) atmosphere_optical_thickness_due_to_dust_ambient_aerosol_particles : Optical thickness at 865 nm Dust -->
+   <field id="CMIP6_orog"          field_ref="phis" > phis / 9.80665 </field> <!-- P1 (m) surface_altitude : Surface Altitude -->
    <field id="CMIP6_parasolRefl" field_ref="parasol_refl"                /> <!-- P1 (1) toa_bidirectional_reflectance : PARASOL Reflectance -->
    <field id="CMIP6_pctisccp"      field_ref="ctpisccp"                  /> <!-- P1 (Pa) air_pressure_at_cloud_top : time-means weighted by the ISCCP Total Cloud Fraction - see  http://cfmip.metoffice.com/COSP.html -->
