Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/AA_make
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/AA_make	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/AA_make	(revision 5631)
@@ -0,0 +1,60 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#- AA_make for ORCHIDEE_OL configuration
+#- This is the portable part of the main Makefile. AA_make toghether with machine 
+#- dependent options in modipsl/util/AA_make.gdef and AA_make.ldef will form the 
+#- complete Makefile. This Makefile will only call the Makefile of ORCHIDEE.
+#- 
+#- Compile using one of the main targets.
+
+### Main targets
+#############################################################################################
+# Default method : Compiling ORCHIDEE library and offline executables with XIOS
+all : with_xios
+
+# without_xios : Compiling ORCHIDEE and IOIPSL. Do not compile or link to XIOS.
+without_xios : ioipsl driver verif
+
+# with_xios : Compiling ORCHIDEE, XIOS and IOIPSL.
+with_xios : xios ioipsl driver_xios verif
+
+
+# clean : Remove everything created during compilation including the executables
+clean :
+	(cd ../../modeles/IOIPSL/src ; ${M_K} clean ; )
+	(cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean ; )
+	(rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib ; )
+	(rm -f ../../bin/orchidee_ol ; rm -f ../../bin/teststomate ; rm -f ../../bin/forcesoil ; rm -f ../../bin/xios_server.exe ; )
+
+### Internal targets
+#############################################################################################
+# xios : Only compiling XIOS (using fcm)
+xios :
+	(cd  ../../modeles/XIOS ; ./make_xios \
+#-Q- ifort_CICLAD --netcdf_lib netcdf4_seq \
+#-Q- gfortran_CICLAD --netcdf_lib netcdf4_seq \
+--prod --arch ${FCM_ARCH} --job 8 ; cp bin/xios_server.exe ../../bin/. ; )
+
+# ioipsl : Only compiling IOIPSL (standard Makefile)
+ioipsl :
+	(cd ../../modeles/IOIPSL/src ; $(M_K) ; )
+
+# driver : Only compiling ORCHIDEE without linking to XIOS (with fcm method)
+driver :
+	(cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm        -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver ; )
+
+# driver_xios : Only compiling ORCHIDEE and linking to XIOS 1.0 (with fcm method)
+#               Note: For linking with XIOS 2.0 change -xios into -xios2
+driver_xios :
+	(cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -xios2 -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver ; )
+
+
+
+# verif : List contents in executable directory
+verif: ../../bin
+	ls -lrt ../../bin
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/AA_make.ldef
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/AA_make.ldef	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/AA_make.ldef	(revision 5631)
@@ -0,0 +1,12 @@
+#- $Id$
+#---------------------------------------------------------------------
+#- Initialisations for ORCHIDEE_OL configuration
+#---------------------------------------------------------------------
+SHELL = /bin/sh
+#---------------------------------------------------------------------
+LIBDIR = ../../lib
+BINDIR = ../../bin
+MODDIR = $(LIBDIR)
+#---------------------------------------------------------------------
+#-
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/Job_ENSEMBLE
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/Job_ENSEMBLE	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/Job_ENSEMBLE	(revision 5631)
@@ -0,0 +1,424 @@
+#!/bin/ksh
+
+# $Date: 2010/06/25 19:03:52 $
+# $Author: ssipsl $
+# $Revision: 1.13 $
+# IPSL (2006)
+#  This software is governed by the CeCILL licence see ORCHIDEE/ORCHIDEE_CeCILL.LIC
+
+#D--------------------------------------------------------------------==
+#D--------------------------------------------------------------------==
+#D-
+#D-                      Job to launch ENSEMBLE spinup simulations
+#D-
+#D--------------------------------------------------------------------==
+#D--------------------------------------------------------------------==
+#D-
+#                       Job inspired from Sonke Zaehle "site_new.def" job
+#                       #################################################
+
+if [ $# -lt 1 ] ; then
+   echo ""
+   echo "ERROR: Bad usage. You must give the name of the card as argument."
+   echo ""
+   echo "Do as follow for fluxnet simulation with fluxnet.card:"
+   echo "   ./Job_ENSEMBLE fluxnet  > out_Job_ENSEMBLE"
+   echo "Do as follow for ensemble simulation with ensemble.card:"
+   echo "   ./Job_ENSEMBLE ensemble > out_Job_ENSMEBLE"
+   echo ""
+   exit
+fi
+
+SUBMIT_DIR=$( pwd )
+MODIPSL=$(cd ${SUBMIT_DIR}'/../../..';pwd;)
+libIGCM=${MODIPSL}/libIGCM
+
+
+# All SubJobs in SPINUP in ONE OR MORE YEARS run (must be used with libIGCM branches/AllPostFred). 
+
+#D--------------------------------------------------------------------==
+#D-                   -1. User modification place
+#D--------------------------------------------------------------------==
+
+#D- Increased verbosity (1, 2, 3)
+#Verbosity=3
+
+#D-
+# --------------------------------------------------------------------
+#D- ! Optionnal features /!\ Use with care !
+# --------------------------------------------------------------------
+
+#D- Low level debug : to bypass lib test checks and stack construction
+#D- Default=true
+DEBUG_debug=false
+
+#D- Set DEBUG_sys to false to disable output calls of function
+#D- Default=true
+#DEBUG_sys=false
+
+#D- Turn in dry run mode ? (0,1,2,3)
+#D- Default=0
+#DRYRUN=3
+# YOU MUST COMPILE YOUR EXE FILES FOR DRYRUN MODE !
+# -------------------------------------------------------------------------------------
+# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest |
+# |          |  Cp/Exe param files |            |  Chmod  |                           |
+# |          |      Qsub           |            |         |                           |
+# -------------------------------------------------------------------------------------
+# |    0     |       yes           |    yes     |  yes    |      yes                  |
+# -------------------------------------------------------------------------------------
+# |    1     |       yes           |    yes     |  yes    |      no                   |
+# -------------------------------------------------------------------------------------
+# |    2     |       yes           |    yes     |  no     |      no                   |
+# -------------------------------------------------------------------------------------
+# |    3     |       yes           |    no      |  no     |      no                   |
+# -------------------------------------------------------------------------------------
+
+
+#D-
+#D--------------------------------------------------------------------==
+#D-                   0. System Environment 
+#D-                      - Define variables for Number of processors
+#D-                      - Define MPI variables
+#D-                      - Define batch scheduler variables
+#D-                      - Source IGCM Library
+#D-                      - Get RESOLution in .resol file (temporary)
+#D--------------------------------------------------------------------==
+
+#D--------------------------------------------------------------------==
+#TaskType=post-processing
+
+. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
+. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
+. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
+#-------
+. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh
+. ${libIGCM}/libIGCM_config/libIGCM_config.ksh
+. ${libIGCM}/libIGCM_comp/libIGCM_comp.ksh
+. ${libIGCM}/libIGCM_post/libIGCM_post.ksh
+#-------
+( ${DEBUG_debug} ) && IGCM_debug_Check
+( ${DEBUG_debug} ) && IGCM_card_Check
+( ${DEBUG_debug} ) && IGCM_date_Check
+
+#D--------------------------------------------------------------------==
+#D- 0.1 COMMON ENVIRONMENT
+#D-     - Read libIGCM compatibility version in config.card
+#D-     - Read UserChoices section
+#D-     - Read Ensemble section
+#D-     - Read Post section
+#D-     - Define all netcdf output directories
+#D--------------------------------------------------------------------==
+IGCM_config_CommonConfiguration ${SUBMIT_DIR}/config.card
+
+
+
+#D--------------------------------------------------------------------==
+#D- 1. INITIALIZE CONFIGURATION
+#D-    - Simulation configuration
+#D-    - Simulation parameters
+#D-    - Execution parameter
+#D-    - Define input files directory
+#D-    - Read or initialize CumulPeriod
+#D-    - run.card
+#D---------------------------------------------------------------------==
+IGCM_config_Initialize
+
+
+
+IGCM_sys_Cp -p ensemble.card ref.card
+IGCM_sys_Cp -p $1.card ensemble.card
+
+
+#set -vx
+R_BC=${R_IN}/BC
+
+IGCM_sys_MkdirWork ${RUN_DIR_PATH}
+
+. ${SUBMIT_DIR}/ensemble.ksh
+
+ENSEMBLE_initialize
+
+
+IGCM_sys_MkdirWork ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}
+
+
+function correct_duree
+{
+    # Ths function compute the nearest multiple of dyear near duree
+    typeset duree dyear
+    duree=$1
+    dyear=$2
+    if [ $(( duree % dyear )) -gt 0 ] ; then
+	echo $(( ( duree / dyear + 1 ) * dyear ))
+    else
+	echo ${duree}
+    fi
+}
+
+# Path for all skeleton SubJob scripts to SPINUP directory
+Skeleton_Path=$( cd ../SPINUP/SUBJOB/; pwd )
+
+
+for group in  ${ensemble_CONFIG_Groups[*]} ; do
+   isite=1
+   index=0
+
+   eval temp=\${ensemble_CONFIG_${group}[*]}
+   set -A group_site -- $temp
+
+   # Number of sites :
+   NumSites=$(( ${#group_site[*]} / NumInfosBySite ))
+   NumAllSites=$(( NumAllSites + NumSites ))
+
+   while [ ${isite} -le ${NumSites} ] ; do
+   
+    site=${group_site[$index]}
+
+    echo "   ------------------------"
+    echo "   SPINUP for Site : ${site}"
+
+    DATE0_YEAR=${group_site[ $(( index + ColumnYear )) ]}
+    TIME_YEAR=${group_site[ $(( index + ColumnLength )) ]}
+
+#######################################################
+# Script internal settings
+# nothing to be modified below this line
+######################################################?
+
+# Copy the SPINUP directory
+    SubJobName=${site}${config_UserChoices_JobName}
+    New_SUBMIT_DIR=${SUBMIT_DIR}/${SubJobName}
+    IGCM_sys_Cp -Rp ../SPINUP ${New_SUBMIT_DIR}
+#     ls -la ${New_SUBMIT_DIR}
+#     cat ${New_SUBMIT_DIR}/config.card
+#     echo "---"
+
+    # Install this directory
+    # modifications on config.card
+    MyJobName=${config_UserChoices_JobName}
+    IGCM_card_DefineVariableFromOption ${New_SUBMIT_DIR}/config.card UserChoices JobName
+    OldJobName=${config_UserChoices_JobName}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobName ${SubJobName}
+    config_UserChoices_JobName=${MyJobName}
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card UserChoices TagName
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices TagName ${config_UserChoices_TagName}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices CalendarType ${config_UserChoices_CalendarType}
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot ${config_UserChoices_JobNumProcTot}
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot ${config_UserChoices_JobNumProcTot}
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices SpaceName ${config_UserChoices_SpaceName}
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices ExperimentName ${config_UserChoices_ExperimentName}
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices ARCHIVE ${config_UserChoices_ARCHIVE}
+
+    # Give path for all skeleton SubJob scripts to SPINUP directory
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices SubJobPath ${Skeleton_Path}
+
+    # All SubJobs in SPINUP in one or more years (must be used with libIGCM branches/AllPostFred). 
+    # It is the length of the forcing file.
+    if [ X"${config_UserChoices_CalendarType}" = X"360d" ] ; then
+    	This_Job_DateEnd=$(( DATE0_YEAR + TIME_YEAR - 1 ))1230
+    	This_Job_HumanDateEnd=$(( DATE0_YEAR + TIME_YEAR - 1 ))-12-30
+    else
+    	This_Job_DateEnd=$(( DATE0_YEAR + TIME_YEAR - 1 ))1231
+    	This_Job_HumanDateEnd=$(( DATE0_YEAR + TIME_YEAR - 1 ))-12-31
+    fi
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices DateBegin ${DATE0_YEAR}-01-01
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices PeriodLength ${TIME_YEAR}Y
+
+    # DateEnd is defined by SpinUp job itself (it will be modified in config.card).
+    # but to get all SpinUp Job loops, we have to add at least a number of years greater
+    # than those that will be modified in config.card. Default is 150.00.00 years more for SpinUp.
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices DateEnd $(( DATE0_YEAR + 150 ))-01-01
+
+    # Infinit SPINUP Job :
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices PeriodNb 99999
+
+    # SRF section : first restart and post-treatments 
+    typeset option
+    for option in ${config_SRF[*]} ; do
+	eval value=\${config_SRF_${option}}
+	eval echo ${option} ${value}
+	if [ X${value} != X ] ; then
+	    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF ${option} \${config_SRF_${option}}
+	fi
+    done
+    if [ X"${ensemble_UserChoices_ok_stomate}" = "Xy" ] ; then
+	for option in ${config_SBG[*]} ; do
+	    eval value=\${config_SBG_${option}}
+	    eval echo ${option} ${value}
+	    if [ X${value} != X ] ; then
+		eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG ${option} \${config_SBG_${option}}
+	    fi
+	done
+    fi
+
+    # modifications on spinup.card 
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card SubJobForcingFile List "(${ensemble_CONFIG_ForcingPath}/${group_site[$(( index + ColumnFilename ))]}, forcing_file.nc)"
+
+    typeset option
+    for option in ${ensemble_UserChoices[*]} ; do
+	eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices ${option} \${ensemble_UserChoices_${option}}
+    done
+
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices DRIVER_NORESTART y
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices DRIVER_TIMELENGTH n
+
+    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices duree_nostomate $( correct_duree ${ensemble_SPINUP_duree_nostomate} ${TIME_YEAR} )
+    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices duree_inistomate $( correct_duree ${ensemble_SPINUP_duree_inistomate} ${TIME_YEAR} )
+    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices duree_offlineini $( correct_duree ${ensemble_SPINUP_duree_offlineini} ${TIME_YEAR} )
+    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices n_iter ${ensemble_SPINUP_n_iter}
+    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices duree_sechiba $( correct_duree ${ensemble_SPINUP_duree_sechiba} ${TIME_YEAR} )
+    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices duree_stomate $( correct_duree ${ensemble_SPINUP_duree_stomate} ${TIME_YEAR} )
+    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices duree_carbonsol $( correct_duree ${ensemble_SPINUP_duree_carbonsol} ${TIME_YEAR} )
+    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices duree_final $( correct_duree ${ensemble_SPINUP_duree_final} ${TIME_YEAR} )
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices BoundaryFilesListNonDel y
+
+    # TimeSeries : ALMAOUTPUT for SECHIBA
+    typeset option
+    for option in ${config_SubJobPost[*]} ; do
+	eval value=\${config_SubJobPost_${option}}
+	eval echo ${option} ${value}
+	if [ X${value} != X ] ; then
+	    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SubJobPost ${option} \${config_SubJobPost_${option}}
+	fi
+    done
+
+    # modifications on Job script
+    rm ${New_SUBMIT_DIR}/Job_${OldJobName}
+    IGCM_sys_Cp ${SUBMIT_DIR}/Job_${MyJobName} ${New_SUBMIT_DIR}/Job_${SubJobName}
+
+    sed -e "s/ ${MyJobName}/ ${SubJobName}/" \
+	-e "s/Script_Output_${MyJobName}/Script_Output_${SubJobName}/" \
+	-e "s/\(IGCM_config_Finalize\)/\1\nif\ [\ \${config_UserChoices_JobName}\ =\ \"${SubJobName}\"\ ]\nthen\nIGCM_sys_Mv\ \${R_OUT}\/\${config_UserChoices_TagName}\/\${config_UserChoices_SpaceName}\/\${config_UserChoices_ExperimentName}\/\${config_UserChoices_JobName}\ \${R_OUT}\/\${config_UserChoices_TagName}\/\${config_UserChoices_SpaceName}\/\${config_UserChoices_ExperimentName}\/${config_UserChoices_JobName}\/\nIGCM_sys_Mv\ \${R_OUT}\/\${config_UserChoices_TagName}\/\${config_UserChoices_SpaceName}\/\${config_UserChoices_ExperimentName}\/\${config_UserChoices_JobName}HIST\ \${R_OUT}\/\${config_UserChoices_TagName}\/\${config_UserChoices_SpaceName}\/\${config_UserChoices_ExperimentName}\/${config_UserChoices_JobName}\/\nfi/" \
+	${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_
+    IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName}
+    chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName}
+
+
+    # modification on parameter files
+    if [ ! -f ${SUBMIT_DIR}/PARAM/run.def ] ; then
+	echo "#ENSEMBLE add :" > ${New_SUBMIT_DIR}/PARAM/run.def
+    else
+	IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/run.def ${New_SUBMIT_DIR}/PARAM/run.def
+	echo "#ENSEMBLE add :" >> ${New_SUBMIT_DIR}/PARAM/run.def
+    fi
+    echo "" >> ${New_SUBMIT_DIR}/PARAM/run.def
+
+    eval first_option=${ensemble_SubJobParams[0]} > /dev/null 2>&1
+    if [ X${first_option} != X"Error:" ] ; then
+	IGCM_card_DefineArrayFromSection ${New_SUBMIT_DIR}/COMP/spinup.card SubJobParams
+	eval first_option=${spinup_SubJobParams[0]} > /dev/null 2>&1
+
+	typeset option option_ 
+	for option in ${ensemble_SubJobParams[*]} ; do
+	    echo "For parameter file run.def"
+	    eval echo "${option}="\${ensemble_SubJobParams_${option}}
+	    eval ORCHIDEE_grep ${option}
+	    if [ ${SearchParam} == "undefined" ] ; then
+		echo "ERROR : parameter ${option} doesn't exist in run parameter file !"
+		echo "You must correct subjobparam option in your card file or add new parameter in run.def file"
+		echo "We must STOP here."
+		exit 1
+	    fi
+	    eval param=\${ensemble_SubJobParams_${option}}
+	    eval ORCHIDEE_def ${option} $param
+	    
+	    if [ X${first_option} != X"Error:" ] ; then
+		for option_ in ${spinup_SubJobParams[*]} ; do
+		    echo "option=" ${option} " option_=" ${option_}
+		    if [ X${option} == X${option_} ] ; then
+	                eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card SubJobParams ${option} $param
+		    fi
+		done
+	    fi
+	done
+    fi
+
+    (( iphys = 0 ))
+    (( indext = index + 4 ))
+    while [ $iphys -lt ${ensemble_CONFIG_NbSitesParam} ] ; do
+	
+	# Detect if physical parameter has 
+        #  array description or line per PFT description in the parameter file
+	SearchParam=""
+	ORCHIDEE_grep ${ensemble_CONFIG_NameSitesParam[${iphys}]}
+
+	case ${SearchParam} in
+	    undefined)
+		echo "ERROR : parameter ${ensemble_CONFIG_NameSitesParam[${iphys}]} doesn't exist in run.def parameter file !"
+		echo "You must correct NameSiteParam option in your card file or add new parameter in run.def file"
+		echo "We must STOP here."
+		exit 1
+		;;
+	    value)
+		ORCHIDEE_def ${ensemble_CONFIG_NameSitesParam[${iphys}]} ${group_site[$(( indext )) ]}
+		(( indext = indext + 1 ))
+		;;
+	    line)
+		ipft=1
+		while [ $ipft -le ${NbPFTs} ] ; do
+		    if [ $ipft -lt 10 ] ; then
+			numpft=0${ipft}
+		    else
+			numpft=${ipft}
+		    fi
+	    
+		    ORCHIDEE_def ${ensemble_CONFIG_NameSitesParam[${iphys}]}__${numpft} ${group_site[$(( indext )) ]}
+		    (( indext = indext + 1 ))
+		    (( ipft = ipft + 1 ))
+		done
+		;;
+	    vector)
+		unset ValueSiteParams
+		ipft=0
+		while [ $ipft -lt ${NbPFTs} ] ; do
+		    ValueSiteParams[${ipft}]=${group_site[$(( indext )) ]}
+		    (( indext = indext + 1 ))
+		    (( ipft = ipft + 1 ))
+		done
+		ORCHIDEE_def ${ensemble_CONFIG_NameSitesParam[${iphys}]} "${ValueSiteParams[*]}"
+		;;
+	esac
+
+	(( iphys = iphys + 1 ))
+    done
+
+    IGCM_debug_Verif_Exit
+
+# Lauch the SPINUP Job :
+
+    echo "#!/bin/ksh" > ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo "MODIPSL=${MODIPSL}" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo "libIGCM=${libIGCM}" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo "cd ${New_SUBMIT_DIR}" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo "export SUBMIT_DIR=${New_SUBMIT_DIR}" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo ". ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo ". ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo "export Script_Output=out_qsub_${SubJobName}" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo "export config_UserChoices_JobName=${SubJobName}" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo "export CumulPeriod=1" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+#    echo "nohup Job_${SubJobName}" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+    echo "IGCM_sys_Qsub Job_${SubJobName}" >> ${RUN_DIR_PATH}/SubJob${site}.ksh
+
+    if [ ${DRYRUN} -le 1 ] ; then
+	chmod u+x ${RUN_DIR_PATH}/SubJob${site}.ksh
+	nohup ${RUN_DIR_PATH}/SubJob${site}.ksh 
+    fi
+
+    IGCM_debug_Verif_Exit
+
+    (( isite=isite+1 ))
+    (( index=index+NumInfosBySite ))
+done
+done 
+
+IGCM_sys_Mv ref.card ensemble.card
+IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/Job_Post_FLUXNET
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/Job_Post_FLUXNET	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/Job_Post_FLUXNET	(revision 5631)
@@ -0,0 +1,404 @@
+#!/bin/ksh
+
+# $Date: 2010/06/25 18:48:26 $
+# $Author: ssipsl $
+# $Revision: 1.5 $
+# IPSL (2006)
+#  This software is governed by the CeCILL licence see ORCHIDEE/ORCHIDEE_CeCILL.LIC
+
+#D--------------------------------------------------------------------==
+#D--------------------------------------------------------------------==
+#D-
+#D-                      Job to launch FLUXNET spinup simulations
+#D-
+#D--------------------------------------------------------------------==
+#D--------------------------------------------------------------------==
+#D-
+#                       Job inspired from SÃ¶nke Zaehle "site_new.def" job
+#                       #################################################
+
+if [ $# -lt 1 ] ; then
+   echo ""
+   echo "ERROR: Bad usage. You must give the name of the card as argument."
+   echo "Note that this script is only supposed to be used with fluxnet simulation."
+   echo "Do as follow for fluxnet simulation with fluxnet.card:"
+   echo "   ./Job_Post_FLUXNET fluxnet  > out_Job_Post_FLUXNET 2>&1" 
+   echo ""
+   exit
+fi
+
+
+
+SUBMIT_DIR=$( pwd )
+MODIPSL=$(cd ${SUBMIT_DIR}'/../../..';pwd;)
+libIGCM=${MODIPSL}/libIGCM
+
+
+
+# CleanSmallFiles : option to remove small output files before saving
+CleanSmallFiles=yes
+export CleanSmallFiles
+
+# All SubJobs in SPINUP in ONE OR MORE YEARS run (must be used with libIGCM branches/AllPostFred). 
+
+
+
+#D--------------------------------------------------------------------==
+#D-                   -1. User modification place
+#D--------------------------------------------------------------------==
+
+#D- Increased verbosity (1, 2, 3)
+#Verbosity=3
+
+#D-
+# --------------------------------------------------------------------
+#D- ! Optionnal features /!\ Use with care !
+# --------------------------------------------------------------------
+
+#D- Low level debug : to bypass lib test checks and stack construction
+#D- Default=true
+DEBUG_debug=false
+
+#D- Set DEBUG_sys to false to disable output calls of function
+#D- Default=true
+#DEBUG_sys=false
+
+#D- Turn in dry run mode ? (0,1,2,3)
+#D- Default=0
+#DRYRUN=3
+# YOU MUST COMPILE YOUR EXE FILES FOR DRYRUN MODE !
+# -------------------------------------------------------------------------------------
+# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest |
+# |          |  Cp/Exe param files |            |  Chmod  |                           |
+# |          |      Qsub           |            |         |                           |
+# -------------------------------------------------------------------------------------
+# |    0     |       yes           |    yes     |  yes    |      yes                  |
+# -------------------------------------------------------------------------------------
+# |    1     |       yes           |    yes     |  yes    |      no                   |
+# -------------------------------------------------------------------------------------
+# |    2     |       yes           |    yes     |  no     |      no                   |
+# -------------------------------------------------------------------------------------
+# |    3     |       yes           |    no      |  no     |      no                   |
+# -------------------------------------------------------------------------------------
+
+
+#D-
+#D--------------------------------------------------------------------==
+#D-                   0. System Environment 
+#D-                      - Define variables for Number of processors
+#D-                      - Define MPI variables
+#D-                      - Define batch scheduler variables
+#D-                      - Source IGCM Library
+#D-                      - Get RESOLution in .resol file (temporary)
+#D--------------------------------------------------------------------==
+
+#D--------------------------------------------------------------------==
+. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
+. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
+. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
+#-------
+. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh
+. ${libIGCM}/libIGCM_config/libIGCM_config.ksh
+. ${libIGCM}/libIGCM_comp/libIGCM_comp.ksh
+. ${libIGCM}/libIGCM_post/libIGCM_post.ksh
+#-------
+( ${DEBUG_debug} ) && IGCM_debug_Check
+( ${DEBUG_debug} ) && IGCM_card_Check
+( ${DEBUG_debug} ) && IGCM_date_Check
+
+#D--------------------------------------------------------------------==
+#D- 0.1 COMMON ENVIRONMENT
+#D-     - Read libIGCM compatibility version in config.card
+#D-     - Read UserChoices section
+#D-     - Read Ensemble section
+#D-     - Read Post section
+#D-     - Define all netcdf output directories
+#D--------------------------------------------------------------------==
+IGCM_config_CommonConfiguration ${SUBMIT_DIR}/config.card
+
+#D--------------------------------------------------------------------==
+#D- 1. INITIALIZE CONFIGURATION
+#D-    - Simulation configuration
+#D-    - Simulation parameters
+#D-    - Execution parameter
+#D-    - Define input files directory
+#D-    - Read or initialize CumulPeriod
+#D-    - run.card
+#D---------------------------------------------------------------------==
+IGCM_config_Initialize
+
+
+IGCM_sys_Cp -p ensemble.card ref.card
+IGCM_sys_Cp -p $1.card ensemble.card
+
+IGCM_sys_Rm -f ${SUBMIT_DIR}/liste_glost.list
+IGCM_sys_Rm -f ${SUBMIT_DIR}/job_output_
+
+
+#set -vx
+R_BC=${R_IN}/BC
+
+. ${SUBMIT_DIR}/ensemble.ksh
+
+ENSEMBLE_initialize
+
+# Launch ATLAS syncho : we have to wait for the last job !
+
+# ATLAS fix parameters :
+# Atlas Name : 
+AtlasCfg=${ensemble_SPINUP_AtlasCfg}
+#atlas_FLUXNET.cfg
+
+# observation_file
+observation_file_path=${ensemble_SPINUP_observation_base_path}/'${Site}_${FYEAR}-${LYEAR}.nc'
+
+
+# old history file
+
+reference_base_path=${ensemble_SPINUP_reference_base_path}
+if [ X${reference_base_path} == X"" ] || [ X${reference_base_path} == XNONE ] ; then
+    flag_reference=0
+    reference_config="_"
+    reference_file_path=NONE
+else
+    flag_reference=1
+    reference_config=${ensemble_SPINUP_reference_config}
+    reference_file_path=${reference_base_path}/${reference_config}/'${Site}${reference_config}HIST/SRF/Output/MO/${Site}${reference_config}HIST_${FYEAR}0101_${LYEAR}1231_1M_sechiba_history.nc'
+
+fi
+export reference_config
+
+
+
+# Modulo for SpinUp years
+Modulo=${ensemble_SPINUP_Modulo}
+
+
+
+# Create RUN_DIR
+echo RUN_DIR_PATH=${RUN_DIR_PATH}
+IGCM_sys_MkdirWork ${RUN_DIR_PATH}
+cp *jnl ${RUN_DIR_PATH}/.
+cp *cfg ${RUN_DIR_PATH}/.  
+cd ${RUN_DIR_PATH}
+
+
+echo  ${ensemble_CONFIG_Groups[*]}
+for group in  ${ensemble_CONFIG_Groups[*]} ; do
+   isite=1
+   index=0
+
+   eval temp=\${ensemble_CONFIG_${group}[*]}
+   set -A group_site -- $temp
+
+   # Number of sites :
+   NumSites=$(( ${#group_site[*]} / NumInfosBySite ))
+
+   R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}
+
+   IGCM_sys_Rm -Rf ${R_SAVE}/fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group}
+   IGCM_sys_Mkdir ${R_SAVE}/fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group}
+
+   while [ ${isite} -le ${NumSites} ] ; do
+   
+       site=${group_site[$index]}
+       echo $site
+   
+       TIME_YEAR=${group_site[ $(( index + ColumnLength )) ]}
+       YEAR=${group_site[ $(( index + ColumnYear )) ]}
+   
+       Site=$site
+       echo $YEAR
+       DUREE=${TIME_YEAR}
+       FYEAR=${YEAR}
+       (( LYEAR=FYEAR+DUREE-1 ))
+       echo $site
+       SpinUpJob=${site}${config_UserChoices_JobName}
+       TIME_YEAR=${group_site[ $(( index + ColumnLength )) ]}
+       YEAR=${group_site[ $(( index + ColumnYear )) ]}
+   
+       
+       fichier_with_path=$( \ls -rt ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}/${SpinUpJob}HIST/SRF/Output/MO/*_sechiba_history.nc )
+
+
+
+       eval observation_file=${observation_file_path}
+       eval reference_file=${reference_file_path}
+
+       echo "reference_config=" ${reference_config}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl GPP GPP/1800 hour ${flag_reference} GPP ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl GPP GPP/1800 day ${flag_reference} GPP ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl GPP GPP/1800 month ${flag_reference} GPP ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl GPP GPP/1800 year ${flag_reference} GPP ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+
+       ferret -script taylor_arrow_fluxnet_final_1.jnl \(maint_resp+hetero_resp+growth_resp\) Reco/1800 hour ${flag_reference} TER ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl \(maint_resp+hetero_resp+growth_resp\) Reco/1800 day ${flag_reference} TER ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl \(maint_resp+hetero_resp+growth_resp\) Reco/1800 month ${flag_reference} TER ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl \(maint_resp+hetero_resp+growth_resp\) Reco/1800 year ${flag_reference} TER ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+
+       ferret -script taylor_arrow_fluxnet_final_1.jnl NEE NEE/1800 hour ${flag_reference} NEE ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl NEE NEE/1800 day ${flag_reference} NEE ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl NEE NEE/1800 month ${flag_reference} NEE ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl NEE NEE/1800 year ${flag_reference} NEE ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+
+       ferret -script taylor_arrow_fluxnet_final_1.jnl Qh H_F hour ${flag_reference} SH ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl Qh H_F day ${flag_reference} SH ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl Qh H_F month ${flag_reference} SH ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl Qh H_F year ${flag_reference} SH ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+
+       ferret -script taylor_arrow_fluxnet_final_1.jnl Qle LE_F hour ${flag_reference} LH ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl Qle LE_F day ${flag_reference} LH ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl Qle LE_F month ${flag_reference} LH ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+       ferret -script taylor_arrow_fluxnet_final_1.jnl Qle LE_F year ${flag_reference} LH ${config_UserChoices_JobName} ${reference_config} ${group} ${site} ${fichier_with_path} ${observation_file} ${reference_file}
+
+
+       # We test if the END step was moved in SpinUp/SPIN/Output directory.
+       # Then we are sure the last historical SpinUp step has finished (HIST)...
+   
+       # Define name of the END SubJob (FIN) in SpinUp
+       if [ ${ensemble_SPINUP_duree_final} -gt 0 ] ; then
+   	BeforeLastJob=${site}${config_UserChoices_JobName}FIN
+       else
+   	echo "We must have an \"duree_final\" non zero to get historical run and post-treatment"
+   	exit 1
+       fi
+   
+       TIME_YEAR=${group_site[ $(( index + ColumnLength )) ]}
+       YEAR=${group_site[ $(( index + ColumnYear )) ]}
+
+       ATLAS_ARGS=${AtlasCfg}\ ${observation_file}\ ${reference_file}\ ${reference_config}\ ${Modulo}
+       
+       echo "ATLAS_ARGS:" ${ATLAS_ARGS}
+
+   
+       # Launch post-treatment for SPINUP !
+       echo "****"
+       echo "Launch post-treatment for SPINUP for site ${site} !"
+       echo  "call to post_FLUXNET:" ${MODIPSL} ${group} ${site} ${TIME_YEAR} ${YEAR} ${ATLAS_ARGS}
+#       nohup ${SUBMIT_DIR}/post_FLUXNET ${MODIPSL} ${group} ${site} ${TIME_YEAR} ${YEAR} ${ATLAS_ARGS} > ${SUBMIT_DIR}/out_post_${site} 2>&1 & 
+       echo ${SUBMIT_DIR}/post_FLUXNET ${MODIPSL} ${group} ${site} ${ATLAS_ARGS} \> ${SUBMIT_DIR}/out_post_${site} >> ${SUBMIT_DIR}/liste_glost.list
+       echo "****"
+   
+      (( isite=isite+1 ))
+      (( index=index+NumInfosBySite ))
+  done
+  
+       
+
+  if [ ${#ensemble_CONFIG_Groups[*]} -ne 1 ] ; then
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_GPP_hour.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_GPP_hour.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_GPP_day.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_GPP_day.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_GPP_month.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_GPP_month.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_GPP_year.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_GPP_year.csv
+   
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_TER_hour.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_TER_hour.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_TER_day.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_TER_day.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_TER_month.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_TER_month.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_TER_year.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_TER_year.csv
+   
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_NEE_hour.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_NEE_hour.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_NEE_day.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_NEE_day.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_NEE_month.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_NEE_month.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_NEE_year.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_NEE_year.csv
+   
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_SH_hour.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_SH_hour.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_SH_day.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_SH_day.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_SH_month.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_SH_month.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_SH_year.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_SH_year.csv
+   
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_LH_hour.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_LH_hour.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_LH_day.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_LH_day.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_LH_month.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_LH_month.csv
+     cat stat_${config_UserChoices_JobName}_${reference_config}_${group}_LH_year.csv >> stat_${config_UserChoices_JobName}_${reference_config}_ALL_LH_year.csv
+   
+  fi
+
+
+  sed -e "s,\(flag_reference_file=\)\(.*\),\1${flag_reference},g" -e "s,\(group=\)\(.*\),\1\"${group}\",g" -e "s,\(config_eval=\)\(.*\),\1\"${config_UserChoices_JobName}\",g" -e "s,\(config_ref=\)\(.*\),\1\"${reference_config}\",g" atlas_FLUXNET_taylor.cfg > atlas_FLUXNET_taylor_${group}.cfg
+   
+   atlas -o fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group} atlas_FLUXNET_taylor_${group}.cfg toto
+
+   # Remove small files before saving
+   if [ X$CleanSmallFiles = Xyes ] ; then
+     tmpdir=fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group}
+     # Remove .info .tex .jnl .stdout .jpg .pdf 
+     echo "Remove small files before saving : "
+     sumfilestoremove=$(( $( find $tmpdir -name "*.info" | wc -l ) +  $( find $tmpdir -name "*.jnl" | wc -l ) +  $( find $tmpdir -name "*.stdout" | wc -l ) + $( find $tmpdir -name "*.tex" | wc -l ) + $( ls $tmpdir/*.pdf | wc -l ) ))
+     echo "Following $sumfilestoremove files listed below will be removed:"
+     find ${tmpdir} -name "*.info"
+     find ${tmpdir} -name "*.jnl"
+     find ${tmpdir} -name "*.stdout"
+     find ${tmpdir} -name "*.tex"
+     ls ${tmpdir}/*pdf ${tmpdir}/*/*pdf
+
+     # Now remove them
+     find ${tmpdir} -name "*.info" -print -exec rm -f '{}' \;
+     find ${tmpdir} -name "*.jnl" -print -exec rm -f '{}' \;
+     find ${tmpdir} -name "*.stdout" -print -exec rm -f '{}' \;
+     find ${tmpdir} -name "*.tex" -print -exec rm -f '{}' \;
+#     rm -f ${tmpdir}/*/*pdf
+   else
+     echo "No clean of small files will be done"
+   fi
+
+   # Save files
+   R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}
+   echo "Before IGCM_sys_Put_Dir : destination= ${R_SAVE}"
+
+   IGCM_sys_Put_Dir fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group} ${R_SAVE}
+   IGCM_sys_Rm -Rf fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group}
+
+
+done
+
+nlignes=`less ${SUBMIT_DIR}/liste_glost.list | wc -l `
+nproc=`echo "$nlignes/4+1" | bc`
+sed -e "s/#MSUB\ \-n.*/#MSUB\ \-n\ ${nproc}/" ${SUBMIT_DIR}/job_output > ${SUBMIT_DIR}/job_output_
+echo ccc_mprun ./glost_launch ${SUBMIT_DIR}/liste_glost.list >> ${SUBMIT_DIR}/job_output_ 
+ccc_msub ${SUBMIT_DIR}/job_output_
+
+
+
+if [ ${#ensemble_CONFIG_Groups[*]} -ne 1 ] ; then
+   group="ALL"
+   IGCM_sys_Rm -Rf ${R_SAVE}/fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group}
+   
+   sed -e "s,\(flag_reference_file=\)\(.*\),\1${flag_reference},g" -e "s,\(group=\)\(.*\),\1\"${group}\",g" -e "s,\(config_eval=\)\(.*\),\1\"${config_UserChoices_JobName}\",g" -e "s,\(config_ref=\)\(.*\),\1\"${reference_config}\",g" atlas_FLUXNET_taylor.cfg > atlas_FLUXNET_taylor_${group}.cfg
+   
+   atlas -o fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group} atlas_FLUXNET_taylor_${group}.cfg toto
+  
+
+   # Remove small files before saving
+   if [ X$CleanSmallFiles = Xyes ] ; then
+     tmpdir=fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group}
+     # Remove .info .tex .jnl .stdout .jpg .pdf 
+     echo "Remove small files before saving : "
+     sumfilestoremove=$(( $( find $tmpdir -name "*.info" | wc -l ) +  $( find $tmpdir -name "*.jnl" | wc -l ) +  $( find $tmpdir -name "*.stdout" | wc -l ) + $( find $tmpdir -name "*.tex" | wc -l ) + $( ls $tmpdir/*.pdf | wc -l ) ))
+     echo "Following $sumfilestoremove files listed below will be removed:"
+     find ${tmpdir} -name "*.info"
+     find ${tmpdir} -name "*.jnl"
+     find ${tmpdir} -name "*.stdout"
+#     find ${tmpdir} -name "*.jpg"
+     find ${tmpdir} -name "*.tex"
+     ls ${tmpdir}/*pdf
+
+     # Now remove them
+#     find ${tmpdir} -name "*.info" -print -exec rm -f '{}' \;
+#     find ${tmpdir} -name "*.jnl" -print -exec rm -f '{}' \;
+#     find ${tmpdir} -name "*.stdout" -print -exec rm -f '{}' \;
+##     find ${tmpdir} -name "*.jpg" -print -exec rm -f '{}' \;
+#     find ${tmpdir} -name "*.tex" -print -exec rm -f '{}' \;
+#     rm -f ${tmpdir}/*/*pdf
+   else
+     echo "No clean of small files will be done"
+   fi
+
+   # Save files
+   R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}
+   IGCM_sys_Put_Dir fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group} ${R_SAVE}
+   IGCM_sys_Rm -Rf fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${group}
+fi
+
+cd ${SUBMIT_DIR}
+IGCM_sys_Mv ref.card ensemble.card
+IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/ORCHIDEE_3dif.jnl
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/ORCHIDEE_3dif.jnl	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/ORCHIDEE_3dif.jnl	(revision 5631)
@@ -0,0 +1,112 @@
+def sym thetitle=($01)
+let thetitle="($01)"
+def sym file1=($02)
+def sym file2=($03)
+def sym file3=($04)
+
+let var_obs_init=($05)
+let var_obs=var_obs_init[g=my_time_counter@asn]
+
+let var_model_init=($06)
+
+
+let var_model_Year=var_model[gt=yearly@ave]
+let var_model_Month=var_model[gt=monthly@ave]
+let var_model_Day=var_model[gt=daily@ave]
+let var_model_Hour=var_model[gt=hourly@ave]
+
+
+let var_obs_year=var_obs[gt=yearly@ave]
+let var_obs_month=var_obs[gt=monthly@ave]
+let var_obs_day=var_obs[gt=daily@ave]
+let var_obs_hour=var_obs[gt=hourly@ave]
+
+
+
+use "($file1)"
+go symbol_basename_and_define basefile1 "($file1)"
+!-----------
+
+use "($file2)"
+go symbol_basename_and_define basefile2 "($file2)"
+!-----------
+
+use "($file3)"
+go symbol_basename_and_define basefile3 "($file3)"
+
+
+
+define grid/like=var_model_init[d=($basefile2),k=1] my_time_counter 
+let var_model=if var_obs[d=($basefile1)] NE -9999. then var_model_init[g=my_time_counter@asn] else (-1e34) 
+let mytime=t[gt=my_time_counter] 
+let first_year= `tax_datestring(mytime[l=@min],mytime,"years")`
+let last_year= `tax_datestring(mytime[l=@max],mytime,"years")` 
+define axis/t="1-JAN-`first_year` 00:00":"1-JAN-`last_year+1` 00:00":1/units=hour/cal=gregorian/edges hourly
+define axis/t="1-JAN-`first_year` 00:00":"1-JAN-`last_year+1` 00:00":1/units=day/cal=gregorian/edges daily
+go def_monthaxis_days.jnl gregorian first_year last_year monthly
+let nbyears=last_year-first_year+1
+let indices_year = L[L=1:`1+nbyears`]
+let year = first_year + INT((indices_year-1))
+define axis/units="days"/T0="01-JAN-`first_year`"/edges/cal="GREGORIAN" yearly = DAYS1900(year,1,1)-DAYS1900(`first_year`,1,1)
+
+
+
+
+
+!************************************************************
+
+go page_new -i 1 2 0 100 0 90
+
+set v 1
+go margins_set 20 20 15 15
+
+DEFINE VIEWPORT/XLIM=0,1/YLIM= .3,1 V1
+set VIEWPORT V1
+************************************************************
+def sym ssbx=($09%1%)
+
+!--------------------
+let obs=var_obs_($07)[d=($basefile1),l=@sbx:($ssbx)]
+let myunit="($08)"
+set variable/units="`myunit`"/title="`thetitle`" obs
+!-----------
+let tag=(var_model_($07)[k=@sum,d=($basefile2),l=@sbx:($ssbx)])
+!-----------
+let new=(var_model_($07)[k=@sum,d=($basefile3),l=@sbx:($ssbx)])
+
+!---------------------
+go 3winsize.jnl obs tag new
+
+plot/grat=(dash,color=black)/line=1/title=""/set_up/vlimit=`min`:`max` obs
+go unlabels 1 8
+ppl TXTYPE,YR,MON 
+ppl TXLINT,1,1
+ppl plot
+plot/line=2/nolab/over tag 
+plot/line=3/nolab/over new
+
+!---------------------
+let diff1=tag-obs
+set variable/units="`myunit`"/title="`thetitle`" diff1
+let diff2=new-obs
+go 3winsize.jnl diff1 diff2 diff2
+
+DEFINE VIEWPORT/XLIM=0,1/YLIM=0,.35 V2
+set VIEWPORT V2
+plot/grat=(dash,color=black)/line=2/title=""/set_up/vlimit=`min`:`max` diff1
+go unlabels 1 8
+ppl TXTYPE,YR,MON 
+ppl TXLINT,1,1
+ppl plot 
+plot/line=3/nolab/over diff2
+
+!--------------------
+go textlayer_new
+go text_legend_put 10 25 34 " @AS($basefile1)" 1 
+go text_legend_put 10 25 32 " @AS($basefile2)" 2
+go text_legend_put 10 25 30 " @AS($basefile3)" 3 
+go textlayer_text_put 50 95 "@AS($thetitle)" 0 0.5
+go logo_put ipsl
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/PARAM/orchidee.default
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/PARAM/orchidee.default	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/PARAM/orchidee.default	(revision 5631)
@@ -0,0 +1,1640 @@
+#
+#
+#  WARNING !!! 
+#  DO NOT MODIFY THIS FILE.
+#  THIS FILE IS ONLY PROVIDING INFORMATION ABOUT DEFAULT PARAMETER SETTINGS IN ORCHIDEE. 
+#
+#*******************************************************************************************
+#                    Namelist for ORCHIDEE (trunk revision 2480) 
+#*******************************************************************************************
+#
+#  For more details, see : http://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/OrchideeParameters 
+#
+#  Note : [m] : meters; [K] : Kelvin degrees; [C] : Celsius degrees
+#
+
+#*******************************************************************************************
+#          ORCHIDEE driver parameters (read in Off-line mode only) 
+#*******************************************************************************************
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# SPLIT_DT ([-]) :  splits the timestep imposed by the forcing 	{NOT(WEATHERGEN)}
+SPLIT_DT =  12 
+
+# RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions 	{[-]}
+RESTART_FILEIN =  NONE 
+
+# RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by the driver 	{[-]}
+RESTART_FILEOUT =  driver_rest_out.nc 
+
+# DRIVER_reset_time ([FLAG]) :  Overwrite time values from the driver restart file 	{[-]}
+DRIVER_reset_time =  n 
+
+# TIME_SKIP ([seconds, days, months, years]) :  Time in the forcing file at which the model is started. 	{[-]}
+TIME_SKIP =  0 
+
+# TIME_LENGTH ([seconds, days, months, years]) :  Length of the integration in time. 	{[-]}
+TIME_LENGTH =  DEF 
+
+# RELAXATION ([FLAG]) :  method of forcing 	{[-]}
+RELAXATION =  n 
+
+# RELAX_A ([days?]) :  Time constant of the relaxation layer 	{RELAXATION}
+RELAX_A =  1.0 
+
+# NO_INTER  ([FLAG]) :  No interpolation IF split is larger than 1 	{[-]}
+NO_INTER  =  y 
+
+# INTER_LIN ([FLAG]) :  Interpolation IF split is larger than 1 	{[-]}
+INTER_LIN =  n 
+
+# SPRED_PREC ([-]) :  Spread the precipitation. 	{[-]}
+SPRED_PREC =  1 
+
+# NETRAD_CONS ([FLAG]) :  Conserve net radiation in the forcing 	{INTER_LIN}
+NETRAD_CONS =  y 
+
+# ATM_CO2 ([ppm]) :  Value for atm CO2 	{[-]}
+ATM_CO2 =  350. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{[-]}
+ALLOW_WEATHERGEN =  n 
+
+# DT_WEATHGEN ([seconds]) :  Calling frequency of weather generator 	{ALLOW_WEATHERGEN}
+DT_WEATHGEN =  1800. 
+
+# LIMIT_WEST ([Degrees] ) :  Western limit of region 	{[-]}
+LIMIT_WEST =  -180. 
+
+# LIMIT_EAST ([Degrees] ) :  Eastern limit of region 	{[-]}
+LIMIT_EAST =  180. 
+
+# LIMIT_NORTH ([Degrees]) :  Northern limit of region 	{[-]}
+LIMIT_NORTH =  90. 
+
+# LIMIT_SOUTH ([Degrees]) :  Southern limit of region 	{[-]}
+LIMIT_SOUTH =  -90. 
+
+# MERID_RES ([Degrees]) :  North-South Resolution 	{ALLOW_WEATHERGEN}
+MERID_RES =  2. 
+
+# ZONAL_RES ([Degrees] ) :  East-West Resolution 	{ALLOW_WEATHERGEN}
+ZONAL_RES =  2. 
+
+# NBUFF (-) :  Number of time steps of data to buffer between each reading of the forcing file 	{OFF_LINE}
+NBUFF =  1 
+
+# IPPREC ([-] ) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+IPPREC =  0 
+
+# WEATHGEN_PRECIP_EXACT ([FLAG]) :  Exact monthly precipitation 	{ALLOW_WEATHERGEN}
+WEATHGEN_PRECIP_EXACT =  n 
+
+# DUMP_WEATHER ([FLAG]) :  Write weather from generator into a forcing file 	{ALLOW_WEATHERGEN  }
+DUMP_WEATHER =  n 
+
+# DUMP_WEATHER_FILE ([FILE]) :  Name of the file that contains the weather from generator 	{DUMP_WEATHER}
+DUMP_WEATHER_FILE =  weather_dump.nc 
+
+# DUMP_WEATHER_GATHERED ([FLAG]) :  Dump weather data on gathered grid 	{DUMP_WEATHER}
+DUMP_WEATHER_GATHERED =  y 
+
+# HEIGHT_LEV1 ([m]) :   	{DUMP_WEATHER}
+HEIGHT_LEV1 =  10. 
+
+#*******************************************************************************************
+#          ORCHIDEE parameters  
+#*******************************************************************************************
+
+# FORCE_CO2_VEG ([FLAG]) :  Flag to force the value of atmospheric CO2 for vegetation. 	{Only in coupled mode}
+FORCE_CO2_VEG =  FALSE 
+
+# ATM_CO2 ([ppm]) :  Value for atm CO2  	{FORCE_CO2_VEG (only in coupled mode)}
+ATM_CO2 =  350. 
+
+# CHECKTIME ([FLAG]) :  ORCHIDEE will print messages on time 	{OK_SECHIBA}
+CHECKTIME =  n 
+
+# SOILTYPE_CLASSIF ([-]) :  Type of classification used for the map of soil types  	{!IMPOSE_VEG}
+SOILTYPE_CLASSIF =  zobler 
+
+# ORCHIDEE_WATCHOUT ([FLAG]) :  ORCHIDEE will write out its forcing to a file 	{}
+ORCHIDEE_WATCHOUT =  n 
+
+# DT_WATCHOUT ([seconds]) :  ORCHIDEE will write out with this frequency 	{ORCHIDEE_WATCHOUT}
+DT_WATCHOUT =  dt 
+
+# WATCHOUT_FILE ([FILE]) :  Filenane for the ORCHIDEE forcing file 	{ORCHIDEE_WATCHOUT}
+WATCHOUT_FILE =  orchidee_watchout.nc 
+
+# RIVER_ROUTING ([FLAG]) :  Decides if we route the water or not 	{OK_SECHIBA}
+RIVER_ROUTING =  n 
+
+# HYDROL_CWRR ([FLAG]) :  Allows to switch on the multilayer hydrology of CWRR 	{OK_SECHIBA}
+HYDROL_CWRR =  n 
+
+# HYDROL_SOIL_DEPTH ([m]) :  Total depth of soil reservoir 	{OK_SECHIBA }
+HYDROL_SOIL_DEPTH =  4./ 2. (if HYDROL_CWRR) 
+
+# DO_IRRIGATION ([FLAG]) :  Should we compute an irrigation flux  	{RIVER_ROUTING }
+DO_IRRIGATION =  n 
+
+# DO_FLOODPLAINS ([FLAG]  ) :  Should we include floodplains  	{RIVER_ROUTING }
+DO_FLOODPLAINS =  n 
+
+# CHECK_WATERBAL ([FLAG]  ) :  Should we check the global water balance  	{OK_SECHIBA}
+CHECK_WATERBAL =  n 
+
+# OK_EXPLICITSNOW ([FLAG]) :  Activate explict snow scheme 	{OK_SECHIBA}
+OK_EXPLICITSNOW =  FALSE 
+
+# STOMATE_OK_CO2 ([FLAG]) :  Activate CO2? 	{OK_SECHIBA }
+STOMATE_OK_CO2 =  n 
+
+# STOMATE_OK_STOMATE ([FLAG]) :  Activate STOMATE? 	{OK_SECHIBA and OK_CO2}
+STOMATE_OK_STOMATE =  n 
+
+# STOMATE_OK_DGVM ([FLAG]) :  Activate DGVM? 	{OK_STOMATE}
+STOMATE_OK_DGVM =  n 
+
+# DIFFUCO_OK_INCA ([FLAG]) :  Activate DIFFUCO_INCA? 	{OK_SECHIBA}
+DIFFUCO_OK_INCA =  n 
+
+# LEAFAGE_OK_INCA ([FLAG]) :  Activate LEAFAGE? 	{DIFFUCO_OK_INCA}
+LEAFAGE_OK_INCA =  n 
+
+# CANOPY_EXTINCTION  ([FLAG]) :  Use canopy radiative transfer model? 	{DIFFUCO_OK_INCA }
+CANOPY_EXTINCTION  =  n 
+
+# CANOPY_MULTILAYER ([FLAG]) :  Use canopy radiative transfer model with multi-layers 	{CANOPY_EXTINCTION }
+CANOPY_MULTILAYER =  n 
+
+# NOx_RAIN_PULSE ([FLAG]) :  Calculate NOx emissions with pulse? 	{DIFFUCO_OK_INCA }
+NOx_RAIN_PULSE =  n 
+
+# NOx_BBG_FERTIL ([FLAG]) :  Calculate NOx emissions with bbg fertilizing effect? 	{DIFFUCO_OK_INCA }
+NOx_BBG_FERTIL =  n 
+
+# NOx_FERTILIZERS_USE ([FLAG] ) :  Calculate NOx emissions with fertilizers use? 	{DIFFUCO_OK_INCA }
+NOx_FERTILIZERS_USE =  n 
+
+# STOMATE_WATCHOUT ([FLAG]) :  STOMATE does minimum service 	{OK_SECHIBA }
+STOMATE_WATCHOUT =  n 
+
+# NVM ([-]) :  number of PFTs   	{OK_SECHIBA or OK_STOMATE}
+NVM =  13 
+
+# IMPOSE_PARAM ([FLAG]) :  Do you impose the values of the parameters? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_PARAM =  y 
+
+# SECHIBA_restart_in ([FILE]) :  Name of restart to READ for initial conditions 	{OK_SECHIBA }
+SECHIBA_restart_in =  NONE 
+
+# SECHIBA_rest_out ([FILE]) :  Name of restart files to be created by SECHIBA 	{OK_SECHIBA}
+SECHIBA_rest_out =  sechiba_rest_out.nc 
+
+# SECHIBA_reset_time ([FLAG]) :  Override the time from the restart files for SECHIBA and STOMATE 	{OK_SECHIBA}
+SECHIBA_reset_time =  y 
+
+# STOMATE_RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions of STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEIN =  NONE 
+
+# STOMATE_RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEOUT =  stomate_rest_out.nc 
+
+# ALMA_OUTPUT ([FLAG]) :  Should the output follow the ALMA convention 	{OK_SECHIBA}
+ALMA_OUTPUT =  n 
+
+# OUTPUT_FILE ([FILE]) :  Name of file in which the output is going to be written 	{OK_SECHIBA}
+OUTPUT_FILE =  sechiba_history.nc 
+
+# WRITE_STEP ([seconds]) :  Frequency in seconds at which to WRITE output 	{OK_SECHIBA}
+WRITE_STEP =  86400. 
+
+# SECHIBA_HISTLEVEL ([-]) :  SECHIBA history output level (0..10) 	{OK_SECHIBA and HF}
+SECHIBA_HISTLEVEL =  5 
+
+# SECHIBA_HISTFILE2 ([FLAG]) :  Flag to switch on histfile 2 for SECHIBA (hi-frequency ?) 	{OK_SECHIBA}
+SECHIBA_HISTFILE2 =  n 
+
+# WRITE_STEP2 ([seconds]) :  Frequency in seconds at which to WRITE output 	{SECHIBA_HISTFILE2}
+WRITE_STEP2 =  1800.0 
+
+# SECHIBA_OUTPUT_FILE2 ([FILE]) :  Name of file in which the output number 2 is going to be written 	{SECHIBA_HISTFILE2}
+SECHIBA_OUTPUT_FILE2 =  sechiba_out_2.nc 
+
+# SECHIBA_HISTLEVEL2 ([-] ) :  SECHIBA history 2 output level (0..10) 	{SECHIBA_HISTFILE2}
+SECHIBA_HISTLEVEL2 =  1 
+
+# STOMATE_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_OUTPUT_FILE =  stomate_history.nc 
+
+# STOMATE_HIST_DT ([days]) :  STOMATE history time step 	{OK_STOMATE}
+STOMATE_HIST_DT =  10. 
+
+# STOMATE_IPCC_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_IPCC_OUTPUT_FILE =  stomate_ipcc_history.nc 
+
+# STOMATE_IPCC_HIST_DT ([days]) :  STOMATE IPCC history time step 	{OK_STOMATE}
+STOMATE_IPCC_HIST_DT =  0. 
+
+# OK_HISTSYNC ([FLAG]) :  Syncronize and write IOIPSL output files at each time step 	{}
+OK_HISTSYNC =  FALSE 
+
+# STOMATE_HISTLEVEL ([-]) :  STOMATE history output level (0..10) 	{OK_STOMATE}
+STOMATE_HISTLEVEL =  10 
+
+# ECCENTRICITY ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+ECCENTRICITY =  0.016724 
+
+# PERIHELIE ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+PERIHELIE =  102.04 
+
+# OBLIQUITY ([Degrees]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+OBLIQUITY =  23.446 
+
+# PFT_TO_MTC ([-]) :  correspondance array linking a PFT to MTC 	{OK_SECHIBA or OK_STOMATE}
+PFT_TO_MTC =  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 
+
+# PFT_NAME ([-]) :  Name of a PFT 	{OK_SECHIBA or OK_STOMATE}
+PFT_NAME =  bare ground, tropical broad-leaved evergreen, tropical broad-leaved raingreen, temperate needleleaf evergreen, temperate broad-leaved evergreen, temperate broad-leaved summergreen,  boreal needleleaf evergreen, boreal broad-leaved summergreen, boreal needleleaf summergreen,  C3 grass, C4 grass, C3 agriculture, C4 agriculture  
+
+# LEAF_TAB ([-] ) :  leaf type : 1 	{OK_STOMATE}
+LEAF_TAB =  4, 1, 1, 2, 1, 1, 2, 1, 2, 3, 3, 3, 3  
+
+# PHENO_MODEL ([-] ) :  which phenology model is used? (tabulated)  	{OK_STOMATE}
+PHENO_MODEL =  none, none, moi, none, none, ncdgdd, none, ncdgdd, ngd, moigdd, moigdd, moigdd, moigdd 
+
+# SECHIBA_LAI ([m^2/m^2]) :  laimax for maximum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# LLAIMIN ([m^2/m^2]) :  laimin for minimum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+LLAIMIN =  0., 8., 0., 4., 4.5, 0., 4., 0., 0., 0., 0., 0., 0. 
+
+# SLOWPROC_HEIGHT ([m] ) :  prescribed height of vegetation  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1., 1. 
+
+# TYPE_OF_LAI ([-]) :  Type of behaviour of the LAI evolution algorithm  	{OK_SECHIBA}
+TYPE_OF_LAI =  inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter 
+
+# NATURAL ([BOOLEAN]) :  natural?  	{OK_SECHIBA, OK_STOMATE}
+NATURAL =  y, y, y, y, y, y, y, y, y, y, y, n, n  
+
+# IS_C4 ([BOOLEAN]) :  flag for C4 vegetation types 	{OK_SECHIBA or OK_STOMATE}
+IS_C4 =  n, n, n, n, n, n, n, n, n, n, n, y, n, y 
+
+# VCMAX_FIX ([micromol/m^2/s] ) :  values used for vcmax when STOMATE is not activated 	{OK_SECHIBA and NOT(OK_STOMATE)}
+VCMAX_FIX =  0., 40., 50., 30., 35., 40.,30., 40., 35., 60., 60., 70., 70. 
+
+# DOWNREGULATION_CO2_COEFF ([-]) :  coefficient for CO2 downregulation (unitless) 	{OK_CO2}
+DOWNREGULATION_CO2_COEFF =  0., 0.38, 0.38, 0.28, 0.28, 0.28, 0.22, 0.22, 0.22, 0.26, 0.26, 0.26, 0.26 
+
+# E_KmC ([J mol-1]) :  Energy of activation for KmC 	{OK_CO2}
+E_KmC =  -9999.,  79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430. 
+
+# E_KmO ([J mol-1]) :  Energy of activation for KmO 	{OK_CO2}
+E_KmO =  -9999., 36380.,  36380.,  36380.,  36380.,  36380., 36380., 36380., 36380., 36380., 36380., 36380., 36380. 
+
+# E_gamma_star ([J mol-1]) :  Energy of activation for gamma_star 	{OK_CO2}
+E_gamma_star =  -9999., 37830.,  37830.,  37830.,  37830.,  37830., 37830., 37830., 37830., 37830., 37830., 37830., 37830. 
+
+# E_Vcmax ([J mol-1]) :  Energy of activation for Vcmax 	{OK_CO2}
+E_Vcmax =  -9999., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 67300., 71513., 67300. 
+
+# E_Jmax ([J mol-1]) :  Energy of activation for Jmax 	{OK_CO2}
+E_Jmax =  -9999., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 77900., 49884., 77900.  
+
+# aSV ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+aSV =  -9999., 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 641.64, 668.39, 641.64  
+
+# bSV ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+bSV =  -9999., -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, 0., -1.07, 0.  
+
+# TPHOTO_MIN ([-]) :  minimum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MIN =  -9999.,  -4., -4., -4., -4.,-4.,-4., -4., -4., -4., -4., -4., -4. 
+
+# TPHOTO_MAX ([-]) :  maximum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MAX =  -9999., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55. 
+
+# aSJ ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+aSJ =  -9999., 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 630., 659.70, 630.  
+
+# bSJ ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+bSJ =  -9999., -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, 0., -0.75, 0.  
+
+# D_Vcmax ([J mol-1]) :  Energy of deactivation for Vcmax 	{OK_CO2}
+D_Vcmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# D_Jmax ([J mol-1]) :  Energy of deactivation for Jmax 	{OK_CO2}
+D_Jmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# E_Rd ([J mol-1]) :  Energy of activation for Rd 	{OK_CO2}
+E_Rd =  -9999., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390. 
+
+# VCMAX25 ([micromol/m^2/s]) :  Maximum rate of Rubisco activity-limited carboxylation at 25Â°C 	{OK_STOMATE}
+VCMAX25 =  -9999., 65., 65., 35., 45., 55., 35., 45., 35., 70., 70., 70., 70. 
+
+# ARJV ([mu mol e- (mu mol CO2)-1]) :  a coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+ARJV =  -9999., 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 1.715, 2.59, 1.715 
+
+# BRJV ([(mu mol e- (mu mol CO2)-1) (Â°C)-1]) :  b coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+BRJV =  -9999., -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, 0., -0.035, 0. 
+
+# KmC25 ([ubar]) :  MichaelisâMenten constant of Rubisco for CO2 at 25Â°C 	{OK_CO2}
+KmC25 =  -9999., 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 650., 404.9, 650. 
+
+# KmO25 ([ubar]) :  MichaelisâMenten constant of Rubisco for O2 at 25Â°C 	{OK_CO2}
+KmO25 =  -9999., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 450000., 278400., 450000. 
+
+# gamma_star25 ([ubar]) :  Ci-based CO2 compensation point in the absence of Rd at 25Â°C (ubar) 	{OK_CO2}
+gamma_star25 =  -9999., 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75 
+
+# a1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+a1 =  -9999., 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85 
+
+# b1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+b1 =  -9999., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.20, 0.14, 0.20 
+
+# g0 ([mol mâ2 sâ1 barâ1]) :  Residual stomatal conductance when irradiance approaches zero  	{OK_CO2}
+g0 =  -9999., 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.01875, 0.00625, 0.01875  
+
+# h_protons ([mol mol-1]) :  Number of protons required to produce one ATP 	{OK_CO2}
+h_protons =  -9999., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4.  
+
+# fpsir ([-]) :  Fraction of PSII eâ transport rate partitioned to the C4 cycle 	{OK_CO2}
+fpsir =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.4, -9999., 0.4  
+
+# fQ ([-]) :  Fraction of electrons at reduced plastoquinone that follow the Q-cycle 	{OK_CO2}
+fQ =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 1., -9999., 1. 
+
+# fpseudo ([-]) :  Fraction of electrons at PSI that follow pseudocyclic transport  	{OK_CO2}
+fpseudo =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# kp ([mol mâ2 sâ1 barâ1]) :  Initial carboxylation efficiency of the PEP carboxylase 	{OK_CO2}
+kp =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.7, -9999., 0.7 
+
+# alpha ([-]) :  Fraction of PSII activity in the bundle sheath 	{OK_CO2}
+alpha =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# gbs ([mol mâ2 sâ1 barâ1]) :  Bundle-sheath conductance 	{OK_CO2}
+gbs =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.003, -9999., 0.003 
+
+# theta ([â]) :  Convexity factor for response of J to irradiance 	{OK_CO2}
+theta =  -9999., 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7 
+
+# alpha_LL ([mol eâ (mol photon)â1]) :  Conversion efficiency of absorbed light into J at strictly limiting light 	{OK_CO2}
+alpha_LL =  -9999., 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372 
+
+# EXT_COEFF ([-]) :  extinction coefficient of the Monsi&Seaki relationship (1953) 	{OK_SECHIBA or OK_STOMATE}
+EXT_COEFF =  .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5 
+
+# HYDROL_HUMCSTE ([m]) :  Root profile 	{OK_SECHIBA}
+HYDROL_HUMCSTE =  humcste_cwrr or humcste_mct depending on flag HYDROL_CWRR 
+
+# PREF_SOIL_VEG ([-]        ) :  The soil tile number for each vegetation 	{OK_SECHIBA or OK_STOMATE}
+PREF_SOIL_VEG =  1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 
+
+# RSTRUCT_CONST ([s/m]) :  Structural resistance  	{OK_SECHIBA}
+RSTRUCT_CONST =  0.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0,  2.5,  2.0,  2.0,  2.0 
+
+# KZERO ([kg/m^2/s]) :  A vegetation dependent constant used in the calculation of the surface resistance. 	{OK_SECHIBA}
+KZERO =  0.0, 12.E-5, 12.E-5, 12.e-5, 12.e-5, 25.e-5, 12.e-5,25.e-5, 25.e-5, 30.e-5, 30.e-5, 30.e-5, 30.e-5  
+
+# RVEG_PFT ([-]) :  Artificial parameter to increase or decrease canopy resistance. 	{OK_SECHIBA}
+RVEG_PFT =  1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1. 
+
+# WMAX_VEG ([kg/m^3]) :  Maximum field capacity for each of the vegetations (Temporary): max quantity of water 	{OK_SECHIBA}
+WMAX_VEG =  150., 150., 150., 150., 150., 150., 150.,150., 150., 150., 150., 150., 150. 
+
+# PERCENT_THROUGHFALL_PFT ([%]) :  Percent by PFT of precip that is not intercepted by the canopy. Default value depend on run mode. 	{OK_SECHIBA}
+PERCENT_THROUGHFALL_PFT =  Case offline+CWRR [0. 0. 0....] else [30. 30. 30.....] 
+
+# SNOWA_AGED ([-]) :  Minimum snow albedo value for each vegetation type after aging (dirty old snow) 	{OK_SECHIBA}
+SNOWA_AGED =  0.35, 0., 0., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.18, 0.18, 0.18, 0.18 
+
+# SNOWA_DEC ([-]) :  Decay rate of snow albedo value for each vegetation type as it will be used in condveg_snow 	{OK_SECHIBA}
+SNOWA_DEC =  0.45, 0.,  0., 0.06, 0.06, 0.11, 0.06, 0.11, 0.11, 0.52,0.52, 0.52, 0.52 
+
+# ALB_LEAF_VIS ([-]) :  leaf albedo of vegetation type, visible albedo 	{OK_SECHIBA}
+ALB_LEAF_VIS =  .00, .04, .06, .06, .06,.06, .06, .06, .06, .10, .10, .10, .10 
+
+# ALB_LEAF_NIR ([-]) :  leaf albedo of vegetation type, near infrared albedo 	{OK_SECHIBA}
+ALB_LEAF_NIR =  .00, .20, .22, .22, .22,.22, .22, .22, .22, .30, .30, .30, .30  
+
+# ISO_ACTIVITY ([-]) :  Biogenic activity for each age class : isoprene 	{DIFFUCO_OK_INCA}
+ISO_ACTIVITY =  0.5, 1.5, 1.5, 0.5 
+
+# METHANOL_ACTIVITY ([-]) :  Isoprene emission factor for each age class : methanol 	{DIFFUCO_OK_INCA}
+METHANOL_ACTIVITY =  1., 1., 0.5, 0.5 
+
+# EM_FACTOR_ISOPRENE ([ugC/g/h] ) :  Isoprene emission factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_ISOPRENE =  0., 24., 24., 8., 16., 45., 8., 8., 8., 16., 24., 5., 5. 
+
+# EM_FACTOR_MONOTERPENE ([ugC/g/h] ) :  Monoterpene emission factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MONOTERPENE =  0., 0.8, 0.8, 2.4, 1.2, 0.8, 2.4, 2.4, 2.4, 0.8, 1.2, 0.2, 0.2 
+
+# EM_FACTOR_ORVOC ([ugC/g/h]  ) :  ORVOC emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_ORVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_OVOC ([ugC/g/h]        ) :  OVOC emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_OVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_MBO ([ugC/g/h]  ) :  MBO emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MBO =  0., 0., 0., 20.0, 0., 0., 0., 0., 0., 0., 0., 0., 0. 
+
+# EM_FACTOR_METHANOL ([ugC/g/h]  ) :  Methanol emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_METHANOL =  0., 0.6, 0.6, 1.8, 0.9, 0.6, 1.8, 1.8, 1.8, 0.6, 0.9, 2., 2. 
+
+# EM_FACTOR_ACETONE ([ugC/g/h]     ) :  Acetone emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETONE =  0., 0.29, 0.29, 0.87, 0.43, 0.29, 0.87, 0.87, 0.87, 0.29, 0.43, 0.07, 0.07  
+
+# EM_FACTOR_ACETAL ([ugC/g/h]  ) :  Acetaldehyde emissions factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_ACETAL =  0., 0.1, 0.1, 0.3, 0.15, 0.1, 0.3, 0.3, 0.3, 0.1, 0.15, 0.025, 0.025 
+
+# EM_FACTOR_FORMAL ([ugC/g/h]  ) :  Formaldehyde emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_FORMAL =  0., 0.07, 0.07, 0.2, 0.1, 0.07, 0.2, 0.2, 0.2, 0.07, 0.1, 0.017, 0.017 
+
+# EM_FACTOR_ACETIC ([ugC/g/h]  ) :  Acetic Acid emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETIC =  0., 0.002, 0.002, 0.006, 0.003, 0.002, 0.006, 0.006, 0.006, 0.002, 0.003, 0.0005, 0.0005 
+
+# EM_FACTOR_FORMIC ([ugC/g/h]  ) :  Formic Acid emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_FORMIC =  0., 0.01, 0.01, 0.03, 0.015, 0.01, 0.03, 0.03, 0.03, 0.01, 0.015, 0.0025, 0.0025  
+
+# EM_FACTOR_NO_WET ([ngN/m^2/s]) :  NOx emissions factor wet soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_WET =  0., 2.6, 0.06, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.36, 0.36, 0.36, 0.36 
+
+# EM_FACTOR_NO_DRY ([ngN/m^2/s] ) :  NOx emissions factor dry soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_DRY =  0., 8.60, 0.40, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 2.65, 2.65, 2.65, 2.65 
+
+# LARCH ([-]  ) :  Larcher 1991 SAI/LAI ratio 	{DIFFUCO_OK_INCA }
+LARCH =  0., 0.015, 0.015, 0.003, 0.005, 0.005, 0.003, 0.005, 0.003, 0.005, 0.005, 0.008, 0.008 
+
+# SLA ([m^2/gC]) :  specif leaf area  	{OK_STOMATE}
+SLA =  1.5E-2, 1.53E-2, 2.6E-2, 9.26E-3, 2E-2, 2.6E-2, 9.26E-3, 2.6E-2, 1.9E-2, 2.6E-2, 2.6E-2, 2.6E-2, 2.6E-2 
+
+# R0  ([-]    ) :  Standard root allocation  	{OK_STOMATE }
+R0  =  -9999., .30, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30 
+
+# S0  ([-]    ) :  Standard sapwood allocation  	{OK_STOMATE }
+S0  =  -9999., .25, .25, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30 
+
+# FRAC_GROWTHRESP ([-]) :  fraction of GPP which is lost as growth respiration 	{OK_STOMATE}
+FRAC_GROWTHRESP =  -9999., .28, .28, .28, .28, .28, .28, .28, .28, .28, .28, .28, .28  
+
+# MAINT_RESP_SLOPE_C ([-]) :  slope of maintenance respiration coefficient (1/K), constant c of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_C =  -9999., .20, .20, .16, .16, .16, .16, .16, .16, .16, .12, .16, .12  
+
+# MAINT_RESP_SLOPE_B ([-]) :  slope of maintenance respiration coefficient (1/K), constant b of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_B =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, -.00133, .0, -.00133, .0  
+
+# MAINT_RESP_SLOPE_A ([-]) :  slope of maintenance respiration coefficient (1/K), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_A =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0     
+
+# CM_ZERO_LEAF ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for leaves, tabulated 	{OK_STOMATE}
+CM_ZERO_LEAF =  -9999., 2.35E-3, 2.62E-3, 1.01E-3, 2.35E-3, 2.62E-3, 1.01E-3,2.62E-3, 2.05E-3, 2.62E-3, 2.62E-3, 2.62E-3, 2.62E-3 
+
+# CM_ZERO_SAPABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C,for sapwood above, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPABOVE =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# CM_ZERO_SAPBELOW ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for sapwood below, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPBELOW =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4  
+
+# CM_ZERO_HEARTABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for heartwood above, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTABOVE =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_HEARTBELOW ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C,for heartwood below, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTBELOW =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_ROOT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for roots, tabulated 	{OK_STOMATE}
+CM_ZERO_ROOT =  -9999.,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3 
+
+# CM_ZERO_FRUIT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for fruits, tabulated 	{OK_STOMATE}
+CM_ZERO_FRUIT =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4     
+
+# CM_ZERO_CARBRES ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for carbohydrate reserve, tabulated 	{OK_STOMATE}
+CM_ZERO_CARBRES =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# FLAM ([-]) :  flamability: critical fraction of water holding capacity 	{OK_STOMATE}
+FLAM =  -9999., .15, .25, .25, .25, .25, .25, .25, .25, .25, .25, .35, .35 
+
+# RESIST ([-]) :  fire resistance 	{OK_STOMATE}
+RESIST =  -9999., .95, .90, .12, .50, .12, .12, .12, .12, .0, .0, .0, .0  
+
+# COEFF_LCCHANGE_1 ([-]) :  Coeff of biomass export for the year 	{OK_STOMATE}
+COEFF_LCCHANGE_1 =  -9999., 0.897, 0.897, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597  
+
+# COEFF_LCCHANGE_10 ([-]) :  Coeff of biomass export for the decade 	{OK_STOMATE}
+COEFF_LCCHANGE_10 =  -9999., 0.103, 0.103, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.403, 0.299, 0.403 
+
+# COEFF_LCCHANGE_100 ([-]) :  Coeff of biomass export for the century 	{OK_STOMATE}
+COEFF_LCCHANGE_100 =  -9999., 0., 0., 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0., 0.104, 0. 
+
+# LAI_MAX_TO_HAPPY ([-]) :  threshold of LAI below which plant uses carbohydrate reserves 	{OK_STOMATE}
+LAI_MAX_TO_HAPPY =  -9999., .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5  
+
+# LAI_MAX ([m^2/m^2]) :  maximum LAI, PFT-specific 	{OK_STOMATE}
+LAI_MAX =  -9999., 7., 7., 5., 5., 5., 4.5, 4.5, 3.0, 2.5, 2.5, 5.,5.  
+
+# PHENO_TYPE ([-]) :  type of phenology, 0 	{OK_STOMATE}
+PHENO_TYPE =  0, 1, 3, 1, 1, 2, 1, 2, 2, 4, 4, 2, 3 
+
+# PHENO_GDD_CRIT_C ([-]) :  critical gdd, tabulated (C), constant c of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_C =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 270., 400., 125., 400. 
+
+# PHENO_GDD_CRIT_B ([-]) :  critical gdd, tabulated (C), constant b of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_B =  -9999., -9999., -9999., -9999., -9999., -9999., -9999.,-9999., -9999., 6.25, 0., 0., 0. 
+
+# PHENO_GDD_CRIT_A ([-]) :  critical gdd, tabulated (C), constant a of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_A =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.03125,  0., 0., 0. 
+
+# NGD_CRIT ([days]) :  critical ngd, tabulated. Threshold -5 degrees 	{OK_STOMATE}
+NGD_CRIT =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# NCDGDD_TEMP ([C] ) :  critical temperature for the ncd vs. gdd function in phenology 	{OK_STOMATE}
+NCDGDD_TEMP =  -9999., -9999., -9999., -9999., -9999., 5., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# HUM_FRAC ([%]) :  critical humidity (relative to min/max) for phenology 	{OK_STOMATE}
+HUM_FRAC =  -9999., -9999., .5, -9999., -9999., -9999., -9999., -9999.,  -9999., .5, .5, .5,.5      
+
+# HUM_MIN_TIME ([days]) :  minimum time elapsed since moisture minimum 	{OK_STOMATE}
+HUM_MIN_TIME =  -9999., -9999., 50., -9999., -9999., -9999., -9999., -9999., -9999., 35., 35., 75., 75. 
+
+# TAU_SAP ([days]) :  sapwood -> heartwood conversion time 	{OK_STOMATE}
+TAU_SAP =  -9999., 730., 730., 730., 730., 730., 730., 730., 730., -9999., -9999., -9999., -9999. 
+
+# TAU_LEAFINIT ([days]) :  time to attain the initial foliage using the carbohydrate reserve 	{OK_STOMATE}
+TAU_LEAFINIT =  -9999., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10. 
+
+# TAU_FRUIT ([days]) :  fruit lifetime 	{OK_STOMATE}
+TAU_FRUIT =  -9999., 90., 90., 90., 90., 90., 90., 90., 90., -9999., -9999., -9999., -9999. 
+
+# ECUREUIL ([-]) :  fraction of primary leaf and root allocation put into reserve 	{OK_STOMATE}
+ECUREUIL =  -9999., .0, 1., .0, .0, 1., .0, 1., 1., 1., 1., 1., 1. 
+
+# ALLOC_MIN ([-]) :  minimum allocation above/below  	{OK_STOMATE}
+ALLOC_MIN =  -9999., 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, -9999., -9999., -9999., -9999.  
+
+# ALLOC_MAX ([-]) :  maximum allocation above/below  	{OK_STOMATE}
+ALLOC_MAX =  -9999., 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, -9999., -9999., -9999., -9999. 
+
+# DEMI_ALLOC  ([-]) :  mean allocation above/below  	{OK_STOMATE}
+DEMI_ALLOC  =  -9999., 5., 5., 5., 5., 5., 5., 5., 5., -9999., -9999., -9999., -9999. 
+
+# LEAFLIFE_TAB ([years]) :  leaf longevity 	{OK_STOMATE}
+LEAFLIFE_TAB =  -9999., .5, 2., .33, 1., 2., .33, 2., 2., 2., 2., 2., 2.  
+
+# LEAFFALL ([days]) :  length of death of leaves, tabulated  	{OK_STOMATE}
+LEAFFALL =  -9999., -9999., 10., -9999., -9999., 10., -9999., 10., 10., 10., 10., 10., 10.  
+
+# LEAFAGECRIT ([days]) :  critical leaf age, tabulated 	{OK_STOMATE}
+LEAFAGECRIT =  -9999., 730., 180., 910., 730., 180., 910., 180., 180., 120., 120., 90., 90.   
+
+# SENESCENCE_TYPE ([-]) :  type of senescence, tabulated 	{OK_STOMATE}
+SENESCENCE_TYPE =  none, none, dry, none, none, cold, none, cold, cold, mixed, mixed, mixed, mixed  
+
+# SENESCENCE_HUM ([-] ) :  critical relative moisture availability for senescence 	{OK_STOMATE}
+SENESCENCE_HUM =  -9999., -9999., .3, -9999., -9999., -9999., -9999., -9999., -9999., .2, .2, .3, .2  
+
+# NOSENESCENCE_HUM ([-]) :  relative moisture availability above which there is no humidity-related senescence 	{OK_STOMATE}
+NOSENESCENCE_HUM =  -9999., -9999., .8, -9999., -9999., -9999., -9999., -9999., -9999., .3, .3, .3, .3  
+
+# MAX_TURNOVER_TIME ([days]) :  maximum turnover time for grasse 	{OK_STOMATE}
+MAX_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999.,  80.,  80., 80., 80.  
+
+# MIN_TURNOVER_TIME ([days]) :  minimum turnover time for grasse  	{OK_STOMATE}
+MIN_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 10., 10., 10., 10.  
+
+# MIN_LEAF_AGE_FOR_SENESCENCE ([days] ) :  minimum leaf age to allow senescence g 	{OK_STOMATE}
+MIN_LEAF_AGE_FOR_SENESCENCE =  -9999., -9999., 90., -9999., -9999., 90., -9999., 60., 60., 30., 30., 30., 30. 
+
+# SENESCENCE_TEMP_C ([-]) :  critical temperature for senescence (C), constant c of aT^2+bT+c, tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_C =  -9999., -9999., -9999., -9999., -9999., 12., -9999., 7., 2., -1.375, 5., 5., 10. 
+
+# SENESCENCE_TEMP_B ([-]) :  critical temperature for senescence (C), constant b of aT^2+bT+c ,tabulated 	{OK_STOMATE }
+SENESCENCE_TEMP_B =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0., .1, 0., 0., 0. 
+
+# SENESCENCE_TEMP_A ([-] ) :  critical temperature for senescence (C), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_A =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0.,.00375, 0., 0., 0.  
+
+# GDD_SENESCENCE ([days] ) :  minimum gdd to allow senescence of crops   	{OK_STOMATE}
+GDD_SENESCENCE =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 950., 4000. 
+
+# RESIDENCE_TIME ([years]) :  residence time of trees 	{OK_DGVM and NOT(LPJ_GAP_CONST_MORT)}
+RESIDENCE_TIME =  -9999., 30.0, 30.0, 40.0, 40.0, 40.0, 80.0, 80.0, 80.0, 0.0, 0.0, 0.0, 0.0  
+
+# TMIN_CRIT ([C]) :  critical tmin, tabulated 	{OK_STOMATE}
+TMIN_CRIT =  -9999.,  0.0, 0.0, -30.0, -14.0, -30.0, -45.0, -45.0, -9999., -9999., -9999., -9999., -9999. 
+
+# TCM_CRIT ([C]) :  critical tcm, tabulated  	{OK_STOMATE}
+TCM_CRIT =  -9999., -9999., -9999., 5.0, 15.5, 15.5, -8.0, -8.0, -8.0, -9999., -9999., -9999., -9999. 
+
+# HERBIVORES ([FLAG]) :  herbivores allowed? 	{OK_STOMATE }
+HERBIVORES =  n 
+
+# TREAT_EXPANSION ([FLAG]) :  treat expansion of PFTs across a grid cell? 	{OK_STOMATE }
+TREAT_EXPANSION =  n 
+
+# LPJ_GAP_CONST_MORT ([FLAG]) :  prescribe mortality if not using DGVM? 	{OK_STOMATE}
+LPJ_GAP_CONST_MORT =  y 
+
+# HARVEST_AGRI ([FLAG]) :  Harvest model for agricultural PFTs. 	{OK_STOMATE }
+HARVEST_AGRI =  y 
+
+# FIRE_DISABLE ([FLAG]) :  no fire allowed 	{OK_STOMATE }
+FIRE_DISABLE =  n 
+
+# SPINUP_ANALYTIC (BOOLEAN    ) :  Activation of the analytic resolution of the spinup. 	{OK_STOMATE}
+SPINUP_ANALYTIC =  n 
+
+# AGRICULTURE ([FLAG]) :  agriculture allowed? 	{OK_SECHIBA or OK_STOMATE}
+AGRICULTURE =  y 
+
+# IMPOSE_VEG ([FLAG]) :  Should the vegetation be prescribed ? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_VEG =  n 
+
+# IMPOSE_SOILT ([FLAG]) :  Should the soil type be prescribed ? 	{IMPOSE_VEG}
+IMPOSE_SOILT =  n 
+
+# LAI_MAP ([FLAG]) :  Read the LAI map 	{OK_SECHIBA or OK_STOMATE}
+LAI_MAP =  n 
+
+# SLOWPROC_LAI_OLD_INTERPOL ([FLAG]) :  Flag to use old "interpolation" of LAI 	{LAI_MAP}
+SLOWPROC_LAI_OLD_INTERPOL =  n 
+
+# LAND_USE ([FLAG]) :  Read a land_use vegetation map 	{OK_SECHIBA or OK_STOMATE}
+LAND_USE =  y 
+
+# VEGET_REINIT ([FLAG] ) :  booleen to indicate that a new LAND USE file will be used. 	{LAND_USE}
+VEGET_REINIT =  y 
+
+# LAND_COVER_CHANGE ([FLAG] ) :  treat land use modifications 	{LAND_USE}
+LAND_COVER_CHANGE =  n 
+
+# VEGET_YEAR ([FLAG] ) :  Year of the land_use vegetation map to be read 	{LAND_USE}
+VEGET_YEAR =  1 
+
+# SLOWPROC_VEGET_OLD_INTERPOL ([FLAG] ) :  Flag to use old "interpolation" of vegetation map. 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+SLOWPROC_VEGET_OLD_INTERPOL =  n 
+
+# MAXMASS_SNOW ([kg/m^2]  ) :  The maximum mass of a snow 	{OK_SECHIBA or HYDROL_CWRR}
+MAXMASS_SNOW =  3000. 
+
+# SNOWCRI ([kg/m^2]  ) :  Sets the amount above which only sublimation occures  	{OK_SECHIBA or HYDROL_CWRR}
+SNOWCRI =  1.5 
+
+# MIN_WIND ([m/s]) :  Minimum wind speed 	{OK_SECHIBA}
+MIN_WIND =  0.1 
+
+# MAX_SNOW_AGE ([days?]) :  Maximum period of snow aging  	{OK_SECHIBA}
+MAX_SNOW_AGE =  50. 
+
+# SNOW_TRANS ([m]   ) :  Transformation time constant for snow 	{OK_SECHIBA}
+SNOW_TRANS =  0.3 
+
+# Z0_OVER_HEIGHT ([-]   ) :  to get z0 from height  	{OK_SECHIBA }
+Z0_OVER_HEIGHT =  1/16. 
+
+# HEIGHT_DISPLACEMENT ([m]  ) :  Magic number which relates the height to the displacement height. 	{OK_SECHIBA }
+HEIGHT_DISPLACEMENT =  0.75 
+
+# Z0_BARE ([m]   ) :  bare soil roughness length 	{OK_SECHIBA }
+Z0_BARE =  0.01  
+
+# Z0_ICE ([m]   ) :  ice roughness length 	{OK_SECHIBA }
+Z0_ICE =  0.001 
+
+# TCST_SNOWA ([days]) :  Time constant of the albedo decay of snow 	{OK_SECHIBA }
+TCST_SNOWA =  5.0  
+
+# SNOWCRI_ALB ([cm]  ) :  Critical value for computation of snow albedo 	{OK_SECHIBA}
+SNOWCRI_ALB =  10.  
+
+# VIS_DRY ([-]  ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+VIS_DRY =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.27 
+
+# NIR_DRY ([-]   ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_DRY =  0.48, 0.44, 0.40, 0.36, 0.32, 0.28, 0.24, 0.20, 0.55 
+
+# VIS_WET  ([-]   ) :  The correspondance table for the soil color numbers and their albedo 	{OK_SECHIBA  }
+VIS_WET  =  0.12, 0.11, 0.10, 0.09, 0.08, 0.07, 0.06, 0.05, 0.15 
+
+# NIR_WET ([-]    ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_WET =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.31 
+
+# ALBSOIL_VIS ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_VIS =  0.18, 0.16, 0.16, 0.15, 0.12, 0.105, 0.09, 0.075, 0.25 
+
+# ALBSOIL_NIR  ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_NIR  =  0.36, 0.34, 0.34, 0.33, 0.30, 0.25, 0.20, 0.15, 0.45 
+
+# ALB_DEADLEAF  ([-]     ) :  albedo of dead leaves, VIS+NIR  	{OK_SECHIBA }
+ALB_DEADLEAF  =  0.12, 0.35 
+
+# ALB_ICE ([-]  ) :  albedo of ice, VIS+NIR 	{OK_SECHIBA}
+ALB_ICE =  0.60, 0.20 
+
+# CONDVEG_SNOWA ([-]) :  The snow albedo used by SECHIBA 	{OK_SECHIBA}
+CONDVEG_SNOWA =  1.E+20 
+
+# ALB_BARE_MODEL ([FLAG]) :  Switch bare soil albedo dependent (if TRUE) on soil wetness 	{OK_SECHIBA}
+ALB_BARE_MODEL =  n 
+
+# Z0CDRAG_AVE ([FLAG]) :  Average method for z0 	{OK_SECHIBA}
+Z0CDRAG_AVE =  y 
+
+# IMPOSE_AZE ([FLAG]) :  Should the surface parameters be prescribed 	{OK_SECHIBA}
+IMPOSE_AZE =  n 
+
+# CONDVEG_Z0 ([m]) :  Surface roughness 	{IMPOSE_AZE}
+CONDVEG_Z0 =  0.15 
+
+# ROUGHHEIGHT ([m] ) :  Height to be added to the height of the first level 	{IMPOSE_AZE}
+ROUGHHEIGHT =  0.0 
+
+# CONDVEG_ALBVIS ([-]) :  SW visible albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBVIS =  0.25 
+
+# CONDVEG_ALBNIR ([-]  ) :  SW near infrared albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBNIR =  0.25 
+
+# CONDVEG_EMIS ([-] ) :  Emissivity of the surface for LW radiation 	{IMPOSE_AZE}
+CONDVEG_EMIS =  1.0 
+
+# xansmax  ([-] ) :  maximum snow albedo 	{OK_SECHIBA}
+xansmax  =  0.85 
+
+# xansmin  ([-] ) :  minimum snow albedo 	{OK_SECHIBA}
+xansmin  =  0.50 
+
+# xans_todry  ([S-1] ) :  albedo decay rate for the dry snow  	{OK_SECHIBA}
+xans_todry  =  0.008 
+
+# xans_t  ([S-1] ) :  albedo decay rate for the wet snow  	{OK_SECHIBA}
+xans_t  =  0.24 
+
+# xrhosmax  ([-] ) :  maximum snow density  	{OK_SECHIBA}
+xrhosmax  =  750 
+
+# xwsnowholdmax1 ([-] ) :  snow holding capacity 1 	{OK_SECHIBA}
+xwsnowholdmax1 =  0.03 
+
+# xwsnowholdmax2 ([-] ) :  snow holding capacity 2 	{OK_SECHIBA}
+xwsnowholdmax2 =  0.10 
+
+# xsnowrhohold  ([kg/m3] ) :  snow density  	{OK_SECHIBA}
+xsnowrhohold  =  200.0 
+
+# ZSNOWTHRMCOND1 ([W/m/K] ) :  Thermal conductivity Coef 1 	{OK_SECHIBA}
+ZSNOWTHRMCOND1 =  0.02  
+
+# ZSNOWTHRMCOND2 ([W m5/(kg2 K)] ) :  Thermal conductivity Coef 2 	{OK_SECHIBA}
+ZSNOWTHRMCOND2 =  2.5E-6 
+
+# ZSNOWTHRMCOND_AVAP ([W/m/K] ) :  Thermal conductivity Coef 1 water vapor 	{OK_SECHIBA}
+ZSNOWTHRMCOND_AVAP =  -0.06023 
+
+# ZSNOWTHRMCOND_BVAP ([W/m] ) :  Thermal conductivity Coef 2 water vapor 	{OK_SECHIBA}
+ZSNOWTHRMCOND_BVAP =  -2.5425 
+
+# ZSNOWTHRMCOND_CVAP ([K] ) :  Thermal conductivity Coef 3 water vapor 	{OK_SECHIBA}
+ZSNOWTHRMCOND_CVAP =  -289.99 
+
+# ZSNOWCMPCT_RHOD ([kg/m3]) :  Snow compaction coefficent 	{OK_SECHIBA}
+ZSNOWCMPCT_RHOD =  150.0 
+
+# ZSNOWCMPCT_ACM ([1/s]) :  Coefficent for the thermal conductivity 	{OK_SECHIBA}
+ZSNOWCMPCT_ACM =  2.8e-6 
+
+# ZSNOWCMPCT_BCM ([1/K]) :  Coefficent for the thermal conductivity 	{OK_SECHIBA}
+ZSNOWCMPCT_BCM =  0.04 
+
+# ZSNOWCMPCT_CCM ([m3/kg] ) :  Coefficent for the thermal conductivity 	{OK_SECHIBA}
+ZSNOWCMPCT_CCM =  460. 
+
+# ZSNOWCMPCT_V0 ([Pa/s]) :  Vapor coefficent for the thermal conductivity 	{OK_SECHIBA}
+ZSNOWCMPCT_V0 =  3.7e7 
+
+# ZSNOWCMPCT_VT ([1/K]) :  Vapor coefficent for the thermal conductivity 	{OK_SECHIBA}
+ZSNOWCMPCT_VT =  0.081 
+
+# ZSNOWCMPCT_VR ([m3/kg]) :  Vapor coefficent for the thermal conductivity 	{OK_SECHIBA}
+ZSNOWCMPCT_VR =  0.018 
+
+# CB ([-] ) :  Constant of the Louis scheme  	{OK_SECHIBA}
+CB =  5.0 
+
+# CC ([-] ) :  Constant of the Louis scheme  	{OK_SECHIBA}
+CC =  5.0 
+
+# CD ([-] ) :  Constant of the Louis scheme  	{OK_SECHIBA}
+CD =  5.0 
+
+# RAYT_CSTE ([W.m^{-2}] ) :  Constant in the computation of surface resistance   	{OK_SECHIBA}
+RAYT_CSTE =  125 
+
+# DEFC_PLUS ([K.W^{-1}] ) :  Constant in the computation of surface resistance   	{OK_SECHIBA}
+DEFC_PLUS =  23.E-3 
+
+# DEFC_MULT ([K.W^{-1}] ) :  Constant in the computation of surface resistance   	{OK_SECHIBA}
+DEFC_MULT =  1.5 
+
+# NLAI ([-]  ) :  Number of LAI levels 	{OK_SECHIBA}
+NLAI =  20 
+
+# LAIMAX ([m^2/m^2]   ) :  Maximum LAI 	{OK_SECHIBA}
+LAIMAX =   
+
+# DEW_VEG_POLY_COEFF ([-]   ) :  coefficients of the polynome of degree 5 for the dew 	{OK_SECHIBA}
+DEW_VEG_POLY_COEFF =  0.887773, 0.205673, 0.110112, 0.014843, 0.000824, 0.000017  
+
+# DOWNREGULATION_CO2 ([FLAG]   ) :  Activation of CO2 downregulation 	{OK_SECHIBA}
+DOWNREGULATION_CO2 =  n  
+
+# DOWNREGULATION_CO2_BASELEVEL ([ppm]   ) :  CO2 base level 	{OK_SECHIBA }
+DOWNREGULATION_CO2_BASELEVEL =  280. 
+
+# CLAYFRACTION_DEFAULT ([-]   ) :  default fraction of clay 	{OK_SECHIBA }
+CLAYFRACTION_DEFAULT =  0.2  
+
+# MIN_VEGFRAC  ([-]  ) :  Minimal fraction of mesh a vegetation type can occupy  	{OK_SECHIBA }
+MIN_VEGFRAC  =  0.001  
+
+# STEMPDIAG_BID  ([K]) :  only needed for an initial LAI if there is no restart file 	{OK_SECHIBA }
+STEMPDIAG_BID  =  280. 
+
+# LAI_LEVEL_DEPTH ([-]  ) :   	{OK_CO2}
+LAI_LEVEL_DEPTH =  0.15 
+
+# Oi ([ubar]  ) :  Intercellular oxygen partial pressure 	{OK_CO2}
+Oi =  210000. 
+
+# TOO_LONG  ([days]   ) :  longest sustainable time without regeneration (vernalization) 	{OK_STOMATE}
+TOO_LONG  =  5. 
+
+# TAU_FIRE  ([days]    ) :  Time scale for memory of the fire index (days). Validated for one year in the DGVM.  	{OK_STOMATE }
+TAU_FIRE  =  30. 
+
+# LITTER_CRIT ([gC/m^2]  ) :  Critical litter quantity for fire 	{OK_STOMATE }
+LITTER_CRIT =  200. 
+
+# FIRE_RESIST_STRUCT ([-]  ) :   	{OK_STOMATE }
+FIRE_RESIST_STRUCT =  0.5 
+
+# CO2FRAC ([-]  ) :  What fraction of a burned plant compartment goes into the atmosphere 	{OK_STOMATE }
+CO2FRAC =  0.95, 0.95, 0., 0.3, 0., 0., 0.95, 0.95 
+
+# BCFRAC_COEFF ([-]  ) :   	{OK_STOMATE }
+BCFRAC_COEFF =  0.3, 1.3, 88.2  
+
+# FIREFRAC_COEFF  ([-]   ) :   	{OK_STOMATE }
+FIREFRAC_COEFF  =  0.45, 0.8, 0.6, 0.13 
+
+# AVAILABILITY_FACT  ([-]   ) :   	{OK_STOMATE }
+AVAILABILITY_FACT  =  0.1 
+
+# REF_GREFF ([1/year]  ) :  Asymptotic maximum mortality rate 	{OK_STOMATE }
+REF_GREFF =  0.035 
+
+# OK_MINRES ([FLAG]) :  Do we try to reach a minimum reservoir even if we are severely stressed? 	{OK_STOMATE }
+OK_MINRES =  y 
+
+# RESERVE_TIME_TREE  ([days]    ) :  maximum time during which reserve is used (trees)  	{OK_STOMATE }
+RESERVE_TIME_TREE  =  30. 
+
+# RESERVE_TIME_GRASS  ([days]   ) :  maximum time during which reserve is used (grasses)  	{OK_STOMATE }
+RESERVE_TIME_GRASS  =  20.  
+
+# F_FRUIT ([-]    ) :  Standard fruit allocation 	{OK_STOMATE }
+F_FRUIT =  0.1  
+
+# ALLOC_SAP_ABOVE_GRASS  ([-]   ) :  fraction of sapwood allocation above ground  	{OK_STOMATE }
+ALLOC_SAP_ABOVE_GRASS  =  1.0  
+
+# MIN_LTOLSR  ([-]   ) :  extrema of leaf allocation fraction  	{OK_STOMATE }
+MIN_LTOLSR  =  0.2 
+
+# MAX_LTOLSR ([-]   ) :  extrema of leaf allocation fraction 	{OK_STOMATE }
+MAX_LTOLSR =  0.5 
+
+# Z_NITROGEN ([m]  ) :  scaling depth for nitrogen limitation  	{OK_STOMATE}
+Z_NITROGEN =  0.2  
+
+# NLIM_TREF  ([C]  ) :   	{OK_STOMATE }
+NLIM_TREF  =  25.  
+
+# PIPE_TUNE1 ([-]    ) :  crown area  	{OK_STOMATE }
+PIPE_TUNE1 =  100.0 
+
+# PIPE_TUNE2  ([-]      ) :  height 	{OK_STOMATE }
+PIPE_TUNE2  =  40.0  
+
+# PIPE_TUNE3 ([-]    ) :  height 	{OK_STOMATE }
+PIPE_TUNE3 =  0.5  
+
+# PIPE_TUNE4 ([-]  ) :  needed for stem diameter 	{OK_STOMATE }
+PIPE_TUNE4 =  0.3  
+
+# PIPE_DENSITY  ([-]  ) :  Density 	{OK_STOMATE }
+PIPE_DENSITY  =  2.e5  
+
+# PIPE_K1  ([-]   ) :   	{OK_STOMATE }
+PIPE_K1  =  8.e3  
+
+# PIPE_TUNE_EXP_COEFF  ([-]   ) :  pipe tune exponential coeff  	{OK_STOMATE }
+PIPE_TUNE_EXP_COEFF  =  1.6  
+
+# PRECIP_CRIT  ([mm/year]  ) :  minimum precip 	{OK_STOMATE }
+PRECIP_CRIT  =  100. 
+
+# GDD_CRIT_ESTAB ([-]  ) :  minimum gdd for establishment of saplings 	{OK_STOMATE }
+GDD_CRIT_ESTAB =  150.  
+
+# FPC_CRIT ([-]  ) :  critical fpc, needed for light competition and establishment 	{OK_STOMATE }
+FPC_CRIT =  0.95 
+
+# ALPHA_GRASS ([-]   ) :  sapling characteristics : alpha's 	{OK_STOMATE }
+ALPHA_GRASS =  0.5 
+
+# ALPHA_TREE ([-]   ) :  sapling characteristics : alpha's  	{OK_STOMATE }
+ALPHA_TREE =  1. 
+
+# MASS_RATIO_HEART_SAP ([-]   ) :  mass ratio (heartwood+sapwood)/sapwood 	{OK_STOMATE }
+MASS_RATIO_HEART_SAP =  3. 
+
+# TAU_HUM_MONTH ([days]  ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_MONTH =  20.  
+
+# TAU_HUM_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_WEEK =  7. 
+
+# TAU_T2M_MONTH ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_MONTH =  20. 
+
+# TAU_T2M_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_WEEK =  7. 
+
+# TAU_TSOIL_MONTH  ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_TSOIL_MONTH  =  20.  
+
+# TAU_SOILHUM_MONTH ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_SOILHUM_MONTH =  20.  
+
+# TAU_GPP_WEEK  ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GPP_WEEK  =  7.  
+
+# TAU_GDD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GDD =  40.  
+
+# TAU_NGD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_NGD =  50. 
+
+# COEFF_TAU_LONGTERM ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+COEFF_TAU_LONGTERM =  3.  
+
+# BM_SAPL_CARBRES  ([-]   ) :   	{OK_STOMATE }
+BM_SAPL_CARBRES  =  5.  
+
+# BM_SAPL_SAPABOVE ([-]    ) :   	{OK_STOMATE}
+BM_SAPL_SAPABOVE =  0.5  
+
+# BM_SAPL_HEARTABOVE  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTABOVE  =  2. 
+
+# BM_SAPL_HEARTBELOW  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTBELOW  =  2.  
+
+# INIT_SAPL_MASS_LEAF_NAT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_NAT =  0.1  
+
+# INIT_SAPL_MASS_LEAF_AGRI ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_AGRI =  1.  
+
+# INIT_SAPL_MASS_CARBRES ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_CARBRES =  5.  
+
+# INIT_SAPL_MASS_ROOT ([-]   ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_ROOT =  0.1  
+
+# INIT_SAPL_MASS_FRUIT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_FRUIT =  0.3  
+
+# CN_SAPL_INIT  ([-]   ) :   	{OK_STOMATE }
+CN_SAPL_INIT  =  0.5  
+
+# MIGRATE_TREE  ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_TREE  =  10000. 
+
+# MIGRATE_GRASS ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_GRASS =  10000. 
+
+# LAI_INITMIN_TREE ([m^2/m^2]  ) :   	{OK_STOMATE }
+LAI_INITMIN_TREE =  0.3 
+
+# LAI_INITMIN_GRASS  ([m^2/m^2]    ) :   	{OK_STOMATE }
+LAI_INITMIN_GRASS  =  0.1 
+
+# DIA_COEFF ([-]   ) :   	{OK_STOMATE }
+DIA_COEFF =  4., 0.5 
+
+# MAXDIA_COEFF ([-]   ) :   	{OK_STOMATE }
+MAXDIA_COEFF =  100., 0.01  
+
+# BM_SAPL_LEAF ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_LEAF =  4., 4., 0.8, 5.  
+
+# METABOLIC_REF_FRAC ([-]) :  	{OK_STOMATE }
+METABOLIC_REF_FRAC =  0.85   
+
+# Z_DECOMP ([m]   ) :  scaling depth for soil activity 	{OK_STOMATE }
+Z_DECOMP =  0.2 
+
+# CN ([-]  ) :  C/N ratio 	{OK_STOMATE }
+CN =  40., 40., 40., 40., 40., 40., 40., 40. 
+
+# LC  ([-]   ) :  Lignine/C ratio of the different plant parts 	{OK_STOMATE }
+LC  =  0.22, 0.35, 0.35, 0.35, 0.35, 0.22, 0.22, 0.22 
+
+# FRAC_SOIL_STRUCT_AA ([-]) :  frac_soil(istructural,iactive,iabove) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_AA =  0.55 
+
+# FRAC_SOIL_STRUCT_A  ([-]) :  frac_soil(istructural,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_A  =  0.45 
+
+# FRAC_SOIL_STRUCT_SA ([-]   ) :  frac_soil(istructural,islow,iabove) 	{OK_STOMATE}
+FRAC_SOIL_STRUCT_SA =  0.7   
+
+# FRAC_SOIL_STRUCT_SB ([-]   ) :  frac_soil(istructural,islow,ibelow)  	{OK_STOMATE }
+FRAC_SOIL_STRUCT_SB =  0.7   
+
+# FRAC_SOIL_METAB_AA  ([-]   ) :  frac_soil(imetabolic,iactive,iabove)  	{OK_STOMATE }
+FRAC_SOIL_METAB_AA  =  0.45  
+
+# FRAC_SOIL_METAB_AB  ([-]   ) :  frac_soil(imetabolic,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_METAB_AB  =  0.45   
+
+# METABOLIC_LN_RATIO ([-]   ) :   	{OK_STOMATE }
+METABOLIC_LN_RATIO =  0.018   
+
+# TAU_METABOLIC ([days] ) :   	{OK_STOMATE }
+TAU_METABOLIC =  0.066 
+
+# TAU_STRUCT  ([days]) :   	{OK_STOMATE }
+TAU_STRUCT  =  0.245  
+
+# SOIL_Q10 ([-]) :   	{OK_STOMATE }
+SOIL_Q10 =  0.69 ( 
+
+# TSOIL_REF ([C]   ) :   	{OK_STOMATE }
+TSOIL_REF =  30.  
+
+# LITTER_STRUCT_COEF  ([-]   ) :   	{OK_STOMATE }
+LITTER_STRUCT_COEF  =  3.  
+
+# MOIST_COEFF ([-]   ) :   	{OK_STOMATE }
+MOIST_COEFF =  1.1, 2.4, 0.29 
+
+# MOISTCONT_MIN ([-]) :  minimum soil wetness to limit the heterotrophic respiration 	{OK_STOMATE }
+MOISTCONT_MIN =  0.25 
+
+# FRAC_TURNOVER_DAILY  ([-]) :   	{OK_STOMATE }
+FRAC_TURNOVER_DAILY  =  0.55 
+
+# TAX_MAX ([-]   ) :  maximum fraction of allocatable biomass used for maintenance respiration 	{OK_STOMATE }
+TAX_MAX =  0.8 
+
+# ALWAYS_INIT ([-]   ) :  take carbon from atmosphere if carbohydrate reserve too small?  	{OK_STOMATE }
+ALWAYS_INIT =  n  
+
+# MIN_GROWTHINIT_TIME  ([days]  ) :  minimum time since last beginning of a growing season 	{OK_STOMATE }
+MIN_GROWTHINIT_TIME  =  300.  
+
+# MOIAVAIL_ALWAYS_TREE ([-]   ) :  moisture availability above which moisture tendency doesn't matter  	{OK_STOMATE }
+MOIAVAIL_ALWAYS_TREE =  1.0  
+
+# MOIAVAIL_ALWAYS_GRASS  ([-]   ) :  moisture availability above which moisture tendency doesn't matter 	{OK_STOMATE }
+MOIAVAIL_ALWAYS_GRASS  =  0.6  
+
+# T_ALWAYS_ADD ([C]    ) :  monthly temp. above which temp. tendency doesn't matter  	{OK_STOMATE }
+T_ALWAYS_ADD =  10. 
+
+# GDDNCD_REF  ([-]   ) :   	{OK_STOMATE }
+GDDNCD_REF  =  603.  
+
+# GDDNCD_CURVE ([-]  ) :   	{OK_STOMATE }
+GDDNCD_CURVE =  0.0091  
+
+# GDDNCD_OFFSET ([-]  ) :   	{OK_STOMATE }
+GDDNCD_OFFSET =  64.  
+
+# BM_SAPL_RESCALE  ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_RESCALE  =  40.  
+
+# MAINT_RESP_MIN_VMAX ([-]  ) :   	{OK_STOMATE }
+MAINT_RESP_MIN_VMAX =  0.3 
+
+# MAINT_RESP_COEFF  ([-] ) :   	{OK_STOMATE }
+MAINT_RESP_COEFF  =  1.4  
+
+# FRAC_CARB_AP ([-]) :  frac carb coefficients from active pool: depends on clay content 	{OK_STOMATE }
+FRAC_CARB_AP =  0.004 
+
+# FRAC_CARB_SA ([-]) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SA =  0.42 
+
+# FRAC_CARB_SP ([-] ) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SP =  0.03 
+
+# FRAC_CARB_PA ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PA =  0.45 
+
+# FRAC_CARB_PS ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PS =  0.0 
+
+# ACTIVE_TO_PASS_CLAY_FRAC ([-] ) :   	{OK_STOMATE }
+ACTIVE_TO_PASS_CLAY_FRAC =  0.68   
+
+# CARBON_TAU_IACTIVE ( [days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IACTIVE =  0.149 
+
+# CARBON_TAU_ISLOW ([days]) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_ISLOW =  5.48 
+
+# CARBON_TAU_IPASSIVE ([days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IPASSIVE =  241. 
+
+# FLUX_TOT_COEFF ([days] ) :  	{OK_STOMATE }
+FLUX_TOT_COEFF =  1.2, 1.4,.75 
+
+# NEW_TURNOVER_TIME_REF ([days]  ) :   	{OK_STOMATE }
+NEW_TURNOVER_TIME_REF =  20.  
+
+# DT_TURNOVER_TIME  ([days]  ) :   	{OK_STOMATE }
+DT_TURNOVER_TIME  =  10. 
+
+# LEAF_AGE_CRIT_TREF ([days]  ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_TREF =  20.  
+
+# LEAF_AGE_CRIT_COEFF  ([-] ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_COEFF  =  1.5, 0.75, 10.  
+
+# VMAX_OFFSET  ([-]  ) :  offset (minimum relative vcmax) 	{OK_STOMATE }
+VMAX_OFFSET  =  0.3 
+
+# LEAFAGE_FIRSTMAX ([-] ) :  leaf age at which vmax attains vcmax_opt (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_FIRSTMAX =  0.03  
+
+# LEAFAGE_LASTMAX  ([-]  ) :  leaf age at which vmax falls below vcmax_opt (in fraction of critical leaf age)  	{OK_STOMATE }
+LEAFAGE_LASTMAX  =  0.5  
+
+# LEAFAGE_OLD  ([-]  ) :  leaf age at which vmax attains its minimum (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_OLD  =  1. 
+
+# GPPFRAC_DORMANCE  ([-]) :  rapport maximal GPP/GGP_max pour dormance 	{OK_STOMATE }
+GPPFRAC_DORMANCE  =  0.2  
+
+# TAU_CLIMATOLOGY ([days]) :  tau for "climatologic variables  	{OK_STOMATE }
+TAU_CLIMATOLOGY =  20 
+
+# HVC1  ([-]  ) :  parameters for herbivore activity 	{OK_STOMATE }
+HVC1  =  0.019 
+
+# HVC2  ([-]  ) :  parameters for herbivore activity  	{OK_STOMATE }
+HVC2  =  1.38 
+
+# LEAF_FRAC_HVC ([-] ) :  parameters for herbivore activity  	{OK_STOMATE }
+LEAF_FRAC_HVC =  0.33 
+
+# TLONG_REF_MAX ([K]  ) :  maximum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MAX =  303.1 
+
+# TLONG_REF_MIN  ([K]  ) :  minimum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MIN  =  253.1 
+
+# NCD_MAX_YEAR ([days]) :   	{OK_STOMATE }
+NCD_MAX_YEAR =  3.  
+
+# GDD_THRESHOLD  ([days] ) :   	{OK_STOMATE }
+GDD_THRESHOLD  =  5.  
+
+# GREEN_AGE_EVER  ([-]  ) :   	{OK_STOMATE }
+GREEN_AGE_EVER  =  2.  
+
+# GREEN_AGE_DEC ([-] ) :   	{OK_STOMATE }
+GREEN_AGE_DEC =  0.5  
+
+# ESTAB_MAX_TREE ([-]   ) :  Maximum tree establishment rate  	{OK_DGVM}
+ESTAB_MAX_TREE =  0.12  
+
+# ESTAB_MAX_GRASS ([-]  ) :  Maximum grass establishment rate 	{OK_DGVM}
+ESTAB_MAX_GRASS =  0.12  
+
+# ESTABLISH_SCAL_FACT ([-] ) :   	{OK_DGVM }
+ESTABLISH_SCAL_FACT =  5. 
+
+# MAX_TREE_COVERAGE  ([-] ) :   	{OK_DGVM }
+MAX_TREE_COVERAGE  =  0.98 
+
+# IND_0_ESTAB ([-]  ) :   	{OK_DGVM }
+IND_0_ESTAB =  0.2 
+
+# ANNUAL_INCREASE ([FLAG]) :  for diagnosis of fpc increase, compare today's fpc to last year's maximum (T) or to fpc of last time step (F)? 	{OK_DGVM}
+ANNUAL_INCREASE =  y 
+
+# MIN_COVER  ([-]  ) :  For trees, minimum fraction of crown area occupied  	{OK_DGVM}
+MIN_COVER  =  0.05  
+
+# IND_0  ([-]  ) :  initial density of individuals 	{OK_DGVM}
+IND_0  =  0.02  
+
+# MIN_AVAIL ([-]  ) :  minimum availability 	{OK_DGVM}
+MIN_AVAIL =  0.01 
+
+# RIP_TIME_MIN ([year]  ) :   	{OK_DGVM}
+RIP_TIME_MIN =  1.25  
+
+# NPP_LONGTERM_INIT ([gC/m^2/year]) :   	{OK_DGVM}
+NPP_LONGTERM_INIT =  10. 
+
+# EVERYWHERE_INIT ([-] ) :   	{OK_DGVM}
+EVERYWHERE_INIT =  0.05  
+
+# PRINTLEV ([0, 1, 2, 3, 4]) :  Print level for text output 	{}
+PRINTLEV =  1 
+
+# PRINTLEV_modname ([0, 1, 2, 3, 4]) :  Specific print level of text output for the module "modname". Default as PRINTLEV. 	{}
+PRINTLEV_modname =  1 
+
+# THERMOSOIL_NBLEV ((-)) :  Number of soil level 	{}
+THERMOSOIL_NBLEV =  7 
+
+# DRY_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}] ) :  Dry soil Heat capacity of soils 	{OK_SECHIBA }
+DRY_SOIL_HEAT_CAPACITY =  1.80e+6 
+
+# DRY_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}] ) :  Dry soil Thermal Conductivity of soils 	{OK_SECHIBA}
+DRY_SOIL_HEAT_COND =  0.40  
+
+# WET_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}]) :  Wet soil Heat capacity of soils  	{OK_SECHIBA}
+WET_SOIL_HEAT_CAPACITY =  3.03e+6 
+
+# WET_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Wet soil Thermal Conductivity of soils 	{OK_SECHIBA }
+WET_SOIL_HEAT_COND =  1.89  
+
+# SNOW_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Thermal Conductivity of snow 	{OK_SECHIBA  }
+SNOW_HEAT_COND =  0.3 
+
+# SNOW_DENSITY ([-] ) :  Snow density for the soil thermodynamics  	{OK_SECHIBA }
+SNOW_DENSITY =  330.0 
+
+# NOBIO_WATER_CAPAC_VOLUMETRI ([s/m^2]) :   	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+NOBIO_WATER_CAPAC_VOLUMETRI =  150. 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# CHOISNEL_DIFF_MIN ([kg/m^2/dt]) :  Diffusion constant for the slow regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MIN =  0.001 
+
+# CHOISNEL_DIFF_MAX ([kg/m^2/dt]) :  Diffusion constant for the fast regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MAX =  0.1 
+
+# CHOISNEL_DIFF_EXP ([-]) :  The exponential in the diffusion law 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_EXP =  1.5 
+
+# CHOISNEL_RSOL_CSTE ([s/m^2]) :  Constant in the computation of resistance for bare  soil evaporation  	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_RSOL_CSTE =  33.E3 
+
+# HCRIT_LITTER ([m]) :  Scaling depth for litter humidity 	{OK_SECHIBA and .NOT.(HYDROL_CWRR) }
+HCRIT_LITTER =  0.08  
+
+# OK_FREEZE ([FLAG]) :  Activate the complet soil freezing scheme 	{OK_SECHIBA }
+OK_FREEZE =  FALSE 
+
+# OK_ECORR ([FLAG]) :  Energy correction for freezing 	{}
+OK_ECORR =  True if OK_FREEZE else false 
+
+# READ_PERMAFROST_MAP ([FLAG]) :  Read information about ice content, overburden and permafrost type from IPA map 	{}
+READ_PERMAFROST_MAP =  FALSE 
+
+# READ_REFTEMP ([FLAG]) :  Initialize soil temperature using climatological temperature 	{}
+READ_REFTEMP =  True if OK_FREEZE else false 
+
+# OK_FREEZE_THERMIX ([FLAG]) :  Activate thermal part of the soil freezing scheme 	{}
+OK_FREEZE_THERMIX =  True if OK_FREEZE else false 
+
+# POROS ([-] ) :  Soil porosity  	{OK_SECHIBA}
+POROS =  0.41 
+
+# fr_dT ([K] ) :  Freezing window     	{OK_SECHIBA}
+fr_dT =  2.0 
+
+# OK_SNOWFACT ([FLAG]) :  Activates the smoothering of landscapes by snow, 	{}
+OK_SNOWFACT =  True if OK_FREEZE else false 
+
+# OK_FREEZE_CWRR ([FLAG]) :  CWRR freezing scheme by I. Gouttevin 	{}
+OK_FREEZE_CWRR =  True if OK_FREEZE else false 
+
+# OK_THERMODYNAMICAL_FREEZING ([FLAG]) :  Calculate frozen fraction thermodynamically  	{HYDROL_CWRR .AND. OK_FREEZE_CWRR}
+OK_THERMODYNAMICAL_FREEZING =  True 
+
+# SECHIBA_DAY ([days]) :  Time within the day simulated 	{OK_SECHIBA}
+SECHIBA_DAY =  0.0 
+
+# VEGET_UPDATE ([years]) :  Update vegetation frequency 	{LAND_USE}
+VEGET_UPDATE =  0Y 
+
+# SECHIBA_ZCANOP ([m]) :  Soil level used for canopy development (if STOMATE disactivated) 	{OK_SECHIBA and .NOT. OK_STOMATE  }
+SECHIBA_ZCANOP =  0.5 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# DT_SLOW ([seconds]) :  Time step of STOMATE and other slow processes 	{OK_STOMATE}
+DT_SLOW =  86400. 
+
+# SECHIBA_VEGMAX ([-]) :  Maximum vegetation distribution within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_VEGMAX =  0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0 
+
+# SECHIBA_FRAC_NOBIO ([-]) :  Fraction of other surface types within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_FRAC_NOBIO =  0.0 
+
+# SECHIBA_LAI ([-]) :  LAI for all vegetation types (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# SOIL_FRACTIONS ([-]) :  Fraction of the 3 soil types (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOILT}
+SOIL_FRACTIONS =  -9999._sechiba 
+
+# CLAY_FRACTION ([-] ) :  Fraction of the clay fraction (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOIL}
+CLAY_FRACTION =  0.2 
+
+# REINF_SLOPE ([-]) :  Slope coef for reinfiltration  	{IMPOSE_VEG}
+REINF_SLOPE =  0.1 
+
+# SLOWPROC_HEIGHT ([m]) :  Height for all vegetation types  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1.0, 1.0 
+
+# GET_SLOPE ([FLAG]) :  Read slopes from file and do the interpolation 	{}
+GET_SLOPE =  n 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(LAI_MAP)}
+LAI_FILE =  lai2D.nc 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAI_MAP}
+LAI_FILE =  lai2D.nc 
+
+# RENORM_LAI ([FLAG]) :  flag to force LAI renormelization 	{LAI_MAP}
+RENORM_LAI =  n 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAND_USE}
+VEGETATION_FILE =  PFTmap.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# SOILCLASS_FILE ([FILE]) :  Name of file from which soil types are read 	{NOT(IMPOSE_VEG)}
+SOILCLASS_FILE =  soils_param.nc 
+
+# SLOPE_NOREINF ([-]) :  See slope_noreinf above 	{}
+SLOPE_NOREINF =  0.5 
+
+# TOPOGRAPHY_FILE ([FILE]) :  Name of file from which the topography map is to be read 	{}
+TOPOGRAPHY_FILE =  cartepente2d_15min.nc 
+
+# SOILALB_FILE ([FILE]) :  Name of file from which the bare soil albedo 	{NOT(IMPOSE_AZE)}
+SOILALB_FILE =  soils_param.nc 
+
+# CDRAG_FROM_GCM ([FLAG]) :  Keep cdrag coefficient from gcm. 	{OK_SECHIBA}
+CDRAG_FROM_GCM =  y 
+
+# DIFFUCO_LEAFCI ([ppm]) :  Initial leaf CO2 level if not found in restart 	{OK_SECHIBA}
+DIFFUCO_LEAFCI =  233. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{}
+ALLOW_WEATHERGEN =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# ENERBIL_TSURF (Kelvin [K]) :  Initial temperature if not found in restart 	{OK_SECHIBA}
+ENERBIL_TSURF =  280. 
+
+# ENERBIL_EVAPOT () :  Initial Soil Potential Evaporation 	{OK_SECHIBA       }
+ENERBIL_EVAPOT =  0.0 
+
+# THERMOSOIL_TPRO (Kelvin [K]) :  Initial soil temperature profile if not found in restart 	{OK_SECHIBA}
+THERMOSOIL_TPRO =  280. 
+
+# HYDROL_OK_HDIFF ([FLAG]) :  do horizontal diffusion? 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)  }
+HYDROL_OK_HDIFF =  n 
+
+# HYDROL_SNOW ([kg/m^2]) :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE ([days]) :  Initial snow age if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO ([m]) :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE ([days]) :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_HUMR ([-]) :  Initial soil moisture stress if not found in restart 	{OK_SECHIBA }
+HYDROL_HUMR =  1.0 
+
+# HYDROL_BQSB ([kg/m^2]) :  Initial restart deep soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_BQSB =  999999.  
+
+# HYDROL_GQSB ([kg/m^2]) :  Initial upper soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_GQSB =  0.0 
+
+# HYDROL_DSG ([m]) :  Initial upper reservoir depth if not found in restart 	{OK_SECHIBA }
+HYDROL_DSG =  0.0 
+
+# HYDROL_QSV ([kg/m^2]) :  Initial water on canopy if not found in restart 	{OK_SECHIBA }
+HYDROL_QSV =  0.0 
+
+# HYDROL_DSP ([m]) :  Initial dry soil above upper reservoir if not found in restart 	{OK_SECHIBA }
+HYDROL_DSP =  999999. 
+
+# HYDROL_TAU_HDIFF ([seconds]) :  time scale (s) for horizontal diffusion of water 	{HYDROL_OK_HDIFF}
+HYDROL_TAU_HDIFF =  86400. 
+
+# CHECK_CWRR ([FLAG]) :  Should we check detailed CWRR water balance ? 	{HYDROL_CWRR}
+CHECK_CWRR =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{HYDROL_CWRR}
+DO_PONDS =  n 
+
+# CWRR_N_VANGENUCHTEN ([-]) :  Van genuchten coefficient n 	{HYDROL_CWRR}
+CWRR_N_VANGENUCHTEN =  1.89, 1.56, 1.31 
+
+# CWRR_A_VANGENUCHTEN ([1/mm]  ) :  Van genuchten coefficient a 	{HYDROL_CWRR}
+CWRR_A_VANGENUCHTEN =  0.0075, 0.0036, 0.0019 
+
+# VWC_RESIDUAL ([mm]  ) :  Residual soil water content 	{HYDROL_CWRR}
+VWC_RESIDUAL =  0.065, 0.078, 0.095 
+
+# VWC_SAT ([-]  ) :  Saturated soil water content 	{HYDROL_CWRR}
+VWC_SAT =  0.41, 0.43, 0.41 
+
+# CWRR_KS  ([mm/d]   ) :  Hydraulic conductivity Saturation 	{HYDROL_CWRR }
+CWRR_KS  =  1060.8, 249.6, 62.4 
+
+# WETNESS_TRANSPIR_MAX ([-]    ) :  Soil moisture above which transpir is max 	{HYDROL_CWRR}
+WETNESS_TRANSPIR_MAX =  0.5, 0.5, 0.5 
+
+# VWC_FC  ([-]   ) :  Volumetric water content field capacity 	{HYDROL_CWRR}
+VWC_FC  =  0.32, 0.32, 0.32 
+
+# VWC_WP ([-]   ) :  Volumetric water content Wilting pt 	{HYDROL_CWRR}
+VWC_WP =  0.10, 0.10, 0.10  
+
+# VWC_MIN_FOR_WET_ALB ([-]  ) :  Vol. wat. cont. above which albedo is cst 	{HYDROL_CWRR}
+VWC_MIN_FOR_WET_ALB =  0.25, 0.25, 0.25 
+
+# VWC_MAX_FOR_DRY_ALB ([-]   ) :  Vol. wat. cont. below which albedo is cst 	{HYDROL_CWRR}
+VWC_MAX_FOR_DRY_ALB =  0.1, 0.1, 0.1 
+
+# HYDROL_MOISTURE_CONTENT () :  Soil moisture on each soil tile and levels 	{HYDROL_CWRR       }
+HYDROL_MOISTURE_CONTENT =  0.3 
+
+# US_INIT () :  US_NVM_NSTM_NSLM 	{HYDROL_CWRR       }
+US_INIT =  0.0 
+
+# FREE_DRAIN_COEF ([-]) :  Coefficient for free drainage at bottom, dimension nstm 	{HYDROL_CWRR       }
+FREE_DRAIN_COEF =  1.0 1.0 1.0 
+
+# WATER_TO_INFILT () :  Water to be infiltrated on top of the soil 	{HYDROL_CWRR    }
+WATER_TO_INFILT =  0.0 
+
+# EVAPNU_SOIL () :  Bare soil evap on each soil if not found in restart 	{HYDROL_CWRR  }
+EVAPNU_SOIL =  0.0 
+
+# HYDROL_SNOW () :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE () :  Initial snow age if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO () :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE () :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_QSV () :  Initial water on canopy if not found in restart 	{OK_SECHIBA}
+HYDROL_QSV =  0.0 
+
+# CWRR_NKS_N0  ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_N0  =  0.95 
+
+# CWRR_NKS_POWER ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_POWER =  0.34 
+
+# CWRR_AKS_A0  ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_A0  =  0.00012 
+
+# CWRR_AKS_POWER ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_POWER =  0.53 
+
+# KFACT_DECAY_RATE ([-]) :  Factor for Ks decay with depth 	{HYDROL_CWRR }
+KFACT_DECAY_RATE =  2.0 
+
+# KFACT_STARTING_DEPTH ([-]) :  Depth for compacted value of Ks  	{HYDROL_CWRR }
+KFACT_STARTING_DEPTH =  0.3 
+
+# KFACT_MAX ([-]) :  Maximum Factor for Ks increase due to vegetation 	{HYDROL_CWRR }
+KFACT_MAX =  10.0 
+
+# ROUTING_TIMESTEP ([seconds]) :  Time step of the routing scheme 	{RIVER_ROUTING}
+ROUTING_TIMESTEP =  86400. 
+
+# ROUTING_RIVERS ([-]) :  Number of rivers  	{RIVER_ROUTING}
+ROUTING_RIVERS =  50 
+
+# DO_FLOODINFILT ([FLAG]) :  Should floodplains reinfiltrate into the soil  	{RIVER_ROUTING}
+DO_FLOODINFILT =  n 
+
+# DO_SWAMPS ([FLAG]) :  Should we include swamp parameterization  	{RIVER_ROUTING}
+DO_SWAMPS =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{RIVER_ROUTING}
+DO_PONDS =  n 
+
+# SLOW_TCST ([days]) :  Time constant for the slow reservoir  	{RIVER_ROUTING }
+SLOW_TCST =  n 
+
+# FAST_TCST ([days]) :  Time constant for the fast reservoir  	{RIVER_ROUTING }
+FAST_TCST =  fast_tcst_cwrr or fast_tcst_chois depending on flag HYDROL_CWRR 
+
+# STREAM_TCST ([days]) :  Time constant for the stream reservoir  	{RIVER_ROUTING}
+STREAM_TCST =  stream_tcst_cwrr or stream_tcst_chois depending on flag HYDROL_CWRR 
+
+# FLOOD_TCST ([days]) :  Time constant for the flood reservoir  	{RIVER_ROUTING}
+FLOOD_TCST =  4.0 
+
+# SWAMP_CST ([-]) :  Fraction of the river that flows back to swamps  	{RIVER_ROUTING}
+SWAMP_CST =  0.2 
+
+# FLOOD_BETA ([-] ) :  Parameter to fix the shape of the floodplain   	{RIVER_ROUTING}
+FLOOD_BETA =  2.0 
+
+# POND_BETAP ([-] ) :  Ratio of the basin surface intercepted by ponds and the maximum surface of ponds 	{RIVER_ROUTING}
+POND_BETAP =  0.5 
+
+# FLOOD_CRI ([mm] ) :  Potential height for which all the basin is flooded 	{DO_FLOODPLAINS or DO_PONDS}
+FLOOD_CRI =  2000. 
+
+# POND_CRI ([mm] ) :  Potential height for which all the basin is a pond 	{DO_FLOODPLAINS or DO_PONDS}
+POND_CRI =  2000. 
+
+# RIVER_DESC ([FLAG]) :  Writes out a description of the rivers 	{RIVER_ROUTING}
+RIVER_DESC =  n 
+
+# RIVER_DESC_FILE ([FILE]) :  Filename in which we write the description of the rivers. If suffix is ".nc" a netCDF file is created 	{RIVER_DESC}
+RIVER_DESC_FILE =  river_desc.txt 
+
+# ROUTING_FILE ([FILE]) :  Name of file which contains the routing information 	{RIVER_ROUTING}
+ROUTING_FILE =  routing.nc 
+
+# IRRIGATION_FILE ([FILE]) :  Name of file which contains the map of irrigated areas 	{DO_IRRIGATION OR DO_FLOODPLAINS}
+IRRIGATION_FILE =  floodplains.nc 
+
+# EPS_CARBON ([%]   ) :  Allowed error on carbon stock 	{SPINUP_ANALYTIC}
+EPS_CARBON =  0.01 
+
+# SPINUP_PERIOD ([years]   ) :  Period to calulcate equilibrium during spinup analytic 	{SPINUP_ANALYTIC}
+SPINUP_PERIOD =  -1 
+
+# STOMATE_FORCING_NAME ([FILE]) :  Name of STOMATE's forcing file 	{OK_STOMATE}
+STOMATE_FORCING_NAME =  NONE 
+
+# STOMATE_FORCING_MEMSIZE ([MegaBytes]) :  Size of STOMATE forcing data in memory  	{OK_STOMATE}
+STOMATE_FORCING_MEMSIZE =  50 
+
+# STOMATE_CFORCING_NAME ([FILE]) :  Name of STOMATE's carbon forcing file 	{OK_STOMATE}
+STOMATE_CFORCING_NAME =  NONE 
+
+# FORCESOIL_STEP_PER_YEAR ([days, months, year]) :  Number of time steps per year for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_STEP_PER_YEAR =  365 
+
+# FORCESOIL_NB_YEAR ([years]) :  Number of years saved for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_NB_YEAR =  1 
+
+# REFTEMP_FILE ([FILE]) :  Name of file from which the reference temperature can be read 	{OK_STOMATE}
+REFTEMP_FILE =  NONE 
+
+# XIOS_ORCHIDEE_OK ([FLAG]) :  Use XIOS for writing diagnostics file 	{}
+XIOS_ORCHIDEE_OK =  n 
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/PARAM/run.def	(revision 5631)
@@ -0,0 +1,118 @@
+SOILTYPE_CLASSIF = zobler 
+SOILALB_FILE     = soils_param.nc
+SOILCLASS_FILE   = soils_param.nc
+
+# DO_RSOIL : Reduce soil evaporation with a soil resistance
+DO_RSOIL = n
+
+# To make AVAN and NVAN constant with depth
+CWRR_AKS_A0 = 0.
+CWRR_AKS_POWER = 0.
+CWRR_NKS_A0 = 0.
+CWRR_NKS_POWER = 0.
+
+#**************************************************************************
+
+# STRESS_GS, STRESS_GM, STRESS_VCMAX : Stress on GS, GM and VCMAX (15 values, without space to have short line readable)
+STRESS_GS=1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.
+STRESS_GM=1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.
+STRESS_VCMAX=1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.
+
+# Optimized parameters for albedo
+ALB_LEAF_NIR = 0.,0.23,0.18,0.18,0.20,0.24,0.15,0.26,0.20,0.24,0.27,0.28,0.26
+ALB_LEAF_VIS = 0.,0.04,0.04,0.04,0.04,0.03,0.03,0.03,0.03,0.06,0.06,0.06,0.06
+SNOWA_AGED_NIR = 0.50,0,0,0.10,0.37,0.08,0.16,0.17,0.27,0.44,0.44,0.44,0.44
+SNOWA_DEC_NIR = 0.13,0,0,0.10,0.10,0.16,0.04,0.07,0.08,0.12,0.12,0.12,0.12
+SNOWA_AGED_VIS = 0.74,0,0,0.08,0.24,0.07,0.18,0.18,0.33,0.57,0.57,0.57,0.57
+SNOWA_DEC_VIS = 0.21,0,0,0.14,0.08,0.17,0.05,0.06,0.09,0.15,0.15,0.15,0.15
+
+# Optimized parameters for photosynthetic capacity 
+VCMAX25__02 = 45.0
+VCMAX25__03 = 45.0
+VCMAX25__04 = 35.0
+VCMAX25__05 = 40.0
+VCMAX25__06 = 50.0
+VCMAX25__07 = 45.0
+VCMAX25__08 = 35.0
+VCMAX25__09 = 35.0
+VCMAX25__10 = 50.0
+VCMAX25__11 = 50.0
+VCMAX25__12 = 60.0
+VCMAX25__13 = 60.0
+
+# Optimized parameters for LAI
+LAI_MAX__02 = 7.0
+LAI_MAX__03 = 5.0
+LAI_MAX__04 = 5.0
+LAI_MAX__05 = 4.0
+LAI_MAX__06 = 5.0
+LAI_MAX__07 = 3.5
+LAI_MAX__08 = 4.0
+LAI_MAX__09 = 3.0
+LAI_MAX__10 = 2.5
+LAI_MAX__11 = 2.0
+LAI_MAX__12 = 5.0
+LAI_MAX__13 = 5.0
+
+# Activate downregulation for CO2
+DOWNREGULATION_CO2=y
+DOWNREGULATION_CO2_BASELEVEL=380.
+
+# Activate harvest of wood
+DO_WOOD_HARVEST=n
+
+# Growth respiration
+FRAC_GROWTHRESP__02 = 0.35
+FRAC_GROWTHRESP__03 = 0.35
+FRAC_GROWTHRESP__04 = 0.28
+FRAC_GROWTHRESP__05 = 0.28
+FRAC_GROWTHRESP__06 = 0.28
+FRAC_GROWTHRESP__07 = 0.35
+FRAC_GROWTHRESP__08 = 0.35
+FRAC_GROWTHRESP__09 = 0.35
+FRAC_GROWTHRESP__10 = 0.28
+FRAC_GROWTHRESP__11 = 0.28
+FRAC_GROWTHRESP__12 = 0.28
+FRAC_GROWTHRESP__13 = 0.28
+
+# Maintenance respiration slope C
+MAINT_RESP_SLOPE_C__02 = 0.12
+MAINT_RESP_SLOPE_C__03 = 0.12
+MAINT_RESP_SLOPE_C__04 = 0.16
+MAINT_RESP_SLOPE_C__05 = 0.16
+MAINT_RESP_SLOPE_C__06 = 0.16
+MAINT_RESP_SLOPE_C__07 = 0.25
+MAINT_RESP_SLOPE_C__08 = 0.25
+MAINT_RESP_SLOPE_C__09 = 0.25
+MAINT_RESP_SLOPE_C__10 = 0.16
+MAINT_RESP_SLOPE_C__11 = 0.12
+MAINT_RESP_SLOPE_C__12 = 0.16
+MAINT_RESP_SLOPE_C__13 = 0.12
+
+# Soil turnover
+CARBON_TAU_ISLOW = 7
+CARBON_TAU_IPASSIVE = 300
+
+# Parameters related to surface and thermal physical properties
+#************************************************************************
+# Read bare soil albedo from file with background MODIS data
+ALB_BG_MODIS = y
+ALB_BG_FILE  = alb_bg.nc
+
+# ROUGH_DYN : Account for a dynamic roughness height (activation of Su et al. parametrization)
+ROUGH_DYN=y
+
+# OK_FREEZE :  Activate the complet soil freezing scheme
+OK_FREEZE=y
+
+# DEPTH_MAX_T (m) :  Maximum depth of the soil thermodynamics
+DEPTH_MAX_T=90
+
+# OK_EXPLICITSNOW :  Activate explict snow scheme
+OK_EXPLICITSNOW=y
+ 
+# READ_REFTEMP :  Initialize soil temperature using climatological temperature
+READ_REFTEMP=y
+
+# Deactivate fire
+FIRE_DISABLE=y
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/README
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/README	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/README	(revision 5631)
@@ -0,0 +1,49 @@
+This configuration serves to launch a set of simulations
+========================================================
+
+ Presentation of the ENSEMBLE directory 
+ **************************************
+ (once having executed the "ins_job" command - see the documentation for installing the scripts)
+ The configuration files
+ a) Like for any configuration making used of libIGCM,
+    it contains the following files 
+    - config.card : contains the information on JobName, TagName, Dates et Restart.
+    - a Job_${JobName} (by default Job_Sp) 
+    - a file run.card.init that will serve at following how are progressing the simulations
+ b) two configuration cards, ensemble.card (for ENSEMBLE simulations) and fluxnet.card (for simulations over fluxnet sites): it contains information on the list of simulations/sites, their type and the parameters associated to the simulated that will be launched
+ c) the two parameter files (under PARAM/) : orchidee.default and run.def
+
+ The following files should not be modified :
+ d) the master job Job_ENSEMBLE
+ e) the master job Job_Post_FLUXNET for the post-treatement for the fluxnet.card
+ f) the atlas scripts atlas_FLUXNET_V1.cfg and atlas_FLUXNET_taylor.cfg
+ g) two ferret scripts taylor_arrow_fluxnet_final_1.jnl and taylor_arrow_fluxnet_final_2.jnl used for post-treatment for the fluxnet.card 
+ h) the librairies ensemble.ksh and post_FLUXNET
+
+
+ The successive stages to perform :
+ **********************************
+ 1) For doing a simulation, you should first modify the config.card
+    - JobName=Sp
+    - WriteFrequency="1800s" (if needed)
+    - Restart=n (if needed)
+    - TimeSeriesFrequency= NONE (if needed)
+
+ 2) Then, create the appropriate JobName with the following command :
+  myprompt> ../../../libIGCM/ins_job
+ 
+ 3) Call ins_job as well under /config/ORCHIDEE_OL/SPINUP and the needed subdirectories (for instance /config/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO)
+
+ 4) Due to a problem with the current libIGCM version (libIGCM/trunk rev 1424), comment the following lines in libIGCM/libIGCM_com/libIGCM_com.ksh
+    #  else
+    #    IGCM_debug_Exit "This compiler version is not yet supported : ${compilerVersion}" 
+ 
+ 5) Then, for executing the job and launching all the sub jobs, simply type, for an ENSEMBLE simulation based on ensemble.card
+  myprompt> ./Job_ENSEMBLE ensemble > out.Job_ENSEMBLE 
+
+    Or, for a FLUXNET simulation based on fluxnet.card
+  myprompt> ./Job_ENSEMBLE fluxnet > out.Job_ENSEMBLE
+  
+ 6) In case of FLUXNET simulations, once they are finished, you can launch post-treatments for creating plots by simply typing:
+  myprompt> ./Job_Post_FLUXNET fluxnet > out_Post 2>&1
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/atlas_FLUXNET_V1.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/atlas_FLUXNET_V1.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/atlas_FLUXNET_V1.cfg	(revision 5631)
@@ -0,0 +1,123 @@
+#!/bin/ksh
+#set -vx
+
+#**************************************************************
+# Author: Nicolas Vuichard
+# Contact: Nicolas.Vuichard@lsce.jussieu.fr
+# $Date:
+# $Name$
+# $Revision: 1 $
+# History:
+# Modification: Nicolas Vuichard
+#
+#**************************************************************
+
+input=$@
+paper=-p
+quality=cx1800
+#cx800 cx1200
+#frequency=1:12:6
+echo $input
+#reference_file=RRRRRRR
+#validation directory=VVVVVVV
+debug=
+#-d
+
+# Ratio one day over time step
+one_day=86400
+ratio=$(( one_day/1800 ))
+
+pwd
+
+cp ../ORCHIDEE_3dif.jnl .
+#----------------------
+
+echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "PFT distribution" -o  pft ORCHIDEE_pft.jnl \
+                                                                      "\"PFT distribution\" RRRRRRR inputfile MAXVEGETFRAC"
+
+
+for freq in Day Month Year
+do
+    if [ $freq = Day ] 
+    then
+	ssbx=10
+    else 
+	ssbx=1
+    fi
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Sensible heat flux : $freq" -o  fluxsens_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"Sensible heat flux : $freq\" VVVVVVV RRRRRRR inputfile H_f Qh $freq \"W/m2\" $ssbx"
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Latent heat flux : $freq" -o  fluxlat_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"Latent heat flux : $freq\" VVVVVVV RRRRRRR inputfile LE_f Qle $freq \"W/m2\" $ssbx"
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Net radiation : $freq" -o  netrad_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"Net radiation : $freq\" VVVVVVV RRRRRRR inputfile Rn_f swnet+lwnet $freq \"W/m2\" $ssbx"
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Ground heat flux : $freq" -o  groundheat_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"Ground heat flux : $freq\" VVVVVVV RRRRRRR inputfile g_f Qg $freq \"W/m2\" $ssbx"
+
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Surface Temperature : $freq" -o  tsoil_$freq ORCHIDEE_3dif.jnl \
+                                                                       "\"Surface Temperature : $freq\" VVVVVVV RRRRRRR inputfile Ts1_f (AvgSurfT-273.15) $freq \"degC\" $ssbx"
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Potential evapotranspiration : $freq" -o  epot_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"Potential evapotranspiration : $freq\" VVVVVVV RRRRRRR inputfile (Epot_f*24) (PotEvap*${one_day}) $freq \"mm/d\" $ssbx"
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Soil moisture content 1 : $freq" -o  humr1_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"Soil moisture content 1 : $freq\" VVVVVVV RRRRRRR inputfile SWC1_f SoilWet*100 $freq \"%\" $ssbx"
+
+    ext_coef=0.5
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "LAI : $freq" -o  lai_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"lai : $freq\" VVVVVVV RRRRRRR inputfile (Ts1_f/4) (0.-maxvegetfrac*ln(1.-vegetfrac/maxvegetfrac)/$ext_coef) $freq \"1\" $ssbx"
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "LAI vs FAPAR : $freq" -o  lai_fapar_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"lai vs FAPAR : $freq\" VVVVVVV RRRRRRR inputfile (-1.*ln(1.-FAPAR)/($ext_coef)) (0.-maxvegetfrac*ln(1.-vegetfrac/maxvegetfrac)/$ext_coef) $freq \"1\" $ssbx"
+
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Net Ecosystem Exchange : $freq" -o  nee_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"Net Ecosystem Exchange : $freq\" VVVVVVV RRRRRRR inputfile (NEE*${ratio}) (NEE*${one_day}) $freq \"gC/m2/day\" $ssbx"
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Gross Primary Productivity : $freq" -o  gpp_$freq ORCHIDEE_3dif.jnl \
+                                                                           "\"Gross Primary Productivity : $freq\" VVVVVVV RRRRRRR inputfile (GPP*${ratio}) (GPP*${one_day}) $freq \"gC/m2/day\" $ssbx"
+
+    echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "Total Ecosystem Respiration : $freq" -o  reco_$freq ORCHIDEE_3dif.jnl \
+                                                                      "\"Total Ecosystem Respiration : $freq\" VVVVVVV RRRRRRR inputfile (Reco*${ratio}) ((maint_resp+hetero_resp+growth_resp)*${one_day}) $freq \"gC/m2/day\" $ssbx"
+
+done
+
+
+
+
+#Â Diurnal cycle
+
+let ANNEE=0
+while [ $ANNEE -lt $DUREE ]; do
+  let ANNEE2=$ANNEE+1
+  echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -s ${ANNEE}:${ANNEE}:1 -p -i "Sensible heat flux : climatologie_${ANNEE2}" -o  fluxsens_day ORCHIDEE_12day.jnl \
+                                                                                               "\"Sensible heat flux\" VVVVVVV RRRRRRR inputfile H_f Qh sloop"
+
+  echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -s ${ANNEE}:${ANNEE}:1 -p -i "Latent heat flux : climatologie_${ANNEE2}" -o  fluxlat_day ORCHIDEE_12day.jnl \
+                                                                                               "\"Latent heat flux\" VVVVVVV RRRRRRR inputfile LE_f Qle sloop"
+
+  echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -s ${ANNEE}:${ANNEE}:1 -p -i "Net radiation : climatologie_${ANNEE2}" -o  netrad_day ORCHIDEE_12day.jnl \
+                                                                                               "\"Net radiation\" VVVVVVV RRRRRRR inputfile Rn_f swnet+lwnet sloop"
+
+  echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -s ${ANNEE}:${ANNEE}:1 -p -i "Ground heat flux : climatologie_${ANNEE2}" -o  groundheat_day ORCHIDEE_12day.jnl \
+                                                                                               "\"Ground heat flux\" VVVVVVV RRRRRRR inputfile g_f Qg sloop"
+
+
+  echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -s ${ANNEE}:${ANNEE}:1 -p -i "Surface Temperature : climatologie_${ANNEE2}" -o  tsoil_day ORCHIDEE_12day.jnl \
+                                                                                               "\"Surface Temperature\" VVVVVVV RRRRRRR inputfile Ts1_f (AvgSurfT-273.15) sloop"
+
+  echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -s ${ANNEE}:${ANNEE}:1 -p -i "gpp : climatologie_${ANNEE2}" -o  gpp_day ORCHIDEE_12day.jnl \
+                                                                                               "\"GPP\" VVVVVVV RRRRRRR inputfile (GPP*${ratio}) (GPP*${one_day}) sloop" 
+
+  echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -s ${ANNEE}:${ANNEE}:1 -p -i "nee : climatologie_${ANNEE2}" -o  nee_day ORCHIDEE_12day.jnl \
+                                                                                               "\"nee\" VVVVVVV RRRRRRR inputfile (NEE*${ratio}) (NEE*${one_day}) sloop" 
+
+  echo $input | ferretloop - ${debug} --ps2gif_option "-g $quality" -s ${ANNEE}:${ANNEE}:1 -p -i "Ecosystem respiration : climatologie_${ANNEE2}" -o reco_day ORCHIDEE_12day.jnl \
+                                                                                               "\"Ecosystem respiration\" VVVVVVV RRRRRRR inputfile (Reco*${ratio}) ((maint_resp+hetero_resp+growth_resp)*${one_day}) sloop"
+
+  let ANNEE=$ANNEE+1
+done
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/atlas_FLUXNET_taylor.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/atlas_FLUXNET_taylor.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/atlas_FLUXNET_taylor.cfg	(revision 5631)
@@ -0,0 +1,119 @@
+#!/bin/ksh
+#set -vx
+
+#**************************************************************
+# Author: Nicolas Vuichard
+# Contact: Nioclas.Vuichard@lsce.jussieu.fr
+# $Date: July 2011
+# $Name$
+# $Revision: 1 $
+# History:
+# Modification: 
+#
+#**************************************************************
+
+
+
+input=$@
+paper=-p
+quality=cx1800
+debug=
+flag_reference_file=0
+group=GRA
+config_ref=
+config_eval=
+
+
+mv ../stat_${config_eval}_${config_ref}_${group}_GPP_hour.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_GPP_day.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_GPP_month.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_GPP_year.csv .
+
+mv ../stat_${config_eval}_${config_ref}_${group}_TER_hour.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_TER_day.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_TER_month.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_TER_year.csv .
+
+mv ../stat_${config_eval}_${config_ref}_${group}_NEE_hour.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_NEE_day.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_NEE_month.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_NEE_year.csv .
+
+mv ../stat_${config_eval}_${config_ref}_${group}_SH_hour.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_SH_day.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_SH_month.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_SH_year.csv .
+
+mv ../stat_${config_eval}_${config_ref}_${group}_LH_hour.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_LH_day.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_LH_month.csv .
+mv ../stat_${config_eval}_${config_ref}_${group}_LH_year.csv .
+
+
+cp ../taylor_arrow_fluxnet_final_2.jnl .
+
+
+
+# Ratio one day over time step
+one_day=86400
+ratio=$(( one_day/1800 ))
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_GPP_hour.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "hour-to-hour GPP variability" -o  gpp_hour taylor_arrow_fluxnet_final_2.jnl "${NumSites} hour $flag_reference_file GPP ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_GPP_day.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "day-to-day GPP variability" -o  gpp_day taylor_arrow_fluxnet_final_2.jnl "${NumSites} day $flag_reference_file GPP ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_GPP_month.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "month-to-month GPP variability" -o  gpp_month taylor_arrow_fluxnet_final_2.jnl "${NumSites} month $flag_reference_file GPP ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_GPP_year.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "year-to-year GPP variability" -o  gpp_year taylor_arrow_fluxnet_final_2.jnl "${NumSites} year $flag_reference_file GPP ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_TER_hour.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "hour-to-hour TER variability" -o  ter_hour taylor_arrow_fluxnet_final_2.jnl "${NumSites} hour $flag_reference_file TER ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_TER_day.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "day-to-day TER variability" -o  ter_day taylor_arrow_fluxnet_final_2.jnl "${NumSites} day $flag_reference_file TER ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_TER_month.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "month-to-month TER variability" -o  ter_month taylor_arrow_fluxnet_final_2.jnl "${NumSites} month $flag_reference_file TER ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_TER_year.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "year-to-year TER variability" -o  ter_year taylor_arrow_fluxnet_final_2.jnl "${NumSites} year $flag_reference_file TER ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_NEE_hour.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "hour-to-hour NEE variability" -o  nee_hour taylor_arrow_fluxnet_final_2.jnl "${NumSites} hour $flag_reference_file NEE ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_NEE_day.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "day-to-day NEE variability" -o  nee_day taylor_arrow_fluxnet_final_2.jnl "${NumSites} day $flag_reference_file NEE ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_NEE_month.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "month-to-month NEE variability" -o  nee_month taylor_arrow_fluxnet_final_2.jnl "${NumSites} month $flag_reference_file NEE ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_NEE_year.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "year-to-year NEE variability" -o  nee_year taylor_arrow_fluxnet_final_2.jnl "${NumSites} year $flag_reference_file NEE ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_SH_hour.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "hour-to-hour SH variability" -o  sh_hour taylor_arrow_fluxnet_final_2.jnl "${NumSites} hour $flag_reference_file SH ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_SH_day.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "day-to-day SH variability" -o  sh_day taylor_arrow_fluxnet_final_2.jnl "${NumSites} day $flag_reference_file SH ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_SH_month.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "month-to-month SH variability" -o  sh_month taylor_arrow_fluxnet_final_2.jnl "${NumSites} month $flag_reference_file SH ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_SH_year.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "year-to-year SH variability" -o  sh_year taylor_arrow_fluxnet_final_2.jnl "${NumSites} year $flag_reference_file SH ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_LH_hour.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "hour-to-hour LH variability" -o  lh_hour taylor_arrow_fluxnet_final_2.jnl "${NumSites} hour $flag_reference_file LH ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_LH_day.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "day-to-day LH variability" -o  lh_day taylor_arrow_fluxnet_final_2.jnl "${NumSites} day $flag_reference_file LH ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_LH_month.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "month-to-month LH variability" -o  lh_month taylor_arrow_fluxnet_final_2.jnl "${NumSites} month $flag_reference_file LH ${config_eval} ${config_ref} ${group}"
+
+NumSites=`wc -l stat_${config_eval}_${config_ref}_${group}_LH_year.csv | sed -e "s/\([0-9]*\).*/\1/g"`
+echo ${input} | ferretloop - ${debug} --ps2gif_option "-g $quality" -p -i "year-to-year LH variability" -o  lh_year taylor_arrow_fluxnet_final_2.jnl "${NumSites} year $flag_reference_file LH ${config_eval} ${config_ref} ${group}"
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/config.card	(revision 5631)
@@ -0,0 +1,85 @@
+#
+# This is config.card file for restart with an NEW libIGCM simulation tree.
+#
+#====================================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=Ens
+LongName="ENSEMBLE Spinup : test en changeant HYDROL_SOIL_DEPTH et HYDROL_HUMCSTE."
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=PROD
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=ensemble
+#----- ARCHIVE : path for archive directory in which IGCM_OUT directory will be created.
+#For example at curie: ARCHIVE=$WORKDIR or ARCHIVE=$SCRATCHDIR
+#at obelix: ARCHIVE=/home/scratch01/$LOGIN
+ARCHIVE=$SCRATCHDIR
+#============================
+#-- leap, noleap, 360d
+CalendarType= gregorian
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1850-01-01
+DateEnd=1999-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength= 1Y
+PeriodNb= 1
+#============================
+#-- Total Number of Processors (minimum is 2 for a coupled configuration)
+JobNumProcTot=1
+
+#========================================================================
+#========================================================================
+#D-- SRF options passed to SuRFace (SECHIBA) subjobs
+[SRF]
+WriteFrequency="1800s"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1997-12-31
+# Define restart simulation name
+RestartJobName=SPINUP
+RestartPath=${ARCHIVE}/${LOGIN}/IGCM_OUT/${config_UserChoices_TagName}
+# Old component name for restart (if empty, use new name)
+OldName=
+
+#D-- Surface BioGeochemistry ( STOMATE ) subjobs
+[SBG]
+WriteFrequency="1M"
+Restart= n
+#-- Last day of the experience used as restart
+RestartDate= 1900-12-31
+# Define restart simulation name
+RestartJobName= SPINUP
+RestartPath=${ARCHIVE}/${LOGIN}/IGCM_OUT/${config_UserChoices_TagName}
+# Old component name for restart (if empty, use new name)
+OldName=
+
+#D-- Post-treatment options passed to SubJobs on all sites
+# WARNING : You can use thoses options only if you set CONSERVE=y in fluxnet.card
+[SubJobPost]
+#D- Do we rebuild parallel output, this flag determines
+#D- frequency of rebuild submission
+RebuildFrequency=NONE
+#D- Do we rebuild parallel output from archive (use NONE to use SCRATCHDIR as buffer)
+RebuildFromArchive=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=NONE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=NONE
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset=0
+
+#========================================================================
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/ensemble.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/ensemble.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/ensemble.card	(revision 5631)
@@ -0,0 +1,167 @@
+[CONFIG]
+# - Forcing files path
+ForcingPath=${R_BC}/OOL/${config_UserChoices_TagName}/NCC
+
+# - Number of PFTs :
+NbPFTs= 13
+
+# - Information on the sites to be treated :
+#   * Number of physical parameters on each sites per PFTs
+NbSitesParam= 2
+# 4 first parameters are Name, Forcing file, Begin date, Number of years in forcing file
+
+#   * ORCHIDEE name for physical parameters on each sites
+#   PFT (IMPOSE_VEG), \
+#   initial LAI (IMPOSE_VEG)
+NameSitesParam= ( HYDROL_SOIL_DEPTH, HYDROL_HUMCSTE )
+
+# Sites descriptions :
+# Number
+NbSites=2
+#       Abbrv,  Filename ,      Inital year (for gregorian calendar) , Length (Y),  \
+#param 1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  12,  13
+Sites= ( NCC2, ncc_for_${year}.nc   ,          1950,                         1    , \
+         2.0, \
+         5., .8, .8, 1., .8, .8, 1., 1., .8, 4., 4., 4., 4.) \
+\
+       ( NCC4, ncc_for_${year}.nc   ,          1950,                         1     , \
+         4.0, \
+         5., .4, .4, 1., .8, .8, 1., 1., .8, 4., 1., 4., 1.)
+
+# The following tables of parameters for SECHIBA
+# are in the following order :
+#
+#    1 - Bare soil
+#    2 - tropical  broad-leaved evergreen
+#    3 - tropical  broad-leaved raingreen
+#    4 - temperate needleleaf   evergreen
+#    5 - temperate broad-leaved evergreen
+#    6 - temperate broad-leaved summergreen
+#    7 - boreal    needleleaf   evergreen
+#    8 - boreal    broad-leaved summergreen
+#    9 - boreal    needleleaf   summergreen
+#   10 -           C3           grass
+#   11 -           C4           grass
+#   12 -           C3           agriculture
+#   13 -           C4           agriculture
+
+[SPINUP]
+    # SPINUP configuration : 
+    # ----------------------
+# !! Step of time in N Years !!
+# !! The spinup will change if the ensemble file contains more than one year !!
+#    ( N = Number of years contain in ensemble forcing file ) 
+#     each Year * N
+
+# Initialisation for spin-up :
+# orchidee with sechiba alone (!!! if ok_stomate == n !!!)
+duree_nostomate=0
+# orchidee with stomate
+duree_inistomate=20
+# teststomate (only if duree_nostomate or duree_inistomate > 0)
+duree_offlineini=0
+
+# Loop configuration for spin-up :
+# The whole job is restarted n_iter times
+n_iter=2
+# orchidee with sechiba (and stomate if ok_stomate=y below)
+duree_sechiba=20
+# teststomate
+duree_stomate=400
+# forcesoil
+duree_carbonsol=5000
+
+# Finalization for spin-up :
+# all orchidee
+duree_final=20
+# This last parameter must be non-zero.
+
+
+[UserChoices]
+
+#
+###-- STOMATE flag
+#
+ok_stomate=y
+#
+###-- OK_CO2 flag
+#
+ok_co2=y
+
+#
+###-- LAI flag
+#
+lai_map=n
+
+#
+###-- fix vÃ©gÃ©tation flag
+#
+impose_veg=n
+
+#
+###-- historical vegetation maps
+#
+land_use=n
+
+#
+###-- ROUTING flag
+#
+ok_routing=n
+
+#
+###-- NEW HYDROL CWRR flag
+#
+ok_newhydrol=n
+
+#
+## DEBUG mode for SPINUP 
+#
+# This mode keep all SPINUP directory in ARCHIVE
+# If disable, all ARCHIVE is automaticly cleaned.
+# 
+DEBUG_SPIN=n
+# If you don't want to keep old spinup steps, but last one
+CONSERVE=y
+
+# History levels
+level_hist=2
+level_hist_final=5
+
+
+[SubJobParams]
+# You can specify here any parameters to be modified in run.def
+DEBUG_INFO=n
+LONGPRINT=n
+BAVARD=0
+ALLOW_WEATHERGEN=n
+SECHIBA_reset_time=y
+XIOS_ORCHIDEE_OK=n
+# ensemble files have hour frequency values. NCC files
+SPLIT_DT=12
+SPRED_PREC=3
+
+
+# Western limit of region
+# Western limit of the region we are 
+#  interested in. Between -180 and +180 degrees
+LIMIT_WEST = -180.
+# default = -180.
+
+# Eastern limit of region
+# Eastern limit of the region we are
+#  interested in. Between -180 and +180 degrees
+LIMIT_EAST = 180.
+# default = 180.
+
+# Northern limit of region
+# Northern limit of the region we are
+#  interested in. Between +90 and -90 degrees
+LIMIT_NORTH = 90.
+# default = 90.
+
+# Southern limit of region
+# Southern limit of the region we are
+#  interested in. Between 90 and -90 degrees
+LIMIT_SOUTH = -90.
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/ensemble.ksh
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/ensemble.ksh	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/ensemble.ksh	(revision 5631)
@@ -0,0 +1,252 @@
+#!/bin/ksh
+
+#D--------------------------------------------------------------------==
+
+function ENSEMBLE_initialize
+{
+    IGCM_debug_PushStack "ENSEMBLE_initialize"
+
+    # config.card : 
+    # -------------
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card UserChoices
+    typeset option
+    for option in ${config_UserChoices[*]} ; do
+	IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card UserChoices ${option}
+    done
+    
+    DateBegin=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} )
+    IGCM_date_GetYearMonth ${DateBegin} year month
+    
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card SubJobPost
+    typeset option
+    for option in ${config_SubJobPost[*]} ; do
+	IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SubJobPost ${option}
+    done
+    
+    # Subjobs configuration : 
+    # -----------------------
+
+    # 1) UserChoices section of your card
+
+    # This section groups standard options to be passed to ORCHIDEE.
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/ensemble.card UserChoices
+    set +A ensemble_UserChoices -- ${ensemble_UserChoices[*]} > /dev/null 2>&1
+    typeset option
+    for option in ${ensemble_UserChoices[*]} ; do
+	IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/ensemble.card UserChoices ${option}
+    done
+
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card SRF
+    typeset option
+    for option in ${config_SRF[*]} ; do
+	IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SRF ${option}
+    done
+    if [ X"${ensemble_UserChoices_ok_stomate}" = "Xy" ] ; then
+	IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card SBG
+	typeset option
+	for option in ${config_SBG[*]} ; do
+	    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG ${option}
+	done
+    fi
+    
+    # 2) CONFIG section :
+
+    # This section groups specific options for ENSEMBLE configuration :
+    # - Forcing files path
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/ensemble.card CONFIG ForcingPath
+
+    # - List of the sites/information to be treated :
+    #   * Number of PFTs
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/ensemble.card CONFIG NbPFTs
+    NbPFTs=${ensemble_CONFIG_NbPFTs}
+
+    #   * Number of physical parameters on each sites per PFTs
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/ensemble.card CONFIG NbSitesParam
+    #   * ORCHIDEE name for physical parameters on each sites
+    IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/ensemble.card CONFIG NameSitesParam
+    #   * Sites descriptions
+
+    IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/ensemble.card CONFIG Groups
+
+    if [ X${ensemble_CONFIG_Groups[0]} == X"Option" ] ; then
+	typeset name=ensemble_CONFIG_Groups
+	eval unset ${name}
+	eval ${name}[0]=${NULL_STR}
+	set +A ${name} -- Sites
+    fi
+    for group in ${ensemble_CONFIG_Groups[*]} ; do
+	IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/ensemble.card CONFIG $group
+    done
+
+    first_group=${ensemble_CONFIG_Groups[*]}
+    echo 'first group:' ${first_group}
+
+    NumInfosBySite=4
+    (( iphys = 0 ))
+    while [ $iphys -lt ${ensemble_CONFIG_NbSitesParam} ] ; do
+	
+	# Detect if physical parameter has 
+        #  array description or line per PFT description in the parameter file
+	SearchParam=""
+	ORCHIDEE_grep ${ensemble_CONFIG_NameSitesParam[${iphys}]}
+	echo 'Param:' ${ensemble_CONFIG_NameSitesParam[${iphys}]}
+	echo 'SearchParam:' ${SearchParam}
+	echo 'nbPFTs:' $NbPFTs
+	case ${SearchParam} in
+	    undefined)
+		echo "ERROR : parameter ${ensemble_CONFIG_NameSitesParam[${iphys}]} doesn't exist in run.def parameter file !"
+		echo "You must correct NameSiteParam option in your card file or add new parameter in run.def file"
+		echo "We must STOP here."
+		exit 1
+		;;
+	    value)
+		(( NumInfosBySite = NumInfosBySite + 1 ))
+		;;
+	    line)
+		(( NumInfosBySite = NumInfosBySite + NbPFTs ))
+		;;
+	    vector)
+		(( NumInfosBySite = NumInfosBySite + NbPFTs ))
+		;;
+	esac
+
+	(( iphys = iphys + 1 ))
+    done
+
+    echo 'NumInfosBySite: ' $NumInfosBySite
+
+
+    # Num of Columns : name, filename, length, + ${NbPFTs} PFT
+    ColumnName=0
+    ColumnFilename=1
+    ColumnYear=2
+    ColumnLength=3
+
+
+
+    # 3) SPINUP section : files path and spinup parameters
+    # This section groups specific options for SPINUP :
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/ensemble.card SPINUP
+    set +A ensemble_SPINUP -- ${ensemble_SPINUP[*]} > /dev/null 2>&1
+    typeset option
+    for option in ${ensemble_SPINUP[*]} ; do
+	IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/ensemble.card SPINUP ${option}
+    done
+
+    # 4) Subjob run.def parametrisation : SubJobParams in your card
+    # This section give flags to put in run.def of Subjobs.
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/ensemble.card SubJobParams
+    set +A ensemble_SubJobParams -- ${ensemble_SubJobParams[*]} > /dev/null 2>&1
+    eval first_option=${ensemble_SubJobParams[0]} > /dev/null 2>&1
+    if [ X${first_option} != X"Error:" ] ; then
+	typeset option
+	for option in ${ensemble_SubJobParams[*]} ; do
+	    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/ensemble.card SubJobParams ${option}
+	done
+    fi
+
+    IGCM_debug_PopStack "ENSEMBLE_initialize"
+}
+
+# Function to sed parameter files in Subjob dirs
+# For run.def :
+function ORCHIDEE_def
+{
+    IGCM_debug_PushStack "ORCHIDEE_def"
+    
+    typeset ORCHIDEE_def_KEY ORCHIDEE_default_KEY
+
+    ORCHIDEE_def_KEY=$( grep -e "^${1}\ *=" ${New_SUBMIT_DIR}/PARAM/run.def | gawk -- 'BEGIN {FS="="} {print $2}')
+    if [ -f ${New_SUBMIT_DIR}/PARAM/orchidee.default ] ; then
+	ORCHIDEE_default_KEY=$( grep -e "^${1}\ *=" ${New_SUBMIT_DIR}/PARAM/orchidee.default | gawk -- 'BEGIN {FS="="} {print $2}')
+    fi
+
+    if [ X"${ORCHIDEE_def_KEY}" != X ] ; then
+	IGCM_debug_Print 2 "ORCHIDEE : ${1} has already been set in def file."
+	if [ -f ${New_SUBMIT_DIR}/PARAM/orchidee.default ] ; then
+	    IGCM_debug_Print 2 " default value : ${ORCHIDEE_default_KEY}"
+	fi
+	IGCM_debug_Print 2 "ORCHIDEE : ${1} has already been set in run.def file."
+	IGCM_debug_Print 2 " default value : ${ORCHIDEE_default_KEY}"
+	IGCM_debug_Print 2 " script value : ${2}"
+	IGCM_debug_Print 2 " USER value : ${ORCHIDEE_def_KEY}"
+	IGCM_debug_Print 2 " We will NOT set in again !"
+    else
+	echo "${1}= ${2}" >> ${New_SUBMIT_DIR}/PARAM/run.def
+	echo "" >> ${New_SUBMIT_DIR}/PARAM/run.def
+	echo "ORCHIDEE_def : ${1} ${2}"
+    fi
+
+    IGCM_debug_PopStack "ORCHIDEE_def"
+    return $RET
+}
+
+# Function to grep parameter files in Subjob dirs
+# They search for the argmument value in the file.
+# The result of the function is given in ${SearchParam} global variable :
+# * "line" if the parameter is a vector defined line per line with the form 
+#   PARAM__1=value1
+#   PARAM__2=value2
+#   etc...
+# * "vector" if the parameter is defined with the form
+#   PARAM=value1[,] value2[,] etc...
+# * "value" if the parameter is a single value
+#   PARAM=value
+# * "undefined" if the parameter is not definied in the parameters file
+#   This should give an error in the script.
+
+# For run.def :
+function ORCHIDEE_grep
+{
+    IGCM_debug_PushStack "ORCHIDEE_grep"
+    typeset Output
+
+    if [ -f ${SUBMIT_DIR}/PARAM/run.def ] ; then
+	set +A Output -- $( grep "^${1}__[0-9]*\ *=" ${SUBMIT_DIR}/PARAM/run.def )
+	if [ X${Output[0]} != X ] ; then
+	    SearchParam=line
+	else
+	    unset Output
+	    set +A Output -- $( grep "^${1}\ *=\ *[^[:blank:]][^[:blank:]]*\ [^[:blank:]][^[:blank:]]*.*" ${SUBMIT_DIR}/PARAM/run.def )
+	    if [ X${Output[0]} != X ] ; then
+		SearchParam=vector
+	    else
+		unset Output
+		set +A Output -- $( grep "^${1}\ *=" ${SUBMIT_DIR}/PARAM/run.def )
+		if [ X${Output[0]} != X ] ; then
+		    SearchParam=value
+		else
+		    unset Output
+                    if [ -f ${SUBMIT_DIR}/PARAM/orchidee.default ] ; then
+            		set +A Output -- $( grep "^${1}__[0-9]*\ *=" ${SUBMIT_DIR}/PARAM/orchidee.default )
+            		if [ X${Output[0]} != X ] ; then
+            		    SearchParam=line
+            		else
+            		    unset Output
+            		    set +A Output -- $( grep "^${1}\ *=\ *[^[:blank:]][^[:blank:]]*\ [^[:blank:]][^[:blank:]]*.*" ${SUBMIT_DIR}/PARAM/orchidee.default )
+            		    if [ X${Output[0]} != X ] ; then
+            			SearchParam=vector
+            		    else
+            			unset Output
+            			set +A Output -- $( grep "^${1}\ *=" ${SUBMIT_DIR}/PARAM/orchidee.default )
+            			if [ X${Output[0]} != X ] ; then
+            			    SearchParam=value
+            			else
+				    SearchParam=undefined
+				fi
+			    fi
+			fi
+		    else
+			SearchParam=undefined
+			echo "$@ : file not found !!"
+		    fi
+		fi
+	    fi
+	fi
+    fi
+    IGCM_debug_PopStack "ORCHIDEE_grep"
+    return $RET
+}
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/fluxnet.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/fluxnet.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/fluxnet.card	(revision 5631)
@@ -0,0 +1,260 @@
+[CONFIG]
+# - Fluxnet files path
+ForcingPath=${R_BC}/OOL/${config_UserChoices_TagName}/FLUXNET
+
+# - Number of PFTs :
+NbPFTs= 13
+
+#**** Information on the sites to be treated *************************
+#  Number of parameters to modify for each site
+NbSitesParam= 1
+#  Name of the parameters to modify for on each site
+NameSitesParam= ( SECHIBA_VEGMAX )
+
+Groups= ( TrEBF TeENF TeEBF TeDBF BoENF GRAc3 CROc3 CROc4 )
+
+# Sites descriptions
+# 4 first parameters are Name, Forcing file, Initial Year, Number of years in forcing file
+# following parameters are NameSitesParam
+
+# Tropical Evergreen Broadleaf Forests
+TrEBF =	   ( BR-Sa3 , BR-Sa3_2000-2003.nc , 2000 , 4 , 0,1,0,0,0,0,0,0,0,0,0,0,0 ) \
+      	   ( ID-Pag , ID-Pag_2002-2003.nc , 2002 , 2 , 0,1,0,0,0,0,0,0,0,0,0,0,0 )
+
+# Tropical Deciduous Broadleaf Forests
+# TrDBF = Empty
+
+# Temperate Evergreen Needleleaf Forest
+TeENF =     ( IL-Yat , IL-Yat_2001-2006.nc , 2001 , 6 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+      	    ( ES-ES1 , ES-ES1_1999-2006.nc , 1999 , 8 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( IT-SRo , IT-SRo_1999-2006.nc , 1999 , 8 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-Blo , US-Blo_1997-2006.nc , 1997 , 10 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-Me4 , US-Me4_1996-2000.nc , 1996 , 5 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-SP1 , US-SP1_2000-2005.nc , 2000 , 6 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-SP2 , US-SP2_1998-2004.nc , 1998 , 7 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-SP3 , US-SP3_1999-2004.nc , 1999 , 6 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-SP4 , US-SP4_1998-1998.nc , 1998 , 1 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( DE-Bay , DE-Bay_1996-1999.nc , 1996 , 4 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( DE-Tha , DE-Tha_1996-2006.nc , 1996 , 11 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( DE-Wet , DE-Wet_2002-2006.nc , 2002 , 5 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( FR-LBr , FR-LBr_1996-2006.nc , 1996 , 11 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( IT-Lav , IT-Lav_2000-2006.nc , 2000 , 7 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( IT-Ren , IT-Ren_1999-2006.nc , 1999 , 8 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( NL-Loo , NL-Loo_1996-2006.nc , 1996 , 11 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( UK-Gri , UK-Gri_1997-2006.nc , 1997 , 10 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( CZ-BK1 , CZ-BK1_2000-2006.nc , 2000 , 7 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( RU-Fyo , RU-Fyo_1998-2004.nc , 1998 , 7 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( SE-Nor , SE-Nor_1996-2005.nc , 1996 , 10 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( SE-Sk1 , SE-Sk1_2005-2005.nc , 2005 , 1 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( SE-Sk2 , SE-Sk2_2004-2005.nc , 2004 , 2 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( SK-Tat , SK-Tat_2005-2005.nc , 2005 , 1 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-Ho1 , US-Ho1_1996-2004.nc , 1996 , 9 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-Ho2 , US-Ho2_1999-2004.nc , 1999 , 6 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-Wi0 , US-Wi0_2002-2002.nc , 2002 , 1 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-Wi2 , US-Wi2_2003-2003.nc , 2003 , 1 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-Wi4 , US-Wi4_2002-2005.nc , 2002 , 4 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-Wi5 , US-Wi5_2004-2004.nc , 2004 , 1 , 0,0,0,1,0,0,0,0,0,0,0,0,0 ) \
+	    ( US-Wi9 , US-Wi9_2004-2005.nc , 2004 , 2 , 0,0,0,1,0,0,0,0,0,0,0,0,0 )
+
+# Temperate Evergreen Broadleaf Forest
+TeEBF =     ( FR-Pue , FR-Pue_2000-2006.nc , 2000 , 7 , 0,0,0,0,1,0,0,0,0,0,0,0,0 ) \
+      	    ( IT-Cpz , IT-Cpz_1997-2006.nc , 1997 , 10 , 0,0,0,0,1,0,0,0,0,0,0,0,0 ) \
+	    ( IT-Lec , IT-Lec_2005-2006.nc , 2005 , 2 , 0,0,0,0,1,0,0,0,0,0,0,0,0 ) \
+	    ( PT-Esp , PT-Esp_2002-2006.nc , 2002 , 5 , 0,0,0,0,1,0,0,0,0,0,0,0,0 ) \
+	    ( PT-Mi1 , PT-Mi1_2003-2005.nc , 2003 , 3 , 0,0,0,0,1,0,0,0,0,0,0,0,0 ) \
+	    ( AU-Tum , AU-Tum_2001-2006.nc , 2001 , 6 , 0,0,0,0,1,0,0,0,0,0,0,0,0 ) \
+	    ( AU-Wac , AU-Wac_2005-2007.nc , 2005 , 3 , 0,0,0,0,1,0,0,0,0,0,0,0,0 )
+
+# Temperate Deciduous Broadleaf Forest
+TeDBF =     ( IT-Col , IT-Col_1996-2006.nc , 1996 , 11 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+      	    ( IT-Non , IT-Non_2001-2006.nc , 2001 , 6 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( IT-PT1 , IT-PT1_2002-2004.nc , 2002 , 3 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( IT-Ro1 , IT-Ro1_2000-2006.nc , 2000 , 7 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( IT-Ro2 , IT-Ro2_2002-2006.nc , 2002 , 5 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-MMS , US-MMS_1999-2005.nc , 1999 , 7 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-MOz , US-MOz_2004-2006.nc , 2004 , 3 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-WBW , US-WBW_1995-1999.nc , 1995 , 5 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( DE-Hai , DE-Hai_2000-2006.nc , 2000 , 7 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( DK-Sor , DK-Sor_1996-2006.nc , 1996 , 11 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( FR-Fon , FR-Fon_2005-2006.nc , 2005 , 2 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( FR-Hes , FR-Hes_1997-2006.nc , 1997 , 10 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( IS-Gun , IS-Gun_1996-1998.nc , 1996 , 3 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( UK-Ham , UK-Ham_2004-2005.nc , 2004 , 2 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( UK-PL3 , UK-PL3_2005-2006.nc , 2005 , 2 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-Bar , US-Bar_2004-2005.nc , 2004 , 2 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-Ha1 , US-Ha1_1991-2006.nc , 1991 , 16 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-Oho , US-Oho_2004-2005.nc , 2004 , 2 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-UMB , US-UMB_1999-2003.nc , 1999 , 5 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-WCr , US-WCr_1999-2006.nc , 1999 , 8 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-Wi1 , US-Wi1_2003-2003.nc , 2003 , 1 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) \
+	    ( US-Wi8 , US-Wi8_2002-2002.nc , 2002 , 1 , 0,0,0,0,0,1,0,0,0,0,0,0,0 ) 
+
+# Boreal Evergreen Needleleaf Forest
+BoENF =  ( CA-Man , CA-Man_1994-2003.nc , 1994 , 10 , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+      	 ( CA-NS1 , CA-NS1_2002-2005.nc , 2002 , 4  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( CA-NS2 , CA-NS2_2001-2005.nc , 2001 , 5  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( CA-NS3 , CA-NS3_2001-2005.nc , 2001 , 5  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( CA-NS4 , CA-NS4_2002-2004.nc , 2002 , 3  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( CA-NS5 , CA-NS5_2001-2005.nc , 2001 , 5  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( CA-Qcu , CA-Qcu_2001-2006.nc , 2001 , 6  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( CA-Qfo , CA-Qfo_2003-2006.nc , 2003 , 4  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( CA-SF1 , CA-SF1_2003-2005.nc , 2003 , 3  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( CA-SF2 , CA-SF2_2003-2005.nc , 2003 , 3  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( FI-Hyy , FI-Hyy_1996-2006.nc , 1996 , 11 , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( FI-Sod , FI-Sod_2000-2006.nc , 2000 , 7  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( RU-Zot , RU-Zot_2002-2004.nc , 2002 , 3  , 0,0,0,0,0,0,1,0,0,0,0,0,0 ) \
+	 ( SE-Fla , SE-Fla_1996-2002.nc , 1996 , 7  , 0,0,0,0,0,0,1,0,0,0,0,0,0 )
+
+# Boreal Deciduous Broadleaf Forest 
+# BoDBF = empty
+
+# Bo Deciduous Needleleaf Forest
+# BoDNF = empty
+
+# Grasslands C3
+GRAc3 =	     ( RU-Ha1 , RU-Ha1_2002-2004.nc , 2002 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+      	     ( RU-Ha2 , RU-Ha2_2002-2003.nc , 2002 , 2 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( RU-Ha3 , RU-Ha3_2004-2004.nc , 2004 , 1 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( US-Aud , US-Aud_2002-2006.nc , 2002 , 5 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( US-FPe , US-FPe_2000-2006.nc , 2000 , 7 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( IT-Amp , IT-Amp_2002-2006.nc , 2002 , 5 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( PT-Mi2 , PT-Mi2_2004-2006.nc , 2004 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( US-Goo , US-Goo_2002-2006.nc , 2002 , 5 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( US-Var , US-Var_2001-2006.nc , 2001 , 6 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( AT-Neu , AT-Neu_2002-2004.nc , 2002 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( CH-Oe1 , CH-Oe1_2002-2006.nc , 2002 , 5 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( DE-Gri , DE-Gri_2005-2006.nc , 2005 , 2 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( DE-Meh , DE-Meh_2003-2006.nc , 2003 , 4 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( DK-Lva , DK-Lva_2005-2006.nc , 2005 , 2 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( ES-VDA , ES-VDA_2004-2006.nc , 2004 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( FR-Lq1 , FR-Lq1_2004-2006.nc , 2004 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( FR-Lq2 , FR-Lq2_2004-2006.nc , 2004 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( HU-Bug , HU-Bug_2002-2006.nc , 2002 , 5 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( HU-Mat , HU-Mat_2004-2006.nc , 2004 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( IE-Dri , IE-Dri_2003-2005.nc , 2003 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( IT-LMa , IT-LMa_2003-2006.nc , 2003 , 4 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( IT-Mal , IT-Mal_2003-2006.nc , 2003 , 4 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( IT-MBo , IT-MBo_2003-2006.nc , 2003 , 4 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( NL-Ca1 , NL-Ca1_2003-2006.nc , 2003 , 4 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( NL-Haa , NL-Haa_2003-2004.nc , 2003 , 2 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( NL-Hor , NL-Hor_2004-2006.nc , 2004 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( UK-EBu , UK-EBu_2004-2006.nc , 2004 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( UK-Tad , UK-Tad_2001-2001.nc , 2001 , 1 , 0,0,0,0,0,0,0,0,0,1,0,0,0 ) \
+	     ( US-Bkg , US-Bkg_2004-2006.nc , 2004 , 3 , 0,0,0,0,0,0,0,0,0,1,0,0,0 )
+
+# Grasslands C4 
+# GRAc4 = empty
+
+# Croplands C3 - Winter Wheat or Winter Barley
+CROc3 =	    ( DK-Ris , DK-Ris_2004-2005.nc , 2004 , 2 , 0,0,0,0,0,0,0,0,0,0,0,1,0 ) \
+      	    ( FR-Gri , FR-Gri_2005-2006.nc , 2005 , 2 , 0,0,0,0,0,0,0,0,0,0,0,1,0 ) \
+      	    ( NL-Lut , NL-Lut_2006-2006.nc , 2006 , 1 , 0,0,0,0,0,0,0,0,0,0,0,1,0 ) 
+
+# Croplands C4 - Maize
+CROc4 =     ( US-Bo1 , US-Bo1_1996-2007.nc , 1996 , 12 , 0,0,0,0,0,0,0,0,0,0,0,0,1 ) \
+      	    ( US-Ne1 , US-Ne1_2001-2005.nc , 2001 , 5 , 0,0,0,0,0,0,0,0,0,0,0,0,1 ) \
+	    ( US-Ne2 , US-Ne2_2001-2005.nc , 2001 , 5 , 0,0,0,0,0,0,0,0,0,0,0,0,1 ) \
+	    ( US-Ne3 , US-Ne3_2001-2005.nc , 2001 , 5 , 0,0,0,0,0,0,0,0,0,0,0,0,1 ) \
+	    ( NL-Lan , NL-Lan_2005-2006.nc , 2005 , 2 , 0,0,0,0,0,0,0,0,0,0,0,0,1 ) 
+
+# To fill the VEGMAX for each site
+# here below is the standard PFT list
+#
+#    1 - Bare soil
+#    2 - tropical  broad-leaved evergreen
+#    3 - tropical  broad-leaved raingreen
+#    4 - temperate needleleaf   evergreen
+#    5 - temperate broad-leaved evergreen
+#    6 - temperate broad-leaved summergreen
+#    7 - boreal    needleleaf   evergreen
+#    8 - boreal    broad-leaved summergreen
+#    9 - boreal    needleleaf   summergreen
+#   10 -           C3           grass
+#   11 -           C4           grass
+#   12 -           C3           agriculture
+#   13 -           C4           agriculture
+
+[SPINUP]
+# Initialisation for spin-up :
+# orchidee with sechiba alone (!!! if ok_stomate == n !!!)
+duree_nostomate=0
+# orchidee with stomate
+duree_inistomate=1
+# teststomate (only if duree_inistomate > 0)
+duree_offlineini=0
+
+# Loop over ORCHIDEE runs (used for spin-up)
+# The whole job is restarted n_iter times
+n_iter=1
+# orchidee with sechiba (and stomate if ok_stomate=y below)
+duree_sechiba=500
+# teststomate
+duree_stomate=0
+# forcesoil
+duree_carbonsol=0
+
+# Final run (full ORCHIDEE)
+# This last parameter must be non-zero.
+duree_final=1
+
+
+    # POST configuration : 
+    # --------------------
+# Atlas Name : 
+AtlasCfg=atlas_FLUXNET_V1.cfg
+
+# Observation_file
+observation_base_path=${R_BC}/OOL/${config_UserChoices_TagName}/FLUXNET
+
+
+# History file of former ORCHIDEE runs (Reference) to compare with the current simulations
+reference_base_path=/ccc/work/cont003/dsm/p86ghatt/IGCM_OUT/OL2/PROD/fluxnet.r2291
+reference_config=TFlux7
+
+# Modulo for SpinUp years
+# by default, only one ATLAS-DIFF will be created 
+# between the last step and the first one.
+#Modulo=15
+
+
+[UserChoices]
+# stomate activated or not ?
+ok_stomate=y
+# Photosynthesis activated or not ?
+ok_co2=y
+# New hydrology (deRosnay) activated or not ?
+ok_newhydrol=y
+# Impose the vegetation
+impose_veg=y
+# No routing
+ok_routing=n
+SPINUP_ANALYTIC=y
+land_use=n
+# level of the history files for each iteration of the SPINUP
+level_hist=0
+# level of the history files for the final iteration of the SPINUP
+level_hist_final=10
+
+# DEBUG mode for SPINUP 
+#
+# This mode keep all SPINUP directory in ARCHIVE
+# If disable, all ARCHIVE is automaticly cleaned.
+DEBUG_SPIN=n
+# If you don't want to keep old spinup steps, but last one
+CONSERVE=n 
+
+[SubJobParams]
+# You can specify here any parameters to be modified in run.def
+ALMA_OUTPUT=y
+SECHIBA_reset_time=y
+SPLIT_DT=1
+SPINUP_PERIOD='${TIME_YEAR}'
+SPINUP_ANALYTIC=y
+NBUFF=0
+STOMATE_FORCING_NAME=NONE
+STOMATE_CFORCING_NAME=NONE
+FIRE_DISABLE=y
+# ATM_CO2=368 : value for year 2000
+ATM_CO2=368
+XIOS_ORCHIDEE_OK=n
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/job_output
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/job_output	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/job_output	(revision 5631)
@@ -0,0 +1,14 @@
+#!/bin/bash
+#MSUB -r Job_post_FLUXNET          # Request name 
+#MSUB -n 1                         # Number of tasks to use 
+#MSUB -T 7200                        # Elapsed time limit in seconds 
+#MSUB -o example_%I.o              # Standard output. %I is the job id 
+#MSUB -e example_%I.e              # Error output. %I is the job id 
+#MSUB -q standard                  # Queue
+ 
+##
+# Embasingly parallel job :
+#   basic example using GLoST
+## 
+
+module load glost
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/post_FLUXNET
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/post_FLUXNET	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/post_FLUXNET	(revision 5631)
@@ -0,0 +1,229 @@
+#!/bin/ksh
+
+########################################################################
+
+#D- Flag to determine if this job in a standalone mode
+#D- Default : value from AA_job if any
+StandAlone=${StandAlone:=true}
+
+#D- Increased verbosity (1, 2, 3)
+#D- Default : value from AA_job if any
+Verbosity=${Verbosity:=3}
+
+#D- Low level debug : to bypass lib test checks and stack construction
+#D- Default : value from AA_job if any
+DEBUG_debug=${DEBUG_debug:=false}
+
+
+########################################################################
+
+MODIPSL=$1
+libIGCM=${libIGCM:=${MODIPSL}/libIGCM}
+
+. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
+. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
+. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
+#-------
+. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh
+. ${libIGCM}/libIGCM_config/libIGCM_config.ksh
+. ${libIGCM}/libIGCM_comp/libIGCM_comp.ksh
+. ${libIGCM}/libIGCM_post/libIGCM_post.ksh
+#-------
+( ${DEBUG_debug} ) && IGCM_debug_Check
+( ${DEBUG_debug} ) && IGCM_card_Check
+( ${DEBUG_debug} ) && IGCM_date_Check
+
+#D--------------------------------------------------------------------==
+#D- 0.1 COMMON ENVIRONMENT
+#D-     - Read libIGCM compatibility version in config.card
+#D-     - Read UserChoices section
+#D-     - Read Ensemble section
+#D-     - Read Post section
+#D-     - Define all netcdf output directories
+#D--------------------------------------------------------------------==
+IGCM_config_CommonConfiguration ${SUBMIT_DIR}/config.card
+
+
+#D--------------------------------------------------------------------==
+#D- 1. INITIALIZE CONFIGURATION
+#D-    - Simulation configuration
+#D-    - Simulation parameters
+#D-    - Execution parameter
+#D-    - Define input files directory
+#D-    - Read or initialize CumulPeriod
+#D-    - run.card
+#D---------------------------------------------------------------------==
+IGCM_config_Initialize
+
+
+
+########################################################################
+#set -vx
+########################################################################
+# Script input parameters
+
+Group=$2
+# Site name
+SiteArg=$3
+Site=${SiteArg:=Gu}
+export Site
+## Time in years in file for this site :
+#DureeArg=$4
+#DUREE=${DureeArg:=1}
+#export DUREE
+#
+## First year in file for this site :
+#FirstArg=$5
+#FYEAR=${FirstArg:=1}
+#export FYEAR
+#
+#(( LYEAR=FYEAR+DUREE-1 ))
+#export LYEAR
+
+
+# Atlas Name : 
+AtlasCfgArg=$4
+AtlasCfg=${AtlasCfgArg:=atlas_FLUXNET.cfg}
+
+# observation_file
+eval observation_file_pathArg=$5
+observation_file=${observation_file_pathArg}
+echo observation_file=${observation_file}
+
+# Modulo for SpinUp years 
+ModuloArg=${8}
+echo "ModuloArg:" $ModuloArg
+
+IGCM_sys_MkdirWork ${RUN_DIR_PATH}
+echo "RUN_DIR_PATH ${RUN_DIR_PATH} ok."
+IGCM_sys_Cd ${RUN_DIR_PATH}
+
+if [ ${StandAlone} = true ] ; then
+    CARD_DIR=${SUBMIT_DIR}
+else
+    CARD_DIR=${RUN_DIR_PATH}/$( basename ${SUBMIT_DIR} )
+    IGCM_sys_Get_Master ${SUBMIT_DIR} ${RUN_DIR_PATH}
+fi
+
+#
+# First of all
+#
+IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card UserChoices
+typeset option
+for option in ${config_UserChoices[*]} ; do
+    IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card UserChoices ${option}
+done
+#
+echo
+IGCM_debug_Print 1 "DefineArrayFromOption  : config_UserChoices"
+IGCM_debug_PrintVariables 3 config_UserChoices_JobName
+if [ 3 -le ${Verbosity} ] ; then
+    echo "--------------Debug3-->" "config_UserChoices_LongName="
+    echo "--------------Debug3-->" \"${config_UserChoices_LongName}\"
+fi
+IGCM_debug_PrintVariables 3 config_UserChoices_TagName
+IGCM_debug_PrintVariables 3 config_UserChoices_CalendarType
+IGCM_debug_PrintVariables 3 config_UserChoices_DateBegin
+IGCM_debug_PrintVariables 3 config_UserChoices_DateEnd
+IGCM_debug_PrintVariables 3 config_UserChoices_PeriodLength
+echo
+
+
+# FLAG = SECHIBA, OK_STOMATE
+IGCM_card_DefineVariableFromOption ${CARD_DIR}/ensemble.card UserChoices ok_stomate
+if [ X${ensemble_UserChoices_ok_stomate} = Xn ] ; then
+    export FLAG=SECHIBA
+else
+    export FLAG=OK_STOMATE
+fi
+
+
+#==================================
+
+SpinUpJob=${Site}${config_UserChoices_JobName}
+set -A liste_fichiers_with_path -- $( \ls -rt ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}/${SpinUpJob}HIST/SRF/Output/MO/*_sechiba_history.nc )
+echo liste_fichiers_with_path=${liste_fichiers_with_path}
+ii=0
+for filetmp in ${liste_fichiers_with_path[@]} ; do
+    (( ii = ii + 1 ))
+    file=$( echo ${filetmp} | xargs basename )
+done
+if [ $ii -ne 1 ] ; then
+  echo "Error. More than one file found. ii=$ii"
+  exit
+fi
+echo file=$file
+
+# Get and sed atlas
+IGCM_sys_Cp ${CARD_DIR}/${AtlasCfg} ./atlas.cfg
+IGCM_sys_Cp ${CARD_DIR}/ORCHIDEE_3dif.jnl ./ORCHIDEE_3dif.jnl
+    
+IGCM_sys_Cp -Rp ${liste_fichiers_with_path[0]} .
+
+# old history file
+reference_file_pathArg=$6
+if [ X${reference_file_pathArg} == XNONE ] ; then
+    reference_file_path=${liste_fichiers_with_path}
+else
+    reference_file_path=${reference_file_pathArg}
+fi
+
+eval reference_file=${reference_file_path}
+sed -e "s,RRRRRRR,${reference_file},g" -e "s,VVVVVVV,${observation_file},g" atlas.cfg > atlas_.cfg
+
+echo "REFERENCE ATLAS for file : " ${file} ${reference_file} ${observation_file}
+reference_config=$7
+atlas -o ${SpinUpJob}_${reference_config} atlas_.cfg ${file}
+
+# Remove small files before saving
+if [ X$CleanSmallFiles = Xyes ] ; then
+  tmpdir=${SpinUpJob}_${reference_config}
+  # Remove .info .tex .jnl .stdout .jpg .pdf (deuxieme niveau )
+  echo "Remove small files before saving : "
+  sumfilestoremove=$(( $( find ${tmpdir} -name "*.info" | wc -l ) +  $( find ${tmpdir} -name "*.tex" | wc -l ) +  $( find ${tmpdir} -name "*.jnl" | wc -l ) + $( find ${tmpdir} -name "*.stdout" | wc -l ) + $( find ${tmpdir} -name "*.pdf" | wc -l ) ))
+  echo "Following $sumfilestoremove files listed below will be removed: "
+
+  find ${tmpdir} -name "*.info"
+  find ${tmpdir} -name "*.tex" 
+  find ${tmpdir} -name "*.jnl" 
+  find ${tmpdir} -name "*.stdout"
+  find ${tmpdir} -name "*.pdf" 
+
+  # Now remove them
+  find ${tmpdir} -name "*.info" -print -exec rm -f '{}' \;
+  find ${tmpdir} -name "*.tex" -print -exec rm -f '{}' \;
+  find ${tmpdir} -name "*.jnl" -print -exec rm -f '{}' \;
+  find ${tmpdir} -name "*.stdout" -print -exec rm -f '{}' \;
+  find ${tmpdir} -name "*.pdf" -print -exec rm -f '{}' \;
+
+else
+  echo "No clean of small files will be done."
+fi
+
+
+# Save files
+R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}/fluxnet_taylor_diff_${config_UserChoices_JobName}_${reference_config}_${Group}
+
+echo "Before IGCM_sys_Put_Dir : destination= ${R_SAVE}"
+IGCM_sys_Put_Dir ${SpinUpJob}_${reference_config} ${R_SAVE}
+
+IGCM_sys_Rm -Rf ${SpinUpJob}_${reference_config}
+
+
+
+# # Get and Apply Patch
+# . ${MODIPSL}/libIGCM/libIGCM_post/IGCM_Patch_20070220_histcom_time_axis.ksh
+# for file in ${liste_fichiers[*]} ; do 
+#     IGCM_Patch_20070220_histcom_time_axis ${file}
+# done
+
+# # look at files
+# echo "after Patch" IGCM_Patch_20070220_histcom_time_axis
+# \ls -lrt  *_sechiba_history.nc
+
+# Concat files
+#IGCM_sys_ncrcat -o ${SpinUpJob}_1M_sechiba_history.nc ${liste_fichiers[*]}
+
+IGCM_sys_Rm -Rf  ${liste_fichiers[*]}
+
+IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/taylor_arrow_fluxnet_final_1.jnl
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/taylor_arrow_fluxnet_final_1.jnl	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/taylor_arrow_fluxnet_final_1.jnl	(revision 5631)
@@ -0,0 +1,82 @@
+
+
+let var_obs_init=($02)
+let var_obs=var_obs_init[g=my_time_counter@asn]
+
+let flag_ref=($04)
+
+let var_model_init=($01)
+let id_site="($09)" 
+
+
+let norm_std=(Q_VAR^0.5)/(P_VAR^0.5)
+
+
+let var_model_year=var_model[gt=yearly@ave]
+let var_model_month=var_model[gt=monthly@ave]
+let var_model_day=var_model[gt=daily@ave]
+let var_model_hour=var_model[gt=hourly@ave]
+let var_model_year_max=var_model_year[gt=monthly@max]
+let var_model_year_month=if(first_year eq last_year) then var_model_year_max[t=@fnr] else var_model_year[gt=monthly@nrst]
+let var_model_month_day=var_model_month[gt=daily@nrst] 
+let var_model_day_hour=var_model_day[gt=hourly@nrst] 
+let var_model_decomp_default=var_model 
+let var_model_decomp_hour=var_model_hour-var_model_day_hour 
+let var_model_decomp_day=var_model_day-var_model_month_day 
+let var_model_decomp_month=var_model_month-var_model_year_month
+let var_model_decomp_year=var_model_year-var_model_year[l=@ave] 
+
+let var_obs_year=var_obs[gt=yearly@ave]
+let var_obs_month=var_obs[gt=monthly@ave]
+let var_obs_day=var_obs[gt=daily@ave]
+let var_obs_hour=var_obs[gt=hourly@ave]
+let var_obs_year_max=var_obs_year[gt=monthly@max]
+let var_obs_year_month=if(first_year eq last_year) then var_obs_year_max[t=@fnr] else var_obs_year[gt=monthly@nrst]
+let var_obs_month_day=var_obs_month[gt=daily@nrst] 
+let var_obs_day_hour=var_obs_day[gt=hourly@nrst] 
+let var_obs_decomp_default=var_obs 
+let var_obs_decomp_hour=var_obs_hour-var_obs_day_hour 
+let var_obs_decomp_day=var_obs_day-var_obs_month_day 
+let var_obs_decomp_month=var_obs_month-var_obs_year_month
+let var_obs_decomp_year=var_obs_year-var_obs_year[l=@ave] 
+
+
+let d_eval=1
+let d_ref=if flag_ref eq 1 then 3 else 1
+let d_obs=2
+
+let bias_hour=tsequence(abs(var_obs_day_hour[d=`d_obs`]-var_model_day_hour[k=@sum]))
+let bias_day=tsequence(abs(var_obs_month_day[d=`d_obs`]-var_model_month_day[k=@sum]))
+let bias_month=tsequence(abs(var_obs_year_month[d=`d_obs`]-var_model_year_month[k=@sum]))
+let bias_year=tsequence(abs(var_obs_year[l=@ave,d=`d_obs`]-var_model_year[l=@ave,k=@sum]))
+
+
+
+use/REGULART "($10)"
+use/REGULART "($11)"
+let file_ref=if(flag_ref eq 1) then 12 else 10
+use/REGULART "$`file_ref`"
+
+
+define grid/like=var_model_init[d=`d_eval`,k=1] my_time_counter 
+let var_model=if var_obs[d=`d_obs`] NE -9999. then var_model_init[g=my_time_counter@asn] else (-1e34) 
+let mytime=t[gt=my_time_counter] 
+let first_year= `tax_datestring(mytime[l=@min],mytime,"years")`
+let last_year= `tax_datestring(mytime[l=@max],mytime,"years")` 
+define axis/t="1-JAN-`first_year` 00:00":"1-JAN-`last_year+1` 00:00":1/units=hour/cal=gregorian/edges hourly
+define axis/t="1-JAN-`first_year` 00:00":"1-JAN-`last_year+1` 00:00":1/units=day/cal=gregorian/edges daily
+go def_monthaxis_days.jnl gregorian first_year last_year monthly
+let nbyears=last_year-first_year+1
+let indices_year = L[L=1:`1+nbyears`]
+let year = first_year + INT((indices_year-1))
+define axis/units="days"/T0="01-JAN-`first_year`"/edges/cal="GREGORIAN" yearly = DAYS1900(year,1,1)-DAYS1900(`first_year`,1,1)
+let p=tsequence(var_obs_decomp_($03)[d=`d_obs`])
+let q=tsequence(var_model_decomp_($03)[k=@sum])
+go variance
+let correl_eval=CORREL[d=`d_eval`]
+let correl_ref=CORREL[d=`d_ref`]
+
+list/file=stat_($06)_($07)_($08)_($05)_($03).csv/norowlab/append/nohead id_site,norm_std[d=`d_eval`],`correl_eval,p=7`,bias_($03)[d=`d_eval`,l=@ave],norm_std[d=`d_ref`],`correl_ref,p=7`,bias_($03)[d=`d_ref`,l=@ave]
+
+
+CANCEL DATA/ALL
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/taylor_arrow_fluxnet_final_2.jnl
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/taylor_arrow_fluxnet_final_2.jnl	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/ENSEMBLE/taylor_arrow_fluxnet_final_2.jnl	(revision 5631)
@@ -0,0 +1,79 @@
+
+go page_new -i 1 1 0 100 0 100
+
+let count=($01)
+let flag_ref=($03)
+
+let norm_max=1.7
+
+
+set window 1
+
+DEFINE VIEWPORT/XLIM=0,1/YLIM=0.25,0.95 V1
+DEFINE VIEWPORT/XLIM=0,1/YLIM=0,1 V2
+DEFINE VIEWPORT/XLIM=0,1/YLIM=0.07,0.27 V3
+
+SET VIEWPORT V1
+go taylor_frame.jnl norm_max `norm_max/6,p=1` " " "Normalized Standard Deviation" 2
+
+
+file/TYPE="TEXT,NUMERIC,NUMERIC,NUMERIC,NUMERIC,NUMERIC,NUMERIC"/variables="vec_id_site,vec_norm_eval,vec_correl_eval,vec_bias_eval,vec_norm_ref,vec_correl_ref,vec_bias_ref"/FORMAT=DELIMITERS/DELIM="\b" stat_($05)_($06)_($07)_($04)_($02).csv
+
+repeat/i=1:`count` ( \ 
+let norm_ref=vec_norm_ref[i=`i`]; \
+let norm_eval=vec_norm_eval[i=`i`]; \
+let correl_ref=vec_correl_ref[i=`i`]; \
+let correl_eval=vec_correl_eval[i=`i`]; \
+let num_site=`i` ; \
+go poly_vectors.jnl `norm_ref`*cos(acos(`correl_ref`)) `norm_ref`*sin(acos(`correl_ref`)) `norm_eval`*cos(acos(`correl_eval`))-`norm_ref`*cos(acos(`correl_ref`)) `norm_eval`*sin(acos(`correl_eval`))-`norm_ref`*sin(acos(`correl_ref`)) 0.2760 "arrow" ; \
+polygon/over/nolabel/noaxis/nokey/pal="white"/line plt_x_arrow, plt_y_arrow, 1 ; \
+go taylor_polymark `norm_ref` `correl_ref` /line/fill/nokey/pal="white"/over 1 circle 0.5 ; \
+let mon_lab_x = `norm_ref`*cos(acos(`correl_ref`))+`norm_max/50` ; \
+let mon_lab_y = `norm_ref`*sin(acos(`correl_ref`))+`norm_max/50` ; \
+let mon_lab_x_corr =if(mon_lab_x gt norm_max*1.3) then (-1) else mon_lab_x ; \
+label `mon_lab_x_corr`,`mon_lab_y`,0,0,0.1 "`num_site`"  ; )
+
+set VIEWPORT V2
+repeat/i=1:`count` ( \ 
+let id_site=vec_id_site[i=`i`] ; \
+let num_site=`i` ; \
+let xpos=10*(0.7+INT((`num_site`-1)/10)*1.5) ; let ypos=90-mod(`num_site`-1,10)*3 ; \
+go text_put xpos ypos "`num_site` `id_site`" -1 0.2 )
+
+go text_put 50 95 "($07) sites: ($02)-to-($02) ($04) variability" 0 0.5
+
+set VIEWPORT V1
+label 0, `norm_max/3*-1,p=1`,1,0,0.2 "@ASVersion ($06)"
+repeat/range=1:`flag_ref`/name=ref ( \ 
+go world_arrow_put 0 `norm_max/3*-1,p=1` `norm_max/3,p=1` `norm_max/3*-1,p=1`;\
+label `norm_max/3,p=1`, `norm_max/3*-1,p=1`,-1,0,0.2 "@AS($05)")
+
+
+set VIEWPORT V3
+go margins_set 20 20 20 5
+
+define axis/x=1:`count+1`:1/edges my_x
+
+let var_pft=if(j[j=1:2] le 1) then vec_bias_eval[gx=my_x@asn] else vec_bias_ref[gx=my_x@asn]
+shade/set_up/pal=inverse_greyscale/VGRAT=(line,col=black,THICK=3)/hlimits=1:`count+1`:1/AXES=1,1,0,0/nolabels/nokey var_pft
+
+
+PPL AXLABP 0,0 !turn off numeric labels
+PPL AXLSZE 0.95,0.25
+PPL LABSET 0.3 0.3 0.3 0.3
+ppl shakey 1, 0, 0.15, 5, 3, 6, ($PPL$XORG),  `($PPL$XORG)+($PPL$XLEN)`,`($PPL$YORG)-1.3`,`($PPL$YORG)-0.9`
+ppl shade
+
+
+repeat/i=1:2 (\
+let xlegend="@AS$`4+i`" ;\
+let my_y=`i-0.5`*($PPL$YLEN)/2; \
+let my_x=-0.5 ; \
+label/nouser `my_x`,`my_y`,1,0,.15 `xlegend` )
+
+repeat/i=1:`count` (\
+let xlegend="@AS`i`" ;\
+let my_x=`i-0.5`*($PPL$XLEN)/`count`; \
+let my_y=-0.5 ; \
+label/nouser `my_x`,`my_y`,0,0,.15 `xlegend` )
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/orchidee_ol.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/orchidee_ol.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/orchidee_ol.card	(revision 5631)
@@ -0,0 +1,29 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# No driver restart file for teststomate
+NORESTART=y
+# If you want use config.card PeriodLength for TIME_LENGTH
+TIMELENGTH=y
+
+[InitialStateFiles]
+List= ()	
+
+[BoundaryFiles]
+List= ()
+ListNonDel= ()
+
+[ParametersFiles]
+List= ()
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List= ( NONE )
+
+[OutputText]
+List= ()
+
+[OutputFiles]
+List= ()	
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/orchidee_ol.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/orchidee_ol.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/orchidee_ol.driver	(revision 5631)
@@ -0,0 +1,134 @@
+#!/bin/ksh
+
+#D- Driver du script pour ORCHIDEE_OL (off-line)
+
+function ORCHIDEE_def
+{
+    IGCM_debug_PushStack "ORCHIDEE_def"
+    
+    typeset ORCHIDEE_def_KEY ORCHIDEE_default_KEY
+    
+    ORCHIDEE_def_KEY=$( grep -e "^${1}\ *=" run.def | gawk -- 'BEGIN {FS="="} {print $2}')
+    ORCHIDEE_default_KEY=$( grep -e "^${1}\ *=" ${SUBMIT_DIR}/PARAM/orchidee.default | gawk -- 'BEGIN {FS="="} {print $2}')
+
+    if [ X"${ORCHIDEE_def_KEY}" != X ] ; then
+	IGCM_debug_Print 2 "ORCHIDEE : ${1} has already been set in def file."
+	IGCM_debug_Print 2 " default value : ${ORCHIDEE_default_KEY}"
+	IGCM_debug_Print 2 " script value : ${2}"
+	IGCM_debug_Print 2 " USER value : ${ORCHIDEE_def_KEY}"
+	IGCM_debug_Print 2 "               We will not set in again !"
+    else
+	echo "${1}= ${2}" >> run.def
+	echo ""  >> run.def
+	echo "ORCHIDEE_def : ${1} ${2}"
+    fi
+    
+    IGCM_debug_PopStack "ORCHIDEE_def"
+    return $RET
+}
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    NUM_PROC=1
+#D- Number of processors used for lmdz and oasis coupler computed from PBS variable
+    if [ X"${BATCH_NUM_PROC_TOT}" != X ] ; then
+	NUM_PROC=${BATCH_NUM_PROC_TOT}
+    fi
+    echo BATCH_NUM_PROC_TOT=${BATCH_NUM_PROC_TOT}
+    echo NUM_PROC=${NUM_PROC}
+
+    if ( [ X${BATCH_NUM_PROC_TOT} != X ] && [ "${BATCH_NUM_PROC_TOT}" -gt 1 ] ) ; then
+	MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND}
+    fi
+
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/COMP/orchidee_ol.card UserChoices
+    RESOL=${orchidee_ol_UserChoices_RESOL}
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    if [ X"${orchidee_ol_UserChoices_TIMELENGTH}" = Xy ] ; then
+	case ${config_UserChoices_PeriodLength} in
+	    *M|*m|*D|*d)
+		ORCHIDEE_def TIME_LENGTH ${PeriodLengthInDays}D
+		;;
+	    *s|*Y)
+		ORCHIDEE_def TIME_LENGTH ${config_UserChoices_PeriodLength}
+        ;;
+        *)
+        IGCM_debug_Exit "OOL_Update " ${config_UserChoices_PeriodLength} " invalid PeriodLength in config.card : choose between 1Y, 1M, 5D, 1D."
+        IGCM_debug_Verif_Exit
+	esac
+    fi
+
+
+    # Set TIME_SKIP only if starting without restart file
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	ORCHIDEE_def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D
+    fi
+
+    # Set RESTART_FILEIN in run.def
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Set RESTART_FILEIN=NONE in run.def
+	ORCHIDEE_def RESTART_FILEIN NONE
+    elif [ X${orchidee_ol_UserChoices_NORESTART} = Xy ] ; then
+	# Delete restart file if it exists in run directory and set RESTART_FILEIN=NONE in run.def
+	if [ -f driver_rest_in.nc ] ; then
+	    IGCM_sys_Rm driver_rest_in.nc
+	fi
+	ORCHIDEE_def RESTART_FILEIN NONE
+    else
+        # Default option using restart file, set RESTART_FILEIN=driver_rest_in.nc in orchidee.def
+	ORCHIDEE_def RESTART_FILEIN driver_rest_in.nc
+    fi
+
+    # Reset the year for the case using CyclicBegin and CyclicEnd in config.card
+    if [ X${CyclicYear} = X${config_UserChoices_CyclicBegin} ] ; then
+        # Reset the year when coming back to the first year in the cycle. This means that the 
+        # year will be read from the forcing file instead of coming from the restart file. 
+        ORCHIDEE_def DRIVER_reset_time y
+    fi
+
+
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Add include of orchidee context in iodef.xml
+      # In iodef.xml add on next line after "COMPONENT CONTEXT"
+      #  <context id="orchidee" src="./context_orchidee.xml"/>
+      echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp
+
+      # Add inclusion of file context_input_orchidee.xml if this file exists
+      if [ -f context_input_orchidee.xml ] ; then
+          echo '<context id="orchidee" src="./context_input_orchidee.xml"/>' >> add.tmp
+      fi
+
+      cp iodef.xml iodef.xml.tmp
+      sed -e "/COMPONENT CONTEXT/r add.tmp" \
+        iodef.xml.tmp > iodef.xml
+      rm iodef.xml.tmp add.tmp
+
+      # Test if SBG component is activated. If not, deactivate stomate output files from file_def_orchidee.xml
+      if [ X${config_ListOfComponents_SBG} = X ] ; then
+          # Stomate is not activated
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+      fi
+    fi
+          
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+    
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,30 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+stomate_LEVEL=7
+
+[InitialStateFiles]
+List=	()
+	
+[BoundaryFiles]
+List=	()
+
+# Set stomate_Cforcing.nc file : this file has to correspond to the restart sechiba file which is to be set in config.card section SBG/Restart. 
+ListNonDel= (/home/jgipsl/IGCM_OUT/OL2/TEST/tspinsecsto/t1/SBG/Restart/t1_20001231_stomate_Cforcing.nc, stomate_Cforcing.nc)\
+            (${R_IN}/SRF/reftemp.nc, .)
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+
+[OutputText]
+List=   (run.def, used_run.def, out_forcesoil, out_orchidee)
+
+[OutputFiles]
+List=	()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,180 @@
+#!/bin/ksh
+
+#D- Driver du script pour STOMATE
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    RESOL_SBG=ALL
+
+    typeset frequency
+    for frequency in ${config_SBG_WriteFrequency} ; do
+        case ${frequency} in
+            HF|hf) SBG_ok_hf=y ;;
+        esac
+    done
+    
+    IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_PeriodStart
+{
+    IGCM_debug_PushStack "SBG_PeriodStart"
+
+    IGCM_debug_PopStack "SBG_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    typeset STOMATE_WRITE_STEP
+
+    # Set default values for stomate output files
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    stomate_enabled=.FALSE.
+    stomate_freq=0s
+
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+	    (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) 
+
+            stomate_enabled=.TRUE.
+            stomate_freq=${WriteInYears}y
+        ;;
+	1M|1m) 
+            stomate_enabled=.TRUE.
+            stomate_freq=1mo
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		STOMATE_WRITE_STEP=-1.
+		;;
+	    *M|*m)
+		STOMATE_WRITE_STEP=-1.
+		;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	*M|*m) 
+	    WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${WriteInMonths}mo
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = 30 )) ;;
+	    *M|*m)
+		PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	5D|5d)
+            stomate_enabled=.TRUE.
+            stomate_freq=5d
+	    (( STOMATE_WRITE_STEP = 5 )) ;;
+	1D|1d)
+	    stomate_enabled=.TRUE.
+            stomate_freq=1d
+ 	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*s)
+	    WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' )
+	    stomate_enabled=.TRUE.
+            stomate_freq=${WriteInSeconds}s
+	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*) 
+	    IGCM_debug_Exit "SBG_Update " ${config_SBG_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
+	    IGCM_debug_Verif_Exit ;;
+    esac
+
+    # Modify file_def_orchidee.def if XIOS is activated
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+	# Modify file_def_orchidee.xml
+	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled ${stomate_enabled}
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq ${stomate_freq}
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled ${stomate_enabled}
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq ${stomate_freq}
+
+        # Deactivate stomate IOIPSL output
+	(( STOMATE_WRITE_STEP = 0 ))
+    fi
+
+    ORCHIDEE_def STOMATE_OK_STOMATE y
+
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+       ORCHIDEE_def SPINUP_ANALYTIC y
+      
+       # Test if CyclicBegin and CyclicEnd is set in config.card
+       if ( [ X${config_UserChoices_CyclicBegin} = X ] || [ X${config_UserChoices_CyclicEnd} = X ] ) ; then
+           IGCM_debug_Exit "CyclicBegin and CyclicEnd must be set in config.card to run option spinup_analytic."
+       fi
+       # Calculate and set number of years of forcing data
+       CycleNb=$(( ${config_UserChoices_CyclicEnd} - ${config_UserChoices_CyclicBegin} + 1 ))
+       ORCHIDEE_def SPINUP_PERIOD ${CycleNb}
+
+    fi
+
+    ORCHIDEE_def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    ORCHIDEE_def STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL}
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "STOMATE : without restart"
+    else
+	ORCHIDEE_def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+    fi
+
+    if [ X${SBG_ok_hf} = Xy ] ; then 
+	ORCHIDEE_def STOMATE_IPCC_HIST_DT 1D
+    else
+	ORCHIDEE_def STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP}
+    fi
+
+
+    if [ -f CO2.txt ] ; then
+        # If this file exist, then read CO2 value and set ATM_CO2 in run.def
+        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`
+        ORCHIDEE_def ATM_CO2 ${IPCC_CO2}
+    fi
+
+
+    # Special case using forcesoil executable
+    if [ -f forcesoil ] ; then
+	# Set STOMATE_CFORCING_NAME
+        ORCHIDEE_def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+
+	# Check if restart file is missing
+	if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+            IGCM_debug_Exit "YOU MUST USE OLD STOMATE RESTART FILE WITH THE JOB FORCESOIL."
+            IGCM_debug_Verif_Exit
+	fi
+    fi
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+#   Check if equilibrium is reached for spinup analytic
+#   and if true stop the simulation in the end of this period.
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+      CondSpinup=$(grep -a  "Equilibrium for carbon pools is reached"  out_*)
+      if [ X"${CondSpinup}" != X ] ; then
+        echo "SPINUP ANALYTIC :  your spinup is successful :"
+        echo ${CondSpinup}
+        echo "We stop the simulation now. PeriodDateEnd is set to DateEnd."
+        PeriodDateEnd=${DateEnd}
+      fi
+    fi
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/xios.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/xios.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/xios.card	(revision 5631)
@@ -0,0 +1,29 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+
+[InitialStateFiles]
+List=	()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+List=	(NONE)
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   ()
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/xios.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/xios.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/COMP/xios.driver	(revision 5631)
@@ -0,0 +1,40 @@
+#!/bin/ksh
+#-----------------------------------
+function IOS_Initialize
+{ 
+    IGCM_debug_PushStack "IOS_Initialize"
+
+    echo INITIALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Initialize"
+}
+
+#-----------------------------------
+function IOS_Update
+{
+    IGCM_debug_PushStack "IOS_Update"
+
+    echo UPDATE IOS !!!
+# Activate server mode
+    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true
+# If lmdz_UserChoices_XIOS=y add LMDZ as component id :
+    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then
+	IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx
+    fi 
+    if [ -f namcouple ] ; then
+	sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 
+	IGCM_sys_Mv namcouple.tmp namcouple
+    fi
+
+    IGCM_debug_PopStack "IOS_Update"
+}
+
+#-----------------------------------
+function IOS_Finalize
+{
+    IGCM_debug_PushStack "IOS_Finalize"
+
+    echo FINALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/iodef.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/iodef.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/iodef.xml	(revision 5631)
@@ -0,0 +1,1 @@
+link iodef_xios2.xml
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/iodef_xios1.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/iodef_xios1.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/iodef_xios1.xml	(revision 5631)
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 1.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) -->
+	  <variable id="buffer_size"               type="integer">15000000</variable>
+	  <variable id="buffer_server_factor_size" type="integer">2</variable>
+	  <variable id="info_level"                type="integer">1</variable>
+	  <variable id="using_server"              type="boolean">false</variable>
+	  <variable id="using_oasis"               type="boolean">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/iodef_xios2.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/iodef_xios2.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/iodef_xios2.xml	(revision 5631)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 2.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+	  <variable id="info_level"                type="int">1</variable>
+	  <variable id="using_server"              type="bool">false</variable>
+	  <variable id="using_oasis"               type="bool">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/orchidee.default
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/orchidee.default	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/orchidee.default	(revision 5631)
@@ -0,0 +1,1514 @@
+#
+#
+#  WARNING !!! 
+#  DO NOT MODIFY THIS FILE.
+#  THIS FILE IS ONLY PROVIDING INFORMATION ABOUT DEFAULT PARAMETER SETTINGS IN ORCHIDEE. 
+#
+#*******************************************************************************************
+#                    Namelist for ORCHIDEE (trunk revision 2135) 
+#*******************************************************************************************
+#
+#  For more details, see : http://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/OrchideeParameters 
+#
+#  Note : [m] : meters; [K] : Kelvin degrees; [C] : Celsius degrees
+#
+
+#*******************************************************************************************
+#          ORCHIDEE driver parameters (read in Off-line mode only) 
+#*******************************************************************************************
+
+# DEBUG_INFO ([FLAG] ) :  Flag for debug information 	{[-]}
+DEBUG_INFO =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# SPLIT_DT ([-]) :  splits the timestep imposed by the forcing 	{NOT(WEATHERGEN)}
+SPLIT_DT =  12 
+
+# RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions 	{[-]}
+RESTART_FILEIN =  NONE 
+
+# RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by the driver 	{[-]}
+RESTART_FILEOUT =  driver_rest_out.nc 
+
+# DRIVER_reset_time ([FLAG]) :  Overwrite time values from the driver restart file 	{[-]}
+DRIVER_reset_time =  n 
+
+# TIME_SKIP ([seconds, days, months, years]) :  Time in the forcing file at which the model is started. 	{[-]}
+TIME_SKIP =  0 
+
+# TIME_LENGTH ([seconds, days, months, years]) :  Length of the integration in time. 	{[-]}
+TIME_LENGTH =  DEF 
+
+# RELAXATION ([FLAG]) :  method of forcing 	{[-]}
+RELAXATION =  n 
+
+# RELAX_A ([days?]) :  Time constant of the relaxation layer 	{RELAXATION}
+RELAX_A =  1.0 
+
+# NO_INTER  ([FLAG]) :  No interpolation IF split is larger than 1 	{[-]}
+NO_INTER  =  y 
+
+# INTER_LIN ([FLAG]) :  Interpolation IF split is larger than 1 	{[-]}
+INTER_LIN =  n 
+
+# SPRED_PREC ([-]) :  Spread the precipitation. 	{[-]}
+SPRED_PREC =  1 
+
+# NETRAD_CONS ([FLAG]) :  Conserve net radiation in the forcing 	{INTER_LIN}
+NETRAD_CONS =  y 
+
+# ATM_CO2 ([ppm]) :  Value for atm CO2 	{[-]}
+ATM_CO2 =  350. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{[-]}
+ALLOW_WEATHERGEN =  n 
+
+# DT_WEATHGEN ([seconds]) :  Calling frequency of weather generator 	{ALLOW_WEATHERGEN}
+DT_WEATHGEN =  1800. 
+
+# LIMIT_WEST ([Degrees] ) :  Western limit of region 	{[-]}
+LIMIT_WEST =  -180. 
+
+# LIMIT_EAST ([Degrees] ) :  Eastern limit of region 	{[-]}
+LIMIT_EAST =  180. 
+
+# LIMIT_NORTH ([Degrees]) :  Northern limit of region 	{[-]}
+LIMIT_NORTH =  90. 
+
+# LIMIT_SOUTH ([Degrees]) :  Southern limit of region 	{[-]}
+LIMIT_SOUTH =  -90. 
+
+# MERID_RES ([Degrees]) :  North-South Resolution 	{ALLOW_WEATHERGEN}
+MERID_RES =  2. 
+
+# ZONAL_RES ([Degrees] ) :  East-West Resolution 	{ALLOW_WEATHERGEN}
+ZONAL_RES =  2. 
+
+# IPPREC ([-] ) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+IPPREC =  0 
+
+# WEATHGEN_PRECIP_EXACT ([FLAG]) :  Exact monthly precipitation 	{ALLOW_WEATHERGEN}
+WEATHGEN_PRECIP_EXACT =  n 
+
+# DUMP_WEATHER ([FLAG]) :  Write weather from generator into a forcing file 	{ALLOW_WEATHERGEN  }
+DUMP_WEATHER =  n 
+
+# DUMP_WEATHER_FILE ([FILE]) :  Name of the file that contains the weather from generator 	{DUMP_WEATHER}
+DUMP_WEATHER_FILE =  weather_dump.nc 
+
+# DUMP_WEATHER_GATHERED ([FLAG]) :  Dump weather data on gathered grid 	{DUMP_WEATHER}
+DUMP_WEATHER_GATHERED =  y 
+
+# HEIGHT_LEV1 ([m]) :   	{DUMP_WEATHER}
+HEIGHT_LEV1 =  10. 
+
+#*******************************************************************************************
+#          ORCHIDEE parameters  
+#*******************************************************************************************
+
+# LONGPRINT ([FLAG]) :  ORCHIDEE will print more messages 	{OK_SECHIBA}
+LONGPRINT =  n 
+
+# CHECKTIME ([FLAG]) :  ORCHIDEE will print messages on time 	{OK_SECHIBA}
+CHECKTIME =  n 
+
+# SOILTYPE_CLASSIF ([-]) :  Type of classification used for the map of soil types  	{!IMPOSE_VEG}
+SOILTYPE_CLASSIF =  zobler 
+
+# ORCHIDEE_WATCHOUT ([FLAG]) :  ORCHIDEE will write out its forcing to a file 	{}
+ORCHIDEE_WATCHOUT =  n 
+
+# DT_WATCHOUT ([seconds]) :  ORCHIDEE will write out with this frequency 	{ORCHIDEE_WATCHOUT}
+DT_WATCHOUT =  dt 
+
+# WATCHOUT_FILE ([FILE]) :  Filenane for the ORCHIDEE forcing file 	{ORCHIDEE_WATCHOUT}
+WATCHOUT_FILE =  orchidee_watchout.nc 
+
+# RIVER_ROUTING ([FLAG]) :  Decides if we route the water or not 	{OK_SECHIBA}
+RIVER_ROUTING =  n 
+
+# HYDROL_CWRR ([FLAG]) :  Allows to switch on the multilayer hydrology of CWRR 	{OK_SECHIBA}
+HYDROL_CWRR =  n 
+
+# HYDROL_SOIL_DEPTH ([m]) :  Total depth of soil reservoir 	{OK_SECHIBA }
+HYDROL_SOIL_DEPTH =  4./ 2. (if HYDROL_CWRR) 
+
+# DO_IRRIGATION ([FLAG]) :  Should we compute an irrigation flux  	{RIVER_ROUTING }
+DO_IRRIGATION =  n 
+
+# DO_FLOODPLAINS ([FLAG]  ) :  Should we include floodplains  	{RIVER_ROUTING }
+DO_FLOODPLAINS =  n 
+
+# CHECK_WATERBAL ([FLAG]  ) :  Should we check the global water balance  	{OK_SECHIBA}
+CHECK_WATERBAL =  n 
+
+# STOMATE_OK_CO2 ([FLAG]) :  Activate CO2? 	{OK_SECHIBA }
+STOMATE_OK_CO2 =  n 
+
+# STOMATE_OK_STOMATE ([FLAG]) :  Activate STOMATE? 	{OK_SECHIBA and OK_CO2}
+STOMATE_OK_STOMATE =  n 
+
+# STOMATE_OK_DGVM ([FLAG]) :  Activate DGVM? 	{OK_STOMATE}
+STOMATE_OK_DGVM =  n 
+
+# DIFFUCO_OK_INCA ([FLAG]) :  Activate DIFFUCO_INCA? 	{OK_SECHIBA}
+DIFFUCO_OK_INCA =  n 
+
+# LEAFAGE_OK_INCA ([FLAG]) :  Activate LEAFAGE? 	{DIFFUCO_OK_INCA}
+LEAFAGE_OK_INCA =  n 
+
+# CANOPY_EXTINCTION  ([FLAG]) :  Use canopy radiative transfer model? 	{DIFFUCO_OK_INCA }
+CANOPY_EXTINCTION  =  n 
+
+# CANOPY_MULTILAYER ([FLAG]) :  Use canopy radiative transfer model with multi-layers 	{CANOPY_EXTINCTION }
+CANOPY_MULTILAYER =  n 
+
+# NOx_RAIN_PULSE ([FLAG]) :  Calculate NOx emissions with pulse? 	{DIFFUCO_OK_INCA }
+NOx_RAIN_PULSE =  n 
+
+# NOx_BBG_FERTIL ([FLAG]) :  Calculate NOx emissions with bbg fertilizing effect? 	{DIFFUCO_OK_INCA }
+NOx_BBG_FERTIL =  n 
+
+# NOx_FERTILIZERS_USE ([FLAG] ) :  Calculate NOx emissions with fertilizers use? 	{DIFFUCO_OK_INCA }
+NOx_FERTILIZERS_USE =  n 
+
+# STOMATE_WATCHOUT ([FLAG]) :  STOMATE does minimum service 	{OK_SECHIBA }
+STOMATE_WATCHOUT =  n 
+
+# NVM ([-]) :  number of PFTs   	{OK_SECHIBA or OK_STOMATE}
+NVM =  13 
+
+# IMPOSE_PARAM ([FLAG]) :  Do you impose the values of the parameters? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_PARAM =  y 
+
+# SECHIBA_restart_in ([FILE]) :  Name of restart to READ for initial conditions 	{OK_SECHIBA }
+SECHIBA_restart_in =  NONE 
+
+# SECHIBA_rest_out ([FILE]) :  Name of restart files to be created by SECHIBA 	{OK_SECHIBA}
+SECHIBA_rest_out =  sechiba_rest_out.nc 
+
+# SECHIBA_reset_time ([FLAG]) :  Override the time from the restart files for SECHIBA and STOMATE 	{OK_SECHIBA}
+SECHIBA_reset_time =  y 
+
+# STOMATE_RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions of STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEIN =  NONE 
+
+# STOMATE_RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEOUT =  stomate_restart.nc 
+
+# ALMA_OUTPUT ([FLAG]) :  Should the output follow the ALMA convention 	{OK_SECHIBA}
+ALMA_OUTPUT =  n 
+
+# OUTPUT_FILE ([FILE]) :  Name of file in which the output is going to be written 	{OK_SECHIBA}
+OUTPUT_FILE =  sechiba_history.nc 
+
+# WRITE_STEP ([seconds]) :  Frequency in seconds at which to WRITE output 	{OK_SECHIBA}
+WRITE_STEP =  86400. 
+
+# SECHIBA_HISTLEVEL ([-]) :  SECHIBA history output level (0..10) 	{OK_SECHIBA and HF}
+SECHIBA_HISTLEVEL =  5 
+
+# SECHIBA_HISTFILE2 ([FLAG]) :  Flag to switch on histfile 2 for SECHIBA (hi-frequency ?) 	{OK_SECHIBA}
+SECHIBA_HISTFILE2 =  n 
+
+# WRITE_STEP2 ([seconds]) :  Frequency in seconds at which to WRITE output 	{SECHIBA_HISTFILE2}
+WRITE_STEP2 =  1800.0 
+
+# SECHIBA_OUTPUT_FILE2 ([FILE]) :  Name of file in which the output number 2 is going to be written 	{SECHIBA_HISTFILE2}
+SECHIBA_OUTPUT_FILE2 =  sechiba_out_2.nc 
+
+# SECHIBA_HISTLEVEL2 ([-] ) :  SECHIBA history 2 output level (0..10) 	{SECHIBA_HISTFILE2}
+SECHIBA_HISTLEVEL2 =  1 
+
+# STOMATE_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_OUTPUT_FILE =  stomate_history.nc 
+
+# STOMATE_HIST_DT ([days]) :  STOMATE history time step 	{OK_STOMATE}
+STOMATE_HIST_DT =  10. 
+
+# STOMATE_IPCC_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_IPCC_OUTPUT_FILE =  stomate_ipcc_history.nc 
+
+# STOMATE_IPCC_HIST_DT ([days]) :  STOMATE IPCC history time step 	{OK_STOMATE}
+STOMATE_IPCC_HIST_DT =  0. 
+
+# STOMATE_HISTLEVEL ([-]) :  STOMATE history output level (0..10) 	{OK_STOMATE}
+STOMATE_HISTLEVEL =  10 
+
+# ECCENTRICITY ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+ECCENTRICITY =  0.016724 
+
+# PERIHELIE ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+PERIHELIE =  102.04 
+
+# OBLIQUITY ([Degrees]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+OBLIQUITY =  23.446 
+
+# OK_THROUGHFALL_PFT ([FLAG]) :  Activate use of PERCENT_THROUGHFALL_PFT 	{HYDROL_CWRR}
+OK_THROUGHFALL_PFT =  FALSE 
+
+# PFT_TO_MTC ([-]) :  correspondance array linking a PFT to MTC 	{OK_SECHIBA or OK_STOMATE}
+PFT_TO_MTC =  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 
+
+# PFT_NAME ([-]) :  Name of a PFT 	{OK_SECHIBA or OK_STOMATE}
+PFT_NAME =  bare ground, tropical broad-leaved evergreen, tropical broad-leaved raingreen, temperate needleleaf evergreen, temperate broad-leaved evergreen, temperate broad-leaved summergreen,  boreal needleleaf evergreen, boreal broad-leaved summergreen, boreal needleleaf summergreen,  C3 grass, C4 grass, C3 agriculture, C4 agriculture  
+
+# LEAF_TAB ([-] ) :  leaf type : 1 	{OK_STOMATE}
+LEAF_TAB =  4, 1, 1, 2, 1, 1, 2, 1, 2, 3, 3, 3, 3  
+
+# PHENO_MODEL ([-] ) :  which phenology model is used? (tabulated)  	{OK_STOMATE}
+PHENO_MODEL =  none, none, moi, none, none, ncdgdd, none, ncdgdd, ngd, moigdd, moigdd, moigdd, moigdd 
+
+# SECHIBA_LAI ([m^2/m^2]) :  laimax for maximum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# LLAIMIN ([m^2/m^2]) :  laimin for minimum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+LLAIMIN =  0., 8., 0., 4., 4.5, 0., 4., 0., 0., 0., 0., 0., 0. 
+
+# SLOWPROC_HEIGHT ([m] ) :  prescribed height of vegetation  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1., 1. 
+
+# TYPE_OF_LAI ([-]) :  Type of behaviour of the LAI evolution algorithm  	{OK_SECHIBA}
+TYPE_OF_LAI =  inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter 
+
+# NATURAL ([BOOLEAN]) :  natural?  	{OK_SECHIBA, OK_STOMATE}
+NATURAL =  y, y, y, y, y, y, y, y, y, y, y, n, n  
+
+# IS_C4 ([BOOLEAN]) :  flag for C4 vegetation types 	{OK_SECHIBA or OK_STOMATE}
+IS_C4 =  n, n, n, n, n, n, n, n, n, n, n, y, n, y 
+
+# VCMAX_FIX ([micromol/m^2/s] ) :  values used for vcmax when STOMATE is not activated 	{OK_SECHIBA and NOT(OK_STOMATE)}
+VCMAX_FIX =  0., 40., 50., 30., 35., 40.,30., 40., 35., 60., 60., 70., 70. 
+
+# DOWNREGULATION_CO2_COEFF ([-]) :  coefficient for CO2 downregulation (unitless) 	{OK_CO2}
+DOWNREGULATION_CO2_COEFF =  0., 0.38, 0.38, 0.28, 0.28, 0.28, 0.22, 0.22, 0.22, 0.26, 0.26, 0.26, 0.26 
+
+# E_KmC ([J mol-1]) :  Energy of activation for KmC 	{OK_CO2}
+E_KmC =  -9999.,  79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430. 
+
+# E_KmO ([J mol-1]) :  Energy of activation for KmO 	{OK_CO2}
+E_KmO =  -9999., 36380.,  36380.,  36380.,  36380.,  36380., 36380., 36380., 36380., 36380., 36380., 36380., 36380. 
+
+# E_gamma_star ([J mol-1]) :  Energy of activation for gamma_star 	{OK_CO2}
+E_gamma_star =  -9999., 37830.,  37830.,  37830.,  37830.,  37830., 37830., 37830., 37830., 37830., 37830., 37830., 37830. 
+
+# E_Vcmax ([J mol-1]) :  Energy of activation for Vcmax 	{OK_CO2}
+E_Vcmax =  -9999., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 67300., 71513., 67300. 
+
+# E_Jmax ([J mol-1]) :  Energy of activation for Jmax 	{OK_CO2}
+E_Jmax =  -9999., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 77900., 49884., 77900.  
+
+# aSV ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+aSV =  -9999., 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 641.64, 668.39, 641.64  
+
+# bSV ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+bSV =  -9999., -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, 0., -1.07, 0.  
+
+# TPHOTO_MIN ([-]) :  minimum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MIN =  -9999.,  -4., -4., -4., -4.,-4.,-4., -4., -4., -4., -4., -4., -4. 
+
+# TPHOTO_MAX ([-]) :  maximum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MAX =  -9999., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55. 
+
+# aSJ ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+aSJ =  -9999., 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 630., 659.70, 630.  
+
+# bSJ ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+bSJ =  -9999., -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, 0., -0.75, 0.  
+
+# D_Vcmax ([J mol-1]) :  Energy of deactivation for Vcmax 	{OK_CO2}
+D_Vcmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# D_Jmax ([J mol-1]) :  Energy of deactivation for Jmax 	{OK_CO2}
+D_Jmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# E_Rd ([J mol-1]) :  Energy of activation for Rd 	{OK_CO2}
+E_Rd =  -9999., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390. 
+
+# VCMAX25 ([micromol/m^2/s]) :  Maximum rate of Rubisco activity-limited carboxylation at 25Â°C 	{OK_STOMATE}
+VCMAX25 =  -9999., 65., 65., 35., 45., 55., 35., 45., 35., 70., 70., 70., 70. 
+
+# ARJV ([mu mol e- (mu mol CO2)-1]) :  a coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+ARJV =  -9999., 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 1.715, 2.59, 1.715 
+
+# BRJV ([(mu mol e- (mu mol CO2)-1) (Â°C)-1]) :  b coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+BRJV =  -9999., -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, 0., -0.035, 0. 
+
+# KmC25 ([ubar]) :  MichaelisâMenten constant of Rubisco for CO2 at 25Â°C 	{OK_CO2}
+KmC25 =  -9999., 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 650., 404.9, 650. 
+
+# KmO25 ([ubar]) :  MichaelisâMenten constant of Rubisco for O2 at 25Â°C 	{OK_CO2}
+KmO25 =  -9999., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 450000., 278400., 450000. 
+
+# gamma_star25 ([ubar]) :  Ci-based CO2 compensation point in the absence of Rd at 25Â°C (ubar) 	{OK_CO2}
+gamma_star25 =  -9999., 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75 
+
+# a1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+a1 =  -9999., 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85 
+
+# b1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+b1 =  -9999., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.20, 0.14, 0.20 
+
+# g0 ([mol mâ2 sâ1 barâ1]) :  Residual stomatal conductance when irradiance approaches zero  	{OK_CO2}
+g0 =  -9999., 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.01875, 0.00625, 0.01875  
+
+# h_protons ([mol mol-1]) :  Number of protons required to produce one ATP 	{OK_CO2}
+h_protons =  -9999., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4.  
+
+# fpsir ([-]) :  Fraction of PSII eâ transport rate partitioned to the C4 cycle 	{OK_CO2}
+fpsir =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.4, -9999., 0.4  
+
+# fQ ([-]) :  Fraction of electrons at reduced plastoquinone that follow the Q-cycle 	{OK_CO2}
+fQ =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 1., -9999., 1. 
+
+# fpseudo ([-]) :  Fraction of electrons at PSI that follow pseudocyclic transport  	{OK_CO2}
+fpseudo =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# kp ([mol mâ2 sâ1 barâ1]) :  Initial carboxylation efficiency of the PEP carboxylase 	{OK_CO2}
+kp =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.7, -9999., 0.7 
+
+# alpha ([-]) :  Fraction of PSII activity in the bundle sheath 	{OK_CO2}
+alpha =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# gbs ([mol mâ2 sâ1 barâ1]) :  Bundle-sheath conductance 	{OK_CO2}
+gbs =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.003, -9999., 0.003 
+
+# theta ([â]) :  Convexity factor for response of J to irradiance 	{OK_CO2}
+theta =  -9999., 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7 
+
+# alpha_LL ([mol eâ (mol photon)â1]) :  Conversion efficiency of absorbed light into J at strictly limiting light 	{OK_CO2}
+alpha_LL =  -9999., 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372 
+
+# EXT_COEFF ([-]) :  extinction coefficient of the Monsi&Seaki relationship (1953) 	{OK_SECHIBA or OK_STOMATE}
+EXT_COEFF =  .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5 
+
+# HYDROL_HUMCSTE ([m]) :  Root profile 	{OK_SECHIBA}
+HYDROL_HUMCSTE =  humcste_cwrr or humcste_mct depending on flag HYDROL_CWRR 
+
+# PREF_SOIL_VEG ([-]        ) :  The soil tile number for each vegetation 	{OK_SECHIBA or OK_STOMATE}
+PREF_SOIL_VEG =  1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 
+
+# RSTRUCT_CONST ([s/m]) :  Structural resistance  	{OK_SECHIBA}
+RSTRUCT_CONST =  0.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0,  2.5,  2.0,  2.0,  2.0 
+
+# KZERO ([kg/m^2/s]) :  A vegetation dependent constant used in the calculation of the surface resistance. 	{OK_SECHIBA}
+KZERO =  0.0, 12.E-5, 12.E-5, 12.e-5, 12.e-5, 25.e-5, 12.e-5,25.e-5, 25.e-5, 30.e-5, 30.e-5, 30.e-5, 30.e-5  
+
+# RVEG_PFT ([-]) :  Artificial parameter to increase or decrease canopy resistance. 	{OK_SECHIBA}
+RVEG_PFT =  1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1. 
+
+# WMAX_VEG ([kg/m^3]) :  Maximum field capacity for each of the vegetations (Temporary): max quantity of water 	{OK_SECHIBA}
+WMAX_VEG =  150., 150., 150., 150., 150., 150., 150.,150., 150., 150., 150., 150., 150. 
+
+# PERCENT_THROUGHFALL_PFT ([%]) :  Percent by PFT of precip that is not intercepted by the canopy 	{OK_SECHIBA OR HYDROL_CWRR}
+PERCENT_THROUGHFALL_PFT =  30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 
+
+# SNOWA_AGED ([-]) :  Minimum snow albedo value for each vegetation type after aging (dirty old snow) 	{OK_SECHIBA}
+SNOWA_AGED =  0.35, 0., 0., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.18, 0.18, 0.18, 0.18 
+
+# SNOWA_DEC ([-]) :  Decay rate of snow albedo value for each vegetation type as it will be used in condveg_snow 	{OK_SECHIBA}
+SNOWA_DEC =  0.45, 0.,  0., 0.06, 0.06, 0.11, 0.06, 0.11, 0.11, 0.52,0.52, 0.52, 0.52 
+
+# ALB_LEAF_VIS ([-]) :  leaf albedo of vegetation type, visible albedo 	{OK_SECHIBA}
+ALB_LEAF_VIS =  .00, .04, .06, .06, .06,.06, .06, .06, .06, .10, .10, .10, .10 
+
+# ALB_LEAF_NIR ([-]) :  leaf albedo of vegetation type, near infrared albedo 	{OK_SECHIBA}
+ALB_LEAF_NIR =  .00, .20, .22, .22, .22,.22, .22, .22, .22, .30, .30, .30, .30  
+
+# ISO_ACTIVITY ([-]) :  Biogenic activity for each age class : isoprene 	{DIFFUCO_OK_INCA}
+ISO_ACTIVITY =  0.5, 1.5, 1.5, 0.5 
+
+# METHANOL_ACTIVITY ([-]) :  Isoprene emission factor for each age class : methanol 	{DIFFUCO_OK_INCA}
+METHANOL_ACTIVITY =  1., 1., 0.5, 0.5 
+
+# EM_FACTOR_ISOPRENE ([ugC/g/h] ) :  Isoprene emission factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_ISOPRENE =  0., 24., 24., 8., 16., 45., 8., 8., 8., 16., 24., 5., 5. 
+
+# EM_FACTOR_MONOTERPENE ([ugC/g/h] ) :  Monoterpene emission factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MONOTERPENE =  0., 0.8, 0.8, 2.4, 1.2, 0.8, 2.4, 2.4, 2.4, 0.8, 1.2, 0.2, 0.2 
+
+# EM_FACTOR_ORVOC ([ugC/g/h]  ) :  ORVOC emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_ORVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_OVOC ([ugC/g/h]        ) :  OVOC emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_OVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_MBO ([ugC/g/h]  ) :  MBO emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MBO =  0., 0., 0., 20.0, 0., 0., 0., 0., 0., 0., 0., 0., 0. 
+
+# EM_FACTOR_METHANOL ([ugC/g/h]  ) :  Methanol emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_METHANOL =  0., 0.6, 0.6, 1.8, 0.9, 0.6, 1.8, 1.8, 1.8, 0.6, 0.9, 2., 2. 
+
+# EM_FACTOR_ACETONE ([ugC/g/h]     ) :  Acetone emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETONE =  0., 0.29, 0.29, 0.87, 0.43, 0.29, 0.87, 0.87, 0.87, 0.29, 0.43, 0.07, 0.07  
+
+# EM_FACTOR_ACETAL ([ugC/g/h]  ) :  Acetaldehyde emissions factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_ACETAL =  0., 0.1, 0.1, 0.3, 0.15, 0.1, 0.3, 0.3, 0.3, 0.1, 0.15, 0.025, 0.025 
+
+# EM_FACTOR_FORMAL ([ugC/g/h]  ) :  Formaldehyde emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_FORMAL =  0., 0.07, 0.07, 0.2, 0.1, 0.07, 0.2, 0.2, 0.2, 0.07, 0.1, 0.017, 0.017 
+
+# EM_FACTOR_ACETIC ([ugC/g/h]  ) :  Acetic Acid emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETIC =  0., 0.002, 0.002, 0.006, 0.003, 0.002, 0.006, 0.006, 0.006, 0.002, 0.003, 0.0005, 0.0005 
+
+# EM_FACTOR_FORMIC ([ugC/g/h]  ) :  Formic Acid emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_FORMIC =  0., 0.01, 0.01, 0.03, 0.015, 0.01, 0.03, 0.03, 0.03, 0.01, 0.015, 0.0025, 0.0025  
+
+# EM_FACTOR_NO_WET ([ngN/m^2/s]) :  NOx emissions factor wet soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_WET =  0., 2.6, 0.06, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.36, 0.36, 0.36, 0.36 
+
+# EM_FACTOR_NO_DRY ([ngN/m^2/s] ) :  NOx emissions factor dry soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_DRY =  0., 8.60, 0.40, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 2.65, 2.65, 2.65, 2.65 
+
+# LARCH ([-]  ) :  Larcher 1991 SAI/LAI ratio 	{DIFFUCO_OK_INCA }
+LARCH =  0., 0.015, 0.015, 0.003, 0.005, 0.005, 0.003, 0.005, 0.003, 0.005, 0.005, 0.008, 0.008 
+
+# SLA ([m^2/gC]) :  specif leaf area  	{OK_STOMATE}
+SLA =  1.5E-2, 1.53E-2, 2.6E-2, 9.26E-3, 2E-2, 2.6E-2, 9.26E-3, 2.6E-2, 1.9E-2, 2.6E-2, 2.6E-2, 2.6E-2, 2.6E-2 
+
+# S0  ([-]    ) :  Standard sapwood allocation  	{OK_STOMATE }
+S0  =  -9999., .25, .25, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30 
+
+# MAINT_RESP_SLOPE_C ([-]) :  slope of maintenance respiration coefficient (1/K), constant c of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_C =  -9999., .20, .20, .16, .16, .16, .16, .16, .16, .16, .12, .16, .12  
+
+# MAINT_RESP_SLOPE_B ([-]) :  slope of maintenance respiration coefficient (1/K), constant b of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_B =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, -.00133, .0, -.00133, .0  
+
+# MAINT_RESP_SLOPE_A ([-]) :  slope of maintenance respiration coefficient (1/K), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_A =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0     
+
+# CM_ZERO_LEAF ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for leaves, tabulated 	{OK_STOMATE}
+CM_ZERO_LEAF =  -9999., 2.35E-3, 2.62E-3, 1.01E-3, 2.35E-3, 2.62E-3, 1.01E-3,2.62E-3, 2.05E-3, 2.62E-3, 2.62E-3, 2.62E-3, 2.62E-3 
+
+# CM_ZERO_SAPABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C,for sapwood above, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPABOVE =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# CM_ZERO_SAPBELOW ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for sapwood below, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPBELOW =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4  
+
+# CM_ZERO_HEARTABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for heartwood above, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTABOVE =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_HEARTBELOW ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C,for heartwood below, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTBELOW =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_ROOT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for roots, tabulated 	{OK_STOMATE}
+CM_ZERO_ROOT =  -9999.,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3 
+
+# CM_ZERO_FRUIT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for fruits, tabulated 	{OK_STOMATE}
+CM_ZERO_FRUIT =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4     
+
+# CM_ZERO_CARBRES ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for carbohydrate reserve, tabulated 	{OK_STOMATE}
+CM_ZERO_CARBRES =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# FLAM ([-]) :  flamability: critical fraction of water holding capacity 	{OK_STOMATE}
+FLAM =  -9999., .15, .25, .25, .25, .25, .25, .25, .25, .25, .25, .35, .35 
+
+# RESIST ([-]) :  fire resistance 	{OK_STOMATE}
+RESIST =  -9999., .95, .90, .12, .50, .12, .12, .12, .12, .0, .0, .0, .0  
+
+# COEFF_LCCHANGE_1 ([-]) :  Coeff of biomass export for the year 	{OK_STOMATE}
+COEFF_LCCHANGE_1 =  -9999., 0.897, 0.897, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597  
+
+# COEFF_LCCHANGE_10 ([-]) :  Coeff of biomass export for the decade 	{OK_STOMATE}
+COEFF_LCCHANGE_10 =  -9999., 0.103, 0.103, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.403, 0.299, 0.403 
+
+# COEFF_LCCHANGE_100 ([-]) :  Coeff of biomass export for the century 	{OK_STOMATE}
+COEFF_LCCHANGE_100 =  -9999., 0., 0., 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0., 0.104, 0. 
+
+# LAI_MAX ([m^2/m^2]) :  maximum LAI, PFT-specific 	{OK_STOMATE}
+LAI_MAX =  -9999., 7., 7., 5., 5., 5., 4.5, 4.5, 3.0, 2.5, 2.5, 5.,5.  
+
+# PHENO_TYPE ([-]) :  type of phenology, 0 	{OK_STOMATE}
+PHENO_TYPE =  0, 1, 3, 1, 1, 2, 1, 2, 2, 4, 4, 2, 3 
+
+# PHENO_GDD_CRIT_C ([-]) :  critical gdd, tabulated (C), constant c of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_C =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 270., 400., 125., 400. 
+
+# PHENO_GDD_CRIT_B ([-]) :  critical gdd, tabulated (C), constant b of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_B =  -9999., -9999., -9999., -9999., -9999., -9999., -9999.,-9999., -9999., 6.25, 0., 0., 0. 
+
+# PHENO_GDD_CRIT_A ([-]) :  critical gdd, tabulated (C), constant a of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_A =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.03125,  0., 0., 0. 
+
+# NGD_CRIT ([days]) :  critical ngd, tabulated. Threshold -5 degrees 	{OK_STOMATE}
+NGD_CRIT =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# NCDGDD_TEMP ([C] ) :  critical temperature for the ncd vs. gdd function in phenology 	{OK_STOMATE}
+NCDGDD_TEMP =  -9999., -9999., -9999., -9999., -9999., 5., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# HUM_FRAC ([%]) :  critical humidity (relative to min/max) for phenology 	{OK_STOMATE}
+HUM_FRAC =  -9999., -9999., .5, -9999., -9999., -9999., -9999., -9999.,  -9999., .5, .5, .5,.5      
+
+# HUM_MIN_TIME ([days]) :  minimum time elapsed since moisture minimum 	{OK_STOMATE}
+HUM_MIN_TIME =  -9999., -9999., 50., -9999., -9999., -9999., -9999., -9999., -9999., 35., 35., 75., 75. 
+
+# TAU_SAP ([days]) :  sapwood -> heartwood conversion time 	{OK_STOMATE}
+TAU_SAP =  -9999., 730., 730., 730., 730., 730., 730., 730., 730., -9999., -9999., -9999., -9999. 
+
+# TAU_FRUIT ([days]) :  fruit lifetime 	{OK_STOMATE}
+TAU_FRUIT =  -9999., 90., 90., 90., 90., 90., 90., 90., 90., -9999., -9999., -9999., -9999. 
+
+# ECUREUIL ([-]) :  fraction of primary leaf and root allocation put into reserve 	{OK_STOMATE}
+ECUREUIL =  -9999., .0, 1., .0, .0, 1., .0, 1., 1., 1., 1., 1., 1. 
+
+# ALLOC_MIN ([-]) :  minimum allocation above/below  	{OK_STOMATE}
+ALLOC_MIN =  -9999., 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, -9999., -9999., -9999., -9999.  
+
+# ALLOC_MAX ([-]) :  maximum allocation above/below  	{OK_STOMATE}
+ALLOC_MAX =  -9999., 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, -9999., -9999., -9999., -9999. 
+
+# DEMI_ALLOC  ([-]) :  mean allocation above/below  	{OK_STOMATE}
+DEMI_ALLOC  =  -9999., 5., 5., 5., 5., 5., 5., 5., 5., -9999., -9999., -9999., -9999. 
+
+# LEAFLIFE_TAB ([years]) :  leaf longevity 	{OK_STOMATE}
+LEAFLIFE_TAB =  -9999., .5, 2., .33, 1., 2., .33, 2., 2., 2., 2., 2., 2.  
+
+# LEAFFALL ([days]) :  length of death of leaves, tabulated  	{OK_STOMATE}
+LEAFFALL =  -9999., -9999., 10., -9999., -9999., 10., -9999., 10., 10., 10., 10., 10., 10.  
+
+# LEAFAGECRIT ([days]) :  critical leaf age, tabulated 	{OK_STOMATE}
+LEAFAGECRIT =  -9999., 730., 180., 910., 730., 180., 910., 180., 180., 120., 120., 90., 90.   
+
+# SENESCENCE_TYPE ([-]) :  type of senescence, tabulated 	{OK_STOMATE}
+SENESCENCE_TYPE =  none, none, dry, none, none, cold, none, cold, cold, mixed, mixed, mixed, mixed  
+
+# SENESCENCE_HUM ([-] ) :  critical relative moisture availability for senescence 	{OK_STOMATE}
+SENESCENCE_HUM =  -9999., -9999., .3, -9999., -9999., -9999., -9999., -9999., -9999., .2, .2, .3, .2  
+
+# NOSENESCENCE_HUM ([-]) :  relative moisture availability above which there is no humidity-related senescence 	{OK_STOMATE}
+NOSENESCENCE_HUM =  -9999., -9999., .8, -9999., -9999., -9999., -9999., -9999., -9999., .3, .3, .3, .3  
+
+# MAX_TURNOVER_TIME ([days]) :  maximum turnover time for grasse 	{OK_STOMATE}
+MAX_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999.,  80.,  80., 80., 80.  
+
+# MIN_TURNOVER_TIME ([days]) :  minimum turnover time for grasse  	{OK_STOMATE}
+MIN_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 10., 10., 10., 10.  
+
+# MIN_LEAF_AGE_FOR_SENESCENCE ([days] ) :  minimum leaf age to allow senescence g 	{OK_STOMATE}
+MIN_LEAF_AGE_FOR_SENESCENCE =  -9999., -9999., 90., -9999., -9999., 90., -9999., 60., 60., 30., 30., 30., 30. 
+
+# SENESCENCE_TEMP_C ([-]) :  critical temperature for senescence (C), constant c of aT^2+bT+c, tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_C =  -9999., -9999., -9999., -9999., -9999., 12., -9999., 7., 2., -1.375, 5., 5., 10. 
+
+# SENESCENCE_TEMP_B ([-]) :  critical temperature for senescence (C), constant b of aT^2+bT+c ,tabulated 	{OK_STOMATE }
+SENESCENCE_TEMP_B =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0., .1, 0., 0., 0. 
+
+# SENESCENCE_TEMP_A ([-] ) :  critical temperature for senescence (C), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_A =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0.,.00375, 0., 0., 0.  
+
+# GDD_SENESCENCE ([days] ) :  minimum gdd to allow senescence of crops   	{OK_STOMATE}
+GDD_SENESCENCE =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 950., 4000. 
+
+# RESIDENCE_TIME ([years]) :  residence time of trees 	{OK_DGVM and NOT(LPJ_GAP_CONST_MORT)}
+RESIDENCE_TIME =  -9999., 30.0, 30.0, 40.0, 40.0, 40.0, 80.0, 80.0, 80.0, 0.0, 0.0, 0.0, 0.0  
+
+# TMIN_CRIT ([C]) :  critical tmin, tabulated 	{OK_STOMATE}
+TMIN_CRIT =  -9999.,  0.0, 0.0, -30.0, -14.0, -30.0, -45.0, -45.0, -9999., -9999., -9999., -9999., -9999. 
+
+# TCM_CRIT ([C]) :  critical tcm, tabulated  	{OK_STOMATE}
+TCM_CRIT =  -9999., -9999., -9999., 5.0, 15.5, 15.5, -8.0, -8.0, -8.0, -9999., -9999., -9999., -9999. 
+
+# HERBIVORES ([FLAG]) :  herbivores allowed? 	{OK_STOMATE }
+HERBIVORES =  n 
+
+# TREAT_EXPANSION ([FLAG]) :  treat expansion of PFTs across a grid cell? 	{OK_STOMATE }
+TREAT_EXPANSION =  n 
+
+# LPJ_GAP_CONST_MORT ([FLAG]) :  prescribe mortality if not using DGVM? 	{OK_STOMATE}
+LPJ_GAP_CONST_MORT =  y 
+
+# HARVEST_AGRI ([FLAG]) :  Harvest model for agricultural PFTs. 	{OK_STOMATE }
+HARVEST_AGRI =  y 
+
+# FIRE_DISABLE ([FLAG]) :  no fire allowed 	{OK_STOMATE }
+FIRE_DISABLE =  n 
+
+# SPINUP_ANALYTIC (BOOLEAN    ) :  Activation of the analytic resolution of the spinup. 	{OK_STOMATE}
+SPINUP_ANALYTIC =  n 
+
+# AGRICULTURE ([FLAG]) :  agriculture allowed? 	{OK_SECHIBA or OK_STOMATE}
+AGRICULTURE =  y 
+
+# IMPOSE_VEG ([FLAG]) :  Should the vegetation be prescribed ? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_VEG =  n 
+
+# IMPOSE_SOILT ([FLAG]) :  Should the soil type be prescribed ? 	{IMPOSE_VEG}
+IMPOSE_SOILT =  n 
+
+# LAI_MAP ([FLAG]) :  Read the LAI map 	{OK_SECHIBA or OK_STOMATE}
+LAI_MAP =  n 
+
+# SLOWPROC_LAI_OLD_INTERPOL ([FLAG]) :  Flag to use old "interpolation" of LAI 	{LAI_MAP}
+SLOWPROC_LAI_OLD_INTERPOL =  n 
+
+# LAND_USE ([FLAG]) :  Read a land_use vegetation map 	{OK_SECHIBA or OK_STOMATE}
+LAND_USE =  y 
+
+# VEGET_REINIT ([FLAG] ) :  booleen to indicate that a new LAND USE file will be used. 	{LAND_USE}
+VEGET_REINIT =  y 
+
+# LAND_COVER_CHANGE ([FLAG] ) :  treat land use modifications 	{LAND_USE}
+LAND_COVER_CHANGE =  n 
+
+# VEGET_YEAR ([FLAG] ) :  Year of the land_use vegetation map to be read 	{LAND_USE}
+VEGET_YEAR =  1 
+
+# SLOWPROC_VEGET_OLD_INTERPOL ([FLAG] ) :  Flag to use old "interpolation" of vegetation map. 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+SLOWPROC_VEGET_OLD_INTERPOL =  n 
+
+# MAXMASS_SNOW ([kg/m^2]  ) :  The maximum mass of a snow 	{OK_SECHIBA or HYDROL_CWRR}
+MAXMASS_SNOW =  3000. 
+
+# SNOWCRI ([kg/m^2]  ) :  Sets the amount above which only sublimation occures  	{OK_SECHIBA or HYDROL_CWRR}
+SNOWCRI =  1.5 
+
+# MIN_WIND ([m/s]) :  Minimum wind speed 	{OK_SECHIBA}
+MIN_WIND =  0.1 
+
+# MAX_SNOW_AGE ([days?]) :  Maximum period of snow aging  	{OK_SECHIBA}
+MAX_SNOW_AGE =  50. 
+
+# SNOW_TRANS ([m]   ) :  Transformation time constant for snow 	{OK_SECHIBA}
+SNOW_TRANS =  0.3 
+
+# Z0_OVER_HEIGHT ([-]   ) :  to get z0 from height  	{OK_SECHIBA }
+Z0_OVER_HEIGHT =  1/16. 
+
+# HEIGHT_DISPLACEMENT ([m]  ) :  Magic number which relates the height to the displacement height. 	{OK_SECHIBA }
+HEIGHT_DISPLACEMENT =  0.75 
+
+# Z0_BARE ([m]   ) :  bare soil roughness length 	{OK_SECHIBA }
+Z0_BARE =  0.01  
+
+# Z0_ICE ([m]   ) :  ice roughness length 	{OK_SECHIBA }
+Z0_ICE =  0.001 
+
+# TCST_SNOWA ([days]) :  Time constant of the albedo decay of snow 	{OK_SECHIBA }
+TCST_SNOWA =  5.0  
+
+# SNOWCRI_ALB ([cm]  ) :  Critical value for computation of snow albedo 	{OK_SECHIBA}
+SNOWCRI_ALB =  10.  
+
+# VIS_DRY ([-]  ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+VIS_DRY =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.27 
+
+# NIR_DRY ([-]   ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_DRY =  0.48, 0.44, 0.40, 0.36, 0.32, 0.28, 0.24, 0.20, 0.55 
+
+# VIS_WET  ([-]   ) :  The correspondance table for the soil color numbers and their albedo 	{OK_SECHIBA  }
+VIS_WET  =  0.12, 0.11, 0.10, 0.09, 0.08, 0.07, 0.06, 0.05, 0.15 
+
+# NIR_WET ([-]    ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_WET =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.31 
+
+# ALBSOIL_VIS ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_VIS =  0.18, 0.16, 0.16, 0.15, 0.12, 0.105, 0.09, 0.075, 0.25 
+
+# ALBSOIL_NIR  ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_NIR  =  0.36, 0.34, 0.34, 0.33, 0.30, 0.25, 0.20, 0.15, 0.45 
+
+# ALB_DEADLEAF  ([-]     ) :  albedo of dead leaves, VIS+NIR  	{OK_SECHIBA }
+ALB_DEADLEAF  =  0.12, 0.35 
+
+# ALB_ICE ([-]  ) :  albedo of ice, VIS+NIR 	{OK_SECHIBA}
+ALB_ICE =  0.60, 0.20 
+
+# CONDVEG_SNOWA ([-]) :  The snow albedo used by SECHIBA 	{OK_SECHIBA}
+CONDVEG_SNOWA =  1.E+20 
+
+# ALB_BARE_MODEL ([FLAG]) :  Switch bare soil albedo dependent (if TRUE) on soil wetness 	{OK_SECHIBA}
+ALB_BARE_MODEL =  n 
+
+# Z0CDRAG_AVE ([FLAG]) :  Average method for z0 	{OK_SECHIBA}
+Z0CDRAG_AVE =  y 
+
+# IMPOSE_AZE ([FLAG]) :  Should the surface parameters be prescribed 	{OK_SECHIBA}
+IMPOSE_AZE =  n 
+
+# CONDVEG_Z0 ([m]) :  Surface roughness 	{IMPOSE_AZE}
+CONDVEG_Z0 =  0.15 
+
+# ROUGHHEIGHT ([m] ) :  Height to be added to the height of the first level 	{IMPOSE_AZE}
+ROUGHHEIGHT =  0.0 
+
+# CONDVEG_ALBVIS ([-]) :  SW visible albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBVIS =  0.25 
+
+# CONDVEG_ALBNIR ([-]  ) :  SW near infrared albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBNIR =  0.25 
+
+# CONDVEG_EMIS ([-] ) :  Emissivity of the surface for LW radiation 	{IMPOSE_AZE}
+CONDVEG_EMIS =  1.0 
+
+# NLAI ([-]  ) :  Number of LAI levels 	{OK_SECHIBA}
+NLAI =  20 
+
+# LAIMAX ([m^2/m^2]   ) :  Maximum LAI 	{OK_SECHIBA}
+LAIMAX =   
+
+# DEW_VEG_POLY_COEFF ([-]   ) :  coefficients of the polynome of degree 5 for the dew 	{OK_SECHIBA}
+DEW_VEG_POLY_COEFF =  0.887773, 0.205673, 0.110112, 0.014843, 0.000824, 0.000017  
+
+# DOWNREGULATION_CO2 ([FLAG]   ) :  Activation of CO2 downregulation 	{OK_SECHIBA}
+DOWNREGULATION_CO2 =  n  
+
+# DOWNREGULATION_CO2_BASELEVEL ([ppm]   ) :  CO2 base level 	{OK_SECHIBA }
+DOWNREGULATION_CO2_BASELEVEL =  280. 
+
+# CLAYFRACTION_DEFAULT ([-]   ) :  default fraction of clay 	{OK_SECHIBA }
+CLAYFRACTION_DEFAULT =  0.2  
+
+# MIN_VEGFRAC  ([-]  ) :  Minimal fraction of mesh a vegetation type can occupy  	{OK_SECHIBA }
+MIN_VEGFRAC  =  0.001  
+
+# STEMPDIAG_BID  ([K]) :  only needed for an initial LAI if there is no restart file 	{OK_SECHIBA }
+STEMPDIAG_BID  =  280. 
+
+# LAI_LEVEL_DEPTH ([-]  ) :   	{OK_CO2}
+LAI_LEVEL_DEPTH =  0.15 
+
+# Oi ([ubar]  ) :  Intercellular oxygen partial pressure 	{OK_CO2}
+Oi =  210000. 
+
+# TOO_LONG  ([days]   ) :  longest sustainable time without regeneration (vernalization) 	{OK_STOMATE}
+TOO_LONG  =  5. 
+
+# TAU_FIRE  ([days]    ) :  Time scale for memory of the fire index (days). Validated for one year in the DGVM.  	{OK_STOMATE }
+TAU_FIRE  =  30. 
+
+# LITTER_CRIT ([gC/m^2]  ) :  Critical litter quantity for fire 	{OK_STOMATE }
+LITTER_CRIT =  200. 
+
+# FIRE_RESIST_STRUCT ([-]  ) :   	{OK_STOMATE }
+FIRE_RESIST_STRUCT =  0.5 
+
+# CO2FRAC ([-]  ) :  What fraction of a burned plant compartment goes into the atmosphere 	{OK_STOMATE }
+CO2FRAC =  0.95, 0.95, 0., 0.3, 0., 0., 0.95, 0.95 
+
+# BCFRAC_COEFF ([-]  ) :   	{OK_STOMATE }
+BCFRAC_COEFF =  0.3, 1.3, 88.2  
+
+# FIREFRAC_COEFF  ([-]   ) :   	{OK_STOMATE }
+FIREFRAC_COEFF  =  0.45, 0.8, 0.6, 0.13 
+
+# AVAILABILITY_FACT  ([-]   ) :   	{OK_STOMATE }
+AVAILABILITY_FACT  =  0.1 
+
+# REF_GREFF ([1/year]  ) :  Asymptotic maximum mortality rate 	{OK_STOMATE }
+REF_GREFF =  0.035 
+
+# OK_MINRES ([FLAG]) :  Do we try to reach a minimum reservoir even if we are severely stressed? 	{OK_STOMATE }
+OK_MINRES =  y 
+
+# TAU_LEAFINIT ([days]  ) :  time to attain the initial foliage using the carbohydrate reserve  	{OK_STOMATE }
+TAU_LEAFINIT =  10. 
+
+# RESERVE_TIME_TREE  ([days]    ) :  maximum time during which reserve is used (trees)  	{OK_STOMATE }
+RESERVE_TIME_TREE  =  30. 
+
+# RESERVE_TIME_GRASS  ([days]   ) :  maximum time during which reserve is used (grasses)  	{OK_STOMATE }
+RESERVE_TIME_GRASS  =  20.  
+
+# R0 ([-]  ) :  Standard root allocation  	{OK_STOMATE }
+R0 =  0.3  
+
+# F_FRUIT ([-]    ) :  Standard fruit allocation 	{OK_STOMATE }
+F_FRUIT =  0.1  
+
+# ALLOC_SAP_ABOVE_GRASS  ([-]   ) :  fraction of sapwood allocation above ground  	{OK_STOMATE }
+ALLOC_SAP_ABOVE_GRASS  =  1.0  
+
+# MIN_LTOLSR  ([-]   ) :  extrema of leaf allocation fraction  	{OK_STOMATE }
+MIN_LTOLSR  =  0.2 
+
+# MAX_LTOLSR ([-]   ) :  extrema of leaf allocation fraction 	{OK_STOMATE }
+MAX_LTOLSR =  0.5 
+
+# Z_NITROGEN ([m]  ) :  scaling depth for nitrogen limitation  	{OK_STOMATE}
+Z_NITROGEN =  0.2  
+
+# LAI_MAX_TO_HAPPY ([-]  ) :   	{OK_STOMATE }
+LAI_MAX_TO_HAPPY =  0.5  
+
+# NLIM_TREF  ([C]  ) :   	{OK_STOMATE }
+NLIM_TREF  =  25.  
+
+# PIPE_TUNE1 ([-]    ) :  crown area  	{OK_STOMATE }
+PIPE_TUNE1 =  100.0 
+
+# PIPE_TUNE2  ([-]      ) :  height 	{OK_STOMATE }
+PIPE_TUNE2  =  40.0  
+
+# PIPE_TUNE3 ([-]    ) :  height 	{OK_STOMATE }
+PIPE_TUNE3 =  0.5  
+
+# PIPE_TUNE4 ([-]  ) :  needed for stem diameter 	{OK_STOMATE }
+PIPE_TUNE4 =  0.3  
+
+# PIPE_DENSITY  ([-]  ) :  Density 	{OK_STOMATE }
+PIPE_DENSITY  =  2.e5  
+
+# PIPE_K1  ([-]   ) :   	{OK_STOMATE }
+PIPE_K1  =  8.e3  
+
+# PIPE_TUNE_EXP_COEFF  ([-]   ) :  pipe tune exponential coeff  	{OK_STOMATE }
+PIPE_TUNE_EXP_COEFF  =  1.6  
+
+# PRECIP_CRIT  ([mm/year]  ) :  minimum precip 	{OK_STOMATE }
+PRECIP_CRIT  =  100. 
+
+# GDD_CRIT_ESTAB ([-]  ) :  minimum gdd for establishment of saplings 	{OK_STOMATE }
+GDD_CRIT_ESTAB =  150.  
+
+# FPC_CRIT ([-]  ) :  critical fpc, needed for light competition and establishment 	{OK_STOMATE }
+FPC_CRIT =  0.95 
+
+# ALPHA_GRASS ([-]   ) :  sapling characteristics : alpha's 	{OK_STOMATE }
+ALPHA_GRASS =  0.5 
+
+# ALPHA_TREE ([-]   ) :  sapling characteristics : alpha's  	{OK_STOMATE }
+ALPHA_TREE =  1. 
+
+# MASS_RATIO_HEART_SAP ([-]   ) :  mass ratio (heartwood+sapwood)/sapwood 	{OK_STOMATE }
+MASS_RATIO_HEART_SAP =  3. 
+
+# FRAC_GROWTHRESP ([-]) :  fraction of GPP which is lost as growth respiration 	{OK_STOMATE }
+FRAC_GROWTHRESP =  0.28 
+
+# TAU_HUM_MONTH ([days]  ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_MONTH =  20.  
+
+# TAU_HUM_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_WEEK =  7. 
+
+# TAU_T2M_MONTH ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_MONTH =  20. 
+
+# TAU_T2M_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_WEEK =  7. 
+
+# TAU_TSOIL_MONTH  ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_TSOIL_MONTH  =  20.  
+
+# TAU_SOILHUM_MONTH ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_SOILHUM_MONTH =  20.  
+
+# TAU_GPP_WEEK  ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GPP_WEEK  =  7.  
+
+# TAU_GDD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GDD =  40.  
+
+# TAU_NGD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_NGD =  50. 
+
+# COEFF_TAU_LONGTERM ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+COEFF_TAU_LONGTERM =  3.  
+
+# BM_SAPL_CARBRES  ([-]   ) :   	{OK_STOMATE }
+BM_SAPL_CARBRES  =  5.  
+
+# BM_SAPL_SAPABOVE ([-]    ) :   	{OK_STOMATE}
+BM_SAPL_SAPABOVE =  0.5  
+
+# BM_SAPL_HEARTABOVE  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTABOVE  =  2. 
+
+# BM_SAPL_HEARTBELOW  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTBELOW  =  2.  
+
+# INIT_SAPL_MASS_LEAF_NAT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_NAT =  0.1  
+
+# INIT_SAPL_MASS_LEAF_AGRI ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_AGRI =  1.  
+
+# INIT_SAPL_MASS_CARBRES ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_CARBRES =  5.  
+
+# INIT_SAPL_MASS_ROOT ([-]   ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_ROOT =  0.1  
+
+# INIT_SAPL_MASS_FRUIT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_FRUIT =  0.3  
+
+# CN_SAPL_INIT  ([-]   ) :   	{OK_STOMATE }
+CN_SAPL_INIT  =  0.5  
+
+# MIGRATE_TREE  ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_TREE  =  10000. 
+
+# MIGRATE_GRASS ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_GRASS =  10000. 
+
+# LAI_INITMIN_TREE ([m^2/m^2]  ) :   	{OK_STOMATE }
+LAI_INITMIN_TREE =  0.3 
+
+# LAI_INITMIN_GRASS  ([m^2/m^2]    ) :   	{OK_STOMATE }
+LAI_INITMIN_GRASS  =  0.1 
+
+# DIA_COEFF ([-]   ) :   	{OK_STOMATE }
+DIA_COEFF =  4., 0.5 
+
+# MAXDIA_COEFF ([-]   ) :   	{OK_STOMATE }
+MAXDIA_COEFF =  100., 0.01  
+
+# BM_SAPL_LEAF ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_LEAF =  4., 4., 0.8, 5.  
+
+# METABOLIC_REF_FRAC ([-]) :  	{OK_STOMATE }
+METABOLIC_REF_FRAC =  0.85   
+
+# Z_DECOMP ([m]   ) :  scaling depth for soil activity 	{OK_STOMATE }
+Z_DECOMP =  0.2 
+
+# CN ([-]  ) :  C/N ratio 	{OK_STOMATE }
+CN =  40., 40., 40., 40., 40., 40., 40., 40. 
+
+# LC  ([-]   ) :  Lignine/C ratio of the different plant parts 	{OK_STOMATE }
+LC  =  0.22, 0.35, 0.35, 0.35, 0.35, 0.22, 0.22, 0.22 
+
+# FRAC_SOIL_STRUCT_AA ([-]) :  frac_soil(istructural,iactive,iabove) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_AA =  0.55 
+
+# FRAC_SOIL_STRUCT_A  ([-]) :  frac_soil(istructural,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_A  =  0.45 
+
+# FRAC_SOIL_STRUCT_SA ([-]   ) :  frac_soil(istructural,islow,iabove) 	{OK_STOMATE}
+FRAC_SOIL_STRUCT_SA =  0.7   
+
+# FRAC_SOIL_STRUCT_SB ([-]   ) :  frac_soil(istructural,islow,ibelow)  	{OK_STOMATE }
+FRAC_SOIL_STRUCT_SB =  0.7   
+
+# FRAC_SOIL_METAB_AA  ([-]   ) :  frac_soil(imetabolic,iactive,iabove)  	{OK_STOMATE }
+FRAC_SOIL_METAB_AA  =  0.45  
+
+# FRAC_SOIL_METAB_AB  ([-]   ) :  frac_soil(imetabolic,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_METAB_AB  =  0.45   
+
+# METABOLIC_LN_RATIO ([-]   ) :   	{OK_STOMATE }
+METABOLIC_LN_RATIO =  0.018   
+
+# TAU_METABOLIC ([days] ) :   	{OK_STOMATE }
+TAU_METABOLIC =  0.066 
+
+# TAU_STRUCT  ([days]) :   	{OK_STOMATE }
+TAU_STRUCT  =  0.245  
+
+# SOIL_Q10 ([-]) :   	{OK_STOMATE }
+SOIL_Q10 =  0.69 ( 
+
+# TSOIL_REF ([C]   ) :   	{OK_STOMATE }
+TSOIL_REF =  30.  
+
+# LITTER_STRUCT_COEF  ([-]   ) :   	{OK_STOMATE }
+LITTER_STRUCT_COEF  =  3.  
+
+# MOIST_COEFF ([-]   ) :   	{OK_STOMATE }
+MOIST_COEFF =  1.1, 2.4, 0.29 
+
+# FRAC_TURNOVER_DAILY  ([-]) :   	{OK_STOMATE }
+FRAC_TURNOVER_DAILY  =  0.55 
+
+# TAX_MAX ([-]   ) :  maximum fraction of allocatable biomass used for maintenance respiration 	{OK_STOMATE }
+TAX_MAX =  0.8 
+
+# ALWAYS_INIT ([-]   ) :  take carbon from atmosphere if carbohydrate reserve too small?  	{OK_STOMATE }
+ALWAYS_INIT =  n  
+
+# MIN_GROWTHINIT_TIME  ([days]  ) :  minimum time since last beginning of a growing season 	{OK_STOMATE }
+MIN_GROWTHINIT_TIME  =  300.  
+
+# MOIAVAIL_ALWAYS_TREE ([-]   ) :  moisture availability above which moisture tendency doesn't matter  	{OK_STOMATE }
+MOIAVAIL_ALWAYS_TREE =  1.0  
+
+# MOIAVAIL_ALWAYS_GRASS  ([-]   ) :  moisture availability above which moisture tendency doesn't matter 	{OK_STOMATE }
+MOIAVAIL_ALWAYS_GRASS  =  0.6  
+
+# T_ALWAYS_ADD ([C]    ) :  monthly temp. above which temp. tendency doesn't matter  	{OK_STOMATE }
+T_ALWAYS_ADD =  10. 
+
+# GDDNCD_REF  ([-]   ) :   	{OK_STOMATE }
+GDDNCD_REF  =  603.  
+
+# GDDNCD_CURVE ([-]  ) :   	{OK_STOMATE }
+GDDNCD_CURVE =  0.0091  
+
+# GDDNCD_OFFSET ([-]  ) :   	{OK_STOMATE }
+GDDNCD_OFFSET =  64.  
+
+# BM_SAPL_RESCALE  ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_RESCALE  =  40.  
+
+# MAINT_RESP_MIN_VMAX ([-]  ) :   	{OK_STOMATE }
+MAINT_RESP_MIN_VMAX =  0.3 
+
+# MAINT_RESP_COEFF  ([-] ) :   	{OK_STOMATE }
+MAINT_RESP_COEFF  =  1.4  
+
+# FRAC_CARB_AP ([-]) :  frac carb coefficients from active pool: depends on clay content 	{OK_STOMATE }
+FRAC_CARB_AP =  0.004 
+
+# FRAC_CARB_SA ([-]) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SA =  0.42 
+
+# FRAC_CARB_SP ([-] ) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SP =  0.03 
+
+# FRAC_CARB_PA ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PA =  0.45 
+
+# FRAC_CARB_PS ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PS =  0.0 
+
+# ACTIVE_TO_PASS_CLAY_FRAC ([-] ) :   	{OK_STOMATE }
+ACTIVE_TO_PASS_CLAY_FRAC =  0.68   
+
+# CARBON_TAU_IACTIVE ( [days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IACTIVE =  0.149 
+
+# CARBON_TAU_ISLOW ([days]) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_ISLOW =  5.48 
+
+# CARBON_TAU_IPASSIVE ([days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IPASSIVE =  241. 
+
+# FLUX_TOT_COEFF ([days] ) :  	{OK_STOMATE }
+FLUX_TOT_COEFF =  1.2, 1.4,.75 
+
+# NEW_TURNOVER_TIME_REF ([days]  ) :   	{OK_STOMATE }
+NEW_TURNOVER_TIME_REF =  20.  
+
+# DT_TURNOVER_TIME  ([days]  ) :   	{OK_STOMATE }
+DT_TURNOVER_TIME  =  10. 
+
+# LEAF_AGE_CRIT_TREF ([days]  ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_TREF =  20.  
+
+# LEAF_AGE_CRIT_COEFF  ([-] ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_COEFF  =  1.5, 0.75, 10.  
+
+# VMAX_OFFSET  ([-]  ) :  offset (minimum relative vcmax) 	{OK_STOMATE }
+VMAX_OFFSET  =  0.3 
+
+# LEAFAGE_FIRSTMAX ([-] ) :  leaf age at which vmax attains vcmax_opt (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_FIRSTMAX =  0.03  
+
+# LEAFAGE_LASTMAX  ([-]  ) :  leaf age at which vmax falls below vcmax_opt (in fraction of critical leaf age)  	{OK_STOMATE }
+LEAFAGE_LASTMAX  =  0.5  
+
+# LEAFAGE_OLD  ([-]  ) :  leaf age at which vmax attains its minimum (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_OLD  =  1. 
+
+# GPPFRAC_DORMANCE  ([-]) :  rapport maximal GPP/GGP_max pour dormance 	{OK_STOMATE }
+GPPFRAC_DORMANCE  =  0.2  
+
+# TAU_CLIMATOLOGY ([days]) :  tau for "climatologic variables  	{OK_STOMATE }
+TAU_CLIMATOLOGY =  20 
+
+# HVC1  ([-]  ) :  parameters for herbivore activity 	{OK_STOMATE }
+HVC1  =  0.019 
+
+# HVC2  ([-]  ) :  parameters for herbivore activity  	{OK_STOMATE }
+HVC2  =  1.38 
+
+# LEAF_FRAC_HVC ([-] ) :  parameters for herbivore activity  	{OK_STOMATE }
+LEAF_FRAC_HVC =  0.33 
+
+# TLONG_REF_MAX ([K]  ) :  maximum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MAX =  303.1 
+
+# TLONG_REF_MIN  ([K]  ) :  minimum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MIN  =  253.1 
+
+# NCD_MAX_YEAR ([days]) :   	{OK_STOMATE }
+NCD_MAX_YEAR =  3.  
+
+# GDD_THRESHOLD  ([days] ) :   	{OK_STOMATE }
+GDD_THRESHOLD  =  5.  
+
+# GREEN_AGE_EVER  ([-]  ) :   	{OK_STOMATE }
+GREEN_AGE_EVER  =  2.  
+
+# GREEN_AGE_DEC ([-] ) :   	{OK_STOMATE }
+GREEN_AGE_DEC =  0.5  
+
+# ESTAB_MAX_TREE ([-]   ) :  Maximum tree establishment rate  	{OK_DGVM}
+ESTAB_MAX_TREE =  0.12  
+
+# ESTAB_MAX_GRASS ([-]  ) :  Maximum grass establishment rate 	{OK_DGVM}
+ESTAB_MAX_GRASS =  0.12  
+
+# ESTABLISH_SCAL_FACT ([-] ) :   	{OK_DGVM }
+ESTABLISH_SCAL_FACT =  5. 
+
+# MAX_TREE_COVERAGE  ([-] ) :   	{OK_DGVM }
+MAX_TREE_COVERAGE  =  0.98 
+
+# IND_0_ESTAB ([-]  ) :   	{OK_DGVM }
+IND_0_ESTAB =  0.2 
+
+# ANNUAL_INCREASE ([FLAG]) :  for diagnosis of fpc increase, compare today's fpc to last year's maximum (T) or to fpc of last time step (F)? 	{OK_DGVM}
+ANNUAL_INCREASE =  y 
+
+# MIN_COVER  ([-]  ) :  For trees, minimum fraction of crown area occupied  	{OK_DGVM}
+MIN_COVER  =  0.05  
+
+# IND_0  ([-]  ) :  initial density of individuals 	{OK_DGVM}
+IND_0  =  0.02  
+
+# MIN_AVAIL ([-]  ) :  minimum availability 	{OK_DGVM}
+MIN_AVAIL =  0.01 
+
+# RIP_TIME_MIN ([year]  ) :   	{OK_DGVM}
+RIP_TIME_MIN =  1.25  
+
+# NPP_LONGTERM_INIT ([gC/m^2/year]) :   	{OK_DGVM}
+NPP_LONGTERM_INIT =  10. 
+
+# EVERYWHERE_INIT ([-] ) :   	{OK_DGVM}
+EVERYWHERE_INIT =  0.05  
+
+# THERMOSOIL_NBLEV ((-)) :  Number of soil level 	{}
+THERMOSOIL_NBLEV =  7 
+
+# DRY_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}] ) :  Dry soil Heat capacity of soils 	{OK_SECHIBA }
+DRY_SOIL_HEAT_CAPACITY =  1.80e+6 
+
+# DRY_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}] ) :  Dry soil Thermal Conductivity of soils 	{OK_SECHIBA}
+DRY_SOIL_HEAT_COND =  0.40  
+
+# WET_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}]) :  Wet soil Heat capacity of soils  	{OK_SECHIBA}
+WET_SOIL_HEAT_CAPACITY =  3.03e+6 
+
+# WET_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Wet soil Thermal Conductivity of soils 	{OK_SECHIBA }
+WET_SOIL_HEAT_COND =  1.89  
+
+# SNOW_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Thermal Conductivity of snow 	{OK_SECHIBA  }
+SNOW_HEAT_COND =  0.3 
+
+# SNOW_DENSITY ([-] ) :  Snow density for the soil thermodynamics  	{OK_SECHIBA }
+SNOW_DENSITY =  330.0 
+
+# NOBIO_WATER_CAPAC_VOLUMETRI ([s/m^2]) :   	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+NOBIO_WATER_CAPAC_VOLUMETRI =  150. 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# CHOISNEL_DIFF_MIN ([kg/m^2/dt]) :  Diffusion constant for the slow regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MIN =  0.001 
+
+# CHOISNEL_DIFF_MAX ([kg/m^2/dt]) :  Diffusion constant for the fast regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MAX =  0.1 
+
+# CHOISNEL_DIFF_EXP ([-]) :  The exponential in the diffusion law 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_EXP =  1.5 
+
+# CHOISNEL_RSOL_CSTE ([s/m^2]) :  Constant in the computation of resistance for bare  soil evaporation  	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_RSOL_CSTE =  33.E3 
+
+# HCRIT_LITTER ([m]) :  Scaling depth for litter humidity 	{OK_SECHIBA and .NOT.(HYDROL_CWRR) }
+HCRIT_LITTER =  0.08  
+
+# SECHIBA_DAY ([days]) :  Time within the day simulated 	{OK_SECHIBA}
+SECHIBA_DAY =  0.0 
+
+# VEGET_UPDATE ([years]) :  Update vegetation frequency 	{LAND_USE}
+VEGET_UPDATE =  0Y 
+
+# SECHIBA_ZCANOP ([m]) :  Soil level used for canopy development (if STOMATE disactivated) 	{OK_SECHIBA and .NOT. OK_STOMATE  }
+SECHIBA_ZCANOP =  0.5 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# DT_SLOW ([seconds]) :  Time step of STOMATE and other slow processes 	{OK_STOMATE}
+DT_SLOW =  86400. 
+
+# SECHIBA_VEGMAX ([-]) :  Maximum vegetation distribution within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_VEGMAX =  0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0 
+
+# SECHIBA_FRAC_NOBIO ([-]) :  Fraction of other surface types within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_FRAC_NOBIO =  0.0 
+
+# SECHIBA_LAI ([-]) :  LAI for all vegetation types (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# SOIL_FRACTIONS ([-]) :  Fraction of the 3 soil types (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOILT}
+SOIL_FRACTIONS =  -9999._sechiba 
+
+# CLAY_FRACTION ([-] ) :  Fraction of the clay fraction (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOIL}
+CLAY_FRACTION =  0.2 
+
+# REINF_SLOPE ([-]) :  Slope coef for reinfiltration  	{IMPOSE_VEG}
+REINF_SLOPE =  0.1 
+
+# SLOWPROC_HEIGHT ([m]) :  Height for all vegetation types  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1.0, 1.0 
+
+# GET_SLOPE ([FLAG]) :  Read slopes from file and do the interpolation 	{}
+GET_SLOPE =  n 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(LAI_MAP)}
+LAI_FILE =  lai2D.nc 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAI_MAP}
+LAI_FILE =  lai2D.nc 
+
+# RENORM_LAI ([FLAG]) :  flag to force LAI renormelization 	{LAI_MAP}
+RENORM_LAI =  n 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAND_USE}
+VEGETATION_FILE =  PFTmap.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# SOILCLASS_FILE ([FILE]) :  Name of file from which soil types are read 	{NOT(IMPOSE_VEG)}
+SOILCLASS_FILE =  soils_param.nc 
+
+# SLOPE_NOREINF ([-]) :  See slope_noreinf above 	{}
+SLOPE_NOREINF =  0.5 
+
+# TOPOGRAPHY_FILE ([FILE]) :  Name of file from which the topography map is to be read 	{}
+TOPOGRAPHY_FILE =  cartepente2d_15min.nc 
+
+# SOILALB_FILE ([FILE]) :  Name of file from which the bare soil albedo 	{NOT(IMPOSE_AZE)}
+SOILALB_FILE =  soils_param.nc 
+
+# CDRAG_FROM_GCM ([FLAG]) :  Keep cdrag coefficient from gcm. 	{OK_SECHIBA}
+CDRAG_FROM_GCM =  y 
+
+# DIFFUCO_LEAFCI ([ppm]) :  Initial leaf CO2 level if not found in restart 	{OK_SECHIBA}
+DIFFUCO_LEAFCI =  233. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{}
+ALLOW_WEATHERGEN =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# HYDROL_OK_HDIFF ([FLAG]) :  do horizontal diffusion? 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)  }
+HYDROL_OK_HDIFF =  n 
+
+# HYDROL_SNOW ([kg/m^2]) :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE ([days]) :  Initial snow age if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO ([m]) :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE ([days]) :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_HUMR ([-]) :  Initial soil moisture stress if not found in restart 	{OK_SECHIBA }
+HYDROL_HUMR =  1.0 
+
+# HYDROL_BQSB ([kg/m^2]) :  Initial restart deep soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_BQSB =  999999.  
+
+# HYDROL_GQSB ([kg/m^2]) :  Initial upper soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_GQSB =  0.0 
+
+# HYDROL_DSG ([m]) :  Initial upper reservoir depth if not found in restart 	{OK_SECHIBA }
+HYDROL_DSG =  0.0 
+
+# HYDROL_QSV ([kg/m^2]) :  Initial water on canopy if not found in restart 	{OK_SECHIBA }
+HYDROL_QSV =  0.0 
+
+# HYDROL_DSP ([m]) :  Initial dry soil above upper reservoir if not found in restart 	{OK_SECHIBA }
+HYDROL_DSP =  999999. 
+
+# HYDROL_TAU_HDIFF ([seconds]) :  time scale (s) for horizontal diffusion of water 	{HYDROL_OK_HDIFF}
+HYDROL_TAU_HDIFF =  86400. 
+
+# CHECK_CWRR ([FLAG]) :  Should we check detailed CWRR water balance ? 	{HYDROL_CWRR}
+CHECK_CWRR =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{HYDROL_CWRR}
+DO_PONDS =  n 
+
+# CWRR_N_VANGENUCHTEN ([-]) :  Van genuchten coefficient n 	{HYDROL_CWRR}
+CWRR_N_VANGENUCHTEN =  1.89, 1.56, 1.31 
+
+# CWRR_A_VANGENUCHTEN ([1/mm]  ) :  Van genuchten coefficient a 	{HYDROL_CWRR}
+CWRR_A_VANGENUCHTEN =  0.0075, 0.0036, 0.0019 
+
+# VWC_RESIDUAL ([mm]  ) :  Residual soil water content 	{HYDROL_CWRR}
+VWC_RESIDUAL =  0.065, 0.078, 0.095 
+
+# VWC_SAT ([-]  ) :  Saturated soil water content 	{HYDROL_CWRR}
+VWC_SAT =  0.41, 0.43, 0.41 
+
+# CWRR_KS  ([mm/d]   ) :  Hydraulic conductivity Saturation 	{HYDROL_CWRR }
+CWRR_KS  =  1060.8, 249.6, 62.4 
+
+# WETNESS_TRANSPIR_MAX ([-]    ) :  Soil moisture above which transpir is max 	{HYDROL_CWRR}
+WETNESS_TRANSPIR_MAX =  0.5, 0.5, 0.5 
+
+# DRAINAGE_FACTOR_F ([-]   ) :  Max value of the permeability coeff at the bottom of the soil  	{HYDROL_CWRR}
+DRAINAGE_FACTOR_F =  1.0, 1.0, 1.0  
+
+# VWC_FC  ([-]   ) :  Volumetric water content field capacity 	{HYDROL_CWRR}
+VWC_FC  =  0.32, 0.32, 0.32 
+
+# VWC_WP ([-]   ) :  Volumetric water content Wilting pt 	{HYDROL_CWRR}
+VWC_WP =  0.10, 0.10, 0.10  
+
+# VWC_MIN_FOR_WET_ALB ([-]  ) :  Vol. wat. cont. above which albedo is cst 	{HYDROL_CWRR}
+VWC_MIN_FOR_WET_ALB =  0.25, 0.25, 0.25 
+
+# VWC_MAX_FOR_DRY_ALB ([-]   ) :  Vol. wat. cont. below which albedo is cst 	{HYDROL_CWRR}
+VWC_MAX_FOR_DRY_ALB =  0.1, 0.1, 0.1 
+
+# HYDROL_MOISTURE_CONTENT () :  Soil moisture on each soil tile and levels 	{HYDROL_CWRR       }
+HYDROL_MOISTURE_CONTENT =  0.3 
+
+# US_INIT () :  US_NVM_NSTM_NSLM 	{HYDROL_CWRR       }
+US_INIT =  0.0 
+
+# FREE_DRAIN_COEF () :  Coefficient for free drainage at bottom 	{HYDROL_CWRR       }
+FREE_DRAIN_COEF =  1.0, 1.0, 1.0 
+
+# WATER_TO_INFILT () :  Water to be infiltrated on top of the soil 	{HYDROL_CWRR    }
+WATER_TO_INFILT =  0.0 
+
+# EVAPNU_SOIL () :  Bare soil evap on each soil if not found in restart 	{HYDROL_CWRR  }
+EVAPNU_SOIL =  0.0 
+
+# HYDROL_SNOW () :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE () :  Initial snow age if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO () :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE () :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_QSV () :  Initial water on canopy if not found in restart 	{OK_SECHIBA}
+HYDROL_QSV =  0.0 
+
+# CWRR_NKS_N0  ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_N0  =  0.95 
+
+# CWRR_NKS_POWER ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_POWER =  0.34 
+
+# CWRR_AKS_A0  ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_A0  =  0.00012 
+
+# CWRR_AKS_POWER ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_POWER =  0.53 
+
+# KFACT_DECAY_RATE ([-]) :  Factor for Ks decay with depth 	{HYDROL_CWRR }
+KFACT_DECAY_RATE =  2.0 
+
+# KFACT_STARTING_DEPTH ([-]) :  Depth for compacted value of Ks  	{HYDROL_CWRR }
+KFACT_STARTING_DEPTH =  0.3 
+
+# KFACT_MAX ([-]) :  Maximum Factor for Ks increase due to vegetation 	{HYDROL_CWRR }
+KFACT_MAX =  10.0 
+
+# ROUTING_TIMESTEP ([seconds]) :  Time step of the routing scheme 	{RIVER_ROUTING}
+ROUTING_TIMESTEP =  86400. 
+
+# ROUTING_RIVERS ([-]) :  Number of rivers  	{RIVER_ROUTING}
+ROUTING_RIVERS =  50 
+
+# DO_FLOODINFILT ([FLAG]) :  Should floodplains reinfiltrate into the soil  	{RIVER_ROUTING}
+DO_FLOODINFILT =  n 
+
+# DO_SWAMPS ([FLAG]) :  Should we include swamp parameterization  	{RIVER_ROUTING}
+DO_SWAMPS =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{RIVER_ROUTING}
+DO_PONDS =  n 
+
+# SLOW_TCST ([days]) :  Time constant for the slow reservoir  	{RIVER_ROUTING }
+SLOW_TCST =  n 
+
+# FAST_TCST ([days]) :  Time constant for the fast reservoir  	{RIVER_ROUTING }
+FAST_TCST =  fast_tcst_cwrr or fast_tcst_chois depending on flag HYDROL_CWRR 
+
+# STREAM_TCST ([days]) :  Time constant for the stream reservoir  	{RIVER_ROUTING}
+STREAM_TCST =  stream_tcst_cwrr or stream_tcst_chois depending on flag HYDROL_CWRR 
+
+# FLOOD_TCST ([days]) :  Time constant for the flood reservoir  	{RIVER_ROUTING}
+FLOOD_TCST =  4.0 
+
+# SWAMP_CST ([-]) :  Fraction of the river that flows back to swamps  	{RIVER_ROUTING}
+SWAMP_CST =  0.2 
+
+# FLOOD_BETA ([-] ) :  Parameter to fix the shape of the floodplain   	{RIVER_ROUTING}
+FLOOD_BETA =  2.0 
+
+# POND_BETAP ([-] ) :  Ratio of the basin surface intercepted by ponds and the maximum surface of ponds 	{RIVER_ROUTING}
+POND_BETAP =  0.5 
+
+# FLOOD_CRI ([mm] ) :  Potential height for which all the basin is flooded 	{DO_FLOODPLAINS or DO_PONDS}
+FLOOD_CRI =  2000. 
+
+# POND_CRI ([mm] ) :  Potential height for which all the basin is a pond 	{DO_FLOODPLAINS or DO_PONDS}
+POND_CRI =  2000. 
+
+# RIVER_DESC ([FLAG]) :  Writes out a description of the rivers 	{RIVER_ROUTING}
+RIVER_DESC =  n 
+
+# RIVER_DESC_FILE ([FILE]) :  Filename in which we write the description of the rivers. If suffix is ".nc" a netCDF file is created 	{RIVER_DESC}
+RIVER_DESC_FILE =  river_desc.txt 
+
+# ROUTING_FILE ([FILE]) :  Name of file which contains the routing information 	{RIVER_ROUTING}
+ROUTING_FILE =  routing.nc 
+
+# IRRIGATION_FILE ([FILE]) :  Name of file which contains the map of irrigated areas 	{DO_IRRIGATION OR DO_FLOODPLAINS}
+IRRIGATION_FILE =  floodplains.nc 
+
+# EPS_CARBON ([%]   ) :  Allowed error on carbon stock 	{SPINUP_ANALYTIC}
+EPS_CARBON =  0.01 
+
+# SPINUP_PERIOD ([years]   ) :  Period to calulcate equilibrium during spinup analytic 	{SPINUP_ANALYTIC}
+SPINUP_PERIOD =  -1 
+
+# STOMATE_FORCING_NAME ([FILE]) :  Name of STOMATE's forcing file 	{OK_STOMATE}
+STOMATE_FORCING_NAME =  NONE 
+
+# STOMATE_FORCING_MEMSIZE ([MegaBytes]) :  Size of STOMATE forcing data in memory  	{OK_STOMATE}
+STOMATE_FORCING_MEMSIZE =  50 
+
+# STOMATE_CFORCING_NAME ([FILE]) :  Name of STOMATE's carbon forcing file 	{OK_STOMATE}
+STOMATE_CFORCING_NAME =  NONE 
+
+# FORCESOIL_STEP_PER_YEAR ([days, months, year]) :  Number of time steps per year for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_STEP_PER_YEAR =  365 
+
+# FORCESOIL_NB_YEAR ([years]) :  Number of years saved for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_NB_YEAR =  1 
+
+# BAVARD ([-]) :  level of online diagnostics in STOMATE (0-4) 	{OK_STOMATE}
+BAVARD =  1 
+
+# REFTEMP_FILE ([FILE]) :  Name of file from which the reference temperature is read 	{OK_STOMATE}
+REFTEMP_FILE =  reftemp.nc 
+
+# XIOS_ORCHIDEE_OK ([FLAG]) :  Use XIOS for writing diagnostics file 	{}
+XIOS_ORCHIDEE_OK =  n 
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/PARAM/run.def	(revision 5631)
@@ -0,0 +1,6 @@
+# $Id: run.def,v 1.1 2010/10/06 15:09:33 ssipsl Exp $
+#
+# Use XIOS for writing diagnostics file
+# defulat = n
+XIOS_ORCHIDEE_OK = _AUTO_
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/FORCESOIL/config.card	(revision 5631)
@@ -0,0 +1,113 @@
+#
+# This is config.card file for restart with an NEW libIGCM simulation tree.
+#
+#====================================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=ForceSo
+LongName="Please, explain here what is this simulation for"
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=PROD
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=forcesoil
+#============================
+#-- leap, noleap, 360d
+CalendarType=360d
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1980-01-01
+DateEnd=1999-12-30
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=10Y
+#============================
+#-- Total Number of Processors
+JobNumProcTot=4
+#============================
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component, Name of component, Tag of component
+SBG= (stomate, orchidee_1_9_5_1)
+OOL= (orchidee_ol, orchidee_1_9_5_1)
+#========================================================================
+#D-- Executable -
+[Executable]
+Name=forcesoil
+#D- For each component, Real name of executable, Name of executable for oasis
+SBG= (forcesoil, forcesoil, 4MPI)
+OOL= ("","")
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- If you want a GENERAL RULE FOR RESTARTS, put this flag to 'y'
+OverRule=n
+#D- Last day of the experience used as restart
+RestartDate=1979-12-31
+#D- Define restart simulation name (=> JOB_OS)
+RestartJobName=TESTFORCE
+#D- Path Server Group Login (=> PSGL)
+RestartPath=${ARCHIVE}/IGCM_OUT
+# Attention login depend de la machine
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=1OY
+#D- Do we rebuild parallel output, this flag determines
+#D- frequency of rebuild submission
+RebuildFrequency=10Y
+#D- Optimization of rebuid
+RebuildFromArchive=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=NONE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=NONE
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+
+#========================================================================
+#D-- SRF - STOMATE
+[SBG]
+WriteFrequency="1M"
+#-- Restart=y is mandatory for forcesoil.
+#   Set RestartDate, RestartJobName and RestartPath for sechiba.
+#   This restart file must correspond to the stomate_Cforcing.nc file set in stomate.card.
+Restart=y
+#-- Last day of the experience used as restart
+RestartDate=...
+# Define restart simulation name
+RestartJobName=...
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2/.....
+# Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
+#========================================================================
+#D-- OOL -
+[OOL]
+WriteFrequency=
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=
+# Define restart simulation name
+RestartJobName=
+RestartPath=
+# Old component name for restart (if empty, use new name)
+
+#========================================================================
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/orchidee_ol.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/orchidee_ol.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/orchidee_ol.card	(revision 5631)
@@ -0,0 +1,32 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# Use XIOS as output library instead of IOIPSL
+XIOS=y
+
+[InitialStateFiles]
+List=()
+
+[BoundaryFiles]
+List=  (${R_IN}/SRF/METEO/CRU-NCEP/v5.3.2/twodeg/cruncep_twodeg_${year}.nc, forcing_file.nc)
+ListNonDel= ()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .) ,\
+        (${SUBMIT_DIR}/PARAM/iodef.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_orchidee.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_input_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/file_def_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/field_def_orchidee.xml, .)
+
+
+[RestartFiles]
+List=	(driver_rest_out.nc,  driver_rest.nc,  driver_rest_in.nc)
+
+[OutputText]
+List=   (run.def, used_run.def, out_orchidee_ol, iodef.xml, context_orchidee.xml, context_input_orchidee.xml, field_def_orchidee.xml, file_def_orchidee.xml, xios_client_*)
+
+[OutputFiles]
+List= ()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/orchidee_ol.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/orchidee_ol.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/orchidee_ol.driver	(revision 5631)
@@ -0,0 +1,133 @@
+#!/bin/ksh
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    # Set TIME_LENGTH in run.def depending on PeriodLenght in config.card
+    case ${config_UserChoices_PeriodLength} in
+	*M|*m|*D|*d)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${PeriodLengthInDays}D
+	    ;;
+	*s|*Y)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${config_UserChoices_PeriodLength}
+            ;;
+        *)
+            IGCM_debug_Exit "OOL_Update " ${config_UserChoices_PeriodLength} " invalid PeriodLength in config.card : choose between 1Y, 1M, 5D, 1D."
+            IGCM_debug_Verif_Exit
+    esac
+    
+
+    # Set TIME_SKIP only if starting without restart file
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Calculate the TIME_SKIP as difference between the start date and 1th of January the same year
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D
+    else
+	# Here using restart file, set TIME_SKIP=0
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP 0D
+    fi
+
+    # Set RESTART_FILEIN in run.def
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Set RESTART_FILEIN=NONE in run.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN NONE
+    else
+        # Default option using restart file, set RESTART_FILEIN=driver_rest_in.nc in orchidee.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN driver_rest_in.nc
+    fi
+
+    # Reset the simulation date as ORCHIDEE understands it for some special cases
+    # DRIVER_reset_time=y : take the date from the first time step of the forcing file 
+    # DRIVER_reset_time=n : default, take the date from the restart file if existing, else take it from the forcing file
+    if ( ${FirstInitialize} &&  [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+	# Starting a new simulation: take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    elif ( [ X${CyclicYear} = X${config_UserChoices_CyclicBegin} ] && [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+        # Start a new cycle, take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    else
+	# Default option, take the date from the restart file
+	IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time n
+    fi
+
+
+    if [ -f CO2.txt ] ; then
+        # If this file exist, then read CO2 value and set ATM_CO2 in run.def
+        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`
+	if [ X"${IPCC_CO2}" = X ] ; then
+            # The grep returned empty variable: stop execution
+            IGCM_debug_Exit "The file CO2.txt do not contain the current year."
+            IGCM_debug_Verif_Exit
+        fi
+        IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 ${IPCC_CO2}
+    else
+	# The file is not available: take the default value from run.def. 
+	# The syntax in run.def must be respected, for example:
+        # ATM_CO2 = _AUTO_: DEFAULT = 350.
+	IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 DEFAULT
+    fi
+
+
+    # Activation of XIOS
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Add include of orchidee context in iodef.xml
+      # In iodef.xml add on next line after "COMPONENT CONTEXT"
+      #  <context id="orchidee" src="./context_orchidee.xml"/>
+      echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp
+
+      # Add inclusion of file context_input_orchidee.xml if this file exists
+      if [ -f context_input_orchidee.xml ] ; then
+          echo '<context id="orchidee" src="./context_input_orchidee.xml"/>' >> add.tmp
+      fi
+ 
+      cp iodef.xml iodef.xml.tmp
+      sed -e "/COMPONENT CONTEXT/r add.tmp" \
+        iodef.xml.tmp > iodef.xml
+      rm iodef.xml.tmp add.tmp
+
+
+      # Special case if SBG component is not activated: deactivate stomate output files from file_def_orchidee.xml
+      # If SBG is activated, then the stomate.driver will take care of these variables
+      if [ X${config_ListOfComponents_SBG} = X ] ; then
+          # Stomate is not activated
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo      
+      fi
+    fi
+
+
+    # Add LongName as global attribute in all files produced by XIOS (if LongName is not empty)
+    # Remove file_def_input_orchidee.xml from the list. 
+    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then
+	listfile=$(ls file_def*orchidee.xml | grep -v input)
+	echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp
+	for file in ${listfile} ; do
+	    cp ${file} ${file}.tmp
+	    sed -e "/<file id/r add.tmp" \
+		${file}.tmp > ${file}
+	    rm ${file}.tmp 
+	done 
+	rm add.tmp
+    fi
+          
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+    
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,81 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# VEGET_UPDATE=0Y : no change in vegetation map. PFTmap.nc should be set only in InitialStateFiles/List. 
+# VEGET_UPDATE=1Y : change vegetation map every year. PFTmap.nc should be set only in BoundaryFiles/List.
+# Note that the model changed behaviour:
+# - since rev 2717 in the trunk, the map is read in January. In BoundaryFiles/List, copy the map for current year, use the variable ${year}.
+# - for older version, the map is read in December. In BoundaryFiles/List, copy the map for next coming year using the variable ${year_p1}.
+VEGET_UPDATE=1Y
+
+# Specify output level for output files
+# Only the files sechiba_history.nc, sechiba_out_2.nc and sechiba_history_4dim.nc can be set here.
+# output_level_filename=0     : lowest level writing only variables needed for the monitoring
+# output_level_filename=12    : highest level which will output all variables
+# output_level_filename=NONE  : deactivate the file
+output_level_sechiba_history = 11
+output_level_sechiba_out_2 = NONE
+output_level_sechiba_history_4dim = 11
+
+# Specify output frequency for each file [1y, 1mo, 1d, 10800s, 1ts]
+# Settings using WriteFrequency in config.card are not longer used
+output_freq_sechiba_history = 1mo
+output_freq_sechiba_out_2 = 10800s
+output_freq_sechiba_history_4dim = 1mo
+
+
+[InitialStateFiles]
+List=       (${R_IN}/SRF/ROUTING/routing.nc, .),     \
+            (${R_IN}/SRF/SOIL/soils_param.nc, .), \
+            (${R_IN}/SRF/cartepente2d_15min.nc, .), \
+            (${R_IN}/SRF/ROUTING/floodplains.nc, .), \
+            (${R_IN}/SRF/reftemp.nc, .), \
+            (${R_IN}/SRF/albedo/alb_bg_modisopt_2D_ESA_v2.nc, alb_bg.nc)
+	
+[BoundaryFiles]
+List=   (${R_IN}/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1/PFTmap_${year}.nc, PFTmap.nc)
+ListNonDel= (${R_IN}/SRF/LAI/lai2D_ORCHIDEE_2_0_v1.nc, lai2D.nc)
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   (used_run.def, out_orchidee, river_desc.nc)
+
+[OutputFiles]
+List=	(sechiba_history.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history.nc, Post_1M_sechiba_history), \
+        (sechiba_history_4dim.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history_4dim.nc, NONE), \
+        (sechiba_out_2.nc, ${R_OUT_SRF_O_H}/${PREFIX}_HF_sechiba_out_2.nc, NONE)
+
+
+[Post_1M_sechiba_history]
+Patches = ()
+GatherWithInternal = (lon, lat, veget, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (nobiofrac, alb_nir, alb_vis, evap, fluxlat, fluxsens, netrad, qair, rain, runoff, snow, snownobio, snowf, frac_snow, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac, TWBR, riverflow, coastalflow, DelSoilMoist_daily, DelIntercept_daily, DelSWE_daily, delstock_routing, snowmelt, LAImean, hydrographs, evapnu, Wind, lwdown, swdown)
+ChunckJob2D = 200Y
+TimeSeriesVars3D = (lai, maxvegetfrac, vegetfrac, ptn, nee, transpir, inter)
+ChunckJob3D = NONE
+Seasonal = ON
+
+# ALMAOUTPUT
+#TimeSeriesVars2D = (nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, ESoil, ECanop, TVeg, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+#TimeSeriesVars3D = (ECanop, TVeg, GPP)
+
+
+[Post_HF_sechiba_out_2]
+Patches = ()
+GatherWithInternal = (lon, lat, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (mrsos, mrro)
+ChunckJob2D = 50Y
+TimeSeriesVars3D = (ptn)
+ChunckJob3D = 10Y
+Seasonal = OFF
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,214 @@
+#!/bin/ksh
+## Driver for the component SRF corresponding to the sechiba part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    ## 1. Modifications in run.def parameter file
+
+    # Activate STOMATE if the compontent SBG=stomate is set in config.card
+    if [ X${config_ListOfComponents_SBG} = Xstomate ] ; then
+	# Activate stomate in run.def
+        IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE y
+    else
+	# Deactivate stomate in run.def
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE n
+ 	# Deactivate output files for stomate
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+    fi
+
+    # Define in run.def if restart file should be used
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in NONE
+
+	# Check if running executable teststomate. In that case sechiba restart file is mandatory.
+	if [ -f teststomate ] ; then
+	    IGCM_debug_Print 1 "Error in launching teststomate !"
+	    IGCM_debug_Exit    "YOU MUST USE EXISTING RESTART FILE FOR SECHIBA WITH JOB TESTSTOMATE!" 
+	    IGCM_debug_Verif_Exit	    
+	fi
+    else
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in sechiba_rest_in.nc
+    fi
+
+
+    # Modify in run.def VEGET_UPDATE if it is set in sechiba.card section UserChoices
+    # VEGET_UPDATE inidcates if the vegetation map should be updated and at which frequency
+    if [ ! X${sechiba_UserChoices_VEGET_UPDATE} = X ] ; then
+	# Take the value from sechiba.card
+	IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE   ${sechiba_UserChoices_VEGET_UPDATE}
+    else
+        # Set default value 0Y
+        IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE 0Y
+    fi
+
+
+    # Activate the creation of river_desc.nc file only during the first execution in the simulation.
+    if [ ${CumulPeriod} -eq 1 ] ; then
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC y
+    else
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC n
+    fi
+
+
+
+    ## 2. Mangement of output and modifications of related xml files
+
+    # Set default values for sechiba1_enabled and sechiba1_freq.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    sechiba1_enabled=.FALSE.
+    sechiba2_enabled=.FALSE.
+    sechiba1_freq=0s
+    sechiba2_freq=0s
+    # These variables are used if XIOS=n
+    SECHIBA_WRITE_STEP=0
+    SECHIBA_WRITE_STEP2=0
+
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Activate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK y
+      # Deactivate IOIPSL output
+      IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP 0
+    else
+      # Deactivate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK n
+    fi
+
+    # Get WriteFrenquecy for SRF (SECHIBA) from config.card
+    # 1 or 2 frequencies can be set in WriteFrenquecy for SRF
+    # The first frequency will always be used for the sechiba_history file and the 
+    # second frequency will be used for the sechiba_out_2.nc file. 
+    # The files are activated only if its corresponding frequency is set in WriteFrequency
+    ifreq=0
+    for frequency in ${config_SRF_WriteFrequency} ; do
+	case ${frequency} in
+	    *Y|*y) 
+		NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' )
+		NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+		file_enabled=.TRUE.
+		file_freq=${NbYears}y
+		(( file_WRITE_STEP = NbYears * NbDaysYear * 86400 )) ;;
+	    *M|*m)
+		NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbMonths}mo
+		# Note only 1M possible with IOIPSL!
+		file_WRITE_STEP=-1. ;;
+	    *D|*d)
+		NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbDays}d
+ 		(( file_WRITE_STEP = NbDays * 86400 )) ;;
+	    *s)
+		WriteInSeconds=$( echo ${frequency} | awk -F '[s]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${WriteInSeconds}s
+		(( file_WRITE_STEP = WriteInSeconds )) ;;
+            HF|hf) 
+		file_enabled=.TRUE. 
+		file_freq=10800s 
+		(( file_WRITE_STEP = 10800 )) ;;
+	    *) 
+		IGCM_debug_Exit "SRF_Update " ${frequency} " invalid WriteFrequency : choose in xY, xM, xD, xs and HF" 
+		IGCM_debug_Verif_Exit ;;
+	esac
+
+	(( ifreq = ifreq + 1 ))
+	case ${ifreq} in
+	    1)
+		sechiba1_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP=${file_WRITE_STEP} ;;
+	    2)
+                sechiba2_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP2=${file_WRITE_STEP} ;;
+            *)
+		IGCM_debug_Exit "SRF_Update: It is not possible to set more than 2 output files for sechiba from config.card"
+		IGCM_debug_Exit "You must correct WriteFrequancy in SRF secion in config.card."
+		IGCM_debug_Exit "Adapt file_def_orchidee.xml directly if you want more output files"
+		IGCM_debug_Verif_Exit ;;
+	esac
+    done
+
+    # Modify file_def_orchidee.xml if XIOS is activated
+    # Settings in config.card WriteFrequency are not used any more. The section above is only used for IOIPSL.
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+	# Modify file_def_orchidee.xml file using settings from sechiba.card/orchidee.card
+	# We here suppose that for each file, in sechiba.card/orchidee.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_history} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history} = XNONE ] ; then
+	    # output_level_sechiba_history is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level ${sechiba_UserChoices_output_level_sechiba_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history}
+	fi
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_out_2} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_out_2} = XNONE ] ; then
+	    # output_level_sechiba_out_2 is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level ${sechiba_UserChoices_output_level_sechiba_out_2}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq  ${sechiba_UserChoices_output_freq_sechiba_out_2}
+	fi
+
+  	if [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = XNONE ] ; then
+	    # output_level_sechiba_history_4dim is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level ${sechiba_UserChoices_output_level_sechiba_history_4dim}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history_4dim}
+	fi
+    fi
+
+
+    # Set IOIPSL output in run.def. This is done for all cases only to avoid AUTO variables during run time. 
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP ${SECHIBA_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP2 ${SECHIBA_WRITE_STEP2}
+
+    # Outputs HF in HISTFILE2 if required
+    if [ ${sechiba2_enabled} = .TRUE. ] ; then
+ 	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 y
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 n
+    fi
+
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/xios.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/xios.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/xios.card	(revision 5631)
@@ -0,0 +1,29 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+
+[InitialStateFiles]
+List=	()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+List=	(NONE)
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   ()
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/xios.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/xios.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/COMP/xios.driver	(revision 5631)
@@ -0,0 +1,40 @@
+#!/bin/ksh
+#-----------------------------------
+function IOS_Initialize
+{ 
+    IGCM_debug_PushStack "IOS_Initialize"
+
+    echo INITIALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Initialize"
+}
+
+#-----------------------------------
+function IOS_Update
+{
+    IGCM_debug_PushStack "IOS_Update"
+
+    echo UPDATE IOS !!!
+# Activate server mode
+    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true
+# If lmdz_UserChoices_XIOS=y add LMDZ as component id :
+    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then
+	IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx
+    fi 
+    if [ -f namcouple ] ; then
+	sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 
+	IGCM_sys_Mv namcouple.tmp namcouple
+    fi
+
+    IGCM_debug_PopStack "IOS_Update"
+}
+
+#-----------------------------------
+function IOS_Finalize
+{
+    IGCM_debug_PushStack "IOS_Finalize"
+
+    echo FINALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/iodef.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/iodef.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/iodef.xml	(revision 5631)
@@ -0,0 +1,1 @@
+link iodef_xios2.xml
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/iodef_xios1.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/iodef_xios1.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/iodef_xios1.xml	(revision 5631)
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 1.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) -->
+	  <variable id="buffer_size"               type="integer">15000000</variable>
+	  <variable id="buffer_server_factor_size" type="integer">2</variable>
+	  <variable id="info_level"                type="integer">1</variable>
+	  <variable id="using_server"              type="boolean">false</variable>
+	  <variable id="using_oasis"               type="boolean">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/iodef_xios2.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/iodef_xios2.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/iodef_xios2.xml	(revision 5631)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 2.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+	  <variable id="info_level"                type="int">1</variable>
+	  <variable id="using_server"              type="bool">false</variable>
+	  <variable id="using_oasis"               type="bool">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/PARAM/run.def	(revision 5631)
@@ -0,0 +1,150 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+
+#**************************************************************************
+#           Suggested parameter set up for ORCHIDEE 2.0
+# See all optional parameters in modipsl/modeles/ORCHIDEE/orchidee.default
+#
+# Note when running with libIGCM, variables set here to _AUTOBLOCKER_ can 
+# not be changed in run.def otherwwise the simulation will stop. Variables 
+# set to _AUTO_ can be changed from the comp.card but they can also be 
+# changed directly in the run.def. A value set in run.def can never be
+# changed again by libIGCM. 
+#**************************************************************************
+
+# Activate Stomate component (default y)
+STOMATE_OK_STOMATE = _AUTOBLOCKER_ 
+
+# Time length for one intergration (default full lenght of forcing file)
+TIME_LENGTH = _AUTO_
+
+# Parameters related to the restart file and the start date
+#**************************************************************************
+# Time in the forcing file at which the model start if start date is not set by the forcing file (default 0)
+TIME_SKIP = _AUTO_
+
+# If DRIVER_reset_time=y, read the year from forcing file instead of taking it from restart file (default n)
+DRIVER_reset_time = _AUTO_
+
+# Name of restart file for the driver (default NONE)
+RESTART_FILEIN = _AUTOBLOCKER_
+
+# Name of restart file for sechiba part of the model (default NONE)
+SECHIBA_restart_in = _AUTOBLOCKER_
+
+# Name of restart file for stomate part of the model (default NONE)
+STOMATE_RESTART_FILEIN = _AUTOBLOCKER_
+
+# Parameters related to the diagnostic output files
+#**************************************************************************
+# Use XIOS for writing diagnostics file (defulat y)
+XIOS_ORCHIDEE_OK = _AUTOBLOCKER_
+
+# Flag to activate sechiba_out_2.nc history file when using IOIPSL for SECHIBA (defulat n)
+SECHIBA_HISTFILE2 = _AUTO_
+
+# Writefrequency in seconds in sechiba_history.nc when using IOIPSL (default 86400)
+# If WRITE_STEP=0 then all IOIPSL output are deactivated
+WRITE_STEP = _AUTO_
+
+# Writefrequency in seconds sechiba_out_2.nc when using IOIPSL (default 1800)
+WRITE_STEP2 = _AUTO_ 
+
+# Writefrequency in days in stomate_history.nc when using IOIPSL (default 10)
+STOMATE_HIST_DT = _AUTO_
+
+# Writefrequency in days or -1 for monthly output in stomate_ipcc_history.nc when using IOIPSL (default 0)
+STOMATE_IPCC_HIST_DT = _AUTO_
+
+# Print level for text output in out_orchidee_*
+# PRINTLEV = 1 : some output in initialization phase
+# PRINTLEV = 2 : more output in initialization phase and printing of new date
+# PRINTLEV = 3, 4,.. : more output also at each timestep
+PRINTLEV=2
+
+# Hydrology parameters
+#**************************************************************************
+# Activate the multi-layer diffusion scheme adapted from CWRR (default y)
+HYDROL_CWRR = y
+
+# Activate river routing (default y)
+RIVER_ROUTING = y
+
+# Activate creation of river_desc.nc file
+# RIVER_DESC will be activated only the first execution in the simulation
+RIVER_DESC = _AUTO_
+
+# SOILTYPE_CLASSIF :  Type of classification used for the map of soil types (default zobler)
+SOILTYPE_CLASSIF = zobler 
+
+# Parameters related to vegetation map
+#**************************************************************************
+# Update vegetation frequency (default 0Y)
+VEGET_UPDATE = _AUTO_
+
+# Read lai map (default n)
+LAI_MAP = y 
+
+# Prescribed vegetation (default n)
+IMPOSE_VEG = n
+
+# Parameters related to surface and thermal physical properties
+#************************************************************************
+# ROUGH_DYN : Account for a dynamic roughness height (activation of Su et al. parametrization) (default y)
+ROUGH_DYN=y
+
+# OK_FREEZE :  Activate the complet soil freezing scheme (default y)
+OK_FREEZE=y
+
+# OK_EXPLICITSNOW :  Activate explict snow scheme (default y)
+OK_EXPLICITSNOW=y
+
+# Carbon related parameters
+#**************************************************************************
+# Analytic spinup (default n)
+SPINUP_ANALYTIC = _AUTO_
+SPINUP_PERIOD = _AUTO_
+
+# Value for atmospheric CO2 (default=350)
+ATM_CO2 = _AUTO_: DEFAULT = 350.
+
+# Harvest of wood (default y)
+# Here desactivate wood harvest, no need when running without stomate
+DO_WOOD_HARVEST=n
+
+# Deactivate fire (default FIRE_DISABLE=y)
+FIRE_DISABLE=y
+
+# Optimized parameters to be used with PFTmap with 15 pfts such as
+# files in IGCM/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1
+#**************************************************************************
+# Use 15 PFTs. Note that PFTmap.nc must contains 15PFTs.
+# PFT=10, 14 and 15 share the same parametrization except for VCMAX25, LAI_MAX, FRAC_GROWTHRESP, 
+# MAINT_RESP_SLOPE_C and ALWAYS_INIT specified below.  
+# (default NVM=13)
+NVM=15
+PFT_TO_MTC=1,2,3,4,5,6,7,8,9,10,11,12,13,10,10
+PFT_NAME__10='temperate C3           grass      '
+PFT_NAME__14='tropical  C3           grass      '
+PFT_NAME__15='boreal    C3           grass      '
+
+VCMAX25__10 = 50.0 
+VCMAX25__14 = 50.0 
+VCMAX25__15 = 40.0
+
+LAI_MAX__10 = 2.5
+LAI_MAX__14 = 2.5
+LAI_MAX__15 = 2.0
+
+FRAC_GROWTHRESP__10 = 0.28
+FRAC_GROWTHRESP__14 = 0.35
+FRAC_GROWTHRESP__15 = 0.35
+
+MAINT_RESP_SLOPE_C__10 = 0.16
+MAINT_RESP_SLOPE_C__14 = 0.12
+MAINT_RESP_SLOPE_C__15 = 0.25
+
+ALWAYS_INIT__10 = y
+ALWAYS_INIT__14 = n
+ALWAYS_INIT__15 = y
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,60 @@
+##################################################################################################################
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+delta_water_stock | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily" |  "" | "((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] + delstock_routing_daily[d=5,l=2:100000])" | "Change in total water stock (LANDS) " | "kg/day/m2 of land" | "Areas[d=2]*Contfrac[d=2]"
+water_budget_closure | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily rain snowf evap riverflow coastalflow" | "" | "(((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] +  delstock_routing_daily[d=5,l=2:100000])*Areas[d=1]*Contfrac[d=1] -  ((rain[d=6,l=2:100000] + snowf[d=7,l=2:100000] - evap[d=8,l=2:100000])*Areas[d=1]*Contfrac[d=1]  - (riverflow[d=9,l=2:100000] + coastalflow[d=10,l=2:100000])*1000*86400 ))/(4*3.14*6370000*6370000*0.26)" | "Water budget closure (LANDS) " | "kg/day/m2 of land" | "2"
+twbr_lands       | "TWBR"             |  "" | "twbr[d=1,l=2:100000]*86400"       | "Hydrol water buget residu (LANDS)" | "kg/m^2/d" | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands   | "temp_sol"         |  "" | "temp_sol[d=1]"                    | "TSOL (LANDS)"                      | "C"        | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands   | "fluxsens"         |  "" | "fluxsens[d=1]"                    | "Sensible Flux (LANDS)"             | "W/m^2"    | "Areas[d=1]*Contfrac[d=1]"
+evap_lands       | "evap"             |  "" | "evap[d=1]"                        | "Evaporation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+evapnu_lands     | "evapnu"           |  "" | "evapnu[d=1]"                      | "Soil evaporation (LANDS)"          | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+transpir_lands   | "transpir"         |  "" | "transpir[d=1,k=@sum]"             | "Transpiration (sum over all PFT, LANDS)" | "mm/d" | "Areas[d=1]*Contfrac[d=1]"
+subli_lands      | "subli"            |  "" | "subli[d=1]"                       | "Sublimation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+snow_swe_lands   | "frac_snow snow"   |  "" | "snow[d=2]"                        | "Snow Mass (LANDS)"                 | "kg/m^2"   | "Areas[d=2]*Contfrac[d=2]"
+snownobio_lands  | "snownobio"        |  "" | "snownobio[d=1]"                   | "Snow Other Surfaces (LANDS)"       | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands      | "snowf"            |  "" | "snowf[d=1]"                       | "Snowfall (LANDS)"                  | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+precip_lands     | "rain snowf"       |  "" | "rain[d=1] + snowf[d=2]"           | "Total precipitaion (LANDS)"        | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+runoff_lands     | "runoff"           |  "" | "runoff[d=1]"                      | "Surface runoff  (LANDS)"           | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+drainage_lands   | "drainage"         |  "" | "drainage[d=1]"                    | "Drainage  (LANDS)"                 | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands   | "mrso"             |  "" | "mrso[d=1]"                        | "Total Soil Moisture  (LANDS)"      | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+surface_humidity_lands | "mrsos"      |  "" | "mrsos[d=1]"                       | "Top 10cm soil moisture  (LANDS)"   | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands     | "alb_vis alb_nir"  |  "" | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"               | "1"        | "Areas[d=1]*Contfrac[d=1]"
+lai_lands        | "LAImean"          |  "" | "LAImean[d=1]"                     | "LAI (mean excluding PFT=1) (LANDS)"| "1"        | "Areas[d=1]*Contfrac[d=1]"
+nee_lands        | "nee maxvegetfrac" |  "" | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"   | "Net Ecosystem Exchange" | "PgC/yr" | "2"
+maxvegetagri_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=12:13@sum]"    | "veget_max fraction of agriculture [sum of pft=12,13] "| "1"  | "Areas[d=1]*Contfrac[d=1]"
+maxvegetbare_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=1]"            | "veget_max fraction on bare soil [pft=1] "             | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=2:9@sum]"         | "veget trees[sum of pft=2:9] (LANDS)"                  | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetg_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=10:11@sum]+vegetfrac[d=1,K=14:15@sum]"       | "veget natural grasses[sum of pft=10,11,14,15] (LANDS)"      | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegeta_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=12:13@sum]"       | "veget agriculture [sum of pft=12,13] (LANDS)"         | "1"  | "Areas[d=1]*Contfrac[d=1]"
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,69 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+maxveget_forcing | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12,13] "  | "Mkm^2"  | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai02_lands    | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai03_lands    | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai04_lands    | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai05_lands    | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai06_lands    | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai07_lands    | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai08_lands    | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai09_lands    | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC/config.card	(revision 5631)
@@ -0,0 +1,116 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#========================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=SECHIBA01
+#----- LongName : Some words describing the experiment. LongName will be added in all output files produced by XIOS.
+LongName=""
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=PROD
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=sechiba
+#============================
+#-- leap(gregorian), noleap, 360d
+CalendarType=noleap
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1901-01-01
+DateEnd=1901-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1Y
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component: (Component name, tag/version name)
+SRF= (sechiba, orchidee)
+OOL= (orchidee_ol, orchidee)
+IOS= (xios, XIOS)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+#D- For each component: 
+#D  (Real executable name, temorary name during run, number of process MPI)
+SRF= ("", "")
+OOL= (orchidee_ol, orchidee_ol, 31MPI)
+IOS= (xios_server.exe, xios.x, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- OverRule=y : All component will restart from the same simulation
+OverRule=n
+#D- Date of restart file to be used
+RestartDate=1981-12-31
+#D- JobName for the restart file
+RestartJobName=CD1
+#D- Path to directory where the RestartJobName directory is stored
+#D- NB! ${ARCHIVE} depend on login. The full path can also be set
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2/PROD/secsto
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=5Y
+#D- Frequency of rebuild submission. Only set NONE if running with 1 XIOS server
+RebuildFrequency=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=10Y
+#D- Activate IgnoreNonMonotonic only when cycling over the same forcing files as for a spin up. 
+IgnoreNonMonotonic=FALSE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=10Y
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+#D- If you want to produce compute PCMDI metrics from seasonal average
+#D- Set TRUE or FALSE to activate/deactivate the metrics computation.
+MetricsPCMDI=FALSE
+
+#========================================================================
+#D-- SRF - SECHIBA
+# Use this section to start from restart file for SRF if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in sechiba.card 
+[SRF]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- OOL - Offline driver
+# There is no need to change this section
+[OOL]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- IOS - XIOS
+# There is no need to change this section
+[IOS]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/orchidee_ol.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/orchidee_ol.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/orchidee_ol.card	(revision 5631)
@@ -0,0 +1,32 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# Use XIOS as output library instead of IOIPSL
+XIOS=y
+
+[InitialStateFiles]
+List=()
+
+[BoundaryFiles]
+List=  (${R_IN}/SRF/METEO/CRU-NCEP/v5.3.2/twodeg/cruncep_twodeg_${CyclicYear}.nc, forcing_file.nc)
+ListNonDel= ()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .) ,\
+        (${SUBMIT_DIR}/PARAM/iodef.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_orchidee.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_input_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/file_def_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/field_def_orchidee.xml, .)
+
+
+[RestartFiles]
+List=	(driver_rest_out.nc,  driver_rest.nc,  driver_rest_in.nc)
+
+[OutputText]
+List=   (run.def, used_run.def, out_orchidee_ol, iodef.xml, context_orchidee.xml, context_input_orchidee.xml, field_def_orchidee.xml, file_def_orchidee.xml, xios_client_*)
+
+[OutputFiles]
+List= ()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/orchidee_ol.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/orchidee_ol.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/orchidee_ol.driver	(revision 5631)
@@ -0,0 +1,133 @@
+#!/bin/ksh
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    # Set TIME_LENGTH in run.def depending on PeriodLenght in config.card
+    case ${config_UserChoices_PeriodLength} in
+	*M|*m|*D|*d)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${PeriodLengthInDays}D
+	    ;;
+	*s|*Y)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${config_UserChoices_PeriodLength}
+            ;;
+        *)
+            IGCM_debug_Exit "OOL_Update " ${config_UserChoices_PeriodLength} " invalid PeriodLength in config.card : choose between 1Y, 1M, 5D, 1D."
+            IGCM_debug_Verif_Exit
+    esac
+    
+
+    # Set TIME_SKIP only if starting without restart file
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Calculate the TIME_SKIP as difference between the start date and 1th of January the same year
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D
+    else
+	# Here using restart file, set TIME_SKIP=0
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP 0D
+    fi
+
+    # Set RESTART_FILEIN in run.def
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Set RESTART_FILEIN=NONE in run.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN NONE
+    else
+        # Default option using restart file, set RESTART_FILEIN=driver_rest_in.nc in orchidee.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN driver_rest_in.nc
+    fi
+
+    # Reset the simulation date as ORCHIDEE understands it for some special cases
+    # DRIVER_reset_time=y : take the date from the first time step of the forcing file 
+    # DRIVER_reset_time=n : default, take the date from the restart file if existing, else take it from the forcing file
+    if ( ${FirstInitialize} &&  [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+	# Starting a new simulation: take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    elif ( [ X${CyclicYear} = X${config_UserChoices_CyclicBegin} ] && [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+        # Start a new cycle, take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    else
+	# Default option, take the date from the restart file
+	IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time n
+    fi
+
+
+    if [ -f CO2.txt ] ; then
+        # If this file exist, then read CO2 value and set ATM_CO2 in run.def
+        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`
+	if [ X"${IPCC_CO2}" = X ] ; then
+            # The grep returned empty variable: stop execution
+            IGCM_debug_Exit "The file CO2.txt do not contain the current year."
+            IGCM_debug_Verif_Exit
+        fi
+        IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 ${IPCC_CO2}
+    else
+	# The file is not available: take the default value from run.def. 
+	# The syntax in run.def must be respected, for example:
+        # ATM_CO2 = _AUTO_: DEFAULT = 350.
+	IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 DEFAULT
+    fi
+
+
+    # Activation of XIOS
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Add include of orchidee context in iodef.xml
+      # In iodef.xml add on next line after "COMPONENT CONTEXT"
+      #  <context id="orchidee" src="./context_orchidee.xml"/>
+      echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp
+
+      # Add inclusion of file context_input_orchidee.xml if this file exists
+      if [ -f context_input_orchidee.xml ] ; then
+          echo '<context id="orchidee" src="./context_input_orchidee.xml"/>' >> add.tmp
+      fi
+ 
+      cp iodef.xml iodef.xml.tmp
+      sed -e "/COMPONENT CONTEXT/r add.tmp" \
+        iodef.xml.tmp > iodef.xml
+      rm iodef.xml.tmp add.tmp
+
+
+      # Special case if SBG component is not activated: deactivate stomate output files from file_def_orchidee.xml
+      # If SBG is activated, then the stomate.driver will take care of these variables
+      if [ X${config_ListOfComponents_SBG} = X ] ; then
+          # Stomate is not activated
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo      
+      fi
+    fi
+
+
+    # Add LongName as global attribute in all files produced by XIOS (if LongName is not empty)
+    # Remove file_def_input_orchidee.xml from the list. 
+    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then
+	listfile=$(ls file_def*orchidee.xml | grep -v input)
+	echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp
+	for file in ${listfile} ; do
+	    cp ${file} ${file}.tmp
+	    sed -e "/<file id/r add.tmp" \
+		${file}.tmp > ${file}
+	    rm ${file}.tmp 
+	done 
+	rm add.tmp
+    fi
+          
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+    
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,83 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# VEGET_UPDATE=0Y : no change in vegetation map. PFTmap.nc should be set only in InitialStateFiles/List. 
+# VEGET_UPDATE=1Y : change vegetation map every year. PFTmap.nc should be set only in BoundaryFiles/List.
+# Note that the model changed behaviour:
+# - since rev 2717 in the trunk, the map is read in January. In BoundaryFiles/List, copy the map for current year, use the variable ${year}.
+# - for older version, the map is read in December. In BoundaryFiles/List, copy the map for next coming year using the variable ${year_p1}.
+VEGET_UPDATE=1Y
+
+# Specify output level for output files
+# Only the files sechiba_history.nc, sechiba_out_2.nc and sechiba_history_4dim.nc can be set here.
+# output_level_filename=0     : lowest level writing only variables needed for the monitoring
+# output_level_filename=12    : highest level which will output all variables
+# output_level_filename=NONE  : deactivate the file
+output_level_sechiba_history = 11
+output_level_sechiba_out_2 = NONE
+output_level_sechiba_history_4dim = 11
+
+# Specify output frequency for each file [1y, 1mo, 1d, 10800s, 1ts]
+# Settings using WriteFrequency in config.card is not longer used
+output_freq_sechiba_history = 1y
+output_freq_sechiba_out_2 = 1d
+output_freq_sechiba_history_4dim = 1y
+
+
+[InitialStateFiles]
+List=       (${R_IN}/SRF/ROUTING/routing.nc, .),     \
+            (${R_IN}/SRF/SOIL/soils_param.nc, .), \
+            (${R_IN}/SRF/cartepente2d_15min.nc, .), \
+            (${R_IN}/SRF/ROUTING/floodplains.nc, .), \
+            (${R_IN}/SRF/reftemp.nc, .), \
+            (${R_IN}/SRF/albedo/alb_bg_modisopt_2D_ESA_v2.nc, alb_bg.nc)
+
+[BoundaryFiles]
+List=	(${R_IN}/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1/PFTmap_${year}.nc, PFTmap.nc),\
+        (${R_IN}/SRF/WOODHARVEST/LUH2v2/historical/woodharvest_${year}.nc, woodharvest.nc)
+ListNonDel= ()
+
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   (used_run.def, out_orchidee, river_desc.nc)
+
+[OutputFiles]
+List= (sechiba_history.nc, ${R_OUT_SRF_O_Y}/${PREFIX}_1Y_sechiba_history.nc, Post_1Y_sechiba_history), \
+      (sechiba_history_4dim.nc, ${R_OUT_SRF_O_Y}/${PREFIX}_1Y_sechiba_history_4dim.nc, NONE)
+
+
+
+[Post_1Y_sechiba_history]
+Patches = ()
+GatherWithInternal = (lon, lat, veget, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (nobiofrac, alb_nir, alb_vis, evap, fluxlat, fluxsens, netrad, qair, rain, runoff, snow, snownobio, snowf, frac_snow, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac, TWBR, riverflow, coastalflow, DelSoilMoist_daily, DelIntercept_daily, DelSWE_daily, delstock_routing, snowmelt, LAImean, hydrographs, evapnu, Wind, lwdown, swdown)
+ChunckJob2D = NONE
+TimeSeriesVars3D = (lai, maxvegetfrac, vegetfrac, ptn, nee, transpir, inter)
+ChunckJob3D = NONE
+Seasonal = ON
+
+# ALMAOUTPUT
+#TimeSeriesVars2D = (nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, ESoil, ECanop, TVeg, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+#TimeSeriesVars3D = (ECanop, TVeg, GPP)
+
+
+[Post_HF_sechiba_out_2]
+Patches = ()
+GatherWithInternal = (lon, lat, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (mrsos, mrro)
+ChunckJob2D = 50Y
+TimeSeriesVars3D = (ptn)
+ChunckJob3D = 10Y
+Seasonal = OFF
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,214 @@
+#!/bin/ksh
+## Driver for the component SRF corresponding to the sechiba part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    ## 1. Modifications in run.def parameter file
+
+    # Activate STOMATE if the compontent SBG=stomate is set in config.card
+    if [ X${config_ListOfComponents_SBG} = Xstomate ] ; then
+	# Activate stomate in run.def
+        IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE y
+    else
+	# Deactivate stomate in run.def
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE n
+ 	# Deactivate output files for stomate
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+    fi
+
+    # Define in run.def if restart file should be used
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in NONE
+
+	# Check if running executable teststomate. In that case sechiba restart file is mandatory.
+	if [ -f teststomate ] ; then
+	    IGCM_debug_Print 1 "Error in launching teststomate !"
+	    IGCM_debug_Exit    "YOU MUST USE EXISTING RESTART FILE FOR SECHIBA WITH JOB TESTSTOMATE!" 
+	    IGCM_debug_Verif_Exit	    
+	fi
+    else
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in sechiba_rest_in.nc
+    fi
+
+
+    # Modify in run.def VEGET_UPDATE if it is set in sechiba.card section UserChoices
+    # VEGET_UPDATE inidcates if the vegetation map should be updated and at which frequency
+    if [ ! X${sechiba_UserChoices_VEGET_UPDATE} = X ] ; then
+	# Take the value from sechiba.card
+	IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE   ${sechiba_UserChoices_VEGET_UPDATE}
+    else
+        # Set default value 0Y
+        IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE 0Y
+    fi
+
+
+    # Activate the creation of river_desc.nc file only during the first execution in the simulation.
+    if [ ${CumulPeriod} -eq 1 ] ; then
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC y
+    else
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC n
+    fi
+
+
+
+    ## 2. Mangement of output and modifications of related xml files
+
+    # Set default values for sechiba1_enabled and sechiba1_freq.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    sechiba1_enabled=.FALSE.
+    sechiba2_enabled=.FALSE.
+    sechiba1_freq=0s
+    sechiba2_freq=0s
+    # These variables are used if XIOS=n
+    SECHIBA_WRITE_STEP=0
+    SECHIBA_WRITE_STEP2=0
+
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Activate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK y
+      # Deactivate IOIPSL output
+      IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP 0
+    else
+      # Deactivate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK n
+    fi
+
+    # Get WriteFrenquecy for SRF (SECHIBA) from config.card
+    # 1 or 2 frequencies can be set in WriteFrenquecy for SRF
+    # The first frequency will always be used for the sechiba_history file and the 
+    # second frequency will be used for the sechiba_out_2.nc file. 
+    # The files are activated only if its corresponding frequency is set in WriteFrequency
+    ifreq=0
+    for frequency in ${config_SRF_WriteFrequency} ; do
+	case ${frequency} in
+	    *Y|*y) 
+		NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' )
+		NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+		file_enabled=.TRUE.
+		file_freq=${NbYears}y
+		(( file_WRITE_STEP = NbYears * NbDaysYear * 86400 )) ;;
+	    *M|*m)
+		NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbMonths}mo
+		# Note only 1M possible with IOIPSL!
+		file_WRITE_STEP=-1. ;;
+	    *D|*d)
+		NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbDays}d
+ 		(( file_WRITE_STEP = NbDays * 86400 )) ;;
+	    *s)
+		WriteInSeconds=$( echo ${frequency} | awk -F '[s]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${WriteInSeconds}s
+		(( file_WRITE_STEP = WriteInSeconds )) ;;
+            HF|hf) 
+		file_enabled=.TRUE. 
+		file_freq=10800s 
+		(( file_WRITE_STEP = 10800 )) ;;
+	    *) 
+		IGCM_debug_Exit "SRF_Update " ${frequency} " invalid WriteFrequency : choose in xY, xM, xD, xs and HF" 
+		IGCM_debug_Verif_Exit ;;
+	esac
+
+	(( ifreq = ifreq + 1 ))
+	case ${ifreq} in
+	    1)
+		sechiba1_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP=${file_WRITE_STEP} ;;
+	    2)
+                sechiba2_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP2=${file_WRITE_STEP} ;;
+            *)
+		IGCM_debug_Exit "SRF_Update: It is not possible to set more than 2 output files for sechiba from config.card"
+		IGCM_debug_Exit "You must correct WriteFrequancy in SRF secion in config.card."
+		IGCM_debug_Exit "Adapt file_def_orchidee.xml directly if you want more output files"
+		IGCM_debug_Verif_Exit ;;
+	esac
+    done
+
+    # Modify file_def_orchidee.xml if XIOS is activated
+    # Settings in config.card WriteFrequency are not used any more. The section above is only used for IOIPSL.
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+	# Modify file_def_orchidee.xml file using settings from sechiba.card/orchidee.card
+	# We here suppose that for each file, in sechiba.card/orchidee.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_history} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history} = XNONE ] ; then
+	    # output_level_sechiba_history is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level ${sechiba_UserChoices_output_level_sechiba_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history}
+	fi
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_out_2} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_out_2} = XNONE ] ; then
+	    # output_level_sechiba_out_2 is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level ${sechiba_UserChoices_output_level_sechiba_out_2}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq  ${sechiba_UserChoices_output_freq_sechiba_out_2}
+	fi
+
+  	if [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = XNONE ] ; then
+	    # output_level_sechiba_history_4dim is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level ${sechiba_UserChoices_output_level_sechiba_history_4dim}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history_4dim}
+	fi
+    fi
+
+
+    # Set IOIPSL output in run.def. This is done for all cases only to avoid AUTO variables during run time. 
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP ${SECHIBA_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP2 ${SECHIBA_WRITE_STEP2}
+
+    # Outputs HF in HISTFILE2 if required
+    if [ ${sechiba2_enabled} = .TRUE. ] ; then
+ 	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 y
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 n
+    fi
+
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,63 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# SPINUP_ANALYTIC=y/n : Activate the spinup analytic option to solve the carbon in soil balance
+SPINUP_ANALYTIC=n
+
+# Specify output level for output files
+# Only the files stomate_history.nc and stomate_ipcc_history.nc can be set here.
+# output_level_filname=0     : lowest level writing only variables needed for the monitoring
+# output_level_filname=10    : highest level which will output all variables
+# output_level_filname=NONE  : deactivate the file
+output_level_stomate_history = 10
+output_level_stomate_ipcc_history = 1
+
+# Specify output frequency for each file [1y, 1mo, 1d]
+# Settings using WriteFrequency in config.card are not longer used
+output_freq_stomate_history = 1y
+output_freq_stomate_ipcc_history = 1y
+
+
+[InitialStateFiles]
+List=   ()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=   (${R_IN}/SRF/CO2_1860_2012_TRENDY2.txt, CO2.txt)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   (stomate_history.nc, ${R_OUT_SBG_O_Y}/${PREFIX}_1Y_stomate_history.nc, Post_1Y_stomate_history), \
+        (stomate_ipcc_history.nc, ${R_OUT_SBG_O_Y}/${PREFIX}_1Y_stomate_ipcc_history.nc, Post_1Y_stomate_ipcc_history)
+
+[Post_1Y_stomate_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D= (T2M_MONTH,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,HARVEST_ABOVE)
+ChunckJob2D = 200Y
+TimeSeriesVars3D= (LAI,VEGET_COV_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION,CARBON_ACTIVE,CARBON_SLOW,CARBON_PASSIVE,LITTER_STR_AB,LITTER_STR_BE,LITTER_MET_AB,LITTER_MET_BE,TOTAL_TURN,WOOD_HARVEST_PFT)
+ChunckJob3D = NONE
+Seasonal=ON
+
+[Post_1Y_stomate_ipcc_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D=(cVeg, cLitter, cSoil, cProduct, cMassVariation, lai, gpp, ra, npp, rh, fFire, fHarvest, fLuc, nbp, fVegLitter, fLitterSoil, cLeaf, cWood, cRoot, cMisc, cLitterAbove, cLitterBelow, cSoilFast, cSoilMedium, cSoilSlow, landCoverFrac, treeFracPrimDec, treeFracPrimEver, c3PftFrac, c4PftFrac, rGrowth, rMaint, nppLeaf, nppWood, nppRoot, nep, fWoodharvest)
+ChunckJob2D = 200Y
+TimeSeriesVars3D=()
+ChunckJob3D = NONE
+Seasonal=ON
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,147 @@
+#!/bin/ksh
+## Driver for the component SBG corresponding to the stomate part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    # For IOIPSL: get frequency from config.card
+    # Set default values for stomate output files.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    stomate_enabled=.FALSE.
+    stomate_freq=0s
+
+    # Read WriteFrequency set in config.card section SBG. 
+    # Only one choice can be set as WriteFrequency. The same choice will be used for 
+    # both stomate_history and stomate_ipcc_history files. 
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    NbYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbYears}y
+	    (( STOMATE_WRITE_STEP = NbYears * NbDaysYear )) 
+        ;;
+	*M|*m) 
+	    NbMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbMonths}mo
+	    # Note only 1M possible with IOIPSL!
+	    STOMATE_WRITE_STEP=-1. ;;
+	*D|*d)
+	    NbDays=$( echo ${config_SBG_WriteFrequency} | awk -F '[dD]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbDays}d
+	    STOMATE_WRITE_STEP=${NbDays} ;;
+    esac
+
+    # Modify file_def_orchidee.def if XIOS is activated using information in stomate.card
+    # Settings in config.card WriteFrequency are not used any more.
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+
+	# Modify file_def_orchidee.xml file using settings from stomate.card
+	# We here suppose that for each file, in stomate.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${stomate_UserChoices_output_level_stomate_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_history} = XNONE ] ; then
+	    # output_level_stomate_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level ${stomate_UserChoices_output_level_stomate_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq  ${stomate_UserChoices_output_freq_stomate_history}
+	fi
+
+	if [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = XNONE ] ; then
+	    # output_level_stomate_ipcc_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level ${stomate_UserChoices_output_level_stomate_ipcc_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq  ${stomate_UserChoices_output_freq_stomate_ipcc_history}
+	fi
+
+
+
+        # Deactivate stomate IOIPSL output
+	(( STOMATE_WRITE_STEP = 0 ))
+    fi
+
+
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC y
+      
+       # Test if CyclicBegin and CyclicEnd is set in config.card
+       if ( [ X${config_UserChoices_CyclicBegin} = X ] || [ X${config_UserChoices_CyclicEnd} = X ] ) ; then
+           IGCM_debug_Exit "CyclicBegin and CyclicEnd must be set in config.card to run option spinup_analytic."
+       fi
+       # Calculate and set number of years of forcing data
+       CycleNb=$(( ${config_UserChoices_CyclicEnd} - ${config_UserChoices_CyclicBegin} + 1 ))
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD ${CycleNb}
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC n
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD -1
+    fi
+
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP}
+
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "STOMATE : without restart"
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN NONE
+    else
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+    fi
+
+
+    # Special case using forcesoil executable
+    if [ -f forcesoil ] ; then
+	# Set STOMATE_CFORCING_NAME
+        IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+
+	# Check if restart file is missing
+	if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+            IGCM_debug_Exit "YOU MUST USE OLD STOMATE RESTART FILE WITH THE JOB FORCESOIL."
+            IGCM_debug_Verif_Exit
+	fi
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME NONE
+    fi
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+#   Check if equilibrium is reached for spinup analytic
+#   and if true stop the simulation in the end of this period.
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+      CondSpinup=$(grep -a  "Equilibrium for carbon pools is reached"  out_*)
+      if [ X"${CondSpinup}" != X ] ; then
+	  IGCM_debug_Print 1 "SPINUP ANALYTIC :  your spinup is successful :"
+	  IGCM_debug_Print 1 ${CondSpinup}
+	  IGCM_debug_Print 1  "You can now stop the simulation if you want."
+      fi
+    fi
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/xios.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/xios.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/xios.card	(revision 5631)
@@ -0,0 +1,29 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+
+[InitialStateFiles]
+List=	()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+List=	(NONE)
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   ()
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/xios.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/xios.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/COMP/xios.driver	(revision 5631)
@@ -0,0 +1,40 @@
+#!/bin/ksh
+#-----------------------------------
+function IOS_Initialize
+{ 
+    IGCM_debug_PushStack "IOS_Initialize"
+
+    echo INITIALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Initialize"
+}
+
+#-----------------------------------
+function IOS_Update
+{
+    IGCM_debug_PushStack "IOS_Update"
+
+    echo UPDATE IOS !!!
+# Activate server mode
+    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true
+# If lmdz_UserChoices_XIOS=y add LMDZ as component id :
+    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then
+	IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx
+    fi 
+    if [ -f namcouple ] ; then
+	sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 
+	IGCM_sys_Mv namcouple.tmp namcouple
+    fi
+
+    IGCM_debug_PopStack "IOS_Update"
+}
+
+#-----------------------------------
+function IOS_Finalize
+{
+    IGCM_debug_PushStack "IOS_Finalize"
+
+    echo FINALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/iodef.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/iodef.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/iodef.xml	(revision 5631)
@@ -0,0 +1,1 @@
+link iodef_xios2.xml
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/iodef_xios1.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/iodef_xios1.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/iodef_xios1.xml	(revision 5631)
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 1.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) -->
+	  <variable id="buffer_size"               type="integer">15000000</variable>
+	  <variable id="buffer_server_factor_size" type="integer">2</variable>
+	  <variable id="info_level"                type="integer">1</variable>
+	  <variable id="using_server"              type="boolean">false</variable>
+	  <variable id="using_oasis"               type="boolean">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/iodef_xios2.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/iodef_xios2.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/iodef_xios2.xml	(revision 5631)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 2.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+	  <variable id="info_level"                type="int">1</variable>
+	  <variable id="using_server"              type="bool">false</variable>
+	  <variable id="using_oasis"               type="bool">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/PARAM/run.def	(revision 5631)
@@ -0,0 +1,150 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+
+#**************************************************************************
+#           Suggested parameter set up for ORCHIDEE 2.0
+# See all optional parameters in modipsl/modeles/ORCHIDEE/orchidee.default
+#
+# Note when running with libIGCM, variables set here to _AUTOBLOCKER_ can 
+# not be changed in run.def otherwwise the simulation will stop. Variables 
+# set to _AUTO_ can be changed from the comp.card but they can also be 
+# changed directly in the run.def. A value set in run.def can never be
+# changed again by libIGCM. 
+#**************************************************************************
+
+# Activate Stomate component (default y)
+STOMATE_OK_STOMATE = _AUTOBLOCKER_ 
+
+# Time length for one intergration (default full lenght of forcing file)
+TIME_LENGTH = _AUTO_
+
+# Parameters related to the restart file and the start date
+#**************************************************************************
+# Time in the forcing file at which the model start if start date is not set by the forcing file (default 0)
+TIME_SKIP = _AUTO_
+
+# If DRIVER_reset_time=y, read the year from forcing file instead of taking it from restart file (default n)
+DRIVER_reset_time = _AUTO_
+
+# Name of restart file for the driver (default NONE)
+RESTART_FILEIN = _AUTOBLOCKER_
+
+# Name of restart file for sechiba part of the model (default NONE)
+SECHIBA_restart_in = _AUTOBLOCKER_
+
+# Name of restart file for stomate part of the model (default NONE)
+STOMATE_RESTART_FILEIN = _AUTOBLOCKER_
+
+# Parameters related to the diagnostic output files
+#**************************************************************************
+# Use XIOS for writing diagnostics file (defulat y)
+XIOS_ORCHIDEE_OK = _AUTOBLOCKER_
+
+# Flag to activate sechiba_out_2.nc history file when using IOIPSL for SECHIBA (defulat n)
+SECHIBA_HISTFILE2 = _AUTO_
+
+# Writefrequency in seconds in sechiba_history.nc when using IOIPSL (default 86400)
+# If WRITE_STEP=0 then all IOIPSL output are deactivated
+WRITE_STEP = _AUTO_
+
+# Writefrequency in seconds sechiba_out_2.nc when using IOIPSL (default 1800)
+WRITE_STEP2 = _AUTO_ 
+
+# Writefrequency in days in stomate_history.nc when using IOIPSL (default 10)
+STOMATE_HIST_DT = _AUTO_
+
+# Writefrequency in days or -1 for monthly output in stomate_ipcc_history.nc when using IOIPSL (default 0)
+STOMATE_IPCC_HIST_DT = _AUTO_
+
+# Print level for text output in out_orchidee_*
+# PRINTLEV = 1 : some output in initialization phase
+# PRINTLEV = 2 : more output in initialization phase and printing of new date
+# PRINTLEV = 3, 4,.. : more output also at each timestep
+PRINTLEV=2
+
+# Hydrology parameters
+#**************************************************************************
+# Activate the multi-layer diffusion scheme adapted from CWRR (default y)
+HYDROL_CWRR = y
+
+# Activate river routing (default y)
+RIVER_ROUTING = y
+
+# Activate creation of river_desc.nc file
+# RIVER_DESC will be activated only the first execution in the simulation
+RIVER_DESC = _AUTO_
+
+# SOILTYPE_CLASSIF :  Type of classification used for the map of soil types (default zobler)
+SOILTYPE_CLASSIF = zobler 
+
+# Parameters related to vegetation map
+#**************************************************************************
+# Update vegetation frequency (default 0Y)
+VEGET_UPDATE = _AUTO_
+
+# Read lai map (default n)
+LAI_MAP = n
+
+# Prescribed vegetation (default n)
+IMPOSE_VEG = n
+
+# Parameters related to surface and thermal physical properties
+#************************************************************************
+# ROUGH_DYN : Account for a dynamic roughness height (activation of Su et al. parametrization) (default y)
+ROUGH_DYN=y
+
+# OK_FREEZE :  Activate the complet soil freezing scheme (default y)
+OK_FREEZE=y
+
+# OK_EXPLICITSNOW :  Activate explict snow scheme (default y)
+OK_EXPLICITSNOW=y
+
+# Carbon related parameters
+#**************************************************************************
+# Analytic spinup (default n)
+SPINUP_ANALYTIC = _AUTO_
+SPINUP_PERIOD = _AUTO_
+
+# Value for atmospheric CO2 (default=350)
+# ATM_CO2=287.14 : Year 1860 specified for TRENDY2 spinup
+ATM_CO2 = _AUTO_: DEFAULT = 287.14
+
+# Activate harvest of wood (default y)
+DO_WOOD_HARVEST=y
+
+# Deactivate fire (default FIRE_DISABLE=y)
+FIRE_DISABLE=y
+
+# Optimized parameters to be used with PFTmap with 15 pfts such as
+# files in IGCM/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1
+#**************************************************************************
+# Use 15 PFTs. Note that PFTmap.nc must contains 15PFTs.
+# PFT=10, 14 and 15 share the same parametrization except for VCMAX25, LAI_MAX, FRAC_GROWTHRESP, 
+# MAINT_RESP_SLOPE_C and ALWAYS_INIT specified below.  
+# (default NVM=13)
+NVM=15
+PFT_TO_MTC=1,2,3,4,5,6,7,8,9,10,11,12,13,10,10
+PFT_NAME__10='temperate C3           grass      '
+PFT_NAME__14='tropical  C3           grass      '
+PFT_NAME__15='boreal    C3           grass      '
+
+VCMAX25__10 = 50.0 
+VCMAX25__14 = 50.0 
+VCMAX25__15 = 40.0
+
+LAI_MAX__10 = 2.5
+LAI_MAX__14 = 2.5
+LAI_MAX__15 = 2.0
+
+FRAC_GROWTHRESP__10 = 0.28
+FRAC_GROWTHRESP__14 = 0.35
+FRAC_GROWTHRESP__15 = 0.35
+
+MAINT_RESP_SLOPE_C__10 = 0.16
+MAINT_RESP_SLOPE_C__14 = 0.12
+MAINT_RESP_SLOPE_C__15 = 0.25
+
+ALWAYS_INIT__10 = y
+ALWAYS_INIT__14 = n
+ALWAYS_INIT__15 = y
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,64 @@
+##################################################################################################################
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=1
+
+# FreqTS=YE : time-series with yearly variables  	  	 
+FreqTS=YE
+
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+delta_water_stock | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily" |  "" | "((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] + delstock_routing_daily[d=5,l=2:100000])" | "Change in total water stock (LANDS) " | "kg/day/m2 of land" | "Areas[d=2]*Contfrac[d=2]"
+water_budget_closure | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily rain snowf evap riverflow coastalflow" | "" | "(((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] +  delstock_routing_daily[d=5,l=2:100000])*Areas[d=1]*Contfrac[d=1] -  ((rain[d=6,l=2:100000] + snowf[d=7,l=2:100000] - evap[d=8,l=2:100000])*Areas[d=1]*Contfrac[d=1]  - (riverflow[d=9,l=2:100000] + coastalflow[d=10,l=2:100000])*1000*86400 ))/(4*3.14*6370000*6370000*0.26)" | "Water budget closure (LANDS) " | "kg/day/m2 of land" | "2"
+twbr_lands       | "TWBR"             |  "" | "twbr[d=1,l=2:100000]*86400"       | "Hydrol water buget residu (LANDS)" | "kg/m^2/d" | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands   | "temp_sol"         |  "" | "temp_sol[d=1]"                    | "TSOL (LANDS)"                      | "C"        | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands   | "fluxsens"         |  "" | "fluxsens[d=1]"                    | "Sensible Flux (LANDS)"             | "W/m^2"    | "Areas[d=1]*Contfrac[d=1]"
+evap_lands       | "evap"             |  "" | "evap[d=1]"                        | "Evaporation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+evapnu_lands     | "evapnu"           |  "" | "evapnu[d=1]"                      | "Soil evaporation (LANDS)"          | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+transpir_lands   | "transpir"         |  "" | "transpir[d=1,k=@sum]"             | "Transpiration (sum over all PFT, LANDS)" | "mm/d" | "Areas[d=1]*Contfrac[d=1]"
+subli_lands      | "subli"            |  "" | "subli[d=1]"                       | "Sublimation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+snow_swe_lands   | "frac_snow snow"   |  "" | "snow[d=2]"                        | "Snow Mass (LANDS)"                 | "kg/m^2"   | "Areas[d=2]*Contfrac[d=2]"
+snownobio_lands  | "snownobio"        |  "" | "snownobio[d=1]"                   | "Snow Other Surfaces (LANDS)"       | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands      | "snowf"            |  "" | "snowf[d=1]"                       | "Snowfall (LANDS)"                  | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+precip_lands     | "rain snowf"       |  "" | "rain[d=1] + snowf[d=2]"           | "Total precipitaion (LANDS)"        | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+runoff_lands     | "runoff"           |  "" | "runoff[d=1]"                      | "Surface runoff  (LANDS)"           | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+drainage_lands   | "drainage"         |  "" | "drainage[d=1]"                    | "Drainage  (LANDS)"                 | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands   | "mrso"             |  "" | "mrso[d=1]"                        | "Total Soil Moisture  (LANDS)"      | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+surface_humidity_lands | "mrsos"      |  "" | "mrsos[d=1]"                       | "Top 10cm soil moisture  (LANDS)"   | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands     | "alb_vis alb_nir"  |  "" | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"               | "1"        | "Areas[d=1]*Contfrac[d=1]"
+lai_lands        | "LAImean"          |  "" | "LAImean[d=1]"                     | "LAI (mean excluding PFT=1) (LANDS)"| "1"        | "Areas[d=1]*Contfrac[d=1]"
+nee_lands        | "nee maxvegetfrac" |  "" | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"   | "Net Ecosystem Exchange" | "PgC/yr" | "2"
+maxvegetagri_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=12:13@sum]"    | "veget_max fraction of agriculture [sum of pft=12,13] "| "1"  | "Areas[d=1]*Contfrac[d=1]"
+maxvegetbare_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=1]"            | "veget_max fraction on bare soil [pft=1] "             | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=2:9@sum]"         | "veget trees[sum of pft=2:9] (LANDS)"                  | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetg_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=10:11@sum]+vegetfrac[d=1,K=14:15@sum]"       | "veget natural grasses[sum of pft=10,11,14,15] (LANDS)"      | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegeta_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=12:13@sum]"       | "veget agriculture [sum of pft=12,13] (LANDS)"         | "1"  | "Areas[d=1]*Contfrac[d=1]"
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,69 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+maxveget_forcing | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12,13] "  | "Mkm^2"  | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai02_lands    | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai03_lands    | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai04_lands    | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai05_lands    | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai06_lands    | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai07_lands    | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai08_lands    | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai09_lands    | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_stomate.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_stomate.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_stomate.cfg	(revision 5631)
@@ -0,0 +1,83 @@
+##################################################################################################################
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=1
+
+# FreqTS=YE : time-series with yearly variables  	  	 
+FreqTS=YE
+
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+woodharvest_fromforcing| "WOOD_HARVEST_PFT VEGET_COV_MAX"| "" | "(WOOD_HARVEST_PFT[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"| "Wood harvest read from file and prepared to be used"      | "PgC/yr"    | "2"
+fwoodharvest_lands     | "fWoodharvest"                  | "" | "fWoodharvest[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15"              | "CO2 Flux from wood harvesting, positive from atm to land" | "PgC/yr"    | "2"
+fLuc_fHarvest_lands    | "CONVFLUX CFLUX_PROD10 CFLUX_PROD100 HARVEST_ABOVE"  | "" | "((CONVFLUX[d=1]+CFLUX_PROD10[d=2]+CFLUX_PROD100[d=3]+HARVEST_ABOVE[d=4])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)" | "CO2 flux from Land Use Change and Crop Harvesting" | "PgC/yr" | "2"
+fHarvest_lands         | "HARVEST_ABOVE"                 | "" | "((HARVEST_ABOVE[d=1])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"                    | "CO2 flux from Land Use Change and Crop Harvesting"        | "PgC/yr" | "2"
+nbp_lands              | "nbp"                           | "" | "(nbp[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365/1e12)"                          | "Net Biospheric Production"                                | "PgC/yr" | "2"
+cSoil_lands            | "TOTAL_SOIL_CARB VEGET_COV_MAX" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Carbon Soil in Pool"                                      | "PgC"    | "2"
+cVeg_lands             | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Carbon in vegetation"                                     | "PgC"    | "2"
+npp_lands              | "NPP VEGET_COV_MAX"             | "" | "(NPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Net Primary Production"                                   | "PgC/yr" | "2"
+rh_lands               | "HET_RESP VEGET_COV_MAX"        | "" | "(HET_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"        | "Heterotrophic Respiration"                                | "PgC/yr" | "2"
+CONVFLUX_lands         | "CONVFLUX"                      | "" | "(CONVFLUX[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"                   | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands     | "CFLUX_PROD10"                  | "" | "(CFLUX_PROD10[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"               | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands    | "CFLUX_PROD100"                 | "" | "(CFLUX_PROD100[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"              | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+BIOMASS_lands          | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Total Biomass (LANDS)"                               | "PgC"    | "2"
+LITTER_lands           | "TOTAL_BM_LITTER VEGET_COV_MAX" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)" | "Biomass to Litter flux (LANDS)"                      | "PgC/yr" | "2"
+GPP_lands              | "GPP VEGET_COV_MAX"             | "" | "(GPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Gross Primary Produc (LANDS)"                        | "PgC/yr" | "2"
+MAINT_RESP_lands       | "MAINT_RESP VEGET_COV_MAX"      | "" | "(MAINT_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"      | "Maintenance Resp. (LANDS)"                           | "PgC/yr" | "2"
+GROWTH_RESP_lands      | "GROWTH_RESP VEGET_COV_MAX"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Growth Resp. (LANDS)"                                | "PgC/yr" | "2"
+lai_lands              | "lai"                           | "" | "lai[d=1]" 	                                                              | "Leaf Area Fraction"   	                	      | "1"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"               | "" | "treeFracPrimDec[d=1]"                                                        | "Total Primary Deciduous Tree Cover Fraction"         | "%"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver"              | "" | "treeFracPrimEver[d=1]"                                                       | "Total Primary Evergreen Tree Cover Fraction"         | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	                 | "" | "c3PftFrac[d=1]" 	                                                      | "Total C3 PFT Cover Fraction" 	 	              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	                 | "" | "c4PftFrac[d=1]" 	                                                      | "Total C4 PFT Cover Fraction" 		              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+cProduct_lands         | "cProduct"           | "" | "(cProduct[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	            | "Carbon in Products of Land Use Change" 	               | "PgC"    | "2"
+fLuc_lands             | "fLuc"               | "" | "(fLuc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux to Atmosphere from Land Use Change"            | "PgC/yr" | "2"
+ra_lands               | "ra"                 | "" | "(ra[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 		    | "Autotrophic Respiration"			               | "PgC/yr" | "2"
+fVegLitter_lands       | "fVegLitter"         | "" | "(fVegLitter[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Total Carbon Flux from Vegetation to Litter"            | "PgC/yr" | "2"
+fLitterSoil_lands      | "fLitterSoil"        | "" | "(fLitterSoil[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"      | "Total Carbon Flux from Litter to Soil" 	               | "PgC/yr" | "2"
+cLeaf_lands            | "cLeaf"              | "" | "(cLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                      | "Carbon in Leaves"                                       | "PgC"    | "2"
+cWood_lands            | "cWood"              | "" | "(cWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Wood" 			                       | "PgC"    | "2"
+cRoot_lands            | "cRoot"              | "" | "(cRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Roots" 			               | "PgC"    | "2"
+cMisc_lands            | "cMisc"              | "" | "(cMisc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Other Living Compartments" 	               | "PgC"    | "2"
+cLitterAbove_lands     | "cLitterAbove"       | "" | "(cLitterAbove[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Above-Ground Litter" 	                       | "PgC"    | "2"
+cLitterBelow_lands     | "cLitterBelow"       | "" | "(cLitterBelow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Below-Ground Litter" 	                       | "PgC"    | "2"
+cSoilFast_lands        | "cSoilFast"          | "" | "(cSoilFast[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Fast Soil Pool" 		               | "PgC"    | "2"
+cSoilMedium_lands      | "cSoilMedium"        | "" | "(cSoilMedium[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                | "Carbon in Medium Soil Pool" 		               | "PgC"    | "2"
+cSoilSlow_lands        | "cSoilSlow"          | "" | "(cSoilSlow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Slow Soil Pool" 	    	               | "PgC"    | "2"
+nppLeaf_lands          | "nppLeaf" 	      | "" | "(nppLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "PgC/yr" | "2"
+nppWood_lands          | "nppWood" 	      | "" | "(nppWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "PgC/yr" | "2"
+nppRoot_lands          | "nppRoot" 	      | "" | "(nppRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "PgC/yr" | "2"
+nep_lands              | "nep" 		      | "" | "(nep[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	            | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "PgC/yr" | "2"
+cMassVariation_lands   | "cMassVariation"     | "" | "(cMassVariation[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"   | "Carbon Mass Variation"	                               | "PgC/yr" | "2"
+cBal_lands             | "cMassVariation nbp" | "" | "((cMassVariation[d=1,L=2:100000]-nbp[d=2,L=2:100000])*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" | "Total Carbon Balance"    | "PgC/yr" | "2"
+rGrowth_lands          | "rGrowth" 	      | "" | "(rGrowth[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Growth Autotrophic Respiration" 		               | "PgC/yr" | "2"
+rMaint_lands           | "rMaint" 	      | "" | "(rMaint[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Maintenance Autotrophic Respiration" 	               | "PgC/yr" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_stomate_DGVM.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
@@ -0,0 +1,115 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+CONVFLUX_lands      | "CONVFLUX CONTFRAC"                  | "" | "(CONVFLUX[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                           | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands  | "CFLUX_PROD10 CONTFRAC"              | "" | "(CFLUX_PROD10[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                       | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands | "CFLUX_PROD100 CONTFRAC"             | "" | "(CFLUX_PROD100[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+HARVEST_ABOVE_lands | "HARVEST_ABOVE CONTFRAC"             | "" | "(HARVEST_ABOVE[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release product after harvest (LANDS)"                | "PgC/yr" | "2"
+SOIL_CARB_lands     | "TOTAL_SOIL_CARB VEGET_MAX CONTFRAC" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Total Soil Carbon (LANDS)"                                   | "PgC"    | "2"
+BIOMASS_lands       | "TOTAL_M VEGET_MAX CONTFRAC"         | "" | "(TOTAL_M[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Total Biomass (LANDS)"                                       | "PgC"    | "2"
+LITTER_lands        | "TOTAL_BM_LITTER VEGET_MAX CONTFRAC" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)" | "Total Litter (LANDS)"                                        | "PgC/yr" | "2"
+NPP_lands           | "NPP VEGET_MAX CONTFRAC"             | "" | "(NPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Net Primary Produc (LANDS)"                                  | "PgC/yr" | "2"
+GPP_lands           | "GPP VEGET_MAX CONTFRAC"             | "" | "(GPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Gross Primary Produc (LANDS)"                                | "PgC/yr" | "2"
+HET_RESP_lands      | "HET_RESP VEGET_MAX CONTFRAC"        | "" | "(HET_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"        | "Heterotr. Resp. (LANDS)"                                     | "PgC/yr" | "2"
+MAINT_RESP_lands    | "MAINT_RESP VEGET_MAX CONTFRAC"      | "" | "(MAINT_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"      | "Maintenance Resp. (LANDS)"                                   | "PgC/yr" | "2"
+GROWTH_RESP_lands   | "GROWTH_RESP VEGET_MAX CONTFRAC"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Growth Resp. (LANDS)"                                        | "PgC/yr" | "2"
+cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"			    | "kg C m-2" | "Areas[d=1]"
+cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])" 	    | "Carbon in Litter Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])" 	    | "Carbon in Soil Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])" 	    | "Carbon in Products of Land Use Change" 	    | "kg C m-2" | "Areas[d=1]"
+lai_lands              | "lai"              | "" | "(lai[d=1])" 	    | "Leaf Area Fraction"   	     		    | "1"   	 | "Areas[d=1]"
+gpp_lands              | "gpp"              | "" | "(gpp[d=1])" 	    | "Gross Primary Production" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+ra_lands               | "ra"               | "" | "(ra[d=1])" 		    | "Autotrophic Respiration"			    | "kg C m-2 s-1" | "Areas[d=1]"
+npp_lands              | "npp"              | "" | "(npp[d=1])" 	    | "Net Primary Production" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+rh_lands               | "rh"               | "" | "(rh[d=1])" 		    | "Heterotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+fFire_lands            | "fFire"            | "" | "(fFire[d=1])" 	    | "CO2 Emission from Fire" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])" 	    | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]"
+fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])" 	    | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]"
+nbp_lands              | "nbp"              | "" | "(nbp[d=1])" 	    | "Net Biospheric Production"      	   	    | "kg C m-2 s-1" | "Areas[d=1]"
+fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])" 	    | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]"
+fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])" 	    | "Carbon in Leaves"      	       		    | "kg C m-2" | "Areas[d=1]"
+cWood_lands            | "cWood"            | "" | "(cWood[d=1])" 	    | "Carbon in Wood" 				    | "kg C m-2" | "Areas[d=1]"
+cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])" 	    | "Carbon in Roots" 			    | "kg C m-2" | "Areas[d=1]"
+cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])" 	    | "Carbon in Other Living Compartments" 	    | "kg C m-2" | "Areas[d=1]"
+cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])" 	    | "Carbon in Fast Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])" 	    | "Carbon in Slow Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"   	| "Areas[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%" 	| "Areas[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	    | "" | "(c3PftFrac[d=1])" 	    | "Total C3 PFT Cover Fraction" 	 	    | "%" 	| "Areas[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	    | "" | "(c4PftFrac[d=1])" 	    | "Total C4 PFT Cover Fraction" 		    | "%" 	| "Areas[d=1]"
+rGrowth_lands          | "rGrowth" 	    | "" | "(rGrowth[d=1])" 	    | "Growth Autotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+rMaint_lands           | "rMaint" 	    | "" | "(rMaint[d=1])" 	    | "Maintenance Autotrophic Respiration" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+nppLeaf_lands          | "nppLeaf" 	    | "" | "(nppLeaf[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]"
+nppWood_lands          | "nppWood" 	    | "" | "(nppWood[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]"
+nppRoot_lands          | "nppRoot" 	    | "" | "(nppRoot[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]"
+nep_lands              | "nep" 		    | "" | "(nep[d=1])" 	    | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "kg C m-2 s-1" | "Areas[d=1]"
+cMassVariation_lands     | "cMassVariation"     | "" | "(cMassVariation[d=1])"    | "Carbon Mass Variation"			    | "kg C m-2 s-1" | "Areas[d=1]"
+cBal_lands             | "cMassVariation nbp" | "" | "(cMassVariation[d=1,L=2:1000]-nbp[d=2,L=2:1000])" | "Total Carbon Balance"		    | "kg C m-2 s-1" | "Areas[d=1]"
+ADAPTATION01_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=1])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION02_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=2])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION03_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=3])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION04_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=4])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION05_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=5])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION06_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=6])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION07_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=7])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION08_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=8])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION09_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=9])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION10_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=10])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION11_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=11])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION12_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=12])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION13_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=13])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+REGENERATION01_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=1])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION02_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=2])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION03_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=3])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION04_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=4])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION05_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=5])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION06_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=6])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION07_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=7])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION08_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=8])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION09_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=9])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION10_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=10])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION11_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=11])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION12_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=12])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION13_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=13])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/config.card	(revision 5631)
@@ -0,0 +1,133 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#========================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=FG1trans
+#----- LongName : Some words describing the experiment. LongName will be added in all output files produced by XIOS.
+LongName=""
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=TEST
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=spinup
+#============================
+#-- leap(gregorian), noleap, 360d
+CalendarType=noleap
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1861-01-01
+DateEnd=1900-12-31
+# Forcing data between 1901 and 1920
+CyclicBegin=1901
+CyclicEnd=1910
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1Y
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component: (Component name, tag/version name)
+SRF= (sechiba, orchidee)
+SBG= (stomate, orchidee)
+OOL= (orchidee_ol, orchidee)
+IOS= (xios, XIOS)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+#D- For each component: 
+#D  (Real executable name, temorary name during run, number of process MPI)
+SRF= ("", "")
+SBG= ("", "")
+OOL= (orchidee_ol, orchidee_ol, 31MPI)
+IOS= (xios_server.exe, xios.x, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- OverRule=y : All component will restart from the same simulation
+OverRule=n
+#D- Date of restart file to be used
+RestartDate=2240-12-31
+#D- JobName for the restart file
+RestartJobName=FG1
+#D- Path to directory where the RestartJobName directory is stored
+#D- NB! ${ARCHIVE} depend on login. The full path can also be set
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2/PROD/secsto
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=10Y
+#D- Frequency of rebuild submission. Only set NONE if running with 1 XIOS server
+RebuildFrequency=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=10Y
+#D- Activate IgnoreNonMonotonic because time axis is not monotonic with 
+#D- spinup experiment 
+IgnoreNonMonotonic=TRUE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=10Y
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+#D- If you want to produce compute PCMDI metrics from seasonal average
+#D- Set TRUE or FALSE to activate/deactivate the metrics computation.
+MetricsPCMDI=FALSE
+
+#========================================================================
+#D-- SRF - SECHIBA
+# Use this section to start from restart file for SRF if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in sechiba.card 
+[SRF]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- SBG - STOMATE
+# Use this section to start from restart file for SBG if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in stomate.card 
+[SBG]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- OOL - Offline driver
+# There is no need to change this section
+[OOL]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- IOS - XIOS
+# There is no need to change this section
+[IOS]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/readme
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/readme	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG1trans/readme	(revision 5631)
@@ -0,0 +1,10 @@
+This experience is set up according to the protocol for spinup 
+in the TRENDY2 project. 
+
+Note that
+- The parmeters set in run.def is specific to TRENDY2 protocol 
+- 20 years of CRUNCEP forcing data is used. The simulation loops 12
+  times over this period. This is done using the CyclicBegin and CyclicEnd 
+  in config.card.
+- Only yearly output is set
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/orchidee_ol.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/orchidee_ol.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/orchidee_ol.card	(revision 5631)
@@ -0,0 +1,32 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# Use XIOS as output library instead of IOIPSL
+XIOS=y
+
+[InitialStateFiles]
+List=()
+
+[BoundaryFiles]
+List=  (${R_IN}/SRF/METEO/CRU-NCEP/v5.3.2/twodeg/cruncep_twodeg_${year}.nc, forcing_file.nc)
+ListNonDel= ()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .) ,\
+        (${SUBMIT_DIR}/PARAM/iodef.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_orchidee.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_input_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/file_def_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/field_def_orchidee.xml, .)
+
+
+[RestartFiles]
+List=	(driver_rest_out.nc,  driver_rest.nc,  driver_rest_in.nc)
+
+[OutputText]
+List=   (run.def, used_run.def, out_orchidee_ol, iodef.xml, context_orchidee.xml, context_input_orchidee.xml, field_def_orchidee.xml, file_def_orchidee.xml, xios_client_*)
+
+[OutputFiles]
+List= ()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/orchidee_ol.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/orchidee_ol.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/orchidee_ol.driver	(revision 5631)
@@ -0,0 +1,133 @@
+#!/bin/ksh
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    # Set TIME_LENGTH in run.def depending on PeriodLenght in config.card
+    case ${config_UserChoices_PeriodLength} in
+	*M|*m|*D|*d)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${PeriodLengthInDays}D
+	    ;;
+	*s|*Y)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${config_UserChoices_PeriodLength}
+            ;;
+        *)
+            IGCM_debug_Exit "OOL_Update " ${config_UserChoices_PeriodLength} " invalid PeriodLength in config.card : choose between 1Y, 1M, 5D, 1D."
+            IGCM_debug_Verif_Exit
+    esac
+    
+
+    # Set TIME_SKIP only if starting without restart file
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Calculate the TIME_SKIP as difference between the start date and 1th of January the same year
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D
+    else
+	# Here using restart file, set TIME_SKIP=0
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP 0D
+    fi
+
+    # Set RESTART_FILEIN in run.def
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Set RESTART_FILEIN=NONE in run.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN NONE
+    else
+        # Default option using restart file, set RESTART_FILEIN=driver_rest_in.nc in orchidee.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN driver_rest_in.nc
+    fi
+
+    # Reset the simulation date as ORCHIDEE understands it for some special cases
+    # DRIVER_reset_time=y : take the date from the first time step of the forcing file 
+    # DRIVER_reset_time=n : default, take the date from the restart file if existing, else take it from the forcing file
+    if ( ${FirstInitialize} &&  [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+	# Starting a new simulation: take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    elif ( [ X${CyclicYear} = X${config_UserChoices_CyclicBegin} ] && [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+        # Start a new cycle, take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    else
+	# Default option, take the date from the restart file
+	IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time n
+    fi
+
+
+    if [ -f CO2.txt ] ; then
+        # If this file exist, then read CO2 value and set ATM_CO2 in run.def
+        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`
+	if [ X"${IPCC_CO2}" = X ] ; then
+            # The grep returned empty variable: stop execution
+            IGCM_debug_Exit "The file CO2.txt do not contain the current year."
+            IGCM_debug_Verif_Exit
+        fi
+        IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 ${IPCC_CO2}
+    else
+	# The file is not available: take the default value from run.def. 
+	# The syntax in run.def must be respected, for example:
+        # ATM_CO2 = _AUTO_: DEFAULT = 350.
+	IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 DEFAULT
+    fi
+
+
+    # Activation of XIOS
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Add include of orchidee context in iodef.xml
+      # In iodef.xml add on next line after "COMPONENT CONTEXT"
+      #  <context id="orchidee" src="./context_orchidee.xml"/>
+      echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp
+
+      # Add inclusion of file context_input_orchidee.xml if this file exists
+      if [ -f context_input_orchidee.xml ] ; then
+          echo '<context id="orchidee" src="./context_input_orchidee.xml"/>' >> add.tmp
+      fi
+ 
+      cp iodef.xml iodef.xml.tmp
+      sed -e "/COMPONENT CONTEXT/r add.tmp" \
+        iodef.xml.tmp > iodef.xml
+      rm iodef.xml.tmp add.tmp
+
+
+      # Special case if SBG component is not activated: deactivate stomate output files from file_def_orchidee.xml
+      # If SBG is activated, then the stomate.driver will take care of these variables
+      if [ X${config_ListOfComponents_SBG} = X ] ; then
+          # Stomate is not activated
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo      
+      fi
+    fi
+
+
+    # Add LongName as global attribute in all files produced by XIOS (if LongName is not empty)
+    # Remove file_def_input_orchidee.xml from the list. 
+    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then
+	listfile=$(ls file_def*orchidee.xml | grep -v input)
+	echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp
+	for file in ${listfile} ; do
+	    cp ${file} ${file}.tmp
+	    sed -e "/<file id/r add.tmp" \
+		${file}.tmp > ${file}
+	    rm ${file}.tmp 
+	done 
+	rm add.tmp
+    fi
+          
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+    
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,82 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# VEGET_UPDATE=0Y : no change in vegetation map. PFTmap.nc should be set only in InitialStateFiles/List. 
+# VEGET_UPDATE=1Y : change vegetation map every year. PFTmap.nc should be set only in BoundaryFiles/List.
+# Note that the model changed behaviour:
+# - since rev 2717 in the trunk, the map is read in January. In BoundaryFiles/List, copy the map for current year, use the variable ${year}.
+# - for older version, the map is read in December. In BoundaryFiles/List, copy the map for next coming year using the variable ${year_p1}.
+VEGET_UPDATE=1Y
+
+# Specify output level for output files
+# Only the files sechiba_history.nc, sechiba_out_2.nc and sechiba_history_4dim.nc can be set here.
+# output_level_filename=0     : lowest level writing only variables needed for the monitoring
+# output_level_filename=12    : highest level which will output all variables
+# output_level_filename=NONE  : deactivate the file
+output_level_sechiba_history = 11
+output_level_sechiba_out_2 = NONE
+output_level_sechiba_history_4dim = 11
+
+# Specify output frequency for each file [1y, 1mo, 1d, 10800s, 1ts]
+# Settings using WriteFrequency in config.card are not longer used
+output_freq_sechiba_history = 1mo
+output_freq_sechiba_out_2 = 10800s
+output_freq_sechiba_history_4dim = 1mo
+
+
+[InitialStateFiles]
+List=       (${R_IN}/SRF/ROUTING/routing.nc, .),     \
+            (${R_IN}/SRF/SOIL/soils_param.nc, .), \
+            (${R_IN}/SRF/cartepente2d_15min.nc, .), \
+            (${R_IN}/SRF/ROUTING/floodplains.nc, .), \
+            (${R_IN}/SRF/reftemp.nc, .), \
+            (${R_IN}/SRF/albedo/alb_bg_modisopt_2D_ESA_v2.nc, alb_bg.nc)
+	
+[BoundaryFiles]
+List=   (${R_IN}/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1/PFTmap_${year}.nc, PFTmap.nc), \
+        (${R_IN}/SRF/WOODHARVEST/LUH2v2/historical/woodharvest_${year}.nc, woodharvest.nc)
+ListNonDel= ()
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   (used_run.def, out_orchidee, river_desc.nc)
+
+[OutputFiles]
+List=	(sechiba_history.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history.nc, Post_1M_sechiba_history), \
+        (sechiba_history_4dim.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history_4dim.nc, NONE), \
+        (sechiba_out_2.nc, ${R_OUT_SRF_O_H}/${PREFIX}_HF_sechiba_out_2.nc, NONE)
+
+
+[Post_1M_sechiba_history]
+Patches = ()
+GatherWithInternal = (lon, lat, veget, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (nobiofrac, alb_nir, alb_vis, evap, fluxlat, fluxsens, netrad, qair, rain, runoff, snow, snownobio, snowf, frac_snow, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac, TWBR, riverflow, coastalflow, DelSoilMoist_daily, DelIntercept_daily, DelSWE_daily, delstock_routing, snowmelt, LAImean, hydrographs, evapnu, Wind, lwdown, swdown)
+ChunckJob2D = 200Y
+TimeSeriesVars3D = (lai, maxvegetfrac, vegetfrac, ptn, nee, transpir, inter)
+ChunckJob3D = NONE
+Seasonal = ON
+
+# ALMAOUTPUT
+#TimeSeriesVars2D = (nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, ESoil, ECanop, TVeg, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+#TimeSeriesVars3D = (ECanop, TVeg, GPP)
+
+
+[Post_HF_sechiba_out_2]
+Patches = ()
+GatherWithInternal = (lon, lat, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (mrsos, mrro)
+ChunckJob2D = 50Y
+TimeSeriesVars3D = (ptn)
+ChunckJob3D = 10Y
+Seasonal = OFF
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,214 @@
+#!/bin/ksh
+## Driver for the component SRF corresponding to the sechiba part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    ## 1. Modifications in run.def parameter file
+
+    # Activate STOMATE if the compontent SBG=stomate is set in config.card
+    if [ X${config_ListOfComponents_SBG} = Xstomate ] ; then
+	# Activate stomate in run.def
+        IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE y
+    else
+	# Deactivate stomate in run.def
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE n
+ 	# Deactivate output files for stomate
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+    fi
+
+    # Define in run.def if restart file should be used
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in NONE
+
+	# Check if running executable teststomate. In that case sechiba restart file is mandatory.
+	if [ -f teststomate ] ; then
+	    IGCM_debug_Print 1 "Error in launching teststomate !"
+	    IGCM_debug_Exit    "YOU MUST USE EXISTING RESTART FILE FOR SECHIBA WITH JOB TESTSTOMATE!" 
+	    IGCM_debug_Verif_Exit	    
+	fi
+    else
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in sechiba_rest_in.nc
+    fi
+
+
+    # Modify in run.def VEGET_UPDATE if it is set in sechiba.card section UserChoices
+    # VEGET_UPDATE inidcates if the vegetation map should be updated and at which frequency
+    if [ ! X${sechiba_UserChoices_VEGET_UPDATE} = X ] ; then
+	# Take the value from sechiba.card
+	IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE   ${sechiba_UserChoices_VEGET_UPDATE}
+    else
+        # Set default value 0Y
+        IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE 0Y
+    fi
+
+
+    # Activate the creation of river_desc.nc file only during the first execution in the simulation.
+    if [ ${CumulPeriod} -eq 1 ] ; then
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC y
+    else
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC n
+    fi
+
+
+
+    ## 2. Mangement of output and modifications of related xml files
+
+    # Set default values for sechiba1_enabled and sechiba1_freq.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    sechiba1_enabled=.FALSE.
+    sechiba2_enabled=.FALSE.
+    sechiba1_freq=0s
+    sechiba2_freq=0s
+    # These variables are used if XIOS=n
+    SECHIBA_WRITE_STEP=0
+    SECHIBA_WRITE_STEP2=0
+
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Activate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK y
+      # Deactivate IOIPSL output
+      IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP 0
+    else
+      # Deactivate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK n
+    fi
+
+    # Get WriteFrenquecy for SRF (SECHIBA) from config.card
+    # 1 or 2 frequencies can be set in WriteFrenquecy for SRF
+    # The first frequency will always be used for the sechiba_history file and the 
+    # second frequency will be used for the sechiba_out_2.nc file. 
+    # The files are activated only if its corresponding frequency is set in WriteFrequency
+    ifreq=0
+    for frequency in ${config_SRF_WriteFrequency} ; do
+	case ${frequency} in
+	    *Y|*y) 
+		NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' )
+		NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+		file_enabled=.TRUE.
+		file_freq=${NbYears}y
+		(( file_WRITE_STEP = NbYears * NbDaysYear * 86400 )) ;;
+	    *M|*m)
+		NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbMonths}mo
+		# Note only 1M possible with IOIPSL!
+		file_WRITE_STEP=-1. ;;
+	    *D|*d)
+		NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbDays}d
+ 		(( file_WRITE_STEP = NbDays * 86400 )) ;;
+	    *s)
+		WriteInSeconds=$( echo ${frequency} | awk -F '[s]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${WriteInSeconds}s
+		(( file_WRITE_STEP = WriteInSeconds )) ;;
+            HF|hf) 
+		file_enabled=.TRUE. 
+		file_freq=10800s 
+		(( file_WRITE_STEP = 10800 )) ;;
+	    *) 
+		IGCM_debug_Exit "SRF_Update " ${frequency} " invalid WriteFrequency : choose in xY, xM, xD, xs and HF" 
+		IGCM_debug_Verif_Exit ;;
+	esac
+
+	(( ifreq = ifreq + 1 ))
+	case ${ifreq} in
+	    1)
+		sechiba1_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP=${file_WRITE_STEP} ;;
+	    2)
+                sechiba2_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP2=${file_WRITE_STEP} ;;
+            *)
+		IGCM_debug_Exit "SRF_Update: It is not possible to set more than 2 output files for sechiba from config.card"
+		IGCM_debug_Exit "You must correct WriteFrequancy in SRF secion in config.card."
+		IGCM_debug_Exit "Adapt file_def_orchidee.xml directly if you want more output files"
+		IGCM_debug_Verif_Exit ;;
+	esac
+    done
+
+    # Modify file_def_orchidee.xml if XIOS is activated
+    # Settings in config.card WriteFrequency are not used any more. The section above is only used for IOIPSL.
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+	# Modify file_def_orchidee.xml file using settings from sechiba.card/orchidee.card
+	# We here suppose that for each file, in sechiba.card/orchidee.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_history} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history} = XNONE ] ; then
+	    # output_level_sechiba_history is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level ${sechiba_UserChoices_output_level_sechiba_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history}
+	fi
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_out_2} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_out_2} = XNONE ] ; then
+	    # output_level_sechiba_out_2 is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level ${sechiba_UserChoices_output_level_sechiba_out_2}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq  ${sechiba_UserChoices_output_freq_sechiba_out_2}
+	fi
+
+  	if [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = XNONE ] ; then
+	    # output_level_sechiba_history_4dim is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level ${sechiba_UserChoices_output_level_sechiba_history_4dim}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history_4dim}
+	fi
+    fi
+
+
+    # Set IOIPSL output in run.def. This is done for all cases only to avoid AUTO variables during run time. 
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP ${SECHIBA_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP2 ${SECHIBA_WRITE_STEP2}
+
+    # Outputs HF in HISTFILE2 if required
+    if [ ${sechiba2_enabled} = .TRUE. ] ; then
+ 	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 y
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 n
+    fi
+
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,63 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# SPINUP_ANALYTIC=y/n : Activate the spinup analytic option to solve the carbon in soil balance
+SPINUP_ANALYTIC=n
+
+# Specify output level for output files
+# Only the files stomate_history.nc and stomate_ipcc_history.nc can be set here.
+# output_level_filname=0     : lowest level writing only variables needed for the monitoring
+# output_level_filname=10    : highest level which will output all variables
+# output_level_filname=NONE  : deactivate the file
+output_level_stomate_history = 10
+output_level_stomate_ipcc_history = 1
+
+# Specify output frequency for each file [1y, 1mo, 1d]
+# Settings using WriteFrequency in config.card are not longer used
+output_freq_stomate_history = 1mo
+output_freq_stomate_ipcc_history = 1mo
+
+
+[InitialStateFiles]
+List=   ()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=   (${R_IN}/SRF/CO2_1860_2012_TRENDY2.txt, CO2.txt)
+
+
+[RestartFiles]
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=	(stomate_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_history.nc, Post_1M_stomate_history) \
+    (stomate_ipcc_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_ipcc_history.nc, Post_1M_stomate_ipcc_history)
+
+[Post_1M_stomate_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D= (T2M_MONTH,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,HARVEST_ABOVE)
+ChunckJob2D = NONE
+TimeSeriesVars3D= (LAI,VEGET_COV_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION,CARBON_ACTIVE,CARBON_SLOW,CARBON_PASSIVE,LITTER_STR_AB,LITTER_STR_BE,LITTER_MET_AB,LITTER_MET_BE,TOTAL_TURN,WOOD_HARVEST_PFT)
+ChunckJob3D = 100Y
+Seasonal=ON
+
+[Post_1M_stomate_ipcc_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D=(cVeg, cLitter, cSoil, cProduct, cMassVariation, lai, gpp, ra, npp, rh, fFire, fHarvest, fLuc, nbp, fVegLitter, fLitterSoil, cLeaf, cWood, cRoot, cMisc, cLitterAbove, cLitterBelow, cSoilFast, cSoilMedium, cSoilSlow, landCoverFrac, treeFracPrimDec, treeFracPrimEver, c3PftFrac, c4PftFrac, rGrowth, rMaint, nppLeaf, nppWood, nppRoot, nep, fWoodharvest)
+ChunckJob2D = NONE
+TimeSeriesVars3D=()
+ChunckJob3D = NONE
+Seasonal=ON
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,147 @@
+#!/bin/ksh
+## Driver for the component SBG corresponding to the stomate part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    # For IOIPSL: get frequency from config.card
+    # Set default values for stomate output files.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    stomate_enabled=.FALSE.
+    stomate_freq=0s
+
+    # Read WriteFrequency set in config.card section SBG. 
+    # Only one choice can be set as WriteFrequency. The same choice will be used for 
+    # both stomate_history and stomate_ipcc_history files. 
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    NbYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbYears}y
+	    (( STOMATE_WRITE_STEP = NbYears * NbDaysYear )) 
+        ;;
+	*M|*m) 
+	    NbMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbMonths}mo
+	    # Note only 1M possible with IOIPSL!
+	    STOMATE_WRITE_STEP=-1. ;;
+	*D|*d)
+	    NbDays=$( echo ${config_SBG_WriteFrequency} | awk -F '[dD]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbDays}d
+	    STOMATE_WRITE_STEP=${NbDays} ;;
+    esac
+
+    # Modify file_def_orchidee.def if XIOS is activated using information in stomate.card
+    # Settings in config.card WriteFrequency are not used any more.
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+
+	# Modify file_def_orchidee.xml file using settings from stomate.card
+	# We here suppose that for each file, in stomate.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${stomate_UserChoices_output_level_stomate_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_history} = XNONE ] ; then
+	    # output_level_stomate_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level ${stomate_UserChoices_output_level_stomate_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq  ${stomate_UserChoices_output_freq_stomate_history}
+	fi
+
+	if [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = XNONE ] ; then
+	    # output_level_stomate_ipcc_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level ${stomate_UserChoices_output_level_stomate_ipcc_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq  ${stomate_UserChoices_output_freq_stomate_ipcc_history}
+	fi
+
+
+
+        # Deactivate stomate IOIPSL output
+	(( STOMATE_WRITE_STEP = 0 ))
+    fi
+
+
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC y
+      
+       # Test if CyclicBegin and CyclicEnd is set in config.card
+       if ( [ X${config_UserChoices_CyclicBegin} = X ] || [ X${config_UserChoices_CyclicEnd} = X ] ) ; then
+           IGCM_debug_Exit "CyclicBegin and CyclicEnd must be set in config.card to run option spinup_analytic."
+       fi
+       # Calculate and set number of years of forcing data
+       CycleNb=$(( ${config_UserChoices_CyclicEnd} - ${config_UserChoices_CyclicBegin} + 1 ))
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD ${CycleNb}
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC n
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD -1
+    fi
+
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP}
+
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "STOMATE : without restart"
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN NONE
+    else
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+    fi
+
+
+    # Special case using forcesoil executable
+    if [ -f forcesoil ] ; then
+	# Set STOMATE_CFORCING_NAME
+        IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+
+	# Check if restart file is missing
+	if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+            IGCM_debug_Exit "YOU MUST USE OLD STOMATE RESTART FILE WITH THE JOB FORCESOIL."
+            IGCM_debug_Verif_Exit
+	fi
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME NONE
+    fi
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+#   Check if equilibrium is reached for spinup analytic
+#   and if true stop the simulation in the end of this period.
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+      CondSpinup=$(grep -a  "Equilibrium for carbon pools is reached"  out_*)
+      if [ X"${CondSpinup}" != X ] ; then
+	  IGCM_debug_Print 1 "SPINUP ANALYTIC :  your spinup is successful :"
+	  IGCM_debug_Print 1 ${CondSpinup}
+	  IGCM_debug_Print 1  "You can now stop the simulation if you want."
+      fi
+    fi
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/xios.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/xios.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/xios.card	(revision 5631)
@@ -0,0 +1,29 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+
+[InitialStateFiles]
+List=	()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+List=	(NONE)
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   ()
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/xios.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/xios.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/COMP/xios.driver	(revision 5631)
@@ -0,0 +1,40 @@
+#!/bin/ksh
+#-----------------------------------
+function IOS_Initialize
+{ 
+    IGCM_debug_PushStack "IOS_Initialize"
+
+    echo INITIALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Initialize"
+}
+
+#-----------------------------------
+function IOS_Update
+{
+    IGCM_debug_PushStack "IOS_Update"
+
+    echo UPDATE IOS !!!
+# Activate server mode
+    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true
+# If lmdz_UserChoices_XIOS=y add LMDZ as component id :
+    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then
+	IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx
+    fi 
+    if [ -f namcouple ] ; then
+	sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 
+	IGCM_sys_Mv namcouple.tmp namcouple
+    fi
+
+    IGCM_debug_PopStack "IOS_Update"
+}
+
+#-----------------------------------
+function IOS_Finalize
+{
+    IGCM_debug_PushStack "IOS_Finalize"
+
+    echo FINALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/iodef.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/iodef.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/iodef.xml	(revision 5631)
@@ -0,0 +1,1 @@
+link iodef_xios2.xml
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/iodef_xios1.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/iodef_xios1.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/iodef_xios1.xml	(revision 5631)
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 1.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) -->
+	  <variable id="buffer_size"               type="integer">15000000</variable>
+	  <variable id="buffer_server_factor_size" type="integer">2</variable>
+	  <variable id="info_level"                type="integer">1</variable>
+	  <variable id="using_server"              type="boolean">false</variable>
+	  <variable id="using_oasis"               type="boolean">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/iodef_xios2.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/iodef_xios2.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/iodef_xios2.xml	(revision 5631)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 2.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+	  <variable id="info_level"                type="int">1</variable>
+	  <variable id="using_server"              type="bool">false</variable>
+	  <variable id="using_oasis"               type="bool">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/PARAM/run.def	(revision 5631)
@@ -0,0 +1,149 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+
+#**************************************************************************
+#           Suggested parameter set up for ORCHIDEE 2.0
+# See all optional parameters in modipsl/modeles/ORCHIDEE/orchidee.default
+#
+# Note when running with libIGCM, variables set here to _AUTOBLOCKER_ can 
+# not be changed in run.def otherwwise the simulation will stop. Variables 
+# set to _AUTO_ can be changed from the comp.card but they can also be 
+# changed directly in the run.def. A value set in run.def can never be
+# changed again by libIGCM. 
+#**************************************************************************
+
+# Activate Stomate component (default y)
+STOMATE_OK_STOMATE = _AUTOBLOCKER_ 
+
+# Time length for one intergration (default full lenght of forcing file)
+TIME_LENGTH = _AUTO_
+
+# Parameters related to the restart file and the start date
+#**************************************************************************
+# Time in the forcing file at which the model start if start date is not set by the forcing file (default 0)
+TIME_SKIP = _AUTO_
+
+# If DRIVER_reset_time=y, read the year from forcing file instead of taking it from restart file (default n)
+DRIVER_reset_time = _AUTO_
+
+# Name of restart file for the driver (default NONE)
+RESTART_FILEIN = _AUTOBLOCKER_
+
+# Name of restart file for sechiba part of the model (default NONE)
+SECHIBA_restart_in = _AUTOBLOCKER_
+
+# Name of restart file for stomate part of the model (default NONE)
+STOMATE_RESTART_FILEIN = _AUTOBLOCKER_
+
+# Parameters related to the diagnostic output files
+#**************************************************************************
+# Use XIOS for writing diagnostics file (defulat y)
+XIOS_ORCHIDEE_OK = _AUTOBLOCKER_
+
+# Flag to activate sechiba_out_2.nc history file when using IOIPSL for SECHIBA (defulat n)
+SECHIBA_HISTFILE2 = _AUTO_
+
+# Writefrequency in seconds in sechiba_history.nc when using IOIPSL (default 86400)
+# If WRITE_STEP=0 then all IOIPSL output are deactivated
+WRITE_STEP = _AUTO_
+
+# Writefrequency in seconds sechiba_out_2.nc when using IOIPSL (default 1800)
+WRITE_STEP2 = _AUTO_ 
+
+# Writefrequency in days in stomate_history.nc when using IOIPSL (default 10)
+STOMATE_HIST_DT = _AUTO_
+
+# Writefrequency in days or -1 for monthly output in stomate_ipcc_history.nc when using IOIPSL (default 0)
+STOMATE_IPCC_HIST_DT = _AUTO_
+
+# Print level for text output in out_orchidee_*
+# PRINTLEV = 1 : some output in initialization phase
+# PRINTLEV = 2 : more output in initialization phase and printing of new date
+# PRINTLEV = 3, 4,.. : more output also at each timestep
+PRINTLEV=2
+
+# Hydrology parameters
+#**************************************************************************
+# Activate the multi-layer diffusion scheme adapted from CWRR (default y)
+HYDROL_CWRR = y
+
+# Activate river routing (default y)
+RIVER_ROUTING = y
+
+# Activate creation of river_desc.nc file
+# RIVER_DESC will be activated only the first execution in the simulation
+RIVER_DESC = _AUTO_
+
+# SOILTYPE_CLASSIF :  Type of classification used for the map of soil types (default zobler)
+SOILTYPE_CLASSIF = zobler 
+
+# Parameters related to vegetation map
+#**************************************************************************
+# Update vegetation frequency (default 0Y)
+VEGET_UPDATE = _AUTO_
+
+# Read lai map (default n)
+LAI_MAP = n
+
+# Prescribed vegetation (default n)
+IMPOSE_VEG = n
+
+# Parameters related to surface and thermal physical properties
+#************************************************************************
+# ROUGH_DYN : Account for a dynamic roughness height (activation of Su et al. parametrization) (default y)
+ROUGH_DYN=y
+
+# OK_FREEZE :  Activate the complet soil freezing scheme (default y)
+OK_FREEZE=y
+
+# OK_EXPLICITSNOW :  Activate explict snow scheme (default y)
+OK_EXPLICITSNOW=y
+
+# Carbon related parameters
+#**************************************************************************
+# Analytic spinup (default n)
+SPINUP_ANALYTIC = _AUTO_
+SPINUP_PERIOD = _AUTO_
+
+# Value for atmospheric CO2 (default=350)
+ATM_CO2 = _AUTO_: DEFAULT = 350.
+
+# Activate harvest of wood (default y)
+DO_WOOD_HARVEST=y
+
+# Deactivate fire (default FIRE_DISABLE=y)
+FIRE_DISABLE=y
+
+# Optimized parameters to be used with PFTmap with 15 pfts such as
+# files in IGCM/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1
+#**************************************************************************
+# Use 15 PFTs. Note that PFTmap.nc must contains 15PFTs.
+# PFT=10, 14 and 15 share the same parametrization except for VCMAX25, LAI_MAX, FRAC_GROWTHRESP, 
+# MAINT_RESP_SLOPE_C and ALWAYS_INIT specified below.  
+# (default NVM=13)
+NVM=15
+PFT_TO_MTC=1,2,3,4,5,6,7,8,9,10,11,12,13,10,10
+PFT_NAME__10='temperate C3           grass      '
+PFT_NAME__14='tropical  C3           grass      '
+PFT_NAME__15='boreal    C3           grass      '
+
+VCMAX25__10 = 50.0 
+VCMAX25__14 = 50.0 
+VCMAX25__15 = 40.0
+
+LAI_MAX__10 = 2.5
+LAI_MAX__14 = 2.5
+LAI_MAX__15 = 2.0
+
+FRAC_GROWTHRESP__10 = 0.28
+FRAC_GROWTHRESP__14 = 0.35
+FRAC_GROWTHRESP__15 = 0.35
+
+MAINT_RESP_SLOPE_C__10 = 0.16
+MAINT_RESP_SLOPE_C__14 = 0.12
+MAINT_RESP_SLOPE_C__15 = 0.25
+
+ALWAYS_INIT__10 = y
+ALWAYS_INIT__14 = n
+ALWAYS_INIT__15 = y
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,60 @@
+##################################################################################################################
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+delta_water_stock | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily" |  "" | "((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] + delstock_routing_daily[d=5,l=2:100000])" | "Change in total water stock (LANDS) " | "kg/day/m2 of land" | "Areas[d=2]*Contfrac[d=2]"
+water_budget_closure | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily rain snowf evap riverflow coastalflow" | "" | "(((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] +  delstock_routing_daily[d=5,l=2:100000])*Areas[d=1]*Contfrac[d=1] -  ((rain[d=6,l=2:100000] + snowf[d=7,l=2:100000] - evap[d=8,l=2:100000])*Areas[d=1]*Contfrac[d=1]  - (riverflow[d=9,l=2:100000] + coastalflow[d=10,l=2:100000])*1000*86400 ))/(4*3.14*6370000*6370000*0.26)" | "Water budget closure (LANDS) " | "kg/day/m2 of land" | "2"
+twbr_lands       | "TWBR"             |  "" | "twbr[d=1,l=2:100000]*86400"       | "Hydrol water buget residu (LANDS)" | "kg/m^2/d" | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands   | "temp_sol"         |  "" | "temp_sol[d=1]"                    | "TSOL (LANDS)"                      | "C"        | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands   | "fluxsens"         |  "" | "fluxsens[d=1]"                    | "Sensible Flux (LANDS)"             | "W/m^2"    | "Areas[d=1]*Contfrac[d=1]"
+evap_lands       | "evap"             |  "" | "evap[d=1]"                        | "Evaporation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+evapnu_lands     | "evapnu"           |  "" | "evapnu[d=1]"                      | "Soil evaporation (LANDS)"          | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+transpir_lands   | "transpir"         |  "" | "transpir[d=1,k=@sum]"             | "Transpiration (sum over all PFT, LANDS)" | "mm/d" | "Areas[d=1]*Contfrac[d=1]"
+subli_lands      | "subli"            |  "" | "subli[d=1]"                       | "Sublimation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+snow_swe_lands   | "frac_snow snow"   |  "" | "snow[d=2]"                        | "Snow Mass (LANDS)"                 | "kg/m^2"   | "Areas[d=2]*Contfrac[d=2]"
+snownobio_lands  | "snownobio"        |  "" | "snownobio[d=1]"                   | "Snow Other Surfaces (LANDS)"       | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands      | "snowf"            |  "" | "snowf[d=1]"                       | "Snowfall (LANDS)"                  | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+precip_lands     | "rain snowf"       |  "" | "rain[d=1] + snowf[d=2]"           | "Total precipitaion (LANDS)"        | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+runoff_lands     | "runoff"           |  "" | "runoff[d=1]"                      | "Surface runoff  (LANDS)"           | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+drainage_lands   | "drainage"         |  "" | "drainage[d=1]"                    | "Drainage  (LANDS)"                 | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands   | "mrso"             |  "" | "mrso[d=1]"                        | "Total Soil Moisture  (LANDS)"      | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+surface_humidity_lands | "mrsos"      |  "" | "mrsos[d=1]"                       | "Top 10cm soil moisture  (LANDS)"   | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands     | "alb_vis alb_nir"  |  "" | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"               | "1"        | "Areas[d=1]*Contfrac[d=1]"
+lai_lands        | "LAImean"          |  "" | "LAImean[d=1]"                     | "LAI (mean excluding PFT=1) (LANDS)"| "1"        | "Areas[d=1]*Contfrac[d=1]"
+nee_lands        | "nee maxvegetfrac" |  "" | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"   | "Net Ecosystem Exchange" | "PgC/yr" | "2"
+maxvegetagri_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=12:13@sum]"    | "veget_max fraction of agriculture [sum of pft=12,13] "| "1"  | "Areas[d=1]*Contfrac[d=1]"
+maxvegetbare_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=1]"            | "veget_max fraction on bare soil [pft=1] "             | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=2:9@sum]"         | "veget trees[sum of pft=2:9] (LANDS)"                  | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetg_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=10:11@sum]+vegetfrac[d=1,K=14:15@sum]"       | "veget natural grasses[sum of pft=10,11,14,15] (LANDS)"      | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegeta_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=12:13@sum]"       | "veget agriculture [sum of pft=12,13] (LANDS)"         | "1"  | "Areas[d=1]*Contfrac[d=1]"
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,69 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+maxveget_forcing | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12,13] "  | "Mkm^2"  | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai02_lands    | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai03_lands    | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai04_lands    | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai05_lands    | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai06_lands    | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai07_lands    | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai08_lands    | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai09_lands    | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_stomate.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_stomate.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_stomate.cfg	(revision 5631)
@@ -0,0 +1,79 @@
+##################################################################################################################
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+woodharvest_fromforcing| "WOOD_HARVEST_PFT VEGET_COV_MAX"| "" | "(WOOD_HARVEST_PFT[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"| "Wood harvest read from file and prepared to be used"      | "PgC/yr"    | "2"
+fwoodharvest_lands     | "fWoodharvest"                  | "" | "fWoodharvest[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15"              | "CO2 Flux from wood harvesting, positive from atm to land" | "PgC/yr"    | "2"
+fLuc_fHarvest_lands    | "CONVFLUX CFLUX_PROD10 CFLUX_PROD100 HARVEST_ABOVE"  | "" | "((CONVFLUX[d=1]+CFLUX_PROD10[d=2]+CFLUX_PROD100[d=3]+HARVEST_ABOVE[d=4])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)" | "CO2 flux from Land Use Change and Crop Harvesting" | "PgC/yr" | "2"
+fHarvest_lands         | "HARVEST_ABOVE"                 | "" | "((HARVEST_ABOVE[d=1])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"                    | "CO2 flux from Land Use Change and Crop Harvesting"        | "PgC/yr" | "2"
+nbp_lands              | "nbp"                           | "" | "(nbp[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365/1e12)"                          | "Net Biospheric Production"                                | "PgC/yr" | "2"
+cSoil_lands            | "TOTAL_SOIL_CARB VEGET_COV_MAX" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Carbon Soil in Pool"                                      | "PgC"    | "2"
+cVeg_lands             | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Carbon in vegetation"                                     | "PgC"    | "2"
+npp_lands              | "NPP VEGET_COV_MAX"             | "" | "(NPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Net Primary Production"                                   | "PgC/yr" | "2"
+rh_lands               | "HET_RESP VEGET_COV_MAX"        | "" | "(HET_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"        | "Heterotrophic Respiration"                                | "PgC/yr" | "2"
+CONVFLUX_lands         | "CONVFLUX"                      | "" | "(CONVFLUX[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"                   | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands     | "CFLUX_PROD10"                  | "" | "(CFLUX_PROD10[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"               | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands    | "CFLUX_PROD100"                 | "" | "(CFLUX_PROD100[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"              | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+BIOMASS_lands          | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Total Biomass (LANDS)"                               | "PgC"    | "2"
+LITTER_lands           | "TOTAL_BM_LITTER VEGET_COV_MAX" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)" | "Biomass to Litter flux (LANDS)"                      | "PgC/yr" | "2"
+GPP_lands              | "GPP VEGET_COV_MAX"             | "" | "(GPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Gross Primary Produc (LANDS)"                        | "PgC/yr" | "2"
+MAINT_RESP_lands       | "MAINT_RESP VEGET_COV_MAX"      | "" | "(MAINT_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"      | "Maintenance Resp. (LANDS)"                           | "PgC/yr" | "2"
+GROWTH_RESP_lands      | "GROWTH_RESP VEGET_COV_MAX"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Growth Resp. (LANDS)"                                | "PgC/yr" | "2"
+lai_lands              | "lai"                           | "" | "lai[d=1]" 	                                                              | "Leaf Area Fraction"   	                	      | "1"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"               | "" | "treeFracPrimDec[d=1]"                                                        | "Total Primary Deciduous Tree Cover Fraction"         | "%"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver"              | "" | "treeFracPrimEver[d=1]"                                                       | "Total Primary Evergreen Tree Cover Fraction"         | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	                 | "" | "c3PftFrac[d=1]" 	                                                      | "Total C3 PFT Cover Fraction" 	 	              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	                 | "" | "c4PftFrac[d=1]" 	                                                      | "Total C4 PFT Cover Fraction" 		              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+cProduct_lands         | "cProduct"           | "" | "(cProduct[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	            | "Carbon in Products of Land Use Change" 	               | "PgC"    | "2"
+fLuc_lands             | "fLuc"               | "" | "(fLuc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux to Atmosphere from Land Use Change"            | "PgC/yr" | "2"
+ra_lands               | "ra"                 | "" | "(ra[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 		    | "Autotrophic Respiration"			               | "PgC/yr" | "2"
+fVegLitter_lands       | "fVegLitter"         | "" | "(fVegLitter[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Total Carbon Flux from Vegetation to Litter"            | "PgC/yr" | "2"
+fLitterSoil_lands      | "fLitterSoil"        | "" | "(fLitterSoil[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"      | "Total Carbon Flux from Litter to Soil" 	               | "PgC/yr" | "2"
+cLeaf_lands            | "cLeaf"              | "" | "(cLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                      | "Carbon in Leaves"                                       | "PgC"    | "2"
+cWood_lands            | "cWood"              | "" | "(cWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Wood" 			                       | "PgC"    | "2"
+cRoot_lands            | "cRoot"              | "" | "(cRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Roots" 			               | "PgC"    | "2"
+cMisc_lands            | "cMisc"              | "" | "(cMisc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Other Living Compartments" 	               | "PgC"    | "2"
+cLitterAbove_lands     | "cLitterAbove"       | "" | "(cLitterAbove[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Above-Ground Litter" 	                       | "PgC"    | "2"
+cLitterBelow_lands     | "cLitterBelow"       | "" | "(cLitterBelow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Below-Ground Litter" 	                       | "PgC"    | "2"
+cSoilFast_lands        | "cSoilFast"          | "" | "(cSoilFast[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Fast Soil Pool" 		               | "PgC"    | "2"
+cSoilMedium_lands      | "cSoilMedium"        | "" | "(cSoilMedium[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                | "Carbon in Medium Soil Pool" 		               | "PgC"    | "2"
+cSoilSlow_lands        | "cSoilSlow"          | "" | "(cSoilSlow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Slow Soil Pool" 	    	               | "PgC"    | "2"
+nppLeaf_lands          | "nppLeaf" 	      | "" | "(nppLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "PgC/yr" | "2"
+nppWood_lands          | "nppWood" 	      | "" | "(nppWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "PgC/yr" | "2"
+nppRoot_lands          | "nppRoot" 	      | "" | "(nppRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "PgC/yr" | "2"
+nep_lands              | "nep" 		      | "" | "(nep[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	            | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "PgC/yr" | "2"
+cMassVariation_lands   | "cMassVariation"     | "" | "(cMassVariation[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"   | "Carbon Mass Variation"	                               | "PgC/yr" | "2"
+cBal_lands             | "cMassVariation nbp" | "" | "((cMassVariation[d=1,L=2:100000]-nbp[d=2,L=2:100000])*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" | "Total Carbon Balance"    | "PgC/yr" | "2"
+rGrowth_lands          | "rGrowth" 	      | "" | "(rGrowth[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Growth Autotrophic Respiration" 		               | "PgC/yr" | "2"
+rMaint_lands           | "rMaint" 	      | "" | "(rMaint[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Maintenance Autotrophic Respiration" 	               | "PgC/yr" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_stomate_DGVM.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
@@ -0,0 +1,116 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+CONVFLUX_lands      | "CONVFLUX CONTFRAC"                  | "" | "(CONVFLUX[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                           | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands  | "CFLUX_PROD10 CONTFRAC"              | "" | "(CFLUX_PROD10[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                       | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands | "CFLUX_PROD100 CONTFRAC"             | "" | "(CFLUX_PROD100[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+HARVEST_ABOVE_lands | "HARVEST_ABOVE CONTFRAC"             | "" | "(HARVEST_ABOVE[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release product after harvest (LANDS)"                | "PgC/yr" | "2"
+SOIL_CARB_lands     | "TOTAL_SOIL_CARB VEGET_MAX CONTFRAC" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Total Soil Carbon (LANDS)"                                   | "PgC"    | "2"
+BIOMASS_lands       | "TOTAL_M VEGET_MAX CONTFRAC"         | "" | "(TOTAL_M[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Total Biomass (LANDS)"                                       | "PgC"    | "2"
+LITTER_lands        | "TOTAL_BM_LITTER VEGET_MAX CONTFRAC" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)" | "Total Litter (LANDS)"                                        | "PgC/yr" | "2"
+CO2FLUX_MONTHLY_SUM_lands | "CO2FLUX_MONTHLY_SUM VEGET_MAX CONTFRAC" | "" | "(CO2FLUX_MONTHLY_SUM[d=1]*12)"                                 | "NEE Sum (LANDS)"                                             | "PgC/yr" | "Areas[d=1]"
+NPP_lands           | "NPP VEGET_MAX CONTFRAC"             | "" | "(NPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Net Primary Produc (LANDS)"                                  | "PgC/yr" | "2"
+GPP_lands           | "GPP VEGET_MAX CONTFRAC"             | "" | "(GPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Gross Primary Produc (LANDS)"                                | "PgC/yr" | "2"
+HET_RESP_lands      | "HET_RESP VEGET_MAX CONTFRAC"        | "" | "(HET_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"        | "Heterotr. Resp. (LANDS)"                                     | "PgC/yr" | "2"
+MAINT_RESP_lands    | "MAINT_RESP VEGET_MAX CONTFRAC"      | "" | "(MAINT_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"      | "Maintenance Resp. (LANDS)"                                   | "PgC/yr" | "2"
+GROWTH_RESP_lands   | "GROWTH_RESP VEGET_MAX CONTFRAC"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Growth Resp. (LANDS)"                                        | "PgC/yr" | "2"
+cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"			    | "kg C m-2" | "Areas[d=1]"
+cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])" 	    | "Carbon in Litter Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])" 	    | "Carbon in Soil Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])" 	    | "Carbon in Products of Land Use Change" 	    | "kg C m-2" | "Areas[d=1]"
+lai_lands              | "lai"              | "" | "(lai[d=1])" 	    | "Leaf Area Fraction"   	     		    | "1"   	 | "Areas[d=1]"
+gpp_lands              | "gpp"              | "" | "(gpp[d=1])" 	    | "Gross Primary Production" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+ra_lands               | "ra"               | "" | "(ra[d=1])" 		    | "Autotrophic Respiration"			    | "kg C m-2 s-1" | "Areas[d=1]"
+npp_lands              | "npp"              | "" | "(npp[d=1])" 	    | "Net Primary Production" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+rh_lands               | "rh"               | "" | "(rh[d=1])" 		    | "Heterotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+fFire_lands            | "fFire"            | "" | "(fFire[d=1])" 	    | "CO2 Emission from Fire" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])" 	    | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]"
+fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])" 	    | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]"
+nbp_lands              | "nbp"              | "" | "(nbp[d=1])" 	    | "Net Biospheric Production"      	   	    | "kg C m-2 s-1" | "Areas[d=1]"
+fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])" 	    | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]"
+fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])" 	    | "Carbon in Leaves"      	       		    | "kg C m-2" | "Areas[d=1]"
+cWood_lands            | "cWood"            | "" | "(cWood[d=1])" 	    | "Carbon in Wood" 				    | "kg C m-2" | "Areas[d=1]"
+cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])" 	    | "Carbon in Roots" 			    | "kg C m-2" | "Areas[d=1]"
+cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])" 	    | "Carbon in Other Living Compartments" 	    | "kg C m-2" | "Areas[d=1]"
+cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])" 	    | "Carbon in Fast Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])" 	    | "Carbon in Slow Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"   	| "Areas[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%" 	| "Areas[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	    | "" | "(c3PftFrac[d=1])" 	    | "Total C3 PFT Cover Fraction" 	 	    | "%" 	| "Areas[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	    | "" | "(c4PftFrac[d=1])" 	    | "Total C4 PFT Cover Fraction" 		    | "%" 	| "Areas[d=1]"
+rGrowth_lands          | "rGrowth" 	    | "" | "(rGrowth[d=1])" 	    | "Growth Autotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+rMaint_lands           | "rMaint" 	    | "" | "(rMaint[d=1])" 	    | "Maintenance Autotrophic Respiration" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+nppLeaf_lands          | "nppLeaf" 	    | "" | "(nppLeaf[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]"
+nppWood_lands          | "nppWood" 	    | "" | "(nppWood[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]"
+nppRoot_lands          | "nppRoot" 	    | "" | "(nppRoot[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]"
+nep_lands              | "nep" 		    | "" | "(nep[d=1])" 	    | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "kg C m-2 s-1" | "Areas[d=1]"
+cMassVariation_lands     | "cMassVariation"     | "" | "(cMassVariation[d=1])"    | "Carbon Mass Variation"			    | "kg C m-2 s-1" | "Areas[d=1]"
+cBal_lands             | "cMassVariation nbp" | "" | "(cMassVariation[d=1,L=2:1000]-nbp[d=2,L=2:1000])" | "Total Carbon Balance"		    | "kg C m-2 s-1" | "Areas[d=1]"
+ADAPTATION01_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=1])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION02_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=2])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION03_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=3])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION04_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=4])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION05_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=5])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION06_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=6])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION07_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=7])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION08_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=8])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION09_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=9])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION10_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=10])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION11_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=11])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION12_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=12])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION13_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=13])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+REGENERATION01_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=1])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION02_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=2])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION03_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=3])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION04_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=4])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION05_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=5])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION06_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=6])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION07_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=7])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION08_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=8])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION09_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=9])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION10_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=10])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION11_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=11])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION12_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=12])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION13_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=13])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG2/config.card	(revision 5631)
@@ -0,0 +1,129 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#========================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=FG2
+#----- LongName : Some words describing the experiment. LongName will be added in all output files produced by XIOS.
+LongName=""
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=TEST
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=secsto
+#============================
+#-- leap(gregorian), noleap, 360d
+CalendarType=noleap
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1901-01-01
+DateEnd=2010-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1Y
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component: (Component name, tag/version name)
+SRF= (sechiba, orchidee)
+SBG= (stomate, orchidee)
+OOL= (orchidee_ol, orchidee)
+IOS= (xios, XIOS)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+#D- For each component: 
+#D  (Real executable name, temorary name during run, number of process MPI)
+SRF= ("", "")
+SBG= ("", "")
+OOL= (orchidee_ol, orchidee_ol, 31MPI)
+IOS= (xios_server.exe, xios.x, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- OverRule=y : All component will restart from the same simulation
+OverRule=n
+#D- Date of restart file to be used
+RestartDate=1900-12-31
+#D- JobName for the restart file
+RestartJobName=FG1trans
+#D- Path to directory where the RestartJobName directory is stored
+#D- NB! ${ARCHIVE} depend on login. The full path can also be set
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2/PROD/secsto
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=10Y
+#D- Frequency of rebuild submission. Only set NONE if running with 1 XIOS server
+RebuildFrequency=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=10Y
+#D- Activate IgnoreNonMonotonic only when cycling over the same forcing files as for a spin up. 
+IgnoreNonMonotonic=FALSE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=10Y
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+#D- If you want to produce compute PCMDI metrics from seasonal average
+#D- Set TRUE or FALSE to activate/deactivate the metrics computation.
+MetricsPCMDI=FALSE
+
+#========================================================================
+#D-- SRF - SECHIBA
+# Use this section to start from restart file for SRF if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in sechiba.card 
+[SRF]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- SBG - STOMATE
+# Use this section to start from restart file for SBG if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in stomate.card 
+[SBG]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- OOL - Offline driver
+# There is no need to change this section
+[OOL]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- IOS - XIOS
+# There is no need to change this section
+[IOS]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/orchidee_ol.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/orchidee_ol.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/orchidee_ol.card	(revision 5631)
@@ -0,0 +1,32 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# Use XIOS as output library instead of IOIPSL
+XIOS=y
+
+[InitialStateFiles]
+List=()
+
+[BoundaryFiles]
+List=  (${R_IN}/SRF/METEO/WFDEI_GPCC/v1/noleap/WFDEI_GPCC_${year}.nc, forcing_file.nc)
+ListNonDel= ()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .) ,\
+        (${SUBMIT_DIR}/PARAM/iodef.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_orchidee.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_input_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/file_def_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/field_def_orchidee.xml, .)
+
+
+[RestartFiles]
+List=	(driver_rest_out.nc,  driver_rest.nc,  driver_rest_in.nc)
+
+[OutputText]
+List=   (run.def, used_run.def, out_orchidee_ol, iodef.xml, context_orchidee.xml, context_input_orchidee.xml, field_def_orchidee.xml, file_def_orchidee.xml, xios_client_*)
+
+[OutputFiles]
+List= ()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/orchidee_ol.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/orchidee_ol.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/orchidee_ol.driver	(revision 5631)
@@ -0,0 +1,133 @@
+#!/bin/ksh
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    # Set TIME_LENGTH in run.def depending on PeriodLenght in config.card
+    case ${config_UserChoices_PeriodLength} in
+	*M|*m|*D|*d)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${PeriodLengthInDays}D
+	    ;;
+	*s|*Y)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${config_UserChoices_PeriodLength}
+            ;;
+        *)
+            IGCM_debug_Exit "OOL_Update " ${config_UserChoices_PeriodLength} " invalid PeriodLength in config.card : choose between 1Y, 1M, 5D, 1D."
+            IGCM_debug_Verif_Exit
+    esac
+    
+
+    # Set TIME_SKIP only if starting without restart file
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Calculate the TIME_SKIP as difference between the start date and 1th of January the same year
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D
+    else
+	# Here using restart file, set TIME_SKIP=0
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP 0D
+    fi
+
+    # Set RESTART_FILEIN in run.def
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Set RESTART_FILEIN=NONE in run.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN NONE
+    else
+        # Default option using restart file, set RESTART_FILEIN=driver_rest_in.nc in orchidee.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN driver_rest_in.nc
+    fi
+
+    # Reset the simulation date as ORCHIDEE understands it for some special cases
+    # DRIVER_reset_time=y : take the date from the first time step of the forcing file 
+    # DRIVER_reset_time=n : default, take the date from the restart file if existing, else take it from the forcing file
+    if ( ${FirstInitialize} &&  [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+	# Starting a new simulation: take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    elif ( [ X${CyclicYear} = X${config_UserChoices_CyclicBegin} ] && [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+        # Start a new cycle, take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    else
+	# Default option, take the date from the restart file
+	IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time n
+    fi
+
+
+    if [ -f CO2.txt ] ; then
+        # If this file exist, then read CO2 value and set ATM_CO2 in run.def
+        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`
+	if [ X"${IPCC_CO2}" = X ] ; then
+            # The grep returned empty variable: stop execution
+            IGCM_debug_Exit "The file CO2.txt do not contain the current year."
+            IGCM_debug_Verif_Exit
+        fi
+        IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 ${IPCC_CO2}
+    else
+	# The file is not available: take the default value from run.def. 
+	# The syntax in run.def must be respected, for example:
+        # ATM_CO2 = _AUTO_: DEFAULT = 350.
+	IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 DEFAULT
+    fi
+
+
+    # Activation of XIOS
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Add include of orchidee context in iodef.xml
+      # In iodef.xml add on next line after "COMPONENT CONTEXT"
+      #  <context id="orchidee" src="./context_orchidee.xml"/>
+      echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp
+
+      # Add inclusion of file context_input_orchidee.xml if this file exists
+      if [ -f context_input_orchidee.xml ] ; then
+          echo '<context id="orchidee" src="./context_input_orchidee.xml"/>' >> add.tmp
+      fi
+ 
+      cp iodef.xml iodef.xml.tmp
+      sed -e "/COMPONENT CONTEXT/r add.tmp" \
+        iodef.xml.tmp > iodef.xml
+      rm iodef.xml.tmp add.tmp
+
+
+      # Special case if SBG component is not activated: deactivate stomate output files from file_def_orchidee.xml
+      # If SBG is activated, then the stomate.driver will take care of these variables
+      if [ X${config_ListOfComponents_SBG} = X ] ; then
+          # Stomate is not activated
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo      
+      fi
+    fi
+
+
+    # Add LongName as global attribute in all files produced by XIOS (if LongName is not empty)
+    # Remove file_def_input_orchidee.xml from the list. 
+    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then
+	listfile=$(ls file_def*orchidee.xml | grep -v input)
+	echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp
+	for file in ${listfile} ; do
+	    cp ${file} ${file}.tmp
+	    sed -e "/<file id/r add.tmp" \
+		${file}.tmp > ${file}
+	    rm ${file}.tmp 
+	done 
+	rm add.tmp
+    fi
+          
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+    
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,82 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# VEGET_UPDATE=0Y : no change in vegetation map. PFTmap.nc should be set only in InitialStateFiles/List. 
+# VEGET_UPDATE=1Y : change vegetation map every year. PFTmap.nc should be set only in BoundaryFiles/List.
+# Note that the model changed behaviour:
+# - since rev 2717 in the trunk, the map is read in January. In BoundaryFiles/List, copy the map for current year, use the variable ${year}.
+# - for older version, the map is read in December. In BoundaryFiles/List, copy the map for next coming year using the variable ${year_p1}.
+VEGET_UPDATE=1Y
+
+# Specify output level for output files
+# Only the files sechiba_history.nc, sechiba_out_2.nc and sechiba_history_4dim.nc can be set here.
+# output_level_filename=0     : lowest level writing only variables needed for the monitoring
+# output_level_filename=12    : highest level which will output all variables
+# output_level_filename=NONE  : deactivate the file
+output_level_sechiba_history = 11
+output_level_sechiba_out_2 = NONE
+output_level_sechiba_history_4dim = 11
+
+# Specify output frequency for each file [1y, 1mo, 1d, 10800s, 1ts]
+# Settings using WriteFrequency in config.card are not longer used
+output_freq_sechiba_history = 1mo
+output_freq_sechiba_out_2 = 10800s
+output_freq_sechiba_history_4dim = 1mo
+
+
+[InitialStateFiles]
+List=       (${R_IN}/SRF/ROUTING/routing.nc, .),     \
+            (${R_IN}/SRF/SOIL/soils_param.nc, .), \
+            (${R_IN}/SRF/cartepente2d_15min.nc, .), \
+            (${R_IN}/SRF/ROUTING/floodplains.nc, .), \
+            (${R_IN}/SRF/reftemp.nc, .), \
+            (${R_IN}/SRF/albedo/alb_bg_modisopt_2D_ESA_v2.nc, alb_bg.nc)
+	
+[BoundaryFiles]
+List=   (${R_IN}/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1/PFTmap_${year}.nc, PFTmap.nc), \
+        (${R_IN}/SRF/WOODHARVEST/LUH2v2/historical/woodharvest_${year}.nc, woodharvest.nc)
+ListNonDel= ()
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   (used_run.def, out_orchidee, river_desc.nc)
+
+[OutputFiles]
+List=	(sechiba_history.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history.nc, Post_1M_sechiba_history), \
+        (sechiba_history_4dim.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history_4dim.nc, NONE), \
+        (sechiba_out_2.nc, ${R_OUT_SRF_O_H}/${PREFIX}_HF_sechiba_out_2.nc, NONE)
+
+
+[Post_1M_sechiba_history]
+Patches = ()
+GatherWithInternal = (lon, lat, veget, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (nobiofrac, alb_nir, alb_vis, evap, fluxlat, fluxsens, netrad, qair, rain, runoff, snow, snownobio, snowf, frac_snow, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac, TWBR, riverflow, coastalflow, DelSoilMoist_daily, DelIntercept_daily, DelSWE_daily, delstock_routing, snowmelt, LAImean, hydrographs, evapnu, Wind, lwdown, swdown)
+ChunckJob2D = 200Y
+TimeSeriesVars3D = (lai, maxvegetfrac, vegetfrac, ptn, nee, transpir, inter)
+ChunckJob3D = NONE
+Seasonal = ON
+
+# ALMAOUTPUT
+#TimeSeriesVars2D = (nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, ESoil, ECanop, TVeg, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+#TimeSeriesVars3D = (ECanop, TVeg, GPP)
+
+
+[Post_HF_sechiba_out_2]
+Patches = ()
+GatherWithInternal = (lon, lat, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (mrsos, mrro)
+ChunckJob2D = 50Y
+TimeSeriesVars3D = (ptn)
+ChunckJob3D = 10Y
+Seasonal = OFF
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,214 @@
+#!/bin/ksh
+## Driver for the component SRF corresponding to the sechiba part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    ## 1. Modifications in run.def parameter file
+
+    # Activate STOMATE if the compontent SBG=stomate is set in config.card
+    if [ X${config_ListOfComponents_SBG} = Xstomate ] ; then
+	# Activate stomate in run.def
+        IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE y
+    else
+	# Deactivate stomate in run.def
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE n
+ 	# Deactivate output files for stomate
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+    fi
+
+    # Define in run.def if restart file should be used
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in NONE
+
+	# Check if running executable teststomate. In that case sechiba restart file is mandatory.
+	if [ -f teststomate ] ; then
+	    IGCM_debug_Print 1 "Error in launching teststomate !"
+	    IGCM_debug_Exit    "YOU MUST USE EXISTING RESTART FILE FOR SECHIBA WITH JOB TESTSTOMATE!" 
+	    IGCM_debug_Verif_Exit	    
+	fi
+    else
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in sechiba_rest_in.nc
+    fi
+
+
+    # Modify in run.def VEGET_UPDATE if it is set in sechiba.card section UserChoices
+    # VEGET_UPDATE inidcates if the vegetation map should be updated and at which frequency
+    if [ ! X${sechiba_UserChoices_VEGET_UPDATE} = X ] ; then
+	# Take the value from sechiba.card
+	IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE   ${sechiba_UserChoices_VEGET_UPDATE}
+    else
+        # Set default value 0Y
+        IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE 0Y
+    fi
+
+
+    # Activate the creation of river_desc.nc file only during the first execution in the simulation.
+    if [ ${CumulPeriod} -eq 1 ] ; then
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC y
+    else
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC n
+    fi
+
+
+
+    ## 2. Mangement of output and modifications of related xml files
+
+    # Set default values for sechiba1_enabled and sechiba1_freq.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    sechiba1_enabled=.FALSE.
+    sechiba2_enabled=.FALSE.
+    sechiba1_freq=0s
+    sechiba2_freq=0s
+    # These variables are used if XIOS=n
+    SECHIBA_WRITE_STEP=0
+    SECHIBA_WRITE_STEP2=0
+
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Activate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK y
+      # Deactivate IOIPSL output
+      IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP 0
+    else
+      # Deactivate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK n
+    fi
+
+    # Get WriteFrenquecy for SRF (SECHIBA) from config.card
+    # 1 or 2 frequencies can be set in WriteFrenquecy for SRF
+    # The first frequency will always be used for the sechiba_history file and the 
+    # second frequency will be used for the sechiba_out_2.nc file. 
+    # The files are activated only if its corresponding frequency is set in WriteFrequency
+    ifreq=0
+    for frequency in ${config_SRF_WriteFrequency} ; do
+	case ${frequency} in
+	    *Y|*y) 
+		NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' )
+		NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+		file_enabled=.TRUE.
+		file_freq=${NbYears}y
+		(( file_WRITE_STEP = NbYears * NbDaysYear * 86400 )) ;;
+	    *M|*m)
+		NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbMonths}mo
+		# Note only 1M possible with IOIPSL!
+		file_WRITE_STEP=-1. ;;
+	    *D|*d)
+		NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbDays}d
+ 		(( file_WRITE_STEP = NbDays * 86400 )) ;;
+	    *s)
+		WriteInSeconds=$( echo ${frequency} | awk -F '[s]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${WriteInSeconds}s
+		(( file_WRITE_STEP = WriteInSeconds )) ;;
+            HF|hf) 
+		file_enabled=.TRUE. 
+		file_freq=10800s 
+		(( file_WRITE_STEP = 10800 )) ;;
+	    *) 
+		IGCM_debug_Exit "SRF_Update " ${frequency} " invalid WriteFrequency : choose in xY, xM, xD, xs and HF" 
+		IGCM_debug_Verif_Exit ;;
+	esac
+
+	(( ifreq = ifreq + 1 ))
+	case ${ifreq} in
+	    1)
+		sechiba1_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP=${file_WRITE_STEP} ;;
+	    2)
+                sechiba2_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP2=${file_WRITE_STEP} ;;
+            *)
+		IGCM_debug_Exit "SRF_Update: It is not possible to set more than 2 output files for sechiba from config.card"
+		IGCM_debug_Exit "You must correct WriteFrequancy in SRF secion in config.card."
+		IGCM_debug_Exit "Adapt file_def_orchidee.xml directly if you want more output files"
+		IGCM_debug_Verif_Exit ;;
+	esac
+    done
+
+    # Modify file_def_orchidee.xml if XIOS is activated
+    # Settings in config.card WriteFrequency are not used any more. The section above is only used for IOIPSL.
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+	# Modify file_def_orchidee.xml file using settings from sechiba.card/orchidee.card
+	# We here suppose that for each file, in sechiba.card/orchidee.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_history} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history} = XNONE ] ; then
+	    # output_level_sechiba_history is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level ${sechiba_UserChoices_output_level_sechiba_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history}
+	fi
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_out_2} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_out_2} = XNONE ] ; then
+	    # output_level_sechiba_out_2 is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level ${sechiba_UserChoices_output_level_sechiba_out_2}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq  ${sechiba_UserChoices_output_freq_sechiba_out_2}
+	fi
+
+  	if [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = XNONE ] ; then
+	    # output_level_sechiba_history_4dim is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level ${sechiba_UserChoices_output_level_sechiba_history_4dim}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history_4dim}
+	fi
+    fi
+
+
+    # Set IOIPSL output in run.def. This is done for all cases only to avoid AUTO variables during run time. 
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP ${SECHIBA_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP2 ${SECHIBA_WRITE_STEP2}
+
+    # Outputs HF in HISTFILE2 if required
+    if [ ${sechiba2_enabled} = .TRUE. ] ; then
+ 	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 y
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 n
+    fi
+
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,63 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# SPINUP_ANALYTIC=y/n : Activate the spinup analytic option to solve the carbon in soil balance
+SPINUP_ANALYTIC=n
+
+# Specify output level for output files
+# Only the files stomate_history.nc and stomate_ipcc_history.nc can be set here.
+# output_level_filname=0     : lowest level writing only variables needed for the monitoring
+# output_level_filname=10    : highest level which will output all variables
+# output_level_filname=NONE  : deactivate the file
+output_level_stomate_history = 10
+output_level_stomate_ipcc_history = 1
+
+# Specify output frequency for each file [1y, 1mo, 1d]
+# Settings using WriteFrequency in config.card are not longer used
+output_freq_stomate_history = 1mo
+output_freq_stomate_ipcc_history = 1mo
+
+
+[InitialStateFiles]
+List=   ()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=   (${R_IN}/SRF/CO2_1860_2012_TRENDY2.txt, CO2.txt)
+
+
+[RestartFiles]
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=	(stomate_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_history.nc, Post_1M_stomate_history) \
+    (stomate_ipcc_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_ipcc_history.nc, Post_1M_stomate_ipcc_history)
+
+[Post_1M_stomate_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D= (T2M_MONTH,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,HARVEST_ABOVE)
+ChunckJob2D = NONE
+TimeSeriesVars3D= (LAI,VEGET_COV_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION,CARBON_ACTIVE,CARBON_SLOW,CARBON_PASSIVE,LITTER_STR_AB,LITTER_STR_BE,LITTER_MET_AB,LITTER_MET_BE,TOTAL_TURN,WOOD_HARVEST_PFT)
+ChunckJob3D = 100Y
+Seasonal=ON
+
+[Post_1M_stomate_ipcc_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D=(cVeg, cLitter, cSoil, cProduct, cMassVariation, lai, gpp, ra, npp, rh, fFire, fHarvest, fLuc, nbp, fVegLitter, fLitterSoil, cLeaf, cWood, cRoot, cMisc, cLitterAbove, cLitterBelow, cSoilFast, cSoilMedium, cSoilSlow, landCoverFrac, treeFracPrimDec, treeFracPrimEver, c3PftFrac, c4PftFrac, rGrowth, rMaint, nppLeaf, nppWood, nppRoot, nep, fWoodharvest)
+ChunckJob2D = NONE
+TimeSeriesVars3D=()
+ChunckJob3D = NONE
+Seasonal=ON
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,147 @@
+#!/bin/ksh
+## Driver for the component SBG corresponding to the stomate part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    # For IOIPSL: get frequency from config.card
+    # Set default values for stomate output files.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    stomate_enabled=.FALSE.
+    stomate_freq=0s
+
+    # Read WriteFrequency set in config.card section SBG. 
+    # Only one choice can be set as WriteFrequency. The same choice will be used for 
+    # both stomate_history and stomate_ipcc_history files. 
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    NbYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbYears}y
+	    (( STOMATE_WRITE_STEP = NbYears * NbDaysYear )) 
+        ;;
+	*M|*m) 
+	    NbMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbMonths}mo
+	    # Note only 1M possible with IOIPSL!
+	    STOMATE_WRITE_STEP=-1. ;;
+	*D|*d)
+	    NbDays=$( echo ${config_SBG_WriteFrequency} | awk -F '[dD]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbDays}d
+	    STOMATE_WRITE_STEP=${NbDays} ;;
+    esac
+
+    # Modify file_def_orchidee.def if XIOS is activated using information in stomate.card
+    # Settings in config.card WriteFrequency are not used any more.
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+
+	# Modify file_def_orchidee.xml file using settings from stomate.card
+	# We here suppose that for each file, in stomate.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${stomate_UserChoices_output_level_stomate_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_history} = XNONE ] ; then
+	    # output_level_stomate_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level ${stomate_UserChoices_output_level_stomate_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq  ${stomate_UserChoices_output_freq_stomate_history}
+	fi
+
+	if [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = XNONE ] ; then
+	    # output_level_stomate_ipcc_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level ${stomate_UserChoices_output_level_stomate_ipcc_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq  ${stomate_UserChoices_output_freq_stomate_ipcc_history}
+	fi
+
+
+
+        # Deactivate stomate IOIPSL output
+	(( STOMATE_WRITE_STEP = 0 ))
+    fi
+
+
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC y
+      
+       # Test if CyclicBegin and CyclicEnd is set in config.card
+       if ( [ X${config_UserChoices_CyclicBegin} = X ] || [ X${config_UserChoices_CyclicEnd} = X ] ) ; then
+           IGCM_debug_Exit "CyclicBegin and CyclicEnd must be set in config.card to run option spinup_analytic."
+       fi
+       # Calculate and set number of years of forcing data
+       CycleNb=$(( ${config_UserChoices_CyclicEnd} - ${config_UserChoices_CyclicBegin} + 1 ))
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD ${CycleNb}
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC n
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD -1
+    fi
+
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP}
+
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "STOMATE : without restart"
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN NONE
+    else
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+    fi
+
+
+    # Special case using forcesoil executable
+    if [ -f forcesoil ] ; then
+	# Set STOMATE_CFORCING_NAME
+        IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+
+	# Check if restart file is missing
+	if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+            IGCM_debug_Exit "YOU MUST USE OLD STOMATE RESTART FILE WITH THE JOB FORCESOIL."
+            IGCM_debug_Verif_Exit
+	fi
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME NONE
+    fi
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+#   Check if equilibrium is reached for spinup analytic
+#   and if true stop the simulation in the end of this period.
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+      CondSpinup=$(grep -a  "Equilibrium for carbon pools is reached"  out_*)
+      if [ X"${CondSpinup}" != X ] ; then
+	  IGCM_debug_Print 1 "SPINUP ANALYTIC :  your spinup is successful :"
+	  IGCM_debug_Print 1 ${CondSpinup}
+	  IGCM_debug_Print 1  "You can now stop the simulation if you want."
+      fi
+    fi
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/xios.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/xios.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/xios.card	(revision 5631)
@@ -0,0 +1,29 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+
+[InitialStateFiles]
+List=	()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+List=	(NONE)
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   ()
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/xios.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/xios.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/COMP/xios.driver	(revision 5631)
@@ -0,0 +1,40 @@
+#!/bin/ksh
+#-----------------------------------
+function IOS_Initialize
+{ 
+    IGCM_debug_PushStack "IOS_Initialize"
+
+    echo INITIALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Initialize"
+}
+
+#-----------------------------------
+function IOS_Update
+{
+    IGCM_debug_PushStack "IOS_Update"
+
+    echo UPDATE IOS !!!
+# Activate server mode
+    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true
+# If lmdz_UserChoices_XIOS=y add LMDZ as component id :
+    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then
+	IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx
+    fi 
+    if [ -f namcouple ] ; then
+	sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 
+	IGCM_sys_Mv namcouple.tmp namcouple
+    fi
+
+    IGCM_debug_PopStack "IOS_Update"
+}
+
+#-----------------------------------
+function IOS_Finalize
+{
+    IGCM_debug_PushStack "IOS_Finalize"
+
+    echo FINALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/iodef.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/iodef.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/iodef.xml	(revision 5631)
@@ -0,0 +1,1 @@
+link iodef_xios2.xml
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/iodef_xios1.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/iodef_xios1.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/iodef_xios1.xml	(revision 5631)
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 1.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) -->
+	  <variable id="buffer_size"               type="integer">15000000</variable>
+	  <variable id="buffer_server_factor_size" type="integer">2</variable>
+	  <variable id="info_level"                type="integer">1</variable>
+	  <variable id="using_server"              type="boolean">false</variable>
+	  <variable id="using_oasis"               type="boolean">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/iodef_xios2.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/iodef_xios2.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/iodef_xios2.xml	(revision 5631)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 2.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+	  <variable id="info_level"                type="int">1</variable>
+	  <variable id="using_server"              type="bool">false</variable>
+	  <variable id="using_oasis"               type="bool">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/run.def	(revision 5631)
@@ -0,0 +1,149 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+
+#**************************************************************************
+#           Suggested parameter set up for ORCHIDEE 2.0
+# See all optional parameters in modipsl/modeles/ORCHIDEE/orchidee.default
+#
+# Note when running with libIGCM, variables set here to _AUTOBLOCKER_ can 
+# not be changed in run.def otherwwise the simulation will stop. Variables 
+# set to _AUTO_ can be changed from the comp.card but they can also be 
+# changed directly in the run.def. A value set in run.def can never be
+# changed again by libIGCM. 
+#**************************************************************************
+
+# Activate Stomate component (default y)
+STOMATE_OK_STOMATE = _AUTOBLOCKER_ 
+
+# Time length for one intergration (default full lenght of forcing file)
+TIME_LENGTH = _AUTO_
+
+# Parameters related to the restart file and the start date
+#**************************************************************************
+# Time in the forcing file at which the model start if start date is not set by the forcing file (default 0)
+TIME_SKIP = _AUTO_
+
+# If DRIVER_reset_time=y, read the year from forcing file instead of taking it from restart file (default n)
+DRIVER_reset_time = _AUTO_
+
+# Name of restart file for the driver (default NONE)
+RESTART_FILEIN = _AUTOBLOCKER_
+
+# Name of restart file for sechiba part of the model (default NONE)
+SECHIBA_restart_in = _AUTOBLOCKER_
+
+# Name of restart file for stomate part of the model (default NONE)
+STOMATE_RESTART_FILEIN = _AUTOBLOCKER_
+
+# Parameters related to the diagnostic output files
+#**************************************************************************
+# Use XIOS for writing diagnostics file (defulat y)
+XIOS_ORCHIDEE_OK = _AUTOBLOCKER_
+
+# Flag to activate sechiba_out_2.nc history file when using IOIPSL for SECHIBA (defulat n)
+SECHIBA_HISTFILE2 = _AUTO_
+
+# Writefrequency in seconds in sechiba_history.nc when using IOIPSL (default 86400)
+# If WRITE_STEP=0 then all IOIPSL output are deactivated
+WRITE_STEP = _AUTO_
+
+# Writefrequency in seconds sechiba_out_2.nc when using IOIPSL (default 1800)
+WRITE_STEP2 = _AUTO_ 
+
+# Writefrequency in days in stomate_history.nc when using IOIPSL (default 10)
+STOMATE_HIST_DT = _AUTO_
+
+# Writefrequency in days or -1 for monthly output in stomate_ipcc_history.nc when using IOIPSL (default 0)
+STOMATE_IPCC_HIST_DT = _AUTO_
+
+# Print level for text output in out_orchidee_*
+# PRINTLEV = 1 : some output in initialization phase
+# PRINTLEV = 2 : more output in initialization phase and printing of new date
+# PRINTLEV = 3, 4,.. : more output also at each timestep
+PRINTLEV=2
+
+# Hydrology parameters
+#**************************************************************************
+# Activate the multi-layer diffusion scheme adapted from CWRR (default y)
+HYDROL_CWRR = y
+
+# Activate river routing (default y)
+RIVER_ROUTING = y
+
+# Activate creation of river_desc.nc file
+# RIVER_DESC will be activated only the first execution in the simulation
+RIVER_DESC = _AUTO_
+
+# SOILTYPE_CLASSIF :  Type of classification used for the map of soil types (default zobler)
+SOILTYPE_CLASSIF = zobler 
+
+# Parameters related to vegetation map
+#**************************************************************************
+# Update vegetation frequency (default 0Y)
+VEGET_UPDATE = _AUTO_
+
+# Read lai map (default n)
+LAI_MAP = n
+
+# Prescribed vegetation (default n)
+IMPOSE_VEG = n
+
+# Parameters related to surface and thermal physical properties
+#************************************************************************
+# ROUGH_DYN : Account for a dynamic roughness height (activation of Su et al. parametrization) (default y)
+ROUGH_DYN=y
+
+# OK_FREEZE :  Activate the complet soil freezing scheme (default y)
+OK_FREEZE=y
+
+# OK_EXPLICITSNOW :  Activate explict snow scheme (default y)
+OK_EXPLICITSNOW=y
+
+# Carbon related parameters
+#**************************************************************************
+# Analytic spinup (default n)
+SPINUP_ANALYTIC = _AUTO_
+SPINUP_PERIOD = _AUTO_
+
+# Value for atmospheric CO2 (default=350)
+ATM_CO2 = _AUTO_: DEFAULT = 350.
+
+# Activate harvest of wood (default y)
+DO_WOOD_HARVEST=y
+
+# Deactivate fire (default FIRE_DISABLE=y)
+FIRE_DISABLE=y
+
+# Optimized parameters to be used with PFTmap with 15 pfts such as
+# files in IGCM/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1
+#**************************************************************************
+# Use 15 PFTs. Note that PFTmap.nc must contains 15PFTs.
+# PFT=10, 14 and 15 share the same parametrization except for VCMAX25, LAI_MAX, FRAC_GROWTHRESP, 
+# MAINT_RESP_SLOPE_C and ALWAYS_INIT specified below.  
+# (default NVM=13)
+NVM=15
+PFT_TO_MTC=1,2,3,4,5,6,7,8,9,10,11,12,13,10,10
+PFT_NAME__10='temperate C3           grass      '
+PFT_NAME__14='tropical  C3           grass      '
+PFT_NAME__15='boreal    C3           grass      '
+
+VCMAX25__10 = 50.0 
+VCMAX25__14 = 50.0 
+VCMAX25__15 = 40.0
+
+LAI_MAX__10 = 2.5
+LAI_MAX__14 = 2.5
+LAI_MAX__15 = 2.0
+
+FRAC_GROWTHRESP__10 = 0.28
+FRAC_GROWTHRESP__14 = 0.35
+FRAC_GROWTHRESP__15 = 0.35
+
+MAINT_RESP_SLOPE_C__10 = 0.16
+MAINT_RESP_SLOPE_C__14 = 0.12
+MAINT_RESP_SLOPE_C__15 = 0.25
+
+ALWAYS_INIT__10 = y
+ALWAYS_INIT__14 = n
+ALWAYS_INIT__15 = y
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,60 @@
+##################################################################################################################
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+delta_water_stock | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily" |  "" | "((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] + delstock_routing_daily[d=5,l=2:100000])" | "Change in total water stock (LANDS) " | "kg/day/m2 of land" | "Areas[d=2]*Contfrac[d=2]"
+water_budget_closure | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily rain snowf evap riverflow coastalflow" | "" | "(((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] +  delstock_routing_daily[d=5,l=2:100000])*Areas[d=1]*Contfrac[d=1] -  ((rain[d=6,l=2:100000] + snowf[d=7,l=2:100000] - evap[d=8,l=2:100000])*Areas[d=1]*Contfrac[d=1]  - (riverflow[d=9,l=2:100000] + coastalflow[d=10,l=2:100000])*1000*86400 ))/(4*3.14*6370000*6370000*0.26)" | "Water budget closure (LANDS) " | "kg/day/m2 of land" | "2"
+twbr_lands       | "TWBR"             |  "" | "twbr[d=1,l=2:100000]*86400"       | "Hydrol water buget residu (LANDS)" | "kg/m^2/d" | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands   | "temp_sol"         |  "" | "temp_sol[d=1]"                    | "TSOL (LANDS)"                      | "C"        | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands   | "fluxsens"         |  "" | "fluxsens[d=1]"                    | "Sensible Flux (LANDS)"             | "W/m^2"    | "Areas[d=1]*Contfrac[d=1]"
+evap_lands       | "evap"             |  "" | "evap[d=1]"                        | "Evaporation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+evapnu_lands     | "evapnu"           |  "" | "evapnu[d=1]"                      | "Soil evaporation (LANDS)"          | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+transpir_lands   | "transpir"         |  "" | "transpir[d=1,k=@sum]"             | "Transpiration (sum over all PFT, LANDS)" | "mm/d" | "Areas[d=1]*Contfrac[d=1]"
+subli_lands      | "subli"            |  "" | "subli[d=1]"                       | "Sublimation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+snow_swe_lands   | "frac_snow snow"   |  "" | "snow[d=2]"                        | "Snow Mass (LANDS)"                 | "kg/m^2"   | "Areas[d=2]*Contfrac[d=2]"
+snownobio_lands  | "snownobio"        |  "" | "snownobio[d=1]"                   | "Snow Other Surfaces (LANDS)"       | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands      | "snowf"            |  "" | "snowf[d=1]"                       | "Snowfall (LANDS)"                  | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+precip_lands     | "rain snowf"       |  "" | "rain[d=1] + snowf[d=2]"           | "Total precipitaion (LANDS)"        | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+runoff_lands     | "runoff"           |  "" | "runoff[d=1]"                      | "Surface runoff  (LANDS)"           | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+drainage_lands   | "drainage"         |  "" | "drainage[d=1]"                    | "Drainage  (LANDS)"                 | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands   | "mrso"             |  "" | "mrso[d=1]"                        | "Total Soil Moisture  (LANDS)"      | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+surface_humidity_lands | "mrsos"      |  "" | "mrsos[d=1]"                       | "Top 10cm soil moisture  (LANDS)"   | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands     | "alb_vis alb_nir"  |  "" | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"               | "1"        | "Areas[d=1]*Contfrac[d=1]"
+lai_lands        | "LAImean"          |  "" | "LAImean[d=1]"                     | "LAI (mean excluding PFT=1) (LANDS)"| "1"        | "Areas[d=1]*Contfrac[d=1]"
+nee_lands        | "nee maxvegetfrac" |  "" | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"   | "Net Ecosystem Exchange" | "PgC/yr" | "2"
+maxvegetagri_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=12:13@sum]"    | "veget_max fraction of agriculture [sum of pft=12,13] "| "1"  | "Areas[d=1]*Contfrac[d=1]"
+maxvegetbare_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=1]"            | "veget_max fraction on bare soil [pft=1] "             | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=2:9@sum]"         | "veget trees[sum of pft=2:9] (LANDS)"                  | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetg_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=10:11@sum]+vegetfrac[d=1,K=14:15@sum]"       | "veget natural grasses[sum of pft=10,11,14,15] (LANDS)"      | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegeta_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=12:13@sum]"       | "veget agriculture [sum of pft=12,13] (LANDS)"         | "1"  | "Areas[d=1]*Contfrac[d=1]"
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,69 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+maxveget_forcing | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12,13] "  | "Mkm^2"  | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai02_lands    | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai03_lands    | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai04_lands    | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai05_lands    | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai06_lands    | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai07_lands    | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai08_lands    | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai09_lands    | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_stomate.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_stomate.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_stomate.cfg	(revision 5631)
@@ -0,0 +1,79 @@
+##################################################################################################################
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+woodharvest_fromforcing| "WOOD_HARVEST_PFT VEGET_COV_MAX"| "" | "(WOOD_HARVEST_PFT[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"| "Wood harvest read from file and prepared to be used"      | "PgC/yr"    | "2"
+fwoodharvest_lands     | "fWoodharvest"                  | "" | "fWoodharvest[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15"              | "CO2 Flux from wood harvesting, positive from atm to land" | "PgC/yr"    | "2"
+fLuc_fHarvest_lands    | "CONVFLUX CFLUX_PROD10 CFLUX_PROD100 HARVEST_ABOVE"  | "" | "((CONVFLUX[d=1]+CFLUX_PROD10[d=2]+CFLUX_PROD100[d=3]+HARVEST_ABOVE[d=4])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)" | "CO2 flux from Land Use Change and Crop Harvesting" | "PgC/yr" | "2"
+fHarvest_lands         | "HARVEST_ABOVE"                 | "" | "((HARVEST_ABOVE[d=1])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"                    | "CO2 flux from Land Use Change and Crop Harvesting"        | "PgC/yr" | "2"
+nbp_lands              | "nbp"                           | "" | "(nbp[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365/1e12)"                          | "Net Biospheric Production"                                | "PgC/yr" | "2"
+cSoil_lands            | "TOTAL_SOIL_CARB VEGET_COV_MAX" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Carbon Soil in Pool"                                      | "PgC"    | "2"
+cVeg_lands             | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Carbon in vegetation"                                     | "PgC"    | "2"
+npp_lands              | "NPP VEGET_COV_MAX"             | "" | "(NPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Net Primary Production"                                   | "PgC/yr" | "2"
+rh_lands               | "HET_RESP VEGET_COV_MAX"        | "" | "(HET_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"        | "Heterotrophic Respiration"                                | "PgC/yr" | "2"
+CONVFLUX_lands         | "CONVFLUX"                      | "" | "(CONVFLUX[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"                   | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands     | "CFLUX_PROD10"                  | "" | "(CFLUX_PROD10[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"               | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands    | "CFLUX_PROD100"                 | "" | "(CFLUX_PROD100[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"              | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+BIOMASS_lands          | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Total Biomass (LANDS)"                               | "PgC"    | "2"
+LITTER_lands           | "TOTAL_BM_LITTER VEGET_COV_MAX" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)" | "Biomass to Litter flux (LANDS)"                      | "PgC/yr" | "2"
+GPP_lands              | "GPP VEGET_COV_MAX"             | "" | "(GPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Gross Primary Produc (LANDS)"                        | "PgC/yr" | "2"
+MAINT_RESP_lands       | "MAINT_RESP VEGET_COV_MAX"      | "" | "(MAINT_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"      | "Maintenance Resp. (LANDS)"                           | "PgC/yr" | "2"
+GROWTH_RESP_lands      | "GROWTH_RESP VEGET_COV_MAX"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Growth Resp. (LANDS)"                                | "PgC/yr" | "2"
+lai_lands              | "lai"                           | "" | "lai[d=1]" 	                                                              | "Leaf Area Fraction"   	                	      | "1"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"               | "" | "treeFracPrimDec[d=1]"                                                        | "Total Primary Deciduous Tree Cover Fraction"         | "%"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver"              | "" | "treeFracPrimEver[d=1]"                                                       | "Total Primary Evergreen Tree Cover Fraction"         | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	                 | "" | "c3PftFrac[d=1]" 	                                                      | "Total C3 PFT Cover Fraction" 	 	              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	                 | "" | "c4PftFrac[d=1]" 	                                                      | "Total C4 PFT Cover Fraction" 		              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+cProduct_lands         | "cProduct"           | "" | "(cProduct[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	            | "Carbon in Products of Land Use Change" 	               | "PgC"    | "2"
+fLuc_lands             | "fLuc"               | "" | "(fLuc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux to Atmosphere from Land Use Change"            | "PgC/yr" | "2"
+ra_lands               | "ra"                 | "" | "(ra[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 		    | "Autotrophic Respiration"			               | "PgC/yr" | "2"
+fVegLitter_lands       | "fVegLitter"         | "" | "(fVegLitter[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Total Carbon Flux from Vegetation to Litter"            | "PgC/yr" | "2"
+fLitterSoil_lands      | "fLitterSoil"        | "" | "(fLitterSoil[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"      | "Total Carbon Flux from Litter to Soil" 	               | "PgC/yr" | "2"
+cLeaf_lands            | "cLeaf"              | "" | "(cLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                      | "Carbon in Leaves"                                       | "PgC"    | "2"
+cWood_lands            | "cWood"              | "" | "(cWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Wood" 			                       | "PgC"    | "2"
+cRoot_lands            | "cRoot"              | "" | "(cRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Roots" 			               | "PgC"    | "2"
+cMisc_lands            | "cMisc"              | "" | "(cMisc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Other Living Compartments" 	               | "PgC"    | "2"
+cLitterAbove_lands     | "cLitterAbove"       | "" | "(cLitterAbove[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Above-Ground Litter" 	                       | "PgC"    | "2"
+cLitterBelow_lands     | "cLitterBelow"       | "" | "(cLitterBelow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Below-Ground Litter" 	                       | "PgC"    | "2"
+cSoilFast_lands        | "cSoilFast"          | "" | "(cSoilFast[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Fast Soil Pool" 		               | "PgC"    | "2"
+cSoilMedium_lands      | "cSoilMedium"        | "" | "(cSoilMedium[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                | "Carbon in Medium Soil Pool" 		               | "PgC"    | "2"
+cSoilSlow_lands        | "cSoilSlow"          | "" | "(cSoilSlow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Slow Soil Pool" 	    	               | "PgC"    | "2"
+nppLeaf_lands          | "nppLeaf" 	      | "" | "(nppLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "PgC/yr" | "2"
+nppWood_lands          | "nppWood" 	      | "" | "(nppWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "PgC/yr" | "2"
+nppRoot_lands          | "nppRoot" 	      | "" | "(nppRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "PgC/yr" | "2"
+nep_lands              | "nep" 		      | "" | "(nep[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	            | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "PgC/yr" | "2"
+cMassVariation_lands   | "cMassVariation"     | "" | "(cMassVariation[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"   | "Carbon Mass Variation"	                               | "PgC/yr" | "2"
+cBal_lands             | "cMassVariation nbp" | "" | "((cMassVariation[d=1,L=2:100000]-nbp[d=2,L=2:100000])*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" | "Total Carbon Balance"    | "PgC/yr" | "2"
+rGrowth_lands          | "rGrowth" 	      | "" | "(rGrowth[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Growth Autotrophic Respiration" 		               | "PgC/yr" | "2"
+rMaint_lands           | "rMaint" 	      | "" | "(rMaint[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Maintenance Autotrophic Respiration" 	               | "PgC/yr" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_stomate_DGVM.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
@@ -0,0 +1,116 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+CONVFLUX_lands      | "CONVFLUX CONTFRAC"                  | "" | "(CONVFLUX[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                           | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands  | "CFLUX_PROD10 CONTFRAC"              | "" | "(CFLUX_PROD10[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                       | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands | "CFLUX_PROD100 CONTFRAC"             | "" | "(CFLUX_PROD100[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+HARVEST_ABOVE_lands | "HARVEST_ABOVE CONTFRAC"             | "" | "(HARVEST_ABOVE[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release product after harvest (LANDS)"                | "PgC/yr" | "2"
+SOIL_CARB_lands     | "TOTAL_SOIL_CARB VEGET_MAX CONTFRAC" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Total Soil Carbon (LANDS)"                                   | "PgC"    | "2"
+BIOMASS_lands       | "TOTAL_M VEGET_MAX CONTFRAC"         | "" | "(TOTAL_M[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Total Biomass (LANDS)"                                       | "PgC"    | "2"
+LITTER_lands        | "TOTAL_BM_LITTER VEGET_MAX CONTFRAC" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)" | "Total Litter (LANDS)"                                        | "PgC/yr" | "2"
+CO2FLUX_MONTHLY_SUM_lands | "CO2FLUX_MONTHLY_SUM VEGET_MAX CONTFRAC" | "" | "(CO2FLUX_MONTHLY_SUM[d=1]*12)"                                 | "NEE Sum (LANDS)"                                             | "PgC/yr" | "Areas[d=1]"
+NPP_lands           | "NPP VEGET_MAX CONTFRAC"             | "" | "(NPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Net Primary Produc (LANDS)"                                  | "PgC/yr" | "2"
+GPP_lands           | "GPP VEGET_MAX CONTFRAC"             | "" | "(GPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Gross Primary Produc (LANDS)"                                | "PgC/yr" | "2"
+HET_RESP_lands      | "HET_RESP VEGET_MAX CONTFRAC"        | "" | "(HET_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"        | "Heterotr. Resp. (LANDS)"                                     | "PgC/yr" | "2"
+MAINT_RESP_lands    | "MAINT_RESP VEGET_MAX CONTFRAC"      | "" | "(MAINT_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"      | "Maintenance Resp. (LANDS)"                                   | "PgC/yr" | "2"
+GROWTH_RESP_lands   | "GROWTH_RESP VEGET_MAX CONTFRAC"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Growth Resp. (LANDS)"                                        | "PgC/yr" | "2"
+cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"			    | "kg C m-2" | "Areas[d=1]"
+cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])" 	    | "Carbon in Litter Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])" 	    | "Carbon in Soil Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])" 	    | "Carbon in Products of Land Use Change" 	    | "kg C m-2" | "Areas[d=1]"
+lai_lands              | "lai"              | "" | "(lai[d=1])" 	    | "Leaf Area Fraction"   	     		    | "1"   	 | "Areas[d=1]"
+gpp_lands              | "gpp"              | "" | "(gpp[d=1])" 	    | "Gross Primary Production" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+ra_lands               | "ra"               | "" | "(ra[d=1])" 		    | "Autotrophic Respiration"			    | "kg C m-2 s-1" | "Areas[d=1]"
+npp_lands              | "npp"              | "" | "(npp[d=1])" 	    | "Net Primary Production" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+rh_lands               | "rh"               | "" | "(rh[d=1])" 		    | "Heterotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+fFire_lands            | "fFire"            | "" | "(fFire[d=1])" 	    | "CO2 Emission from Fire" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])" 	    | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]"
+fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])" 	    | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]"
+nbp_lands              | "nbp"              | "" | "(nbp[d=1])" 	    | "Net Biospheric Production"      	   	    | "kg C m-2 s-1" | "Areas[d=1]"
+fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])" 	    | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]"
+fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])" 	    | "Carbon in Leaves"      	       		    | "kg C m-2" | "Areas[d=1]"
+cWood_lands            | "cWood"            | "" | "(cWood[d=1])" 	    | "Carbon in Wood" 				    | "kg C m-2" | "Areas[d=1]"
+cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])" 	    | "Carbon in Roots" 			    | "kg C m-2" | "Areas[d=1]"
+cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])" 	    | "Carbon in Other Living Compartments" 	    | "kg C m-2" | "Areas[d=1]"
+cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])" 	    | "Carbon in Fast Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])" 	    | "Carbon in Slow Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"   	| "Areas[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%" 	| "Areas[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	    | "" | "(c3PftFrac[d=1])" 	    | "Total C3 PFT Cover Fraction" 	 	    | "%" 	| "Areas[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	    | "" | "(c4PftFrac[d=1])" 	    | "Total C4 PFT Cover Fraction" 		    | "%" 	| "Areas[d=1]"
+rGrowth_lands          | "rGrowth" 	    | "" | "(rGrowth[d=1])" 	    | "Growth Autotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+rMaint_lands           | "rMaint" 	    | "" | "(rMaint[d=1])" 	    | "Maintenance Autotrophic Respiration" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+nppLeaf_lands          | "nppLeaf" 	    | "" | "(nppLeaf[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]"
+nppWood_lands          | "nppWood" 	    | "" | "(nppWood[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]"
+nppRoot_lands          | "nppRoot" 	    | "" | "(nppRoot[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]"
+nep_lands              | "nep" 		    | "" | "(nep[d=1])" 	    | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "kg C m-2 s-1" | "Areas[d=1]"
+cMassVariation_lands     | "cMassVariation"     | "" | "(cMassVariation[d=1])"    | "Carbon Mass Variation"			    | "kg C m-2 s-1" | "Areas[d=1]"
+cBal_lands             | "cMassVariation nbp" | "" | "(cMassVariation[d=1,L=2:1000]-nbp[d=2,L=2:1000])" | "Total Carbon Balance"		    | "kg C m-2 s-1" | "Areas[d=1]"
+ADAPTATION01_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=1])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION02_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=2])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION03_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=3])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION04_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=4])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION05_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=5])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION06_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=6])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION07_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=7])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION08_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=8])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION09_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=9])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION10_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=10])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION11_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=11])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION12_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=12])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION13_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=13])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+REGENERATION01_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=1])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION02_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=2])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION03_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=3])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION04_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=4])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION05_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=5])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION06_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=6])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION07_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=7])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION08_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=8])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION09_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=9])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION10_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=10])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION11_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=11])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION12_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=12])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION13_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=13])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3/config.card	(revision 5631)
@@ -0,0 +1,129 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#========================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=FG3
+#----- LongName : Some words describing the experiment. LongName will be added in all output files produced by XIOS.
+LongName=""
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=TEST
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=secsto
+#============================
+#-- leap(gregorian), noleap, 360d
+CalendarType=noleap
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1979-01-01
+DateEnd=2009-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1Y
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component: (Component name, tag/version name)
+SRF= (sechiba, orchidee)
+SBG= (stomate, orchidee)
+OOL= (orchidee_ol, orchidee)
+IOS= (xios, XIOS)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+#D- For each component: 
+#D  (Real executable name, temorary name during run, number of process MPI)
+SRF= ("", "")
+SBG= ("", "")
+OOL= (orchidee_ol, orchidee_ol, 63MPI)
+IOS= (xios_server.exe, xios.x, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- OverRule=y : All component will restart from the same simulation
+OverRule=n
+#D- Date of restart file to be used
+RestartDate=1981-12-31
+#D- JobName for the restart file
+RestartJobName=CD1
+#D- Path to directory where the RestartJobName directory is stored
+#D- NB! ${ARCHIVE} depend on login. The full path can also be set
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2/PROD/secsto
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=1Y
+#D- Frequency of rebuild submission. Only set NONE if running with 1 XIOS server
+RebuildFrequency=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=10Y
+#D- Activate IgnoreNonMonotonic only when cycling over the same forcing files as for a spin up. 
+IgnoreNonMonotonic=FALSE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=10Y
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset=1
+#D- If you want to produce compute PCMDI metrics from seasonal average
+#D- Set TRUE or FALSE to activate/deactivate the metrics computation.
+MetricsPCMDI=FALSE
+
+#========================================================================
+#D-- SRF - SECHIBA
+# Use this section to start from restart file for SRF if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in sechiba.card 
+[SRF]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- SBG - STOMATE
+# Use this section to start from restart file for SBG if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in stomate.card 
+[SBG]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- OOL - Offline driver
+# There is no need to change this section
+[OOL]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- IOS - XIOS
+# There is no need to change this section
+[IOS]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/orchideedriver.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/orchideedriver.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/orchideedriver.card	(revision 5631)
@@ -0,0 +1,34 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# Use XIOS as output library instead of IOIPSL
+XIOS=y
+
+[InitialStateFiles]
+List=()
+
+[BoundaryFiles]
+List=  (${R_IN}/SRF/METEO/WFDEI_GPCC/v2/leap/WFDEI_GPCC_${year_m1}.nc, forcing_yearm1.nc),\
+       (${R_IN}/SRF/METEO/WFDEI_GPCC/v2/leap/WFDEI_GPCC_${year}.nc, forcing_year.nc),\
+       (${R_IN}/SRF/METEO/WFDEI_GPCC/v2/leap/WFDEI_GPCC_${year_p1}.nc, forcing_yearp1.nc)
+ListNonDel= ()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .) ,\
+        (${SUBMIT_DIR}/PARAM/iodef.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_orchidee.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_input_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/file_def_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/field_def_orchidee.xml, .)
+
+
+[RestartFiles]
+List=	(NONE)
+
+[OutputText]
+List=   (run.def, used_run.def, out_orchidee_ol, iodef.xml, context_orchidee.xml, field_def_orchidee.xml, file_def_*orchidee.xml, xios_client_*)
+
+[OutputFiles]
+List= ()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/orchideedriver.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/orchideedriver.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/orchideedriver.driver	(revision 5631)
@@ -0,0 +1,95 @@
+#!/bin/ksh
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    # Set start and end date based on information from config.card
+    HumanDateBegin=$(   IGCM_date_ConvertFormatToHuman ${PeriodDateBegin} )
+    IGCM_comp_modifyDefFile nonblocker run.def START_DATE ${HumanDateBegin}" 00:00:00"
+    HumanDateEnd=$(     IGCM_date_ConvertFormatToHuman ${PeriodDateEnd} )
+    IGCM_comp_modifyDefFile nonblocker run.def END_DATE ${HumanDateEnd}" 24:00:00"
+    
+    # Set RESTART_FILEIN in run.def
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Set RESTART_FILEIN=NONE in run.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN NONE
+    else
+        # Default option using restart file, set RESTART_FILEIN=driver_rest_in.nc in orchidee.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN driver_rest_in.nc
+    fi
+
+    if [ -f CO2.txt ] ; then
+        # If this file exist, then read CO2 value and set ATM_CO2 in run.def
+        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`
+	if [ X"${IPCC_CO2}" = X ] ; then
+            # The grep returned empty variable: stop execution
+            IGCM_debug_Exit "The file CO2.txt do not contain the current year."
+            IGCM_debug_Verif_Exit
+        fi
+        IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 ${IPCC_CO2}
+    else
+	# The file is not available: take the default value from run.def. 
+	# The syntax in run.def must be respected, for example:
+        # ATM_CO2 = _AUTO_: DEFAULT = 350.
+	IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 DEFAULT
+    fi
+
+
+    # Activation of XIOS
+    if [ X${orchideedriver_UserChoices_XIOS} = Xy ] ; then
+      # Add include of orchidee context in iodef.xml
+      # In iodef.xml add on next line after "COMPONENT CONTEXT"
+      #  <context id="orchidee" src="./context_orchidee.xml"/>
+      echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp
+      cp iodef.xml iodef.xml.tmp
+      sed -e "/COMPONENT CONTEXT/r add.tmp" \
+        iodef.xml.tmp > iodef.xml
+      rm iodef.xml.tmp add.tmp
+
+
+      # Special case if SBG component is not activated: deactivate stomate output files from file_def_orchidee.xml
+      # If SBG is activated, then the stomate.driver will take care of these variables
+      if [ X${config_ListOfComponents_SBG} = X ] ; then
+          # Stomate is not activated
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo      
+      fi
+    fi
+
+
+    # Add LongName as global attribute in all files produced by XIOS (if LongName is not empty)
+    # Remove file_def_input_orchidee.xml from the list. 
+    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then
+	listfile=$(ls file_def*orchidee.xml | grep -v input)
+	echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp
+	for file in ${listfile} ; do
+	    cp ${file} ${file}.tmp
+	    sed -e "/<file id/r add.tmp" \
+		${file}.tmp > ${file}
+	    rm ${file}.tmp 
+	done 
+	rm add.tmp
+    fi
+          
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+    
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,82 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# VEGET_UPDATE=0Y : no change in vegetation map. PFTmap.nc should be set only in InitialStateFiles/List. 
+# VEGET_UPDATE=1Y : change vegetation map every year. PFTmap.nc should be set only in BoundaryFiles/List.
+# Note that the model changed behaviour:
+# - since rev 2717 in the trunk, the map is read in January. In BoundaryFiles/List, copy the map for current year, use the variable ${year}.
+# - for older version, the map is read in December. In BoundaryFiles/List, copy the map for next coming year using the variable ${year_p1}.
+VEGET_UPDATE=1Y
+
+# Specify output level for output files
+# Only the files sechiba_history.nc, sechiba_out_2.nc and sechiba_history_4dim.nc can be set here.
+# output_level_filename=0     : lowest level writing only variables needed for the monitoring
+# output_level_filename=12    : highest level which will output all variables
+# output_level_filename=NONE  : deactivate the file
+output_level_sechiba_history = 11
+output_level_sechiba_out_2 = NONE
+output_level_sechiba_history_4dim = 11
+
+# Specify output frequency for each file [1y, 1mo, 1d, 10800s, 1ts]
+# Settings using WriteFrequency in config.card are not longer used
+output_freq_sechiba_history = 1mo
+output_freq_sechiba_out_2 = 10800s
+output_freq_sechiba_history_4dim = 1mo
+
+
+[InitialStateFiles]
+List=       (${R_IN}/SRF/ROUTING/routing.nc, .),     \
+            (${R_IN}/SRF/SOIL/soils_param.nc, .), \
+            (${R_IN}/SRF/cartepente2d_15min.nc, .), \
+            (${R_IN}/SRF/ROUTING/floodplains.nc, .), \
+            (${R_IN}/SRF/reftemp.nc, .), \
+            (${R_IN}/SRF/albedo/alb_bg_modisopt_2D_ESA_v2.nc, alb_bg.nc)
+	
+[BoundaryFiles]
+List=   (${R_IN}/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1/PFTmap_${year}.nc, PFTmap.nc), \
+        (${R_IN}/SRF/WOODHARVEST/LUH2v2/historical/woodharvest_${year}.nc, woodharvest.nc)
+ListNonDel= ()
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   (used_run.def, out_orchidee, river_desc.nc)
+
+[OutputFiles]
+List=	(sechiba_history.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history.nc, Post_1M_sechiba_history), \
+        (sechiba_history_4dim.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history_4dim.nc, NONE), \
+        (sechiba_out_2.nc, ${R_OUT_SRF_O_H}/${PREFIX}_HF_sechiba_out_2.nc, NONE)
+
+
+[Post_1M_sechiba_history]
+Patches = ()
+GatherWithInternal = (lon, lat, veget, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (nobiofrac, alb_nir, alb_vis, evap, fluxlat, fluxsens, netrad, qair, rain, runoff, snow, snownobio, snowf, frac_snow, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac, TWBR, riverflow, coastalflow, DelSoilMoist_daily, DelIntercept_daily, DelSWE_daily, delstock_routing, snowmelt, LAImean, hydrographs, evapnu, Wind, lwdown, swdown)
+ChunckJob2D = 200Y
+TimeSeriesVars3D = (lai, maxvegetfrac, vegetfrac, ptn, nee, transpir, inter)
+ChunckJob3D = NONE
+Seasonal = ON
+
+# ALMAOUTPUT
+#TimeSeriesVars2D = (nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, ESoil, ECanop, TVeg, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+#TimeSeriesVars3D = (ECanop, TVeg, GPP)
+
+
+[Post_HF_sechiba_out_2]
+Patches = ()
+GatherWithInternal = (lon, lat, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (mrsos, mrro)
+ChunckJob2D = 50Y
+TimeSeriesVars3D = (ptn)
+ChunckJob3D = 10Y
+Seasonal = OFF
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,214 @@
+#!/bin/ksh
+## Driver for the component SRF corresponding to the sechiba part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    ## 1. Modifications in run.def parameter file
+
+    # Activate STOMATE if the compontent SBG=stomate is set in config.card
+    if [ X${config_ListOfComponents_SBG} = Xstomate ] ; then
+	# Activate stomate in run.def
+        IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE y
+    else
+	# Deactivate stomate in run.def
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE n
+ 	# Deactivate output files for stomate
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+    fi
+
+    # Define in run.def if restart file should be used
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in NONE
+
+	# Check if running executable teststomate. In that case sechiba restart file is mandatory.
+	if [ -f teststomate ] ; then
+	    IGCM_debug_Print 1 "Error in launching teststomate !"
+	    IGCM_debug_Exit    "YOU MUST USE EXISTING RESTART FILE FOR SECHIBA WITH JOB TESTSTOMATE!" 
+	    IGCM_debug_Verif_Exit	    
+	fi
+    else
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in sechiba_rest_in.nc
+    fi
+
+
+    # Modify in run.def VEGET_UPDATE if it is set in sechiba.card section UserChoices
+    # VEGET_UPDATE inidcates if the vegetation map should be updated and at which frequency
+    if [ ! X${sechiba_UserChoices_VEGET_UPDATE} = X ] ; then
+	# Take the value from sechiba.card
+	IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE   ${sechiba_UserChoices_VEGET_UPDATE}
+    else
+        # Set default value 0Y
+        IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE 0Y
+    fi
+
+
+    # Activate the creation of river_desc.nc file only during the first execution in the simulation.
+    if [ ${CumulPeriod} -eq 1 ] ; then
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC y
+    else
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC n
+    fi
+
+
+
+    ## 2. Mangement of output and modifications of related xml files
+
+    # Set default values for sechiba1_enabled and sechiba1_freq.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    sechiba1_enabled=.FALSE.
+    sechiba2_enabled=.FALSE.
+    sechiba1_freq=0s
+    sechiba2_freq=0s
+    # These variables are used if XIOS=n
+    SECHIBA_WRITE_STEP=0
+    SECHIBA_WRITE_STEP2=0
+
+    if [ X${orchideedriver_UserChoices_XIOS} = Xy ] ; then
+      # Activate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK y
+      # Deactivate IOIPSL output
+      IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP 0
+    else
+      # Deactivate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK n
+    fi
+
+    # Get WriteFrenquecy for SRF (SECHIBA) from config.card
+    # 1 or 2 frequencies can be set in WriteFrenquecy for SRF
+    # The first frequency will always be used for the sechiba_history file and the 
+    # second frequency will be used for the sechiba_out_2.nc file. 
+    # The files are activated only if its corresponding frequency is set in WriteFrequency
+    ifreq=0
+    for frequency in ${config_SRF_WriteFrequency} ; do
+	case ${frequency} in
+	    *Y|*y) 
+		NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' )
+		NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+		file_enabled=.TRUE.
+		file_freq=${NbYears}y
+		(( file_WRITE_STEP = NbYears * NbDaysYear * 86400 )) ;;
+	    *M|*m)
+		NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbMonths}mo
+		# Note only 1M possible with IOIPSL!
+		file_WRITE_STEP=-1. ;;
+	    *D|*d)
+		NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbDays}d
+ 		(( file_WRITE_STEP = NbDays * 86400 )) ;;
+	    *s)
+		WriteInSeconds=$( echo ${frequency} | awk -F '[s]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${WriteInSeconds}s
+		(( file_WRITE_STEP = WriteInSeconds )) ;;
+            HF|hf) 
+		file_enabled=.TRUE. 
+		file_freq=10800s 
+		(( file_WRITE_STEP = 10800 )) ;;
+	    *) 
+		IGCM_debug_Exit "SRF_Update " ${frequency} " invalid WriteFrequency : choose in xY, xM, xD, xs and HF" 
+		IGCM_debug_Verif_Exit ;;
+	esac
+
+	(( ifreq = ifreq + 1 ))
+	case ${ifreq} in
+	    1)
+		sechiba1_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP=${file_WRITE_STEP} ;;
+	    2)
+                sechiba2_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP2=${file_WRITE_STEP} ;;
+            *)
+		IGCM_debug_Exit "SRF_Update: It is not possible to set more than 2 output files for sechiba from config.card"
+		IGCM_debug_Exit "You must correct WriteFrequancy in SRF secion in config.card."
+		IGCM_debug_Exit "Adapt file_def_orchidee.xml directly if you want more output files"
+		IGCM_debug_Verif_Exit ;;
+	esac
+    done
+
+    # Modify file_def_orchidee.xml if XIOS is activated
+    # Settings in config.card WriteFrequency are not used any more. The section above is only used for IOIPSL.
+    if [ X${orchideedriver_UserChoices_XIOS} = Xy ] ; then
+	# Modify file_def_orchidee.xml file using settings from sechiba.card/orchidee.card
+	# We here suppose that for each file, in sechiba.card/orchidee.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_history} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history} = XNONE ] ; then
+	    # output_level_sechiba_history is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level ${sechiba_UserChoices_output_level_sechiba_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history}
+	fi
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_out_2} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_out_2} = XNONE ] ; then
+	    # output_level_sechiba_out_2 is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level ${sechiba_UserChoices_output_level_sechiba_out_2}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq  ${sechiba_UserChoices_output_freq_sechiba_out_2}
+	fi
+
+  	if [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = XNONE ] ; then
+	    # output_level_sechiba_history_4dim is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level ${sechiba_UserChoices_output_level_sechiba_history_4dim}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history_4dim}
+	fi
+    fi
+
+
+    # Set IOIPSL output in run.def. This is done for all cases only to avoid AUTO variables during run time. 
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP ${SECHIBA_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP2 ${SECHIBA_WRITE_STEP2}
+
+    # Outputs HF in HISTFILE2 if required
+    if [ ${sechiba2_enabled} = .TRUE. ] ; then
+ 	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 y
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 n
+    fi
+
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,63 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# SPINUP_ANALYTIC=y/n : Activate the spinup analytic option to solve the carbon in soil balance
+SPINUP_ANALYTIC=n
+
+# Specify output level for output files
+# Only the files stomate_history.nc and stomate_ipcc_history.nc can be set here.
+# output_level_filname=0     : lowest level writing only variables needed for the monitoring
+# output_level_filname=10    : highest level which will output all variables
+# output_level_filname=NONE  : deactivate the file
+output_level_stomate_history = 10
+output_level_stomate_ipcc_history = 1
+
+# Specify output frequency for each file [1y, 1mo, 1d]
+# Settings using WriteFrequency in config.card are not longer used
+output_freq_stomate_history = 1mo
+output_freq_stomate_ipcc_history = 1mo
+
+
+[InitialStateFiles]
+List=   ()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=   (${R_IN}/SRF/CO2_1860_2012_TRENDY2.txt, CO2.txt)
+
+
+[RestartFiles]
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=	(stomate_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_history.nc, Post_1M_stomate_history) \
+    (stomate_ipcc_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_ipcc_history.nc, Post_1M_stomate_ipcc_history)
+
+[Post_1M_stomate_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D= (T2M_MONTH,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,HARVEST_ABOVE)
+ChunckJob2D = NONE
+TimeSeriesVars3D= (LAI,VEGET_COV_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION,CARBON_ACTIVE,CARBON_SLOW,CARBON_PASSIVE,LITTER_STR_AB,LITTER_STR_BE,LITTER_MET_AB,LITTER_MET_BE,TOTAL_TURN,WOOD_HARVEST_PFT)
+ChunckJob3D = 100Y
+Seasonal=ON
+
+[Post_1M_stomate_ipcc_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D=(cVeg, cLitter, cSoil, cProduct, cMassVariation, lai, gpp, ra, npp, rh, fFire, fHarvest, fLuc, nbp, fVegLitter, fLitterSoil, cLeaf, cWood, cRoot, cMisc, cLitterAbove, cLitterBelow, cSoilFast, cSoilMedium, cSoilSlow, landCoverFrac, treeFracPrimDec, treeFracPrimEver, c3PftFrac, c4PftFrac, rGrowth, rMaint, nppLeaf, nppWood, nppRoot, nep, fWoodharvest)
+ChunckJob2D = NONE
+TimeSeriesVars3D=()
+ChunckJob3D = NONE
+Seasonal=ON
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,147 @@
+#!/bin/ksh
+## Driver for the component SBG corresponding to the stomate part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    # For IOIPSL: get frequency from config.card
+    # Set default values for stomate output files.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    stomate_enabled=.FALSE.
+    stomate_freq=0s
+
+    # Read WriteFrequency set in config.card section SBG. 
+    # Only one choice can be set as WriteFrequency. The same choice will be used for 
+    # both stomate_history and stomate_ipcc_history files. 
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    NbYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbYears}y
+	    (( STOMATE_WRITE_STEP = NbYears * NbDaysYear )) 
+        ;;
+	*M|*m) 
+	    NbMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbMonths}mo
+	    # Note only 1M possible with IOIPSL!
+	    STOMATE_WRITE_STEP=-1. ;;
+	*D|*d)
+	    NbDays=$( echo ${config_SBG_WriteFrequency} | awk -F '[dD]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbDays}d
+	    STOMATE_WRITE_STEP=${NbDays} ;;
+    esac
+
+    # Modify file_def_orchidee.def if XIOS is activated using information in stomate.card
+    # Settings in config.card WriteFrequency are not used any more.
+    if [ X${orchideedriver_UserChoices_XIOS} = Xy ] ; then
+
+	# Modify file_def_orchidee.xml file using settings from stomate.card
+	# We here suppose that for each file, in stomate.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${stomate_UserChoices_output_level_stomate_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_history} = XNONE ] ; then
+	    # output_level_stomate_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level ${stomate_UserChoices_output_level_stomate_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq  ${stomate_UserChoices_output_freq_stomate_history}
+	fi
+
+	if [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = XNONE ] ; then
+	    # output_level_stomate_ipcc_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level ${stomate_UserChoices_output_level_stomate_ipcc_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq  ${stomate_UserChoices_output_freq_stomate_ipcc_history}
+	fi
+
+
+
+        # Deactivate stomate IOIPSL output
+	(( STOMATE_WRITE_STEP = 0 ))
+    fi
+
+
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC y
+      
+       # Test if CyclicBegin and CyclicEnd is set in config.card
+       if ( [ X${config_UserChoices_CyclicBegin} = X ] || [ X${config_UserChoices_CyclicEnd} = X ] ) ; then
+           IGCM_debug_Exit "CyclicBegin and CyclicEnd must be set in config.card to run option spinup_analytic."
+       fi
+       # Calculate and set number of years of forcing data
+       CycleNb=$(( ${config_UserChoices_CyclicEnd} - ${config_UserChoices_CyclicBegin} + 1 ))
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD ${CycleNb}
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC n
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD -1
+    fi
+
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP}
+
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "STOMATE : without restart"
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN NONE
+    else
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+    fi
+
+
+    # Special case using forcesoil executable
+    if [ -f forcesoil ] ; then
+	# Set STOMATE_CFORCING_NAME
+        IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+
+	# Check if restart file is missing
+	if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+            IGCM_debug_Exit "YOU MUST USE OLD STOMATE RESTART FILE WITH THE JOB FORCESOIL."
+            IGCM_debug_Verif_Exit
+	fi
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME NONE
+    fi
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+#   Check if equilibrium is reached for spinup analytic
+#   and if true stop the simulation in the end of this period.
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+      CondSpinup=$(grep -a  "Equilibrium for carbon pools is reached"  out_*)
+      if [ X"${CondSpinup}" != X ] ; then
+	  IGCM_debug_Print 1 "SPINUP ANALYTIC :  your spinup is successful :"
+	  IGCM_debug_Print 1 ${CondSpinup}
+	  IGCM_debug_Print 1  "You can now stop the simulation if you want."
+      fi
+    fi
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/xios.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/xios.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/xios.card	(revision 5631)
@@ -0,0 +1,29 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+
+[InitialStateFiles]
+List=	()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+List=	(NONE)
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   ()
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/xios.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/xios.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/xios.driver	(revision 5631)
@@ -0,0 +1,40 @@
+#!/bin/ksh
+#-----------------------------------
+function IOS_Initialize
+{ 
+    IGCM_debug_PushStack "IOS_Initialize"
+
+    echo INITIALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Initialize"
+}
+
+#-----------------------------------
+function IOS_Update
+{
+    IGCM_debug_PushStack "IOS_Update"
+
+    echo UPDATE IOS !!!
+# Activate server mode
+    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true
+# If lmdz_UserChoices_XIOS=y add LMDZ as component id :
+    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then
+	IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx
+    fi 
+    if [ -f namcouple ] ; then
+	sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 
+	IGCM_sys_Mv namcouple.tmp namcouple
+    fi
+
+    IGCM_debug_PopStack "IOS_Update"
+}
+
+#-----------------------------------
+function IOS_Finalize
+{
+    IGCM_debug_PushStack "IOS_Finalize"
+
+    echo FINALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/iodef.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/iodef.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/iodef.xml	(revision 5631)
@@ -0,0 +1,1 @@
+link iodef_xios2.xml
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/iodef_xios1.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/iodef_xios1.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/iodef_xios1.xml	(revision 5631)
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 1.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) -->
+	  <variable id="buffer_size"               type="integer">15000000</variable>
+	  <variable id="buffer_server_factor_size" type="integer">2</variable>
+	  <variable id="info_level"                type="integer">1</variable>
+	  <variable id="using_server"              type="boolean">false</variable>
+	  <variable id="using_oasis"               type="boolean">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/iodef_xios2.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/iodef_xios2.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/iodef_xios2.xml	(revision 5631)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 2.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+	  <variable id="info_level"                type="int">1</variable>
+	  <variable id="using_server"              type="bool">false</variable>
+	  <variable id="using_oasis"               type="bool">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/run.def	(revision 5631)
@@ -0,0 +1,159 @@
+# $HeadURL: svn://forge.ipsl.jussieu.fr/orchidee/trunk/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/run.def $
+# $Date: 2018-02-19 14:46:29 +0100 (Mon, 19 Feb 2018) $
+# $Revision: 5016 $
+
+#**************************************************************************
+#           Suggested parameter set up for ORCHIDEE 2.0
+# See all optional parameters in modipsl/modeles/ORCHIDEE/orchidee.default
+#
+# Note when running with libIGCM, variables set here to _AUTOBLOCKER_ can 
+# not be changed in run.def otherwwise the simulation will stop. Variables 
+# set to _AUTO_ can be changed from the comp.card but they can also be 
+# changed directly in the run.def. A value set in run.def can never be
+# changed again by libIGCM. 
+#**************************************************************************
+
+# Activate Stomate component (default y)
+STOMATE_OK_STOMATE = _AUTOBLOCKER_ 
+
+# Time length for one intergration (default full lenght of forcing file)
+START_DATE = _AUTO_
+END_DATE = _AUTO_ 
+DT_SECHIBA = 1200
+FORCING_FILE = forcing_yearm1.nc forcing_year.nc forcing_yearp1.nc
+#
+# Domain description file
+#
+GRID_FILE = NONE
+WEST_EAST = -180.0, 180.0
+SOUTH_NORTH = -90.0, 90.0
+SPRED_PREC_SEC = 3600
+#
+# Parameters related to the restart file and the start date
+#**************************************************************************
+# Time in the forcing file at which the model start if start date is not set by the forcing file (default 0)
+TIME_SKIP = _AUTO_
+
+# If DRIVER_reset_time=y, read the year from forcing file instead of taking it from restart file (default n)
+DRIVER_reset_time = _AUTO_
+
+# Name of restart file for the driver (default NONE)
+RESTART_FILEIN = _AUTOBLOCKER_
+
+# Name of restart file for sechiba part of the model (default NONE)
+SECHIBA_restart_in = _AUTOBLOCKER_
+
+# Name of restart file for stomate part of the model (default NONE)
+STOMATE_RESTART_FILEIN = _AUTOBLOCKER_
+
+# Parameters related to the diagnostic output files
+#**************************************************************************
+# Use XIOS for writing diagnostics file (defulat y)
+XIOS_ORCHIDEE_OK = _AUTOBLOCKER_
+
+# Flag to activate sechiba_out_2.nc history file when using IOIPSL for SECHIBA (defulat n)
+SECHIBA_HISTFILE2 = _AUTO_
+
+# Writefrequency in seconds in sechiba_history.nc when using IOIPSL (default 86400)
+# If WRITE_STEP=0 then all IOIPSL output are deactivated
+WRITE_STEP = _AUTO_
+
+# Writefrequency in seconds sechiba_out_2.nc when using IOIPSL (default 1800)
+WRITE_STEP2 = _AUTO_ 
+
+# Writefrequency in days in stomate_history.nc when using IOIPSL (default 10)
+STOMATE_HIST_DT = _AUTO_
+
+# Writefrequency in days or -1 for monthly output in stomate_ipcc_history.nc when using IOIPSL (default 0)
+STOMATE_IPCC_HIST_DT = _AUTO_
+
+# Print level for text output in out_orchidee_*
+# PRINTLEV = 1 : some output in initialization phase
+# PRINTLEV = 2 : more output in initialization phase and printing of new date
+# PRINTLEV = 3, 4,.. : more output also at each timestep
+PRINTLEV=2
+
+# Hydrology parameters
+#**************************************************************************
+# Activate the multi-layer diffusion scheme adapted from CWRR (default y)
+HYDROL_CWRR = y
+
+# Activate river routing (default y)
+RIVER_ROUTING = y
+
+# Activate creation of river_desc.nc file
+# RIVER_DESC will be activated only the first execution in the simulation
+RIVER_DESC = _AUTO_
+
+# SOILTYPE_CLASSIF :  Type of classification used for the map of soil types (default zobler)
+SOILTYPE_CLASSIF = zobler 
+
+# Parameters related to vegetation map
+#**************************************************************************
+# Update vegetation frequency (default 0Y)
+VEGET_UPDATE = _AUTO_
+
+# Read lai map (default n)
+LAI_MAP = n
+
+# Prescribed vegetation (default n)
+IMPOSE_VEG = n
+
+# Parameters related to surface and thermal physical properties
+#************************************************************************
+# ROUGH_DYN : Account for a dynamic roughness height (activation of Su et al. parametrization) (default y)
+ROUGH_DYN=y
+
+# OK_FREEZE :  Activate the complet soil freezing scheme (default y)
+OK_FREEZE=y
+
+# OK_EXPLICITSNOW :  Activate explict snow scheme (default y)
+OK_EXPLICITSNOW=y
+
+# Carbon related parameters
+#**************************************************************************
+# Analytic spinup (default n)
+SPINUP_ANALYTIC = _AUTO_
+SPINUP_PERIOD = _AUTO_
+
+# Value for atmospheric CO2 (default=350)
+ATM_CO2 = _AUTO_: DEFAULT = 350.
+
+# Activate harvest of wood (default y)
+DO_WOOD_HARVEST=y
+
+# Deactivate fire (default FIRE_DISABLE=y)
+FIRE_DISABLE=y
+
+# Optimized parameters to be used with PFTmap with 15 pfts such as
+# files in IGCM/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1
+#**************************************************************************
+# Use 15 PFTs. Note that PFTmap.nc must contains 15PFTs.
+# PFT=10, 14 and 15 share the same parametrization except for VCMAX25, LAI_MAX, FRAC_GROWTHRESP, 
+# MAINT_RESP_SLOPE_C and ALWAYS_INIT specified below.  
+# (default NVM=13)
+NVM=15
+PFT_TO_MTC=1,2,3,4,5,6,7,8,9,10,11,12,13,10,10
+PFT_NAME__10='temperate C3           grass      '
+PFT_NAME__14='tropical  C3           grass      '
+PFT_NAME__15='boreal    C3           grass      '
+
+VCMAX25__10 = 50.0 
+VCMAX25__14 = 50.0 
+VCMAX25__15 = 40.0
+
+LAI_MAX__10 = 2.5
+LAI_MAX__14 = 2.5
+LAI_MAX__15 = 2.0
+
+FRAC_GROWTHRESP__10 = 0.28
+FRAC_GROWTHRESP__14 = 0.35
+FRAC_GROWTHRESP__15 = 0.35
+
+MAINT_RESP_SLOPE_C__10 = 0.16
+MAINT_RESP_SLOPE_C__14 = 0.12
+MAINT_RESP_SLOPE_C__15 = 0.25
+
+ALWAYS_INIT__10 = y
+ALWAYS_INIT__14 = n
+ALWAYS_INIT__15 = y
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/run.def.global
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/run.def.global	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/run.def.global	(revision 5631)
@@ -0,0 +1,159 @@
+# $HeadURL: svn://forge.ipsl.jussieu.fr/orchidee/trunk/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/run.def $
+# $Date: 2018-02-19 14:46:29 +0100 (Mon, 19 Feb 2018) $
+# $Revision: 5016 $
+
+#**************************************************************************
+#           Suggested parameter set up for ORCHIDEE 2.0
+# See all optional parameters in modipsl/modeles/ORCHIDEE/orchidee.default
+#
+# Note when running with libIGCM, variables set here to _AUTOBLOCKER_ can 
+# not be changed in run.def otherwwise the simulation will stop. Variables 
+# set to _AUTO_ can be changed from the comp.card but they can also be 
+# changed directly in the run.def. A value set in run.def can never be
+# changed again by libIGCM. 
+#**************************************************************************
+
+# Activate Stomate component (default y)
+STOMATE_OK_STOMATE = _AUTOBLOCKER_ 
+
+# Time length for one intergration (default full lenght of forcing file)
+START_DATE = _AUTO_
+END_DATE = _AUTO_ 
+DT_SECHIBA = 1200
+FORCING_FILE = forcing_yearm1.nc forcing_year.nc forcing_yearp1.nc
+#
+# Domain description file
+#
+GRID_FILE = NONE
+WEST_EAST = -180.0, 180.0
+SOUTH_NORTH = -90.0, 90.0
+SPRED_PREC_SEC = 3600
+#
+# Parameters related to the restart file and the start date
+#**************************************************************************
+# Time in the forcing file at which the model start if start date is not set by the forcing file (default 0)
+TIME_SKIP = _AUTO_
+
+# If DRIVER_reset_time=y, read the year from forcing file instead of taking it from restart file (default n)
+DRIVER_reset_time = _AUTO_
+
+# Name of restart file for the driver (default NONE)
+RESTART_FILEIN = _AUTOBLOCKER_
+
+# Name of restart file for sechiba part of the model (default NONE)
+SECHIBA_restart_in = _AUTOBLOCKER_
+
+# Name of restart file for stomate part of the model (default NONE)
+STOMATE_RESTART_FILEIN = _AUTOBLOCKER_
+
+# Parameters related to the diagnostic output files
+#**************************************************************************
+# Use XIOS for writing diagnostics file (defulat y)
+XIOS_ORCHIDEE_OK = _AUTOBLOCKER_
+
+# Flag to activate sechiba_out_2.nc history file when using IOIPSL for SECHIBA (defulat n)
+SECHIBA_HISTFILE2 = _AUTO_
+
+# Writefrequency in seconds in sechiba_history.nc when using IOIPSL (default 86400)
+# If WRITE_STEP=0 then all IOIPSL output are deactivated
+WRITE_STEP = _AUTO_
+
+# Writefrequency in seconds sechiba_out_2.nc when using IOIPSL (default 1800)
+WRITE_STEP2 = _AUTO_ 
+
+# Writefrequency in days in stomate_history.nc when using IOIPSL (default 10)
+STOMATE_HIST_DT = _AUTO_
+
+# Writefrequency in days or -1 for monthly output in stomate_ipcc_history.nc when using IOIPSL (default 0)
+STOMATE_IPCC_HIST_DT = _AUTO_
+
+# Print level for text output in out_orchidee_*
+# PRINTLEV = 1 : some output in initialization phase
+# PRINTLEV = 2 : more output in initialization phase and printing of new date
+# PRINTLEV = 3, 4,.. : more output also at each timestep
+PRINTLEV=2
+
+# Hydrology parameters
+#**************************************************************************
+# Activate the multi-layer diffusion scheme adapted from CWRR (default y)
+HYDROL_CWRR = y
+
+# Activate river routing (default y)
+RIVER_ROUTING = y
+
+# Activate creation of river_desc.nc file
+# RIVER_DESC will be activated only the first execution in the simulation
+RIVER_DESC = _AUTO_
+
+# SOILTYPE_CLASSIF :  Type of classification used for the map of soil types (default zobler)
+SOILTYPE_CLASSIF = zobler 
+
+# Parameters related to vegetation map
+#**************************************************************************
+# Update vegetation frequency (default 0Y)
+VEGET_UPDATE = _AUTO_
+
+# Read lai map (default n)
+LAI_MAP = n
+
+# Prescribed vegetation (default n)
+IMPOSE_VEG = n
+
+# Parameters related to surface and thermal physical properties
+#************************************************************************
+# ROUGH_DYN : Account for a dynamic roughness height (activation of Su et al. parametrization) (default y)
+ROUGH_DYN=y
+
+# OK_FREEZE :  Activate the complet soil freezing scheme (default y)
+OK_FREEZE=y
+
+# OK_EXPLICITSNOW :  Activate explict snow scheme (default y)
+OK_EXPLICITSNOW=y
+
+# Carbon related parameters
+#**************************************************************************
+# Analytic spinup (default n)
+SPINUP_ANALYTIC = _AUTO_
+SPINUP_PERIOD = _AUTO_
+
+# Value for atmospheric CO2 (default=350)
+ATM_CO2 = _AUTO_: DEFAULT = 350.
+
+# Activate harvest of wood (default y)
+DO_WOOD_HARVEST=y
+
+# Deactivate fire (default FIRE_DISABLE=y)
+FIRE_DISABLE=y
+
+# Optimized parameters to be used with PFTmap with 15 pfts such as
+# files in IGCM/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1
+#**************************************************************************
+# Use 15 PFTs. Note that PFTmap.nc must contains 15PFTs.
+# PFT=10, 14 and 15 share the same parametrization except for VCMAX25, LAI_MAX, FRAC_GROWTHRESP, 
+# MAINT_RESP_SLOPE_C and ALWAYS_INIT specified below.  
+# (default NVM=13)
+NVM=15
+PFT_TO_MTC=1,2,3,4,5,6,7,8,9,10,11,12,13,10,10
+PFT_NAME__10='temperate C3           grass      '
+PFT_NAME__14='tropical  C3           grass      '
+PFT_NAME__15='boreal    C3           grass      '
+
+VCMAX25__10 = 50.0 
+VCMAX25__14 = 50.0 
+VCMAX25__15 = 40.0
+
+LAI_MAX__10 = 2.5
+LAI_MAX__14 = 2.5
+LAI_MAX__15 = 2.0
+
+FRAC_GROWTHRESP__10 = 0.28
+FRAC_GROWTHRESP__14 = 0.35
+FRAC_GROWTHRESP__15 = 0.35
+
+MAINT_RESP_SLOPE_C__10 = 0.16
+MAINT_RESP_SLOPE_C__14 = 0.12
+MAINT_RESP_SLOPE_C__15 = 0.25
+
+ALWAYS_INIT__10 = y
+ALWAYS_INIT__14 = n
+ALWAYS_INIT__15 = y
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/run.def.small
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/run.def.small	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/PARAM/run.def.small	(revision 5631)
@@ -0,0 +1,159 @@
+# $HeadURL: svn://forge.ipsl.jussieu.fr/orchidee/trunk/ORCHIDEE_OL/OOL_SEC_STO_FG3/PARAM/run.def $
+# $Date: 2018-02-19 14:46:29 +0100 (Mon, 19 Feb 2018) $
+# $Revision: 5016 $
+
+#**************************************************************************
+#           Suggested parameter set up for ORCHIDEE 2.0
+# See all optional parameters in modipsl/modeles/ORCHIDEE/orchidee.default
+#
+# Note when running with libIGCM, variables set here to _AUTOBLOCKER_ can 
+# not be changed in run.def otherwwise the simulation will stop. Variables 
+# set to _AUTO_ can be changed from the comp.card but they can also be 
+# changed directly in the run.def. A value set in run.def can never be
+# changed again by libIGCM. 
+#**************************************************************************
+
+# Activate Stomate component (default y)
+STOMATE_OK_STOMATE = _AUTOBLOCKER_ 
+
+# Time length for one intergration (default full lenght of forcing file)
+START_DATE = _AUTO_
+END_DATE = _AUTO_ 
+DT_SECHIBA = 1200
+FORCING_FILE = forcing_yearm1.nc forcing_year.nc forcing_yearp1.nc
+#
+# Domain description file
+#
+GRID_FILE = NONE
+WEST_EAST = -19.7, 62.7
+SOUTH_NORTH = -6.7, 62.7
+SPRED_PREC_SEC = 3600
+#
+# Parameters related to the restart file and the start date
+#**************************************************************************
+# Time in the forcing file at which the model start if start date is not set by the forcing file (default 0)
+TIME_SKIP = _AUTO_
+
+# If DRIVER_reset_time=y, read the year from forcing file instead of taking it from restart file (default n)
+DRIVER_reset_time = _AUTO_
+
+# Name of restart file for the driver (default NONE)
+RESTART_FILEIN = _AUTOBLOCKER_
+
+# Name of restart file for sechiba part of the model (default NONE)
+SECHIBA_restart_in = _AUTOBLOCKER_
+
+# Name of restart file for stomate part of the model (default NONE)
+STOMATE_RESTART_FILEIN = _AUTOBLOCKER_
+
+# Parameters related to the diagnostic output files
+#**************************************************************************
+# Use XIOS for writing diagnostics file (defulat y)
+XIOS_ORCHIDEE_OK = _AUTOBLOCKER_
+
+# Flag to activate sechiba_out_2.nc history file when using IOIPSL for SECHIBA (defulat n)
+SECHIBA_HISTFILE2 = _AUTO_
+
+# Writefrequency in seconds in sechiba_history.nc when using IOIPSL (default 86400)
+# If WRITE_STEP=0 then all IOIPSL output are deactivated
+WRITE_STEP = _AUTO_
+
+# Writefrequency in seconds sechiba_out_2.nc when using IOIPSL (default 1800)
+WRITE_STEP2 = _AUTO_ 
+
+# Writefrequency in days in stomate_history.nc when using IOIPSL (default 10)
+STOMATE_HIST_DT = _AUTO_
+
+# Writefrequency in days or -1 for monthly output in stomate_ipcc_history.nc when using IOIPSL (default 0)
+STOMATE_IPCC_HIST_DT = _AUTO_
+
+# Print level for text output in out_orchidee_*
+# PRINTLEV = 1 : some output in initialization phase
+# PRINTLEV = 2 : more output in initialization phase and printing of new date
+# PRINTLEV = 3, 4,.. : more output also at each timestep
+PRINTLEV=1
+
+# Hydrology parameters
+#**************************************************************************
+# Activate the multi-layer diffusion scheme adapted from CWRR (default y)
+HYDROL_CWRR = y
+
+# Activate river routing (default y)
+RIVER_ROUTING = y
+
+# Activate creation of river_desc.nc file
+# RIVER_DESC will be activated only the first execution in the simulation
+RIVER_DESC = _AUTO_
+
+# SOILTYPE_CLASSIF :  Type of classification used for the map of soil types (default zobler)
+SOILTYPE_CLASSIF = zobler 
+
+# Parameters related to vegetation map
+#**************************************************************************
+# Update vegetation frequency (default 0Y)
+VEGET_UPDATE = _AUTO_
+
+# Read lai map (default n)
+LAI_MAP = n
+
+# Prescribed vegetation (default n)
+IMPOSE_VEG = n
+
+# Parameters related to surface and thermal physical properties
+#************************************************************************
+# ROUGH_DYN : Account for a dynamic roughness height (activation of Su et al. parametrization) (default y)
+ROUGH_DYN=y
+
+# OK_FREEZE :  Activate the complet soil freezing scheme (default y)
+OK_FREEZE=y
+
+# OK_EXPLICITSNOW :  Activate explict snow scheme (default y)
+OK_EXPLICITSNOW=y
+
+# Carbon related parameters
+#**************************************************************************
+# Analytic spinup (default n)
+SPINUP_ANALYTIC = _AUTO_
+SPINUP_PERIOD = _AUTO_
+
+# Value for atmospheric CO2 (default=350)
+ATM_CO2 = _AUTO_: DEFAULT = 350.
+
+# Activate harvest of wood (default y)
+DO_WOOD_HARVEST=y
+
+# Deactivate fire (default FIRE_DISABLE=y)
+FIRE_DISABLE=y
+
+# Optimized parameters to be used with PFTmap with 15 pfts such as
+# files in IGCM/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1
+#**************************************************************************
+# Use 15 PFTs. Note that PFTmap.nc must contains 15PFTs.
+# PFT=10, 14 and 15 share the same parametrization except for VCMAX25, LAI_MAX, FRAC_GROWTHRESP, 
+# MAINT_RESP_SLOPE_C and ALWAYS_INIT specified below.  
+# (default NVM=13)
+NVM=15
+PFT_TO_MTC=1,2,3,4,5,6,7,8,9,10,11,12,13,10,10
+PFT_NAME__10='temperate C3           grass      '
+PFT_NAME__14='tropical  C3           grass      '
+PFT_NAME__15='boreal    C3           grass      '
+
+VCMAX25__10 = 50.0 
+VCMAX25__14 = 50.0 
+VCMAX25__15 = 40.0
+
+LAI_MAX__10 = 2.5
+LAI_MAX__14 = 2.5
+LAI_MAX__15 = 2.0
+
+FRAC_GROWTHRESP__10 = 0.28
+FRAC_GROWTHRESP__14 = 0.35
+FRAC_GROWTHRESP__15 = 0.35
+
+MAINT_RESP_SLOPE_C__10 = 0.16
+MAINT_RESP_SLOPE_C__14 = 0.12
+MAINT_RESP_SLOPE_C__15 = 0.25
+
+ALWAYS_INIT__10 = y
+ALWAYS_INIT__14 = n
+ALWAYS_INIT__15 = y
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,60 @@
+##################################################################################################################
+# $HeadURL: svn://forge.ipsl.jussieu.fr/orchidee/trunk/ORCHIDEE_OL/OOL_SEC/POST/monitoring01_sechiba.cfg $
+# $Date: 2018-01-31 10:26:28 +0100 (mer. 31 janv. 2018) $
+# $Revision: 4928 $
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+delta_water_stock | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily" |  "" | "((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] + delstock_routing_daily[d=5,l=2:100000])" | "Change in total water stock (LANDS) " | "kg/day/m2 of land" | "Areas[d=2]*Contfrac[d=2]"
+water_budget_closure | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily rain snowf evap riverflow coastalflow" | "" | "(((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] +  delstock_routing_daily[d=5,l=2:100000])*Areas[d=1]*Contfrac[d=1] -  ((rain[d=6,l=2:100000] + snowf[d=7,l=2:100000] - evap[d=8,l=2:100000])*Areas[d=1]*Contfrac[d=1]  - (riverflow[d=9,l=2:100000] + coastalflow[d=10,l=2:100000])*1000*86400 ))/(4*3.14*6370000*6370000*0.26)" | "Water budget closure (LANDS) " | "kg/day/m2 of land" | "2"
+twbr_lands       | "TWBR"             |  "" | "twbr[d=1,l=2:100000]*86400"       | "Hydrol water buget residu (LANDS)" | "kg/m^2/d" | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands   | "temp_sol"         |  "" | "temp_sol[d=1]"                    | "TSOL (LANDS)"                      | "C"        | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands   | "fluxsens"         |  "" | "fluxsens[d=1]"                    | "Sensible Flux (LANDS)"             | "W/m^2"    | "Areas[d=1]*Contfrac[d=1]"
+evap_lands       | "evap"             |  "" | "evap[d=1]"                        | "Evaporation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+evapnu_lands     | "evapnu"           |  "" | "evapnu[d=1]"                      | "Soil evaporation (LANDS)"          | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+transpir_lands   | "transpir"         |  "" | "transpir[d=1,k=@sum]"             | "Transpiration (sum over all PFT, LANDS)" | "mm/d" | "Areas[d=1]*Contfrac[d=1]"
+subli_lands      | "subli"            |  "" | "subli[d=1]"                       | "Sublimation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+snow_swe_lands   | "frac_snow snow"   |  "" | "snow[d=2]"                        | "Snow Mass (LANDS)"                 | "kg/m^2"   | "Areas[d=2]*Contfrac[d=2]"
+snownobio_lands  | "snownobio"        |  "" | "snownobio[d=1]"                   | "Snow Other Surfaces (LANDS)"       | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands      | "snowf"            |  "" | "snowf[d=1]"                       | "Snowfall (LANDS)"                  | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+precip_lands     | "rain snowf"       |  "" | "rain[d=1] + snowf[d=2]"           | "Total precipitaion (LANDS)"        | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+runoff_lands     | "runoff"           |  "" | "runoff[d=1]"                      | "Surface runoff  (LANDS)"           | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+drainage_lands   | "drainage"         |  "" | "drainage[d=1]"                    | "Drainage  (LANDS)"                 | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands   | "mrso"             |  "" | "mrso[d=1]"                        | "Total Soil Moisture  (LANDS)"      | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+surface_humidity_lands | "mrsos"      |  "" | "mrsos[d=1]"                       | "Top 10cm soil moisture  (LANDS)"   | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands     | "alb_vis alb_nir"  |  "" | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"               | "1"        | "Areas[d=1]*Contfrac[d=1]"
+lai_lands        | "LAImean"          |  "" | "LAImean[d=1]"                     | "LAI (mean excluding PFT=1) (LANDS)"| "1"        | "Areas[d=1]*Contfrac[d=1]"
+nee_lands        | "nee maxvegetfrac" |  "" | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"   | "Net Ecosystem Exchange" | "PgC/yr" | "2"
+maxvegetagri_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=12:13@sum]"    | "veget_max fraction of agriculture [sum of pft=12,13] "| "1"  | "Areas[d=1]*Contfrac[d=1]"
+maxvegetbare_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=1]"            | "veget_max fraction on bare soil [pft=1] "             | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=2:9@sum]"         | "veget trees[sum of pft=2:9] (LANDS)"                  | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetg_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=10:11@sum]+vegetfrac[d=1,K=14:15@sum]"       | "veget natural grasses[sum of pft=10,11,14,15] (LANDS)"      | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegeta_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=12:13@sum]"       | "veget agriculture [sum of pft=12,13] (LANDS)"         | "1"  | "Areas[d=1]*Contfrac[d=1]"
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,69 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date: 2011-07-20 14:20:31 +0200 (Wed, 20 Jul 2011) $
+# $Name$
+# $Revision: 334 $
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+maxveget_forcing | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12,13] "  | "Mkm^2"  | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai02_lands    | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai03_lands    | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai04_lands    | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai05_lands    | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai06_lands    | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai07_lands    | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai08_lands    | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai09_lands    | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_stomate.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_stomate.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_stomate.cfg	(revision 5631)
@@ -0,0 +1,79 @@
+##################################################################################################################
+# $HeadURL: svn://forge.ipsl.jussieu.fr/orchidee/trunk/ORCHIDEE_OL/OOL_SEC_STO_FG3/POST/monitoring01_stomate.cfg $
+# $Date: 2018-02-12 12:52:39 +0100 (Mon, 12 Feb 2018) $
+# $Revision: 4970 $
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+woodharvest_fromforcing| "WOOD_HARVEST_PFT VEGET_COV_MAX"| "" | "(WOOD_HARVEST_PFT[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"| "Wood harvest read from file and prepared to be used"      | "PgC/yr"    | "2"
+fwoodharvest_lands     | "fWoodharvest"                  | "" | "fWoodharvest[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15"              | "CO2 Flux from wood harvesting, positive from atm to land" | "PgC/yr"    | "2"
+fLuc_fHarvest_lands    | "CONVFLUX CFLUX_PROD10 CFLUX_PROD100 HARVEST_ABOVE"  | "" | "((CONVFLUX[d=1]+CFLUX_PROD10[d=2]+CFLUX_PROD100[d=3]+HARVEST_ABOVE[d=4])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)" | "CO2 flux from Land Use Change and Crop Harvesting" | "PgC/yr" | "2"
+fHarvest_lands         | "HARVEST_ABOVE"                 | "" | "((HARVEST_ABOVE[d=1])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"                    | "CO2 flux from Land Use Change and Crop Harvesting"        | "PgC/yr" | "2"
+nbp_lands              | "nbp"                           | "" | "(nbp[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365/1e12)"                          | "Net Biospheric Production"                                | "PgC/yr" | "2"
+cSoil_lands            | "TOTAL_SOIL_CARB VEGET_COV_MAX" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Carbon Soil in Pool"                                      | "PgC"    | "2"
+cVeg_lands             | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Carbon in vegetation"                                     | "PgC"    | "2"
+npp_lands              | "NPP VEGET_COV_MAX"             | "" | "(NPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Net Primary Production"                                   | "PgC/yr" | "2"
+rh_lands               | "HET_RESP VEGET_COV_MAX"        | "" | "(HET_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"        | "Heterotrophic Respiration"                                | "PgC/yr" | "2"
+CONVFLUX_lands         | "CONVFLUX"                      | "" | "(CONVFLUX[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"                   | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands     | "CFLUX_PROD10"                  | "" | "(CFLUX_PROD10[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"               | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands    | "CFLUX_PROD100"                 | "" | "(CFLUX_PROD100[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"              | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+BIOMASS_lands          | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Total Biomass (LANDS)"                               | "PgC"    | "2"
+LITTER_lands           | "TOTAL_BM_LITTER VEGET_COV_MAX" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)" | "Biomass to Litter flux (LANDS)"                      | "PgC/yr" | "2"
+GPP_lands              | "GPP VEGET_COV_MAX"             | "" | "(GPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Gross Primary Produc (LANDS)"                        | "PgC/yr" | "2"
+MAINT_RESP_lands       | "MAINT_RESP VEGET_COV_MAX"      | "" | "(MAINT_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"      | "Maintenance Resp. (LANDS)"                           | "PgC/yr" | "2"
+GROWTH_RESP_lands      | "GROWTH_RESP VEGET_COV_MAX"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Growth Resp. (LANDS)"                                | "PgC/yr" | "2"
+lai_lands              | "lai"                           | "" | "lai[d=1]" 	                                                              | "Leaf Area Fraction"   	                	      | "1"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"               | "" | "treeFracPrimDec[d=1]"                                                        | "Total Primary Deciduous Tree Cover Fraction"         | "%"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver"              | "" | "treeFracPrimEver[d=1]"                                                       | "Total Primary Evergreen Tree Cover Fraction"         | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	                 | "" | "c3PftFrac[d=1]" 	                                                      | "Total C3 PFT Cover Fraction" 	 	              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	                 | "" | "c4PftFrac[d=1]" 	                                                      | "Total C4 PFT Cover Fraction" 		              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+cProduct_lands         | "cProduct"           | "" | "(cProduct[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	            | "Carbon in Products of Land Use Change" 	               | "PgC"    | "2"
+fLuc_lands             | "fLuc"               | "" | "(fLuc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux to Atmosphere from Land Use Change"            | "PgC/yr" | "2"
+ra_lands               | "ra"                 | "" | "(ra[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 		    | "Autotrophic Respiration"			               | "PgC/yr" | "2"
+fVegLitter_lands       | "fVegLitter"         | "" | "(fVegLitter[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Total Carbon Flux from Vegetation to Litter"            | "PgC/yr" | "2"
+fLitterSoil_lands      | "fLitterSoil"        | "" | "(fLitterSoil[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"      | "Total Carbon Flux from Litter to Soil" 	               | "PgC/yr" | "2"
+cLeaf_lands            | "cLeaf"              | "" | "(cLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                      | "Carbon in Leaves"                                       | "PgC"    | "2"
+cWood_lands            | "cWood"              | "" | "(cWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Wood" 			                       | "PgC"    | "2"
+cRoot_lands            | "cRoot"              | "" | "(cRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Roots" 			               | "PgC"    | "2"
+cMisc_lands            | "cMisc"              | "" | "(cMisc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Other Living Compartments" 	               | "PgC"    | "2"
+cLitterAbove_lands     | "cLitterAbove"       | "" | "(cLitterAbove[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Above-Ground Litter" 	                       | "PgC"    | "2"
+cLitterBelow_lands     | "cLitterBelow"       | "" | "(cLitterBelow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Below-Ground Litter" 	                       | "PgC"    | "2"
+cSoilFast_lands        | "cSoilFast"          | "" | "(cSoilFast[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Fast Soil Pool" 		               | "PgC"    | "2"
+cSoilMedium_lands      | "cSoilMedium"        | "" | "(cSoilMedium[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                | "Carbon in Medium Soil Pool" 		               | "PgC"    | "2"
+cSoilSlow_lands        | "cSoilSlow"          | "" | "(cSoilSlow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Slow Soil Pool" 	    	               | "PgC"    | "2"
+nppLeaf_lands          | "nppLeaf" 	      | "" | "(nppLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "PgC/yr" | "2"
+nppWood_lands          | "nppWood" 	      | "" | "(nppWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "PgC/yr" | "2"
+nppRoot_lands          | "nppRoot" 	      | "" | "(nppRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "PgC/yr" | "2"
+nep_lands              | "nep" 		      | "" | "(nep[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	            | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "PgC/yr" | "2"
+cMassVariation_lands   | "cMassVariation"     | "" | "(cMassVariation[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"   | "Carbon Mass Variation"	                               | "PgC/yr" | "2"
+cBal_lands             | "cMassVariation nbp" | "" | "((cMassVariation[d=1,L=2:100000]-nbp[d=2,L=2:100000])*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" | "Total Carbon Balance"    | "PgC/yr" | "2"
+rGrowth_lands          | "rGrowth" 	      | "" | "(rGrowth[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Growth Autotrophic Respiration" 		               | "PgC/yr" | "2"
+rMaint_lands           | "rMaint" 	      | "" | "(rMaint[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Maintenance Autotrophic Respiration" 	               | "PgC/yr" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_stomate_DGVM.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
@@ -0,0 +1,116 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date: 2016-08-01 13:04:18 +0200 (Mon, 01 Aug 2016) $
+# $Name$
+# $Revision: 3681 $
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+CONVFLUX_lands      | "CONVFLUX CONTFRAC"                  | "" | "(CONVFLUX[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                           | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands  | "CFLUX_PROD10 CONTFRAC"              | "" | "(CFLUX_PROD10[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                       | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands | "CFLUX_PROD100 CONTFRAC"             | "" | "(CFLUX_PROD100[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+HARVEST_ABOVE_lands | "HARVEST_ABOVE CONTFRAC"             | "" | "(HARVEST_ABOVE[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release product after harvest (LANDS)"                | "PgC/yr" | "2"
+SOIL_CARB_lands     | "TOTAL_SOIL_CARB VEGET_MAX CONTFRAC" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Total Soil Carbon (LANDS)"                                   | "PgC"    | "2"
+BIOMASS_lands       | "TOTAL_M VEGET_MAX CONTFRAC"         | "" | "(TOTAL_M[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Total Biomass (LANDS)"                                       | "PgC"    | "2"
+LITTER_lands        | "TOTAL_BM_LITTER VEGET_MAX CONTFRAC" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)" | "Total Litter (LANDS)"                                        | "PgC/yr" | "2"
+CO2FLUX_MONTHLY_SUM_lands | "CO2FLUX_MONTHLY_SUM VEGET_MAX CONTFRAC" | "" | "(CO2FLUX_MONTHLY_SUM[d=1]*12)"                                 | "NEE Sum (LANDS)"                                             | "PgC/yr" | "Areas[d=1]"
+NPP_lands           | "NPP VEGET_MAX CONTFRAC"             | "" | "(NPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Net Primary Produc (LANDS)"                                  | "PgC/yr" | "2"
+GPP_lands           | "GPP VEGET_MAX CONTFRAC"             | "" | "(GPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Gross Primary Produc (LANDS)"                                | "PgC/yr" | "2"
+HET_RESP_lands      | "HET_RESP VEGET_MAX CONTFRAC"        | "" | "(HET_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"        | "Heterotr. Resp. (LANDS)"                                     | "PgC/yr" | "2"
+MAINT_RESP_lands    | "MAINT_RESP VEGET_MAX CONTFRAC"      | "" | "(MAINT_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"      | "Maintenance Resp. (LANDS)"                                   | "PgC/yr" | "2"
+GROWTH_RESP_lands   | "GROWTH_RESP VEGET_MAX CONTFRAC"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Growth Resp. (LANDS)"                                        | "PgC/yr" | "2"
+cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"			    | "kg C m-2" | "Areas[d=1]"
+cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])" 	    | "Carbon in Litter Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])" 	    | "Carbon in Soil Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])" 	    | "Carbon in Products of Land Use Change" 	    | "kg C m-2" | "Areas[d=1]"
+lai_lands              | "lai"              | "" | "(lai[d=1])" 	    | "Leaf Area Fraction"   	     		    | "1"   	 | "Areas[d=1]"
+gpp_lands              | "gpp"              | "" | "(gpp[d=1])" 	    | "Gross Primary Production" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+ra_lands               | "ra"               | "" | "(ra[d=1])" 		    | "Autotrophic Respiration"			    | "kg C m-2 s-1" | "Areas[d=1]"
+npp_lands              | "npp"              | "" | "(npp[d=1])" 	    | "Net Primary Production" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+rh_lands               | "rh"               | "" | "(rh[d=1])" 		    | "Heterotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+fFire_lands            | "fFire"            | "" | "(fFire[d=1])" 	    | "CO2 Emission from Fire" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])" 	    | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]"
+fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])" 	    | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]"
+nbp_lands              | "nbp"              | "" | "(nbp[d=1])" 	    | "Net Biospheric Production"      	   	    | "kg C m-2 s-1" | "Areas[d=1]"
+fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])" 	    | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]"
+fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])" 	    | "Carbon in Leaves"      	       		    | "kg C m-2" | "Areas[d=1]"
+cWood_lands            | "cWood"            | "" | "(cWood[d=1])" 	    | "Carbon in Wood" 				    | "kg C m-2" | "Areas[d=1]"
+cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])" 	    | "Carbon in Roots" 			    | "kg C m-2" | "Areas[d=1]"
+cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])" 	    | "Carbon in Other Living Compartments" 	    | "kg C m-2" | "Areas[d=1]"
+cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])" 	    | "Carbon in Fast Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])" 	    | "Carbon in Slow Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"   	| "Areas[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%" 	| "Areas[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	    | "" | "(c3PftFrac[d=1])" 	    | "Total C3 PFT Cover Fraction" 	 	    | "%" 	| "Areas[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	    | "" | "(c4PftFrac[d=1])" 	    | "Total C4 PFT Cover Fraction" 		    | "%" 	| "Areas[d=1]"
+rGrowth_lands          | "rGrowth" 	    | "" | "(rGrowth[d=1])" 	    | "Growth Autotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+rMaint_lands           | "rMaint" 	    | "" | "(rMaint[d=1])" 	    | "Maintenance Autotrophic Respiration" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+nppLeaf_lands          | "nppLeaf" 	    | "" | "(nppLeaf[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]"
+nppWood_lands          | "nppWood" 	    | "" | "(nppWood[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]"
+nppRoot_lands          | "nppRoot" 	    | "" | "(nppRoot[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]"
+nep_lands              | "nep" 		    | "" | "(nep[d=1])" 	    | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "kg C m-2 s-1" | "Areas[d=1]"
+cMassVariation_lands     | "cMassVariation"     | "" | "(cMassVariation[d=1])"    | "Carbon Mass Variation"			    | "kg C m-2 s-1" | "Areas[d=1]"
+cBal_lands             | "cMassVariation nbp" | "" | "(cMassVariation[d=1,L=2:1000]-nbp[d=2,L=2:1000])" | "Total Carbon Balance"		    | "kg C m-2 s-1" | "Areas[d=1]"
+ADAPTATION01_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=1])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION02_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=2])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION03_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=3])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION04_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=4])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION05_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=5])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION06_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=6])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION07_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=7])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION08_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=8])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION09_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=9])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION10_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=10])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION11_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=11])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION12_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=12])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION13_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=13])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+REGENERATION01_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=1])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION02_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=2])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION03_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=3])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION04_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=4])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION05_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=5])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION06_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=6])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION07_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=7])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION08_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=8])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION09_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=9])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION10_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=10])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION11_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=11])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION12_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=12])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION13_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=13])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/config.card	(revision 5631)
@@ -0,0 +1,129 @@
+# $HeadURL: svn://forge.ipsl.jussieu.fr/orchidee/trunk/ORCHIDEE_OL/OOL_SEC_STO_FG3/config.card $
+# $Date: 2018-02-19 16:34:48 +0100 (Mon, 19 Feb 2018) $
+# $Revision: 5020 $
+#
+#========================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=FG3nd
+#----- LongName : Some words describing the experiment. LongName will be added in all output files produced by XIOS.
+LongName="Reference simulation for New Driver"
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=TEST
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=secsto
+#============================
+#-- leap(gregorian), noleap, 360d
+CalendarType=leap
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1979-01-01
+DateEnd=2013-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1Y
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component: (Component name, tag/version name)
+SRF= (sechiba, orchidee)
+SBG= (stomate, orchidee)
+OOL= (orchideedriver, orchidee)
+IOS= (xios, XIOS)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+#D- For each component: 
+#D  (Real executable name, temorary name during run, number of process MPI)
+SRF= ("", "")
+SBG= ("", "")
+OOL= (orchideedriver, orchideedriver, 63MPI)
+IOS= (xios_server.exe, xios.x, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- OverRule=y : All component will restart from the same simulation
+OverRule=n
+#D- Date of restart file to be used
+RestartDate=...
+#D- JobName for the restart file
+RestartJobName=...
+#D- Path to directory where the RestartJobName directory is stored
+#D- NB! ${ARCHIVE} depend on login. The full path can also be set
+RestartPath=...
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=1Y
+#D- Frequency of rebuild submission. Only set NONE if running with 1 XIOS server
+RebuildFrequency=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=10Y
+#D- Activate IgnoreNonMonotonic only when cycling over the same forcing files as for a spin up. 
+IgnoreNonMonotonic=FALSE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=10Y
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset=1
+#D- If you want to produce compute PCMDI metrics from seasonal average
+#D- Set TRUE or FALSE to activate/deactivate the metrics computation.
+MetricsPCMDI=FALSE
+
+#========================================================================
+#D-- SRF - SECHIBA
+# Use this section to start from restart file for SRF if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in sechiba.card 
+[SRF]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- SBG - STOMATE
+# Use this section to start from restart file for SBG if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in stomate.card 
+[SBG]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- OOL - Offline driver
+# There is no need to change this section
+[OOL]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- IOS - XIOS
+# There is no need to change this section
+[IOS]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/COMP/spinup.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/COMP/spinup.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/COMP/spinup.card	(revision 5631)
@@ -0,0 +1,145 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+#
+## DEBUG mode for SPINUP 
+#
+# This mode keep all SPINUP directory in ARCHIVE
+# If disable, all ARCHIVE is automaticly cleaned.
+# 
+DEBUG_SPIN=n
+# If you don't want to keep old spinup steps, but last one
+CONSERVE=y
+
+# If you want to use the same forcing file
+DRIVER_NORESTART=n
+# If you want use config.card PeriodLength for TIME_LENGTH
+DRIVER_TIMELENGTH=y
+
+# Should we start the analytic resolution of the spinup?
+SPINUP_ANALYTIC=n
+
+#
+###-- STOMATE flag
+#
+ok_stomate=y
+
+#
+###-- CO2 flag
+#
+ok_co2=y
+
+#
+###-- LAI flag
+#
+lai_map=n
+
+#
+###-- fix vÃ©gÃ©tation flag
+#
+impose_veg=n
+
+#
+###-- historical vegetation maps
+#
+land_use=y
+
+#
+###-- ROUTING flag
+#
+ok_routing=n
+
+#
+###-- NEW HYDROL CWRR flag
+#
+ok_newhydrol=n
+
+
+    # SPINUP configuration : 
+    # ----------------------
+# Initialisation for spin-up :
+# sechiba alone (!!! only if ok_stomate == n !!!)
+duree_nostomate=0
+# sechiba and stomate
+duree_inistomate=1
+# teststomate (only if duree_nostomate or duree_inistomate > 0)
+duree_offlineini=0
+
+# Loop configuration for spin-up :
+# The whole job is restarted n_iter times
+n_iter=10
+# orchidee with sechiba (and stomate if ok_stomate=y below)
+duree_sechiba=1
+# teststomate
+duree_stomate=0
+# forcesoil
+duree_carbonsol=100
+
+# Finalization for spin-up :
+# all orchidee
+duree_final=1
+# This last parameter must be non-zero.
+
+# level of the history files for each iteration of the SPINUP
+level_hist=0
+# level of the history files for the final iteration of the SPINUP
+level_hist_final=10
+
+
+RESOL=360x180
+
+# For FLUXNET style jobs : we should erase LAND USE file ?
+# This flag will suppress all files in option ListNonDel of section BoundaryFiles in orchidee.card of Subjobs.
+BoundaryFilesListNonDel=n
+
+# Path for all skeleton SubJob scripts to SPINUP directory
+SubJobPath=${SUBMIT_DIR}/SUBJOB
+
+[SubJobForcingFile]
+# Boundary Files for ORCHIDEE subjobs :
+List= (${R_IN}/SRF/METEO/NCC/ncc_for_${year}.nc, forcing_file.nc)
+#List= (${R_IN}/SRF/METEO/CRU/force${year}.nc, .)
+ListNonDel= ()
+
+[SubJobParams]
+# You can specify here any parameters to be modified in run.def
+DEBUG_INFO=n
+LONGPRINT=n
+FORCESOIL_NB_YEAR=1
+
+[SubJobPost]
+#
+##-- TimeSeries
+#
+sechiba_TimeSeriesVars2D=(nobiofrac, alb_nir, alb_vis, bqsb, evap, fluxlat, fluxsens, gqsb, netrad, qair, rain, runoff, snow, snownobio, snowf, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac)
+sechiba_TimeSeriesVars3D=(lai, maxvegetfrac, vegetfrac, CO2FLUX, ptn, nee)
+# ALMAOUTPUT
+#sechiba_TimeSeriesVars2D = (vegetfrac, maxvegetfrac, nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, \
+#                          Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, \
+#                          ECanop, TVeg, ESoil, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+stomate_TimeSeriesVars2D=(T2M_MONTH, CONTFRAC, RESOLUTION_X, RESOLUTION_Y, CONVFLUX, CFLUX_PROD10, CFLUX_PROD100,CO2FLUX_MONTHLY_SUM,HARVEST_ABOVE)
+stomate_TimeSeriesVars3D=(CO2FLUX,LAI,VEGET,VEGET_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION)
+
+# !!! DO NOT MODIFY spinup.card AFTER THIS LINE !!! 
+
+[InitialStateFiles]
+List=	
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+# For SPINUP, we don't need a restart ! the we save the output.card 
+List=	(output_out.card,  output.card,  output_in.card) 
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=	
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/COMP/spinup.card_analytical
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/COMP/spinup.card_analytical	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/COMP/spinup.card_analytical	(revision 5631)
@@ -0,0 +1,144 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+#
+## DEBUG mode for SPINUP 
+#
+# This mode keep all SPINUP directory in ARCHIVE
+# If disable, all ARCHIVE is automaticly cleaned.
+# 
+DEBUG_SPIN=n
+# If you don't want to keep old spinup steps, but last one
+CONSERVE=y
+
+# If you want to use the same forcing file
+DRIVER_NORESTART=n
+# If you want use config.card PeriodLength for TIME_LENGTH
+DRIVER_TIMELENGTH=y
+
+# Should we start the analytic resolution of the spinup?
+SPINUP_ANALYTIC=y
+
+#
+###-- STOMATE flag
+#
+ok_stomate=y
+
+#
+###-- CO2 flag
+#
+ok_co2=y
+
+#
+###-- LAI flag
+#
+lai_map=n
+
+#
+###-- fix vÃ©gÃ©tation flag
+#
+impose_veg=n
+
+#
+###-- historical vegetation maps
+#
+land_use=y
+
+#
+###-- ROUTING flag
+#
+ok_routing=n
+
+#
+###-- NEW HYDROL CWRR flag
+#
+ok_newhydrol=n
+
+
+    # SPINUP configuration : 
+    # ----------------------
+# Initialisation for spin-up :
+# sechiba alone (!!! only if ok_stomate == n !!!)
+duree_nostomate=0
+# sechiba and stomate
+duree_inistomate=1
+# teststomate (only if duree_nostomate or duree_inistomate > 0)
+duree_offlineini=0
+
+# Loop configuration for spin-up :
+# The whole job is restarted n_iter times
+n_iter=10
+# orchidee with sechiba (and stomate if ok_stomate=y below)
+duree_sechiba=1
+# teststomate
+duree_stomate=0
+# forcesoil
+duree_carbonsol=0
+
+# Finalization for spin-up :
+# all orchidee
+duree_final=1
+# This last parameter must be non-zero.
+
+# level of the history files for each iteration of the SPINUP
+level_hist=0
+# level of the history files for the final iteration of the SPINUP
+level_hist_final=10
+
+RESOL=360x180
+
+# For FLUXNET style jobs : we should erase LAND USE file ?
+# This flag will suppress all files in option ListNonDel of section BoundaryFiles in orchidee.card of Subjobs.
+BoundaryFilesListNonDel=n
+
+# Path for all skeleton SubJob scripts to SPINUP directory
+SubJobPath=${MODIPSL}/config/ORCHIDEE_OL
+
+[SubJobForcingFile]
+# Boundary Files for ORCHIDEE subjobs :
+List= (${R_BC}/OOL/${config_UserChoices_TagName}/NCC/ncc_for_${year}.nc, forcing_file.nc)
+#List= (${R_BC}/OOL/${config_UserChoices_TagName}/CRU/force${year}.nc, .)
+ListNonDel= ()
+
+[SubJobParams]
+# You can specify here any parameters to be modified in run.def
+DEBUG_INFO=n
+LONGPRINT=n
+FORCESOIL_NB_YEAR=1
+
+[SubJobPost]
+#
+##-- TimeSeries
+#
+sechiba_TimeSeriesVars2D=(nobiofrac, alb_nir, alb_vis, bqsb, evap, fluxlat, fluxsens, gqsb, netrad, qair, rain, runoff, snow, snownobio, snowf, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac)
+sechiba_TimeSeriesVars3D=(lai, maxvegetfrac, vegetfrac, CO2FLUX, ptn, nee)
+# ALMAOUTPUT
+#sechiba_TimeSeriesVars2D = (vegetfrac, maxvegetfrac, nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, \
+#                          Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, \
+#                          ECanop, TVeg, ESoil, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+stomate_TimeSeriesVars2D=(T2M_MONTH, CONTFRAC, RESOLUTION_X, RESOLUTION_Y, CONVFLUX, CFLUX_PROD10, CFLUX_PROD100,CO2FLUX_MONTHLY_SUM,HARVEST_ABOVE)
+stomate_TimeSeriesVars3D=(CO2FLUX,LAI,VEGET,VEGET_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION)
+
+# !!! DO NOT MODIFY spinup.card AFTER THIS LINE !!! 
+
+[InitialStateFiles]
+List=	
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+# For SPINUP, we don't need a restart ! the we save the output.card 
+List=	(output_out.card,  output.card,  output_in.card) 
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=	
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/COMP/spinup.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/COMP/spinup.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/COMP/spinup.driver	(revision 5631)
@@ -0,0 +1,1103 @@
+#!/bin/ksh
+
+#D- Driver du script pour SPINUP (off-line)
+
+
+function ORCHIDEE_def
+{
+    IGCM_debug_PushStack "ORCHIDEE_def"
+    
+    typeset ORCHIDEE_def_KEY ORCHIDEE_default_KEY
+
+    ORCHIDEE_def_KEY=$( grep -e "^${1}\ *=" ${New_SUBMIT_DIR}/PARAM/run.def | gawk -- 'BEGIN {FS="="} {print $2}')
+    if [ -f ${New_SUBMIT_DIR}/PARAM/orchidee.default ] ; then
+	ORCHIDEE_default_KEY=$( grep -e "^${1}\ *=" ${New_SUBMIT_DIR}/PARAM/orchidee.default | gawk -- 'BEGIN {FS="="} {print $2}')
+    fi
+
+    if [ X"${ORCHIDEE_def_KEY}" != X ] ; then
+	IGCM_debug_Print 2 "ORCHIDEE : ${1} has already been set in def file."
+	if [ -f ${New_SUBMIT_DIR}/PARAM/orchidee.default ] ; then
+	    IGCM_debug_Print 2 " default value : ${ORCHIDEE_default_KEY}"
+	fi
+	IGCM_debug_Print 2 " script value : ${2}"
+	IGCM_debug_Print 2 " USER value : ${ORCHIDEE_def_KEY}"
+	IGCM_debug_Print 2 " We will NOT set in again !"
+    else
+	echo "${1}= ${2}" >> ${New_SUBMIT_DIR}/PARAM/run.def
+	echo "" >> ${New_SUBMIT_DIR}/PARAM/run.def
+	echo "ORCHIDEE_def : ${1} ${2}"
+    fi
+
+    IGCM_debug_PopStack "ORCHIDEE_def"
+    return $RET
+}
+
+#-----------------------------------------------------------------
+function SPIN_Initialize
+{
+    IGCM_debug_PushStack "SPIN_Initialize"
+
+    # No parallelization for spinup job !
+    BATCH_NUM_PROC_TOT=""
+
+    RESOL=${spinup_UserChoices_RESOL}
+
+    # Copy initial output card for spinup job :
+    if [ ! -f ${SUBMIT_DIR}/output.card ] ; then
+	IGCM_sys_Cp ${SUBMIT_DIR}/output.card_init ${SUBMIT_DIR}/output.card
+	iter=0
+    else
+	IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/output.card Global
+	iter=${output_Global_Iteration}
+	IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/output.card PreviousStage
+	LastStageName=${output_Stage_LastStageName}
+	IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/output.card Stage
+	StageName=${output_Stage_StageName}
+    fi
+    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Global Path "${SUBMIT_DIR}"
+
+    # Compute DateEnd for ALL SPINUP
+    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+	ok_stom=1
+    else
+	ok_stom=0
+    fi
+
+# Compute Spinup dates
+    case ${config_UserChoices_PeriodLength} in
+    *Y|*y)
+	PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" )
+	;;
+    *) 
+	PeriodLengthInYears=1
+    esac
+
+# function SPIN_DateEnd () 
+# {
+#     IGCM_debug_PushStack "SPIN_DateEnd"
+
+# We must count only one PeriodLength (=${PeriodLengthInYears}) for each teststomate or forcesoil step.
+    This_SpinUp_Length_In_Years=$(( \
+	   ( ${spinup_UserChoices_duree_nostomate} * ( 1 - ${ok_stom} ) ) \
+ 	+ ( ${spinup_UserChoices_duree_inistomate} + ${PeriodLengthInYears} ) * ${ok_stom} \
+ 	+ ${spinup_UserChoices_n_iter} * ${spinup_UserChoices_duree_sechiba} \
+ 	+ ${spinup_UserChoices_n_iter} * ${ok_stom} * ( ${PeriodLengthInYears} + ${PeriodLengthInYears} ) \
+ 	+ ${spinup_UserChoices_duree_final} ))
+
+    IGCM_date_GetYearMonth ${DateBegin} year month   
+    if [ X"${config_UserChoices_CalendarType}" = X"360d" ] ; then
+    	This_SpinUp_DateEnd=$(( year + This_SpinUp_Length_In_Years - 1 ))1230
+    	This_SpinUp_HumanDateEnd=$(( year + This_SpinUp_Length_In_Years - 1 ))-12-30
+    else
+    	This_SpinUp_DateEnd=$(( year + This_SpinUp_Length_In_Years - 1 ))1231
+    	This_SpinUp_HumanDateEnd=$(( year + This_SpinUp_Length_In_Years - 1 ))-12-31
+    fi
+    IGCM_card_WriteOption ${SUBMIT_DIR}/config.card UserChoices DateEnd ${This_SpinUp_HumanDateEnd}
+    echo "SPINUP NEW Job DateEnd : " ${This_SpinUp_HumanDateEnd}
+    (( ExperienceLengthInDays=$( IGCM_date_DaysBetweenGregorianDate ${This_SpinUp_DateEnd} ${DateBegin} )  + 1 ))
+
+#    IGCM_debug_PopStack "SPIN_DateEnd"
+#}
+#   SPIN_DateEnd
+    
+    # Subjobs configuration : 
+    # -----------------------
+
+    # 1) SRF section of config.card
+# This section gives first restart file path and WriteFrequency.
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card SRF
+    set +A config_SRF -- ${config_SRF[*]} > /dev/null 2>&1
+    typeset option
+    for option in ${config_SRF[*]} ; do
+	IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SRF ${option}
+    done
+
+    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+	IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card SBG
+	set +A config_SBG -- ${config_SBG[*]} > /dev/null 2>&1
+	typeset option
+	for option in ${config_SBG[*]} ; do
+	    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG ${option}
+	done
+    fi
+
+
+    # 2) Subjob parametrization : SubJobParams in spinup.card
+# This section give flags to put in run.def of Subjobs.
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/COMP/spinup.card SubJobParams
+    set +A spinup_SubJobParams -- ${spinup_SubJobParams[*]} > /dev/null 2>&1
+
+    eval first_option=${spinup_SubJobParams[0]} > /dev/null 2>&1
+    if [ X${first_option} != X"Error:" ] ; then
+	typeset option
+	for option in ${spinup_SubJobParams[*]} ; do
+	    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/spinup.card SubJobParams ${option}
+	done
+    fi
+
+    # 3) Post-treatment
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card SubJobPost
+    typeset option
+    for option in ${config_SubJobPost[*]} ; do
+	IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SubJobPost ${option}
+    done
+
+    # 4) Get the forcing file name (structure with variables inside) for this Spinup
+    IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/COMP/spinup.card SubJobForcingFile List
+    IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/COMP/spinup.card SubJobForcingFile ListNonDel
+
+    IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/COMP/spinup.card SubJobPost sechiba_TimeSeriesVars2D
+    IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/COMP/spinup.card SubJobPost sechiba_TimeSeriesVars3D
+    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+	IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/COMP/spinup.card SubJobPost stomate_TimeSeriesVars2D
+	IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/COMP/spinup.card SubJobPost stomate_TimeSeriesVars3D
+    fi
+    IGCM_debug_PopStack "SPIN_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SPIN_Cp_Job
+{
+    IGCM_debug_PushStack "SPIN_Cp_Job"
+
+    typeset Path_Job_Ini New_Name
+
+    # Where to find the standard cards/drivers for this job
+    Path_Job_Ini=$1
+
+    # New Name for the Job :
+    New_Name=$2
+    # New Path for the job
+    New_SUBMIT_DIR=${SUBMIT_DIR}/${New_Name}
+
+    # Copy the standard sub-job in the ${SUBMIT_DIR} with the New_Name
+    IGCM_sys_Cp -Rp ${Path_Job_Ini} ${New_SUBMIT_DIR}
+
+    # Install this directory
+    # modifications on config.card
+    MyJobName=${config_UserChoices_JobName}
+    IGCM_card_DefineVariableFromOption ${New_SUBMIT_DIR}/config.card UserChoices JobName
+    OldJobName=${config_UserChoices_JobName}
+
+    SubJobName=${MyJobName}${New_Name}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobName ${SubJobName}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices TagName ${config_UserChoices_TagName}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices SpaceName ${config_UserChoices_SpaceName}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices ExperimentName ${config_UserChoices_ExperimentName}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices ARCHIVE ${config_UserChoices_ARCHIVE}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot ${config_UserChoices_JobNumProcTot}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Post PackFrequency ${config_Post_PackFrequency}
+
+    # keep the spinup JobName
+    config_UserChoices_JobName=${MyJobName}
+
+    # modifications on Job 
+    \rm ${New_SUBMIT_DIR}/Job_${OldJobName} 
+
+    sed -e "s/ ${MyJobName} / ${New_Name} /" \
+        -e "s/Script_Output_${MyJobName}.000001 /Script_Output_${New_Name}.000001 /" \
+	${SUBMIT_DIR}/Job_${MyJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}
+    chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName}
+
+    # modification on parameter files
+    if [ ! -f ${SUBMIT_DIR}/PARAM/run.def ] ; then
+	echo "#spinup add :" > ${New_SUBMIT_DIR}/PARAM/run.def
+    else
+	IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/run.def ${New_SUBMIT_DIR}/PARAM/run.def
+	echo "#spinup add :" >> ${New_SUBMIT_DIR}/PARAM/run.def
+    fi
+    echo "" >> ${New_SUBMIT_DIR}/PARAM/run.def
+
+    eval first_option=${spinup_SubJobParams[0]} > /dev/null 2>&1
+    if [ X${first_option} != X"Error:" ] ; then
+	typeset option
+	for option in ${spinup_SubJobParams[*]} ; do
+	    echo "For parameter file run.def"
+	    eval echo "${option}="\${spinup_SubJobParams_${option}}
+	    eval ORCHIDEE_def ${option} \${spinup_SubJobParams_${option}}
+	done
+    fi
+
+    if ( [ X${config_UserChoices_JobNumProcTot} != X ] && [ "${config_UserChoices_JobNumProcTot}" -gt 1 ] ) ; then
+	gawk -- "{if (! match(\$0,/^# .Date.*/) ) { print \$0 } else { printf(\"BATCH_NUM_PROC_TOT=%d \\n\\n\",${config_UserChoices_JobNumProcTot}) ; print \$0 } }" \
+ 	    ${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_
+	IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName}
+	chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName}
+    fi
+
+    IGCM_debug_PopStack "SPIN_Cp_Job"
+}
+
+function SPIN_prepare
+{
+    IGCM_debug_PushStack "SPIN_prepare"
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Restarts OverRule n
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card OOL Restart n
+
+    typeset option
+    for option in ${config_SubJobPost[*]} ; do
+	eval value=\${config_SubJobPost_${option}}
+	eval echo ${option} ${value}
+	if [ X${value} != X ] ; then
+	    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Post ${option} \${config_SubJobPost_${option}}
+	fi
+    done
+
+    # For Subjob special flags
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices ROUTING ${spinup_UserChoices_ok_routing}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices NEWHYDROL ${spinup_UserChoices_ok_newhydrol}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices LAIMAP ${spinup_UserChoices_lai_map}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices IMPOSE_VEG ${spinup_UserChoices_impose_veg}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices LAND_USE ${spinup_UserChoices_land_use}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices OKCO2 ${spinup_UserChoices_ok_co2}
+
+    if [ X${spinup_UserChoices_BoundaryFilesListNonDel} = Xy ] ; then 
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card BoundaryFiles ListNonDel "()"
+    fi
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee_ol.card UserChoices NORESTART ${spinup_UserChoices_DRIVER_NORESTART}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee_ol.card UserChoices TIMELENGTH ${spinup_UserChoices_DRIVER_TIMELENGTH}
+
+    spinup_SubJobForcingFile_List0=${spinup_SubJobForcingFile_List[0]} > /dev/null 2>&1
+    if [ X${spinup_SubJobForcingFile_List0} != X${NULL_STR} ] ; then
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee_ol.card BoundaryFiles List "("$( echo ${spinup_SubJobForcingFile_List[@]} | sed -e "s/ /,/g" )")"
+    else
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee_ol.card BoundaryFiles List "()"
+    fi
+
+    spinup_SubJobForcingFile_ListNonDel0=${spinup_SubJobForcingFile_ListNonDel[0]} > /dev/null 2>&1
+    if [ X${spinup_SubJobForcingFile_ListNonDel0} != X${NULL_STR} ] ; then
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee_ol.card BoundaryFiles ListNonDel "("$( echo ${spinup_SubJobForcingFile_ListNonDel[@]} | sed -e "s/ /,/g" )")"
+    else
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee_ol.card BoundaryFiles ListNonDel "()"
+    fi
+
+    IGCM_debug_PopStack "SPIN_prepare"
+}
+
+#-----------------------------------------------------------------
+function SPIN_OptionsSechiba
+{
+    IGCM_debug_PushStack "SPIN_OptionsSechiba"
+
+
+    spinup_SubJobPost_sechiba_TimeSeriesVars0=${spinup_SubJobPost_sechiba_TimeSeriesVars2D[0]}
+    if [ X${spinup_SubJobPost_sechiba_TimeSeriesVars0} != X${NULL_STR} ] ; then
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card Post_1M_sechiba_history TimeSeriesVars2D "("$( echo ${spinup_SubJobPost_sechiba_TimeSeriesVars2D[@]} | sed -e "s/ /,/g" )")"
+    else
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card Post_1M_sechiba_history TimeSeriesVars2D "()"
+    fi
+    spinup_SubJobPost_sechiba_TimeSeriesVars0=${spinup_SubJobPost_sechiba_TimeSeriesVars3D[0]}
+    if [ X${spinup_SubJobPost_sechiba_TimeSeriesVars0} != X${NULL_STR} ] ; then
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card Post_1M_sechiba_history TimeSeriesVars3D "("$( echo ${spinup_SubJobPost_sechiba_TimeSeriesVars3D[@]} | sed -e "s/ /,/g" )")"
+    else
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card Post_1M_sechiba_history TimeSeriesVars3D "()"
+    fi
+
+    IGCM_debug_PopStack "SPIN_OptionsSechiba"
+}
+
+#-----------------------------------------------------------------
+function SPIN_OptionsStomate
+{
+    IGCM_debug_PushStack "SPIN_OptionsStomate"
+
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/stomate.card UserChoices SPINUP_ANALYTIC ${spinup_UserChoices_SPINUP_ANALYTIC}
+
+    spinup_SubJobPost_stomate_TimeSeriesVars0=${spinup_SubJobPost_stomate_TimeSeriesVars2D[0]} > /dev/null 2>&1
+    if [ X${spinup_SubJobPost_stomate_TimeSeriesVars0} != X${NULL_STR} ] ; then
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/stomate.card Post_1M_stomate_history TimeSeriesVars2D "("$( echo ${spinup_SubJobPost_stomate_TimeSeriesVars2D[@]} | sed -e "s/ /,/g" )")"
+    else
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/stomate.card Post_1M_stomate_history TimeSeriesVars3D "()"
+    fi
+    spinup_SubJobPost_stomate_TimeSeriesVars0=${spinup_SubJobPost_stomate_TimeSeriesVars3D[0]} > /dev/null 2>&1
+    if [ X${spinup_SubJobPost_stomate_TimeSeriesVars0} != X${NULL_STR} ] ; then
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/stomate.card Post_1M_stomate_history TimeSeriesVars3D "("$( echo ${spinup_SubJobPost_stomate_TimeSeriesVars3D[@]} | sed -e "s/ /,/g" )")"
+    else
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/stomate.card Post_1M_stomate_history TimeSeriesVars3D "()"
+    fi
+
+    # Nb years for forcing FORCESOIL
+    ORCHIDEE_def FORCESOIL_STEP_PER_YEAR 365
+    # Force creation of stomate_forcing.nc and stomate_Cforcing files
+    ORCHIDEE_def STOMATE_FORCING_NAME stomate_forcing.nc
+    ORCHIDEE_def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+
+    IGCM_debug_PopStack "SPIN_OptionsStomate"
+}
+
+#-----------------------------------------------------------------
+function SPIN_PeriodStart
+{
+    IGCM_debug_PushStack "SPIN_PeriodStart"
+    echo "" > stack
+    IGCM_debug_PopStack "SPIN_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+Update_SPIN_iter=false
+function SPIN_Update
+{
+    IGCM_debug_PushStack "SPIN_Update"
+
+    Update_SPIN_iter=false
+
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/output.card Global
+    SpinUpPath=${output_Global_Path}
+
+    # StageName is the internal name for the interation for spinup
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/output.card Stage StageName
+    StageName=${output_Stage_StageName}
+
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/output.card PreviousStage LastStageName 
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/output.card PreviousStage LastExtName
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/output.card PreviousStage LastRestartDate
+
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/output.card Global Iteration
+    iter=${output_Global_Iteration}
+
+    config_SubJob_PeriodLength="${config_UserChoices_PeriodLength}"
+
+    # ExtName is the short JobName of this stage
+
+    if ( [ X${StageName} = X"start" ] ) ; then 
+	# We are in first step.
+	if ( ${FirstInitialize} ) ; then
+	    # What is the first step ?
+
+	    # First phase : Is there restarts (we would initialize ORCHIDEE) or not ?
+	    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card PreviousStage LastStageName "start"
+	    output_PreviousStage_LastStageName="start"
+	    if ( [ X"${config_SRF_Restart}" = "Xn" ] && [ X"${config_SBG_Restart}" = "Xn" ] ) ; then
+		if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		    if [ ${spinup_UserChoices_duree_inistomate} -gt 0 ] ; then
+		        # Perhaps we want to by-pass first SECHIBA-ONLY Stage and do a SECSTO Job first ?
+			StageName=SECSTOINI
+			ExtName=STOI
+		    else
+			echo "SPINUP no restart : !!!! Error !!!! "
+			echo         "ok_stomate = " ${spinup_UserChoices_ok_stomate}
+			echo         "duree_inistomate = " ${spinup_UserChoices_duree_inistomate}
+			echo "NO SPINUP possible !!"
+			exit 1
+		    fi
+		elif [ ${spinup_UserChoices_duree_nostomate} -gt 0 ] ; then
+			StageName=SECINI
+			ExtName=SECI
+		else
+		    echo "SPINUP : NO RESTART and NO INITIALIZATION !"
+		    echo "     We will launch the iteration loop directly."
+		    if [ ${spinup_UserChoices_duree_sechiba} -gt 0 ] ; then
+			StageName=SECSTO
+			iter=1
+			ExtName=ORC-${iter}
+			Update_SPIN_iter=true
+		    else
+			echo "SPINUP : !!!! Error !!!! "
+			echo         "duree_sechiba = " ${spinup_UserChoices_duree_sechiba}
+			echo "NO SPINUP possible !!"
+			exit 1
+		    fi
+		fi
+	    else
+		echo "SPINUP : "
+		echo "     We will to launch the iteration loop WITH RESTARTS."
+		echo "     Global Restart path = " ${config_Restarts_RestartPath}
+		if [ ${spinup_UserChoices_duree_sechiba} -gt 0 ] ; then
+		    StageName=SECSTO
+		    iter=1
+		    ExtName=ORC-${iter}
+		    Update_SPIN_iter=true
+		else
+		    echo "SPINUP : !!!! Error !!!! "
+		    echo "        duree_sechiba = " ${spinup_UserChoices_duree_sechiba}
+		    echo "NO SPINUP possible !!"
+		    exit 1
+		fi
+	    fi
+	    echo "(" start "," ${ExtName} ") \\" >> ${SUBMIT_DIR}/output.card
+
+	else
+	    echo "SPINUP : !!!! Error with output !!!! "
+	    echo "        duree_sechiba = " ${spinup_UserChoices_duree_sechiba}
+	    echo "NO SPINUP possible !!"
+	    exit 1
+	fi
+
+    else
+	# We are not in first step.
+
+	# WHAT IS THE NEXT STEP ?
+	case ${output_PreviousStage_LastStageName} in
+	    "SECINI")
+		echo "     We begin the iteration loop !!"
+		if [ ${spinup_UserChoices_duree_sechiba} -gt 0 ] ; then
+		    StageName=SECSTO
+		    iter=1
+		    ExtName=ORC-${iter}
+		    Update_SPIN_iter=true
+		else
+		    echo "SPINUP : !!!! Error !!!! "
+		    echo         "duree_sechiba = " ${spinup_UserChoices_duree_sechiba}
+		    echo "NO SPINUP possible !!"
+		    exit 1
+		fi
+		;;
+	    "SECSTOINI")
+		if [ ${spinup_UserChoices_duree_offlineini} -gt 0 ] ; then
+		    StageName=TSTOINI
+		    ExtName=TSTOI
+		else
+		    echo "     We begin the iteration loop !!"
+		    if [ ${spinup_UserChoices_duree_sechiba} -gt 0 ] ; then
+			StageName=SECSTO
+			iter=1
+			ExtName=ORC-${iter}
+			Update_SPIN_iter=true
+		    else
+			echo "SPINUP : !!!! Error !!!! "
+			echo         "duree_sechiba = " ${spinup_UserChoices_duree_sechiba}
+			echo "NO SPINUP possible !!"
+			exit 1
+		    fi
+		fi
+		;;
+	    "TSTOINI")
+		echo "     We begin the iteration loop !!"
+		if [ ${spinup_UserChoices_duree_sechiba} -gt 0 ] ; then
+		    echo "     We begin the iteration loop !!"
+		    StageName=SECSTO
+		    iter=1
+		    ExtName=ORC-${iter}
+		    Update_SPIN_iter=true
+		else
+		    echo "SPINUP : !!!! Error !!!! "
+		    echo         "duree_sechiba = " ${spinup_UserChoices_duree_sechiba}
+		    echo "NO SPINUP possible !!"
+		    exit 1
+		fi
+		;;
+	    "SECSTO")
+ 		
+		if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		    echo "We will print he value of the previous SPINUP_DONE :"
+		    TestSpinUpDone=""
+		    TestSpinUpDone=$(IGCM_card_PrintOption ${SUBMIT_DIR}/${output_PreviousStage_LastExtName}/COMP/stomate.card UserChoices SPINUP_DONE)
+		    echo "Value of test_spinup : ${TestSpinUpDone} "
+		fi
+
+		if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		    if [ ${spinup_UserChoices_duree_stomate} -gt 0 ] ; then
+			StageName=TSTO
+			ExtName=TST-${iter}
+		    elif [ ${spinup_UserChoices_duree_carbonsol} -gt 0 ] ; then
+			StageName=FORC
+			ExtName=FOR-${iter}
+		    elif ( [ ${iter} -eq ${spinup_UserChoices_n_iter} ] || [ X"${TestSpinUpDone}" = "Xy" ] ) ; then
+			echo "Ending loop Job"
+			StageName=SECSTOF 
+			ExtName=FIN
+			IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Global Iteration END
+		    else
+			StageName=SECSTO
+			(( iter=iter+1 ))
+			ExtName=ORC-${iter}
+			Update_SPIN_iter=true
+		    fi
+		elif [ ${iter} -eq ${spinup_UserChoices_n_iter} ] ; then
+		    echo "Ending loop Job"
+		    StageName=SECSTOF 
+		    ExtName=FIN
+		    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Global Iteration END
+		else
+		    StageName=SECSTO
+		    (( iter=iter+1 ))
+		    ExtName=ORC-${iter}
+		    Update_SPIN_iter=true
+		fi
+		;;
+	    "TSTO") 
+		if [ ${spinup_UserChoices_duree_carbonsol} -gt 0 ] ; then
+		    StageName=FORC
+		    ExtName=FOR-${iter}
+		elif [ ${iter} -eq ${spinup_UserChoices_n_iter} ] ; then
+		    echo "Ending loop Job"
+		    StageName=SECSTOF 
+		    ExtName=FIN
+		    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Global Iteration END
+		else
+		    StageName=SECSTO
+		    (( iter=iter+1 ))
+		    ExtName=ORC-${iter}
+		    Update_SPIN_iter=true
+		fi
+		;;
+	    "FORC") 
+		if [ ${iter} -eq ${spinup_UserChoices_n_iter} ] || [ X${iter} = XEND ] ; then
+		    echo "Ending loop Job"
+		    StageName=SECSTOF 
+		    ExtName=FIN
+		    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Global Iteration END
+		else
+		    StageName=SECSTO
+		    (( iter=iter+1 ))
+		    ExtName=ORC-${iter}
+		    Update_SPIN_iter=true
+		fi
+		;;
+	    "SECSTOF") 
+		echo "Begin Historical Job"
+		StageName=HISTO 
+		ExtName=HIST
+		IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Global Iteration HIST
+		;;
+
+	    "HISTO")
+		echo "SPINUP : We have done the SPINUP !! "
+		echo "The job will be closed."
+		;;
+	esac
+    fi
+
+    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Stage StageName ${StageName}
+    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Stage ExtName ${ExtName}
+
+    # BEGIN THE NEW STEP : 
+    LastJobName=${config_UserChoices_JobName}${output_PreviousStage_LastExtName}
+
+    # Copy and modifications of the standard card set
+    case $StageName in
+	"SECINI")
+
+	    # SECHIBA only initialisation step
+	    This_Job_Length_In_Years=${spinup_UserChoices_duree_nostomate}
+
+	    # Copy the standard card set 
+	    # !!! must not have been modified !!!
+	    SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/OOL_SEC ${ExtName}
+
+	    Level_Hist=${spinup_UserChoices_level_hist}
+	    if [ X${Level_Hist} != X ] ; then
+		ORCHIDEE_def SECHIBA_HISTLEVEL ${Level_Hist}
+		ORCHIDEE_def STOMATE_HISTLEVEL ${Level_Hist}
+	    fi
+
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF Restart n
+    
+            SPIN_prepare
+
+	    SPIN_OptionsSechiba
+
+	    ;;
+	"SECSTOINI")
+
+	    # SECHIBA+STOMATE initialisation step
+	    This_Job_Length_In_Years=${spinup_UserChoices_duree_inistomate}
+
+	    # Copy the standard card set 
+	    # !!! must not have been modified !!!
+	    SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/OOL_SEC_STO ${ExtName}
+
+	    Level_Hist=${spinup_UserChoices_level_hist}
+	    if [ X${Level_Hist} != X ] ; then
+		ORCHIDEE_def SECHIBA_HISTLEVEL ${Level_Hist}
+		ORCHIDEE_def STOMATE_HISTLEVEL ${Level_Hist}
+	    fi
+
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF Restart n
+	    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+    		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG Restart n
+	    fi
+    
+	    SPIN_prepare
+
+	    SPIN_OptionsSechiba
+	    SPIN_OptionsStomate
+
+	    ;;
+
+	"TSTOINI")
+
+	    # TESTSTOMATE initialisation step
+	    This_Job_Length_In_Years=${spinup_UserChoices_duree_offlineini}
+	    
+	    # TESTSTOMATE will run in one execution only
+	    config_SubJob_PeriodLength="${This_Job_Length_In_Years}Y"
+
+	    # Copy the standard card set 
+	    # !!! must not have been modified !!!
+	    SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/TESTSTOMATE ${ExtName}
+
+	    Level_Hist=${spinup_UserChoices_level_hist}
+	    if [ X${Level_Hist} != X ] ; then
+		ORCHIDEE_def SECHIBA_HISTLEVEL ${Level_Hist}
+		ORCHIDEE_def STOMATE_HISTLEVEL ${Level_Hist}
+	    fi
+
+	    # Always restart for teststomate
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Restarts OverRule n
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF Restart y
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartDate ${output_PreviousStage_LastRestartDate}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG Restart y
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartDate ${output_PreviousStage_LastRestartDate}
+
+            # Define restart simulation name
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartJobName ${LastJobName}
+	    config_SRF_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartPath ${config_SRF_RestartPath}
+	    
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartJobName ${LastJobName}
+	    config_SBG_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartPath ${config_SBG_RestartPath}
+	    
+	    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/output.card PreviousStage LastRestartDate
+
+	    # We Get the forcing file from the previous run of ORCHIDEE
+	    sed -e "s&(\${config_SBG_RestartPath}/\${config_SBG_RestartJobName}/SBG/Restart/\${config_SBG_RestartJobName}_\${Date_Restarts}_stomate_forcing.nc, stomate_forcing.nc)&(${config_SBG_RestartPath}/${LastJobName}/SBG/Restart/${LastJobName}_${output_PreviousStage_LastRestartDate}_stomate_forcing.nc, stomate_forcing.nc)&" ${New_SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp
+	    IGCM_sys_Mv sechiba.card.tmp ${New_SUBMIT_DIR}/COMP/sechiba.card
+
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices IMPOSE_VEG ${spinup_UserChoices_impose_veg}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices LAND_USE ${spinup_UserChoices_land_use}
+
+	    typeset option
+	    for option in ${config_SubJobPost[*]} ; do
+		eval value=\${config_SubJobPost_${option}}
+		eval echo ${option} ${value}
+		if [ X${value} != X ] ; then
+		    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Post ${option} \${config_SubJobPost_${option}}
+		fi
+	    done
+
+	    SPIN_OptionsStomate
+
+	    ;;
+	"SECSTO")
+
+	    # loop step
+
+	    This_Job_Length_In_Years=${spinup_UserChoices_duree_sechiba}
+
+	    # Copy the standard card set 
+	    # !!! must not have been modified !!!
+	    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/OOL_SEC_STO ${ExtName}
+	    else
+		SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/OOL_SEC ${ExtName}
+	    fi
+
+	    Level_Hist=${spinup_UserChoices_level_hist}
+	    if [ X${Level_Hist} != X ] ; then
+		ORCHIDEE_def SECHIBA_HISTLEVEL ${Level_Hist}
+		ORCHIDEE_def STOMATE_HISTLEVEL ${Level_Hist}
+	    fi
+
+	    SPIN_prepare
+
+	    if [ X${output_PreviousStage_LastStageName} != X"start" ] ; then
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF Restart y
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartDate ${output_PreviousStage_LastRestartDate}
+                # Define restart simulation name
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartJobName ${LastJobName}
+		config_SRF_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartPath ${config_SRF_RestartPath}
+
+		if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG Restart y
+		    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartDate ${output_PreviousStage_LastRestartDate}
+                    # Define restart simulation name
+		    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartJobName ${LastJobName}
+		    config_SBG_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+		    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartPath ${config_SBG_RestartPath}
+		fi
+	    else
+		# If we begin directly with the loop.
+		IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SRF Restart
+		IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SRF RestartDate
+		IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SRF RestartJobName
+		IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SRF RestartPath
+		IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SRF OldName
+		echo "Run in iteration loop with restarts : "
+		echo ${config_SRF_Restart}, ${config_SRF_RestartDate}, ${config_SRF_RestartJobName}, ${config_SRF_RestartPath}, ${config_SRF_OldName}
+
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF Restart ${config_SRF_Restart}
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartDate ${config_SRF_RestartDate}
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartJobName ${config_SRF_RestartJobName}
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartPath ${config_SRF_RestartPath}
+		if [ X${config_SRF_OldName} != X"" ] ; then
+			IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF OldName ${config_SRF_OldName}
+		fi
+		if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+			IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG Restart
+			IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG RestartDate
+			IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG RestartJobName
+			IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG RestartPath
+			IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG OldName
+			echo "Run in iteration loop with STOMATE restarts : "
+			echo ${config_SBG_Restart}, ${config_SBG_RestartDate}, ${config_SBG_RestartJobName}, ${config_SBG_RestartPath}, ${config_SBG_OldName}
+
+			IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG Restart ${config_SBG_Restart}
+			IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartDate ${config_SBG_RestartDate}
+			IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartJobName ${config_SBG_RestartJobName}
+			IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartPath ${config_SBG_RestartPath}
+			if [ X${config_SBG_OldName} != X"" ] ; then
+			    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG OldName ${config_SBG_OldName}
+			fi
+		fi
+	    fi
+
+	    SPIN_OptionsSechiba
+	    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		SPIN_OptionsStomate
+	    fi
+
+	    ;;
+	"TSTO") 
+
+	    # TESTSTOMATE loop step
+	    This_Job_Length_In_Years=${spinup_UserChoices_duree_stomate}
+	    
+	    # One execution only
+	    config_SubJob_PeriodLength="${This_Job_Length_In_Years}Y"
+
+	    # Copy the standard card set 
+	    # !!! must not have been modified !!!
+	    SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/TESTSTOMATE ${ExtName}
+
+	    Level_Hist=${spinup_UserChoices_level_hist}
+	    if [ X${Level_Hist} != X ] ; then
+		ORCHIDEE_def SECHIBA_HISTLEVEL ${Level_Hist}
+		ORCHIDEE_def STOMATE_HISTLEVEL ${Level_Hist}
+	    fi
+
+	    # Always restart for teststomate
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Restarts OverRule n
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF Restart y
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartDate ${output_PreviousStage_LastRestartDate}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG Restart y
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartDate ${output_PreviousStage_LastRestartDate}
+
+            # Define restart simulation name
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartJobName ${LastJobName}
+	    config_SRF_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartPath ${config_SRF_RestartPath}
+
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartJobName ${LastJobName}
+	    config_SBG_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartPath ${config_SBG_RestartPath}
+
+	    # We Get the forcing file from the previous run of ORCHIDEE
+	    sed -e "s&(\${config_SBG_RestartPath}/\${config_SBG_RestartJobName}/SBG/Restart/\${config_SBG_RestartJobName}_\${Date_Restarts}_stomate_forcing.nc, stomate_forcing.nc)&(${config_SBG_RestartPath}/${LastJobName}/SBG/Restart/${LastJobName}_${output_PreviousStage_LastRestartDate}_stomate_forcing.nc, stomate_forcing.nc)&" ${New_SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp
+	    IGCM_sys_Mv sechiba.card.tmp ${New_SUBMIT_DIR}/COMP/sechiba.card
+
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices IMPOSE_VEG ${spinup_UserChoices_impose_veg}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices LAND_USE ${spinup_UserChoices_land_use}
+
+	    typeset option
+	    for option in ${config_SubJobPost[*]} ; do
+		eval value=\${config_SubJobPost_${option}}
+		eval echo ${option} ${value}
+		if [ X${value} != X ] ; then
+		    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Post ${option} \${config_SubJobPost_${option}}
+		fi
+	    done
+
+	    SPIN_OptionsStomate
+
+	    ;;
+	"FORC") 
+	    # FORCESOIL loop step
+	    This_Job_Length_In_Years=${spinup_UserChoices_duree_carbonsol}
+	    
+	    # One execution only
+	    config_SubJob_PeriodLength="${This_Job_Length_In_Years}Y"
+
+	    # Copy the standard card set 
+	    # !!! must not have been modified !!!
+	    SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/FORCESOIL ${ExtName}
+
+	    Level_Hist=${spinup_UserChoices_level_hist}
+	    if [ X${Level_Hist} != X ] ; then
+		ORCHIDEE_def SECHIBA_HISTLEVEL ${Level_Hist}
+		ORCHIDEE_def STOMATE_HISTLEVEL ${Level_Hist}
+	    fi
+
+	    # Always restart for forcesoil
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Restarts OverRule n
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG Restart y
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartDate ${output_PreviousStage_LastRestartDate}
+
+            # Define restart simulation name
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartJobName ${LastJobName}
+	    config_SRF_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+	    config_SBG_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartPath ${config_SBG_RestartPath}
+
+	    # We Get the forcing file from the previous run of ORCHIDEE
+	    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/output.card PreviousStage LastRestartDate
+
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/stomate.card BoundaryFiles ListNonDel \
+                    "(${config_SBG_RestartPath}/${LastJobName}/SBG/Restart/${LastJobName}_${output_PreviousStage_LastRestartDate}_stomate_Cforcing.nc, stomate_Cforcing.nc), \\"
+
+	    # Nb years for forcing FORCESOIL
+	    ORCHIDEE_def FORCESOIL_STEP_PER_YEAR 365
+
+	    ;;
+	"SECSTOF") 
+
+	    # END step
+
+	    This_Job_Length_In_Years=${spinup_UserChoices_duree_final}
+
+	    # Copy the standard card set 
+	    # !!! must not have been modified !!!
+	    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/OOL_SEC_STO ${ExtName}
+	    else
+		SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/OOL_SEC ${ExtName}
+	    fi
+
+	    Level_Hist=${spinup_UserChoices_level_hist}
+	    if [ X${Level_Hist} != X ] ; then
+		ORCHIDEE_def SECHIBA_HISTLEVEL ${Level_Hist}
+		ORCHIDEE_def STOMATE_HISTLEVEL ${Level_Hist}
+	    fi
+
+	    SPIN_prepare
+
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF Restart y
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartDate ${output_PreviousStage_LastRestartDate}
+            # Define restart simulation name
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartJobName ${LastJobName}
+	    config_SRF_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartPath ${config_SRF_RestartPath}
+	    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG Restart y
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartDate ${output_PreviousStage_LastRestartDate}
+                # Define restart simulation name
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartJobName ${LastJobName}
+		config_SBG_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartPath ${config_SBG_RestartPath}
+	    fi
+
+	    SPIN_OptionsSechiba
+	    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		SPIN_OptionsStomate
+	    fi
+
+	    ;;
+
+	"HISTO") 
+
+	    # Historical step
+
+	    case ${config_SubJob_PeriodLength} in
+		*Y|*y)
+    		    This_Job_Length_In_Years=$( echo ${1} | awk -F '[yY]' "{print ${config_SubJob_PeriodLength}}" )
+    		    ;;
+		*M|*m)
+    		    This_Job_Length_In_Years=1
+    		    ;;
+		*)
+    		    echo "SPINUP : Impossible"
+    		    echo "     We have a PeriodLength less than 1M : " ${config_SubJob_PeriodLength}
+    		    echo "     We can't do the spinup with such a frequency !"
+    		    exit 1
+    		    ;;
+	    esac
+
+	    # Copy the standard card set 
+	    # !!! must not have been modified !!!
+	    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/OOL_SEC_STO ${ExtName}
+	    else
+		SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/OOL_SEC ${ExtName}
+	    fi
+
+	    Level_Hist=${spinup_UserChoices_level_hist_final}
+	    if [ X${Level_Hist} != X ] ; then
+		ORCHIDEE_def SECHIBA_HISTLEVEL ${Level_Hist}
+		ORCHIDEE_def STOMATE_HISTLEVEL ${Level_Hist}
+	    fi
+
+	    SPIN_prepare
+
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF Restart y
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartDate ${output_PreviousStage_LastRestartDate}
+            # Define restart simulation name
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartJobName ${LastJobName}
+	    config_SRF_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+	    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF RestartPath ${config_SRF_RestartPath}
+	    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG Restart y
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartDate ${output_PreviousStage_LastRestartDate}
+                # Define restart simulation name
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartJobName ${LastJobName}
+		config_SBG_RestartPath=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG RestartPath ${config_SBG_RestartPath}
+	    fi
+
+	    SPIN_OptionsSechiba
+	    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+		SPIN_OptionsStomate
+	    fi
+
+	    ;;
+	*)
+	    echo "Erreur !! StageName not found."
+	    exit 1
+    esac
+
+
+    # For all Subjobs  
+    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Stage StageName ${StageName}
+    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Stage ExtName ${ExtName}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices CalendarType ${config_UserChoices_CalendarType}
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices DateBegin ${config_UserChoices_DateBegin}
+
+    # Compute DateEnd for SECHIBA initialisation step
+    IGCM_date_GetYearMonth ${DateBegin} year month
+    if [ X"${config_UserChoices_CalendarType}" = X"360d" ] ; then
+    	This_Job_DateEnd=$( IGCM_date_YearDigit $(( year + This_Job_Length_In_Years - 1 )) )1230
+    	This_Job_HumanDateEnd=$( IGCM_date_YearDigit $(( year + This_Job_Length_In_Years - 1 )) )-12-30
+    else
+    	This_Job_DateEnd=$( IGCM_date_YearDigit $(( year + This_Job_Length_In_Years - 1 )) )1231
+    	This_Job_HumanDateEnd=$( IGCM_date_YearDigit $(( year + This_Job_Length_In_Years - 1 )) )-12-31
+    fi
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices DateEnd ${This_Job_HumanDateEnd}
+
+
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices PeriodLength ${config_SubJob_PeriodLength}
+    # Compute Subjob number of Periods
+    case ${config_SubJob_PeriodLength} in
+    *Y|*y)
+    	PeriodNbSubJob=$(( This_Job_Length_In_Years / $( echo ${1} | awk -F '[yY]' "{print ${config_SubJob_PeriodLength}}" ) ))
+    	;;
+    *M|*m)
+    	PeriodNbSubJob=$(( 12 * This_Job_Length_In_Years / $( echo ${1} | awk -F '[mM]' "{print ${config_SubJob_PeriodLength}}" ) ))
+    	;;
+    *)
+    	echo "SPINUP : Impossible"
+    	echo "     We have a PeriodLength less than 1M : " ${config_SubJob_PeriodLength}
+    	echo "     We can't do the spinup with such a frequency !"
+    	exit 1
+    	;;
+    esac
+    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices PeriodNb ${PeriodNbSubJob}
+
+    echo "SECHIBA WriteFrequency : " ${config_SRF_WriteFrequency}
+    if ( [ X${StageName} != X"TSTOINI" ] && [ X${StageName} != X"TSTO" ] && [ X${StageName} != X"FORC" ] ) ; then
+	IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF WriteFrequency "${config_SRF_WriteFrequency}"
+    fi
+    if [ X"${spinup_UserChoices_ok_stomate}" = "Xy" ] ; then
+	echo "STOMATE WriteFrequency : " ${config_SBG_WriteFrequency}
+	case $StageName in
+	    "TSTOINI"|"TSTO")
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG WriteFrequency "1Y"
+		;;
+	    *)
+		IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SBG WriteFrequency "${config_SBG_WriteFrequency}"
+	esac
+    fi
+
+    # Remove the script created by the system (curie or obelix) by IGCM_sys_build_execution_scripts
+    \rm ${RUN_DIR}/script_SPIN.ksh  
+
+    # (Re)-Create the script
+    echo "#!/bin/ksh" > ${RUN_DIR}/script_SPIN.ksh
+    echo "cd ${New_SUBMIT_DIR}" >> ${RUN_DIR}/script_SPIN.ksh
+    echo "export SUBMIT_DIR=${New_SUBMIT_DIR}" >> ${RUN_DIR}/script_SPIN.ksh
+    echo "${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Script_Output_${SubJobName}.000001 </dev/null 2>&1" >> ${RUN_DIR}/script_SPIN.ksh
+    echo "echo 'End of Subjob : ' \$( date )" >> ${RUN_DIR}/script_SPIN.ksh
+    echo "echo 'finish.'" >> ${RUN_DIR}/script_SPIN.ksh
+
+    # Give Execution right to the script
+    chmod u+x ${RUN_DIR}/script_SPIN.ksh
+
+    cp -rp ${RUN_DIR}/script_SPIN.ksh ${RUN_DIR}/SPIN
+
+    # force run with nohup
+    BATCH_NUM_PROC_TOT=1
+    MPIRUN_COMMAND="time nohup"
+
+    # Compatibility with libIGCM version < 2.0
+    config_Executable_Name=script_SPIN.ksh
+
+    IGCM_debug_PopStack "SPIN_Update"
+}
+
+#-----------------------------------------------------------------
+function SPIN_Finalize
+{
+    IGCM_debug_PushStack "SPIN_Finalize"
+
+    \rm ${RUN_DIR}/script_SPIN.ksh
+
+    echo "Return to Master SPINUP job : " $( date )
+
+    # Does the SubJob began ?
+    if [ -f ${New_SUBMIT_DIR}/run.card ] ; then
+	IGCM_card_DefineVariableFromOption ${New_SUBMIT_DIR}/run.card Configuration PeriodState
+    else
+	run_Configuration_PeriodState="Fatal"
+    fi
+
+# ATTENTION : avec ce test "!= Completed", on impose que chaque sous-job est contenu dans une seule itération PBS
+# On pourrait améliorer ce point pour tenir compte d'un sous-job long... 
+# Mais il faudrait faire ce test au début de la fonction update 
+# pour déterminer si on doit reprendre un job non terminer ou démarrer le suivant.
+    # Did it finish ?
+    if [ X${run_Configuration_PeriodState} != X"Completed" ] ; then
+	IGCM_debug_Exit "SPIN_update Error Run SubJob : " ${SubJobName} ${run_Configuration_PeriodState}
+    fi
+    IGCM_debug_Verif_Exit
+    
+    # Save the Stage in output.card
+    if ( ${Update_SPIN_iter} ) ; then
+	IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Global Iteration ${iter}
+    fi
+
+    echo "(" ${StageName} "," ${ExtName} ") \\" >> ${SUBMIT_DIR}/output.card
+    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card PreviousStage LastStageName ${StageName}
+    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card PreviousStage LastExtName ${ExtName}
+    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card PreviousStage LastRestartDate ${This_Job_DateEnd}
+
+
+    # For forcesoil, we have to copy the sechiba restart of last Stage
+    if [ X${StageName} = X"FORC" ] ; then
+        # This must be done on the ARCHIVE HOST.
+	IGCM_sys_MkdirArchive ${config_SBG_RestartPath}/${SubJobName}/SRF/Restart
+	IGCM_sys_RshArchive \
+	    "cp -fp ${config_SBG_RestartPath}/${LastJobName}/SRF/Restart/${LastJobName}_${output_PreviousStage_LastRestartDate}_sechiba_rest.nc"\
+                  " ${config_SBG_RestartPath}/${SubJobName}/SRF/Restart/${SubJobName}_${This_Job_DateEnd}_sechiba_rest.nc"
+    fi
+
+    # For SPINUP, we don't need a restart ! Then we save the output.card 
+    IGCM_sys_Cp ${SUBMIT_DIR}/output.card output_out.card
+    FileToBeDeleted[${#FileToBeDeleted[@]}]=output_out.card
+
+
+# If NOT DEBUG mode : 
+# we can move Previous Job in SPINUP save DIR.
+    if ( [ X${spinup_UserChoices_DEBUG_SPIN} = Xn ] && [ X${output_PreviousStage_LastStageName} != Xstart ] ) ; then
+	if ( [ X${spinup_UserChoices_CONSERVE} = Xn ] \
+	  && [ X${output_PreviousStage_LastStageName} != XSECINI ] \
+          && [ X${output_PreviousStage_LastStageName} != XSECSTOINI ] ) ; then
+	    IGCM_sys_RshArchive "rm -Rf ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}${output_PreviousStage_LastExtName}/*/Analyse/*"
+	    IGCM_sys_RshArchive "rm -Rf ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}${output_PreviousStage_LastExtName}/*/Output/*"
+	fi
+
+	IGCM_sys_RshArchive "mv -f ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}${output_PreviousStage_LastExtName}"\
+                                 " ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_UserChoices_JobName}/SPIN/Output/"
+    fi
+
+#   Test the end of the SPINUP !
+    if [ X${StageName} = X"HISTO" ] ; then
+	DateEnd=${PeriodDateEnd}
+	(( SimulationLengthInDays=ExperienceLengthInDays + 1 ))
+	echo "SPINUP : END Job !!!"
+    fi
+
+    IGCM_debug_PopStack "SPIN_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/PARAM/orchidee.default
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/PARAM/orchidee.default	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/PARAM/orchidee.default	(revision 5631)
@@ -0,0 +1,1514 @@
+#
+#
+#  WARNING !!! 
+#  DO NOT MODIFY THIS FILE.
+#  THIS FILE IS ONLY PROVIDING INFORMATION ABOUT DEFAULT PARAMETER SETTINGS IN ORCHIDEE. 
+#
+#*******************************************************************************************
+#                    Namelist for ORCHIDEE (trunk revision 2135) 
+#*******************************************************************************************
+#
+#  For more details, see : http://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/OrchideeParameters 
+#
+#  Note : [m] : meters; [K] : Kelvin degrees; [C] : Celsius degrees
+#
+
+#*******************************************************************************************
+#          ORCHIDEE driver parameters (read in Off-line mode only) 
+#*******************************************************************************************
+
+# DEBUG_INFO ([FLAG] ) :  Flag for debug information 	{[-]}
+DEBUG_INFO =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# SPLIT_DT ([-]) :  splits the timestep imposed by the forcing 	{NOT(WEATHERGEN)}
+SPLIT_DT =  12 
+
+# RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions 	{[-]}
+RESTART_FILEIN =  NONE 
+
+# RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by the driver 	{[-]}
+RESTART_FILEOUT =  driver_rest_out.nc 
+
+# DRIVER_reset_time ([FLAG]) :  Overwrite time values from the driver restart file 	{[-]}
+DRIVER_reset_time =  n 
+
+# TIME_SKIP ([seconds, days, months, years]) :  Time in the forcing file at which the model is started. 	{[-]}
+TIME_SKIP =  0 
+
+# TIME_LENGTH ([seconds, days, months, years]) :  Length of the integration in time. 	{[-]}
+TIME_LENGTH =  DEF 
+
+# RELAXATION ([FLAG]) :  method of forcing 	{[-]}
+RELAXATION =  n 
+
+# RELAX_A ([days?]) :  Time constant of the relaxation layer 	{RELAXATION}
+RELAX_A =  1.0 
+
+# NO_INTER  ([FLAG]) :  No interpolation IF split is larger than 1 	{[-]}
+NO_INTER  =  y 
+
+# INTER_LIN ([FLAG]) :  Interpolation IF split is larger than 1 	{[-]}
+INTER_LIN =  n 
+
+# SPRED_PREC ([-]) :  Spread the precipitation. 	{[-]}
+SPRED_PREC =  1 
+
+# NETRAD_CONS ([FLAG]) :  Conserve net radiation in the forcing 	{INTER_LIN}
+NETRAD_CONS =  y 
+
+# ATM_CO2 ([ppm]) :  Value for atm CO2 	{[-]}
+ATM_CO2 =  350. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{[-]}
+ALLOW_WEATHERGEN =  n 
+
+# DT_WEATHGEN ([seconds]) :  Calling frequency of weather generator 	{ALLOW_WEATHERGEN}
+DT_WEATHGEN =  1800. 
+
+# LIMIT_WEST ([Degrees] ) :  Western limit of region 	{[-]}
+LIMIT_WEST =  -180. 
+
+# LIMIT_EAST ([Degrees] ) :  Eastern limit of region 	{[-]}
+LIMIT_EAST =  180. 
+
+# LIMIT_NORTH ([Degrees]) :  Northern limit of region 	{[-]}
+LIMIT_NORTH =  90. 
+
+# LIMIT_SOUTH ([Degrees]) :  Southern limit of region 	{[-]}
+LIMIT_SOUTH =  -90. 
+
+# MERID_RES ([Degrees]) :  North-South Resolution 	{ALLOW_WEATHERGEN}
+MERID_RES =  2. 
+
+# ZONAL_RES ([Degrees] ) :  East-West Resolution 	{ALLOW_WEATHERGEN}
+ZONAL_RES =  2. 
+
+# IPPREC ([-] ) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+IPPREC =  0 
+
+# WEATHGEN_PRECIP_EXACT ([FLAG]) :  Exact monthly precipitation 	{ALLOW_WEATHERGEN}
+WEATHGEN_PRECIP_EXACT =  n 
+
+# DUMP_WEATHER ([FLAG]) :  Write weather from generator into a forcing file 	{ALLOW_WEATHERGEN  }
+DUMP_WEATHER =  n 
+
+# DUMP_WEATHER_FILE ([FILE]) :  Name of the file that contains the weather from generator 	{DUMP_WEATHER}
+DUMP_WEATHER_FILE =  weather_dump.nc 
+
+# DUMP_WEATHER_GATHERED ([FLAG]) :  Dump weather data on gathered grid 	{DUMP_WEATHER}
+DUMP_WEATHER_GATHERED =  y 
+
+# HEIGHT_LEV1 ([m]) :   	{DUMP_WEATHER}
+HEIGHT_LEV1 =  10. 
+
+#*******************************************************************************************
+#          ORCHIDEE parameters  
+#*******************************************************************************************
+
+# LONGPRINT ([FLAG]) :  ORCHIDEE will print more messages 	{OK_SECHIBA}
+LONGPRINT =  n 
+
+# CHECKTIME ([FLAG]) :  ORCHIDEE will print messages on time 	{OK_SECHIBA}
+CHECKTIME =  n 
+
+# SOILTYPE_CLASSIF ([-]) :  Type of classification used for the map of soil types  	{!IMPOSE_VEG}
+SOILTYPE_CLASSIF =  zobler 
+
+# ORCHIDEE_WATCHOUT ([FLAG]) :  ORCHIDEE will write out its forcing to a file 	{}
+ORCHIDEE_WATCHOUT =  n 
+
+# DT_WATCHOUT ([seconds]) :  ORCHIDEE will write out with this frequency 	{ORCHIDEE_WATCHOUT}
+DT_WATCHOUT =  dt 
+
+# WATCHOUT_FILE ([FILE]) :  Filenane for the ORCHIDEE forcing file 	{ORCHIDEE_WATCHOUT}
+WATCHOUT_FILE =  orchidee_watchout.nc 
+
+# RIVER_ROUTING ([FLAG]) :  Decides if we route the water or not 	{OK_SECHIBA}
+RIVER_ROUTING =  n 
+
+# HYDROL_CWRR ([FLAG]) :  Allows to switch on the multilayer hydrology of CWRR 	{OK_SECHIBA}
+HYDROL_CWRR =  n 
+
+# HYDROL_SOIL_DEPTH ([m]) :  Total depth of soil reservoir 	{OK_SECHIBA }
+HYDROL_SOIL_DEPTH =  4./ 2. (if HYDROL_CWRR) 
+
+# DO_IRRIGATION ([FLAG]) :  Should we compute an irrigation flux  	{RIVER_ROUTING }
+DO_IRRIGATION =  n 
+
+# DO_FLOODPLAINS ([FLAG]  ) :  Should we include floodplains  	{RIVER_ROUTING }
+DO_FLOODPLAINS =  n 
+
+# CHECK_WATERBAL ([FLAG]  ) :  Should we check the global water balance  	{OK_SECHIBA}
+CHECK_WATERBAL =  n 
+
+# STOMATE_OK_CO2 ([FLAG]) :  Activate CO2? 	{OK_SECHIBA }
+STOMATE_OK_CO2 =  n 
+
+# STOMATE_OK_STOMATE ([FLAG]) :  Activate STOMATE? 	{OK_SECHIBA and OK_CO2}
+STOMATE_OK_STOMATE =  n 
+
+# STOMATE_OK_DGVM ([FLAG]) :  Activate DGVM? 	{OK_STOMATE}
+STOMATE_OK_DGVM =  n 
+
+# DIFFUCO_OK_INCA ([FLAG]) :  Activate DIFFUCO_INCA? 	{OK_SECHIBA}
+DIFFUCO_OK_INCA =  n 
+
+# LEAFAGE_OK_INCA ([FLAG]) :  Activate LEAFAGE? 	{DIFFUCO_OK_INCA}
+LEAFAGE_OK_INCA =  n 
+
+# CANOPY_EXTINCTION  ([FLAG]) :  Use canopy radiative transfer model? 	{DIFFUCO_OK_INCA }
+CANOPY_EXTINCTION  =  n 
+
+# CANOPY_MULTILAYER ([FLAG]) :  Use canopy radiative transfer model with multi-layers 	{CANOPY_EXTINCTION }
+CANOPY_MULTILAYER =  n 
+
+# NOx_RAIN_PULSE ([FLAG]) :  Calculate NOx emissions with pulse? 	{DIFFUCO_OK_INCA }
+NOx_RAIN_PULSE =  n 
+
+# NOx_BBG_FERTIL ([FLAG]) :  Calculate NOx emissions with bbg fertilizing effect? 	{DIFFUCO_OK_INCA }
+NOx_BBG_FERTIL =  n 
+
+# NOx_FERTILIZERS_USE ([FLAG] ) :  Calculate NOx emissions with fertilizers use? 	{DIFFUCO_OK_INCA }
+NOx_FERTILIZERS_USE =  n 
+
+# STOMATE_WATCHOUT ([FLAG]) :  STOMATE does minimum service 	{OK_SECHIBA }
+STOMATE_WATCHOUT =  n 
+
+# NVM ([-]) :  number of PFTs   	{OK_SECHIBA or OK_STOMATE}
+NVM =  13 
+
+# IMPOSE_PARAM ([FLAG]) :  Do you impose the values of the parameters? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_PARAM =  y 
+
+# SECHIBA_restart_in ([FILE]) :  Name of restart to READ for initial conditions 	{OK_SECHIBA }
+SECHIBA_restart_in =  NONE 
+
+# SECHIBA_rest_out ([FILE]) :  Name of restart files to be created by SECHIBA 	{OK_SECHIBA}
+SECHIBA_rest_out =  sechiba_rest_out.nc 
+
+# SECHIBA_reset_time ([FLAG]) :  Override the time from the restart files for SECHIBA and STOMATE 	{OK_SECHIBA}
+SECHIBA_reset_time =  y 
+
+# STOMATE_RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions of STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEIN =  NONE 
+
+# STOMATE_RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEOUT =  stomate_restart.nc 
+
+# ALMA_OUTPUT ([FLAG]) :  Should the output follow the ALMA convention 	{OK_SECHIBA}
+ALMA_OUTPUT =  n 
+
+# OUTPUT_FILE ([FILE]) :  Name of file in which the output is going to be written 	{OK_SECHIBA}
+OUTPUT_FILE =  sechiba_history.nc 
+
+# WRITE_STEP ([seconds]) :  Frequency in seconds at which to WRITE output 	{OK_SECHIBA}
+WRITE_STEP =  86400. 
+
+# SECHIBA_HISTLEVEL ([-]) :  SECHIBA history output level (0..10) 	{OK_SECHIBA and HF}
+SECHIBA_HISTLEVEL =  5 
+
+# SECHIBA_HISTFILE2 ([FLAG]) :  Flag to switch on histfile 2 for SECHIBA (hi-frequency ?) 	{OK_SECHIBA}
+SECHIBA_HISTFILE2 =  n 
+
+# WRITE_STEP2 ([seconds]) :  Frequency in seconds at which to WRITE output 	{SECHIBA_HISTFILE2}
+WRITE_STEP2 =  1800.0 
+
+# SECHIBA_OUTPUT_FILE2 ([FILE]) :  Name of file in which the output number 2 is going to be written 	{SECHIBA_HISTFILE2}
+SECHIBA_OUTPUT_FILE2 =  sechiba_out_2.nc 
+
+# SECHIBA_HISTLEVEL2 ([-] ) :  SECHIBA history 2 output level (0..10) 	{SECHIBA_HISTFILE2}
+SECHIBA_HISTLEVEL2 =  1 
+
+# STOMATE_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_OUTPUT_FILE =  stomate_history.nc 
+
+# STOMATE_HIST_DT ([days]) :  STOMATE history time step 	{OK_STOMATE}
+STOMATE_HIST_DT =  10. 
+
+# STOMATE_IPCC_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_IPCC_OUTPUT_FILE =  stomate_ipcc_history.nc 
+
+# STOMATE_IPCC_HIST_DT ([days]) :  STOMATE IPCC history time step 	{OK_STOMATE}
+STOMATE_IPCC_HIST_DT =  0. 
+
+# STOMATE_HISTLEVEL ([-]) :  STOMATE history output level (0..10) 	{OK_STOMATE}
+STOMATE_HISTLEVEL =  10 
+
+# ECCENTRICITY ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+ECCENTRICITY =  0.016724 
+
+# PERIHELIE ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+PERIHELIE =  102.04 
+
+# OBLIQUITY ([Degrees]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+OBLIQUITY =  23.446 
+
+# OK_THROUGHFALL_PFT ([FLAG]) :  Activate use of PERCENT_THROUGHFALL_PFT 	{HYDROL_CWRR}
+OK_THROUGHFALL_PFT =  FALSE 
+
+# PFT_TO_MTC ([-]) :  correspondance array linking a PFT to MTC 	{OK_SECHIBA or OK_STOMATE}
+PFT_TO_MTC =  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 
+
+# PFT_NAME ([-]) :  Name of a PFT 	{OK_SECHIBA or OK_STOMATE}
+PFT_NAME =  bare ground, tropical broad-leaved evergreen, tropical broad-leaved raingreen, temperate needleleaf evergreen, temperate broad-leaved evergreen, temperate broad-leaved summergreen,  boreal needleleaf evergreen, boreal broad-leaved summergreen, boreal needleleaf summergreen,  C3 grass, C4 grass, C3 agriculture, C4 agriculture  
+
+# LEAF_TAB ([-] ) :  leaf type : 1 	{OK_STOMATE}
+LEAF_TAB =  4, 1, 1, 2, 1, 1, 2, 1, 2, 3, 3, 3, 3  
+
+# PHENO_MODEL ([-] ) :  which phenology model is used? (tabulated)  	{OK_STOMATE}
+PHENO_MODEL =  none, none, moi, none, none, ncdgdd, none, ncdgdd, ngd, moigdd, moigdd, moigdd, moigdd 
+
+# SECHIBA_LAI ([m^2/m^2]) :  laimax for maximum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# LLAIMIN ([m^2/m^2]) :  laimin for minimum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+LLAIMIN =  0., 8., 0., 4., 4.5, 0., 4., 0., 0., 0., 0., 0., 0. 
+
+# SLOWPROC_HEIGHT ([m] ) :  prescribed height of vegetation  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1., 1. 
+
+# TYPE_OF_LAI ([-]) :  Type of behaviour of the LAI evolution algorithm  	{OK_SECHIBA}
+TYPE_OF_LAI =  inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter 
+
+# NATURAL ([BOOLEAN]) :  natural?  	{OK_SECHIBA, OK_STOMATE}
+NATURAL =  y, y, y, y, y, y, y, y, y, y, y, n, n  
+
+# IS_C4 ([BOOLEAN]) :  flag for C4 vegetation types 	{OK_SECHIBA or OK_STOMATE}
+IS_C4 =  n, n, n, n, n, n, n, n, n, n, n, y, n, y 
+
+# VCMAX_FIX ([micromol/m^2/s] ) :  values used for vcmax when STOMATE is not activated 	{OK_SECHIBA and NOT(OK_STOMATE)}
+VCMAX_FIX =  0., 40., 50., 30., 35., 40.,30., 40., 35., 60., 60., 70., 70. 
+
+# DOWNREGULATION_CO2_COEFF ([-]) :  coefficient for CO2 downregulation (unitless) 	{OK_CO2}
+DOWNREGULATION_CO2_COEFF =  0., 0.38, 0.38, 0.28, 0.28, 0.28, 0.22, 0.22, 0.22, 0.26, 0.26, 0.26, 0.26 
+
+# E_KmC ([J mol-1]) :  Energy of activation for KmC 	{OK_CO2}
+E_KmC =  -9999.,  79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430. 
+
+# E_KmO ([J mol-1]) :  Energy of activation for KmO 	{OK_CO2}
+E_KmO =  -9999., 36380.,  36380.,  36380.,  36380.,  36380., 36380., 36380., 36380., 36380., 36380., 36380., 36380. 
+
+# E_gamma_star ([J mol-1]) :  Energy of activation for gamma_star 	{OK_CO2}
+E_gamma_star =  -9999., 37830.,  37830.,  37830.,  37830.,  37830., 37830., 37830., 37830., 37830., 37830., 37830., 37830. 
+
+# E_Vcmax ([J mol-1]) :  Energy of activation for Vcmax 	{OK_CO2}
+E_Vcmax =  -9999., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 67300., 71513., 67300. 
+
+# E_Jmax ([J mol-1]) :  Energy of activation for Jmax 	{OK_CO2}
+E_Jmax =  -9999., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 77900., 49884., 77900.  
+
+# aSV ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+aSV =  -9999., 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 641.64, 668.39, 641.64  
+
+# bSV ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+bSV =  -9999., -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, 0., -1.07, 0.  
+
+# TPHOTO_MIN ([-]) :  minimum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MIN =  -9999.,  -4., -4., -4., -4.,-4.,-4., -4., -4., -4., -4., -4., -4. 
+
+# TPHOTO_MAX ([-]) :  maximum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MAX =  -9999., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55. 
+
+# aSJ ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+aSJ =  -9999., 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 630., 659.70, 630.  
+
+# bSJ ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+bSJ =  -9999., -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, 0., -0.75, 0.  
+
+# D_Vcmax ([J mol-1]) :  Energy of deactivation for Vcmax 	{OK_CO2}
+D_Vcmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# D_Jmax ([J mol-1]) :  Energy of deactivation for Jmax 	{OK_CO2}
+D_Jmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# E_Rd ([J mol-1]) :  Energy of activation for Rd 	{OK_CO2}
+E_Rd =  -9999., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390. 
+
+# VCMAX25 ([micromol/m^2/s]) :  Maximum rate of Rubisco activity-limited carboxylation at 25Â°C 	{OK_STOMATE}
+VCMAX25 =  -9999., 65., 65., 35., 45., 55., 35., 45., 35., 70., 70., 70., 70. 
+
+# ARJV ([mu mol e- (mu mol CO2)-1]) :  a coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+ARJV =  -9999., 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 1.715, 2.59, 1.715 
+
+# BRJV ([(mu mol e- (mu mol CO2)-1) (Â°C)-1]) :  b coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+BRJV =  -9999., -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, 0., -0.035, 0. 
+
+# KmC25 ([ubar]) :  MichaelisâMenten constant of Rubisco for CO2 at 25Â°C 	{OK_CO2}
+KmC25 =  -9999., 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 650., 404.9, 650. 
+
+# KmO25 ([ubar]) :  MichaelisâMenten constant of Rubisco for O2 at 25Â°C 	{OK_CO2}
+KmO25 =  -9999., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 450000., 278400., 450000. 
+
+# gamma_star25 ([ubar]) :  Ci-based CO2 compensation point in the absence of Rd at 25Â°C (ubar) 	{OK_CO2}
+gamma_star25 =  -9999., 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75 
+
+# a1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+a1 =  -9999., 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85 
+
+# b1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+b1 =  -9999., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.20, 0.14, 0.20 
+
+# g0 ([mol mâ2 sâ1 barâ1]) :  Residual stomatal conductance when irradiance approaches zero  	{OK_CO2}
+g0 =  -9999., 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.01875, 0.00625, 0.01875  
+
+# h_protons ([mol mol-1]) :  Number of protons required to produce one ATP 	{OK_CO2}
+h_protons =  -9999., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4.  
+
+# fpsir ([-]) :  Fraction of PSII eâ transport rate partitioned to the C4 cycle 	{OK_CO2}
+fpsir =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.4, -9999., 0.4  
+
+# fQ ([-]) :  Fraction of electrons at reduced plastoquinone that follow the Q-cycle 	{OK_CO2}
+fQ =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 1., -9999., 1. 
+
+# fpseudo ([-]) :  Fraction of electrons at PSI that follow pseudocyclic transport  	{OK_CO2}
+fpseudo =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# kp ([mol mâ2 sâ1 barâ1]) :  Initial carboxylation efficiency of the PEP carboxylase 	{OK_CO2}
+kp =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.7, -9999., 0.7 
+
+# alpha ([-]) :  Fraction of PSII activity in the bundle sheath 	{OK_CO2}
+alpha =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# gbs ([mol mâ2 sâ1 barâ1]) :  Bundle-sheath conductance 	{OK_CO2}
+gbs =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.003, -9999., 0.003 
+
+# theta ([â]) :  Convexity factor for response of J to irradiance 	{OK_CO2}
+theta =  -9999., 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7 
+
+# alpha_LL ([mol eâ (mol photon)â1]) :  Conversion efficiency of absorbed light into J at strictly limiting light 	{OK_CO2}
+alpha_LL =  -9999., 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372 
+
+# EXT_COEFF ([-]) :  extinction coefficient of the Monsi&Seaki relationship (1953) 	{OK_SECHIBA or OK_STOMATE}
+EXT_COEFF =  .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5 
+
+# HYDROL_HUMCSTE ([m]) :  Root profile 	{OK_SECHIBA}
+HYDROL_HUMCSTE =  humcste_cwrr or humcste_mct depending on flag HYDROL_CWRR 
+
+# PREF_SOIL_VEG ([-]        ) :  The soil tile number for each vegetation 	{OK_SECHIBA or OK_STOMATE}
+PREF_SOIL_VEG =  1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 
+
+# RSTRUCT_CONST ([s/m]) :  Structural resistance  	{OK_SECHIBA}
+RSTRUCT_CONST =  0.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0,  2.5,  2.0,  2.0,  2.0 
+
+# KZERO ([kg/m^2/s]) :  A vegetation dependent constant used in the calculation of the surface resistance. 	{OK_SECHIBA}
+KZERO =  0.0, 12.E-5, 12.E-5, 12.e-5, 12.e-5, 25.e-5, 12.e-5,25.e-5, 25.e-5, 30.e-5, 30.e-5, 30.e-5, 30.e-5  
+
+# RVEG_PFT ([-]) :  Artificial parameter to increase or decrease canopy resistance. 	{OK_SECHIBA}
+RVEG_PFT =  1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1. 
+
+# WMAX_VEG ([kg/m^3]) :  Maximum field capacity for each of the vegetations (Temporary): max quantity of water 	{OK_SECHIBA}
+WMAX_VEG =  150., 150., 150., 150., 150., 150., 150.,150., 150., 150., 150., 150., 150. 
+
+# PERCENT_THROUGHFALL_PFT ([%]) :  Percent by PFT of precip that is not intercepted by the canopy 	{OK_SECHIBA OR HYDROL_CWRR}
+PERCENT_THROUGHFALL_PFT =  30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 
+
+# SNOWA_AGED ([-]) :  Minimum snow albedo value for each vegetation type after aging (dirty old snow) 	{OK_SECHIBA}
+SNOWA_AGED =  0.35, 0., 0., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.18, 0.18, 0.18, 0.18 
+
+# SNOWA_DEC ([-]) :  Decay rate of snow albedo value for each vegetation type as it will be used in condveg_snow 	{OK_SECHIBA}
+SNOWA_DEC =  0.45, 0.,  0., 0.06, 0.06, 0.11, 0.06, 0.11, 0.11, 0.52,0.52, 0.52, 0.52 
+
+# ALB_LEAF_VIS ([-]) :  leaf albedo of vegetation type, visible albedo 	{OK_SECHIBA}
+ALB_LEAF_VIS =  .00, .04, .06, .06, .06,.06, .06, .06, .06, .10, .10, .10, .10 
+
+# ALB_LEAF_NIR ([-]) :  leaf albedo of vegetation type, near infrared albedo 	{OK_SECHIBA}
+ALB_LEAF_NIR =  .00, .20, .22, .22, .22,.22, .22, .22, .22, .30, .30, .30, .30  
+
+# ISO_ACTIVITY ([-]) :  Biogenic activity for each age class : isoprene 	{DIFFUCO_OK_INCA}
+ISO_ACTIVITY =  0.5, 1.5, 1.5, 0.5 
+
+# METHANOL_ACTIVITY ([-]) :  Isoprene emission factor for each age class : methanol 	{DIFFUCO_OK_INCA}
+METHANOL_ACTIVITY =  1., 1., 0.5, 0.5 
+
+# EM_FACTOR_ISOPRENE ([ugC/g/h] ) :  Isoprene emission factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_ISOPRENE =  0., 24., 24., 8., 16., 45., 8., 8., 8., 16., 24., 5., 5. 
+
+# EM_FACTOR_MONOTERPENE ([ugC/g/h] ) :  Monoterpene emission factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MONOTERPENE =  0., 0.8, 0.8, 2.4, 1.2, 0.8, 2.4, 2.4, 2.4, 0.8, 1.2, 0.2, 0.2 
+
+# EM_FACTOR_ORVOC ([ugC/g/h]  ) :  ORVOC emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_ORVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_OVOC ([ugC/g/h]        ) :  OVOC emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_OVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_MBO ([ugC/g/h]  ) :  MBO emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MBO =  0., 0., 0., 20.0, 0., 0., 0., 0., 0., 0., 0., 0., 0. 
+
+# EM_FACTOR_METHANOL ([ugC/g/h]  ) :  Methanol emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_METHANOL =  0., 0.6, 0.6, 1.8, 0.9, 0.6, 1.8, 1.8, 1.8, 0.6, 0.9, 2., 2. 
+
+# EM_FACTOR_ACETONE ([ugC/g/h]     ) :  Acetone emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETONE =  0., 0.29, 0.29, 0.87, 0.43, 0.29, 0.87, 0.87, 0.87, 0.29, 0.43, 0.07, 0.07  
+
+# EM_FACTOR_ACETAL ([ugC/g/h]  ) :  Acetaldehyde emissions factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_ACETAL =  0., 0.1, 0.1, 0.3, 0.15, 0.1, 0.3, 0.3, 0.3, 0.1, 0.15, 0.025, 0.025 
+
+# EM_FACTOR_FORMAL ([ugC/g/h]  ) :  Formaldehyde emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_FORMAL =  0., 0.07, 0.07, 0.2, 0.1, 0.07, 0.2, 0.2, 0.2, 0.07, 0.1, 0.017, 0.017 
+
+# EM_FACTOR_ACETIC ([ugC/g/h]  ) :  Acetic Acid emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETIC =  0., 0.002, 0.002, 0.006, 0.003, 0.002, 0.006, 0.006, 0.006, 0.002, 0.003, 0.0005, 0.0005 
+
+# EM_FACTOR_FORMIC ([ugC/g/h]  ) :  Formic Acid emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_FORMIC =  0., 0.01, 0.01, 0.03, 0.015, 0.01, 0.03, 0.03, 0.03, 0.01, 0.015, 0.0025, 0.0025  
+
+# EM_FACTOR_NO_WET ([ngN/m^2/s]) :  NOx emissions factor wet soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_WET =  0., 2.6, 0.06, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.36, 0.36, 0.36, 0.36 
+
+# EM_FACTOR_NO_DRY ([ngN/m^2/s] ) :  NOx emissions factor dry soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_DRY =  0., 8.60, 0.40, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 2.65, 2.65, 2.65, 2.65 
+
+# LARCH ([-]  ) :  Larcher 1991 SAI/LAI ratio 	{DIFFUCO_OK_INCA }
+LARCH =  0., 0.015, 0.015, 0.003, 0.005, 0.005, 0.003, 0.005, 0.003, 0.005, 0.005, 0.008, 0.008 
+
+# SLA ([m^2/gC]) :  specif leaf area  	{OK_STOMATE}
+SLA =  1.5E-2, 1.53E-2, 2.6E-2, 9.26E-3, 2E-2, 2.6E-2, 9.26E-3, 2.6E-2, 1.9E-2, 2.6E-2, 2.6E-2, 2.6E-2, 2.6E-2 
+
+# S0  ([-]    ) :  Standard sapwood allocation  	{OK_STOMATE }
+S0  =  -9999., .25, .25, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30 
+
+# MAINT_RESP_SLOPE_C ([-]) :  slope of maintenance respiration coefficient (1/K), constant c of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_C =  -9999., .20, .20, .16, .16, .16, .16, .16, .16, .16, .12, .16, .12  
+
+# MAINT_RESP_SLOPE_B ([-]) :  slope of maintenance respiration coefficient (1/K), constant b of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_B =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, -.00133, .0, -.00133, .0  
+
+# MAINT_RESP_SLOPE_A ([-]) :  slope of maintenance respiration coefficient (1/K), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_A =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0     
+
+# CM_ZERO_LEAF ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for leaves, tabulated 	{OK_STOMATE}
+CM_ZERO_LEAF =  -9999., 2.35E-3, 2.62E-3, 1.01E-3, 2.35E-3, 2.62E-3, 1.01E-3,2.62E-3, 2.05E-3, 2.62E-3, 2.62E-3, 2.62E-3, 2.62E-3 
+
+# CM_ZERO_SAPABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C,for sapwood above, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPABOVE =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# CM_ZERO_SAPBELOW ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for sapwood below, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPBELOW =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4  
+
+# CM_ZERO_HEARTABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for heartwood above, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTABOVE =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_HEARTBELOW ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C,for heartwood below, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTBELOW =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_ROOT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for roots, tabulated 	{OK_STOMATE}
+CM_ZERO_ROOT =  -9999.,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3 
+
+# CM_ZERO_FRUIT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for fruits, tabulated 	{OK_STOMATE}
+CM_ZERO_FRUIT =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4     
+
+# CM_ZERO_CARBRES ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for carbohydrate reserve, tabulated 	{OK_STOMATE}
+CM_ZERO_CARBRES =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# FLAM ([-]) :  flamability: critical fraction of water holding capacity 	{OK_STOMATE}
+FLAM =  -9999., .15, .25, .25, .25, .25, .25, .25, .25, .25, .25, .35, .35 
+
+# RESIST ([-]) :  fire resistance 	{OK_STOMATE}
+RESIST =  -9999., .95, .90, .12, .50, .12, .12, .12, .12, .0, .0, .0, .0  
+
+# COEFF_LCCHANGE_1 ([-]) :  Coeff of biomass export for the year 	{OK_STOMATE}
+COEFF_LCCHANGE_1 =  -9999., 0.897, 0.897, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597  
+
+# COEFF_LCCHANGE_10 ([-]) :  Coeff of biomass export for the decade 	{OK_STOMATE}
+COEFF_LCCHANGE_10 =  -9999., 0.103, 0.103, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.403, 0.299, 0.403 
+
+# COEFF_LCCHANGE_100 ([-]) :  Coeff of biomass export for the century 	{OK_STOMATE}
+COEFF_LCCHANGE_100 =  -9999., 0., 0., 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0., 0.104, 0. 
+
+# LAI_MAX ([m^2/m^2]) :  maximum LAI, PFT-specific 	{OK_STOMATE}
+LAI_MAX =  -9999., 7., 7., 5., 5., 5., 4.5, 4.5, 3.0, 2.5, 2.5, 5.,5.  
+
+# PHENO_TYPE ([-]) :  type of phenology, 0 	{OK_STOMATE}
+PHENO_TYPE =  0, 1, 3, 1, 1, 2, 1, 2, 2, 4, 4, 2, 3 
+
+# PHENO_GDD_CRIT_C ([-]) :  critical gdd, tabulated (C), constant c of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_C =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 270., 400., 125., 400. 
+
+# PHENO_GDD_CRIT_B ([-]) :  critical gdd, tabulated (C), constant b of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_B =  -9999., -9999., -9999., -9999., -9999., -9999., -9999.,-9999., -9999., 6.25, 0., 0., 0. 
+
+# PHENO_GDD_CRIT_A ([-]) :  critical gdd, tabulated (C), constant a of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_A =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.03125,  0., 0., 0. 
+
+# NGD_CRIT ([days]) :  critical ngd, tabulated. Threshold -5 degrees 	{OK_STOMATE}
+NGD_CRIT =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# NCDGDD_TEMP ([C] ) :  critical temperature for the ncd vs. gdd function in phenology 	{OK_STOMATE}
+NCDGDD_TEMP =  -9999., -9999., -9999., -9999., -9999., 5., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# HUM_FRAC ([%]) :  critical humidity (relative to min/max) for phenology 	{OK_STOMATE}
+HUM_FRAC =  -9999., -9999., .5, -9999., -9999., -9999., -9999., -9999.,  -9999., .5, .5, .5,.5      
+
+# HUM_MIN_TIME ([days]) :  minimum time elapsed since moisture minimum 	{OK_STOMATE}
+HUM_MIN_TIME =  -9999., -9999., 50., -9999., -9999., -9999., -9999., -9999., -9999., 35., 35., 75., 75. 
+
+# TAU_SAP ([days]) :  sapwood -> heartwood conversion time 	{OK_STOMATE}
+TAU_SAP =  -9999., 730., 730., 730., 730., 730., 730., 730., 730., -9999., -9999., -9999., -9999. 
+
+# TAU_FRUIT ([days]) :  fruit lifetime 	{OK_STOMATE}
+TAU_FRUIT =  -9999., 90., 90., 90., 90., 90., 90., 90., 90., -9999., -9999., -9999., -9999. 
+
+# ECUREUIL ([-]) :  fraction of primary leaf and root allocation put into reserve 	{OK_STOMATE}
+ECUREUIL =  -9999., .0, 1., .0, .0, 1., .0, 1., 1., 1., 1., 1., 1. 
+
+# ALLOC_MIN ([-]) :  minimum allocation above/below  	{OK_STOMATE}
+ALLOC_MIN =  -9999., 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, -9999., -9999., -9999., -9999.  
+
+# ALLOC_MAX ([-]) :  maximum allocation above/below  	{OK_STOMATE}
+ALLOC_MAX =  -9999., 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, -9999., -9999., -9999., -9999. 
+
+# DEMI_ALLOC  ([-]) :  mean allocation above/below  	{OK_STOMATE}
+DEMI_ALLOC  =  -9999., 5., 5., 5., 5., 5., 5., 5., 5., -9999., -9999., -9999., -9999. 
+
+# LEAFLIFE_TAB ([years]) :  leaf longevity 	{OK_STOMATE}
+LEAFLIFE_TAB =  -9999., .5, 2., .33, 1., 2., .33, 2., 2., 2., 2., 2., 2.  
+
+# LEAFFALL ([days]) :  length of death of leaves, tabulated  	{OK_STOMATE}
+LEAFFALL =  -9999., -9999., 10., -9999., -9999., 10., -9999., 10., 10., 10., 10., 10., 10.  
+
+# LEAFAGECRIT ([days]) :  critical leaf age, tabulated 	{OK_STOMATE}
+LEAFAGECRIT =  -9999., 730., 180., 910., 730., 180., 910., 180., 180., 120., 120., 90., 90.   
+
+# SENESCENCE_TYPE ([-]) :  type of senescence, tabulated 	{OK_STOMATE}
+SENESCENCE_TYPE =  none, none, dry, none, none, cold, none, cold, cold, mixed, mixed, mixed, mixed  
+
+# SENESCENCE_HUM ([-] ) :  critical relative moisture availability for senescence 	{OK_STOMATE}
+SENESCENCE_HUM =  -9999., -9999., .3, -9999., -9999., -9999., -9999., -9999., -9999., .2, .2, .3, .2  
+
+# NOSENESCENCE_HUM ([-]) :  relative moisture availability above which there is no humidity-related senescence 	{OK_STOMATE}
+NOSENESCENCE_HUM =  -9999., -9999., .8, -9999., -9999., -9999., -9999., -9999., -9999., .3, .3, .3, .3  
+
+# MAX_TURNOVER_TIME ([days]) :  maximum turnover time for grasse 	{OK_STOMATE}
+MAX_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999.,  80.,  80., 80., 80.  
+
+# MIN_TURNOVER_TIME ([days]) :  minimum turnover time for grasse  	{OK_STOMATE}
+MIN_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 10., 10., 10., 10.  
+
+# MIN_LEAF_AGE_FOR_SENESCENCE ([days] ) :  minimum leaf age to allow senescence g 	{OK_STOMATE}
+MIN_LEAF_AGE_FOR_SENESCENCE =  -9999., -9999., 90., -9999., -9999., 90., -9999., 60., 60., 30., 30., 30., 30. 
+
+# SENESCENCE_TEMP_C ([-]) :  critical temperature for senescence (C), constant c of aT^2+bT+c, tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_C =  -9999., -9999., -9999., -9999., -9999., 12., -9999., 7., 2., -1.375, 5., 5., 10. 
+
+# SENESCENCE_TEMP_B ([-]) :  critical temperature for senescence (C), constant b of aT^2+bT+c ,tabulated 	{OK_STOMATE }
+SENESCENCE_TEMP_B =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0., .1, 0., 0., 0. 
+
+# SENESCENCE_TEMP_A ([-] ) :  critical temperature for senescence (C), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_A =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0.,.00375, 0., 0., 0.  
+
+# GDD_SENESCENCE ([days] ) :  minimum gdd to allow senescence of crops   	{OK_STOMATE}
+GDD_SENESCENCE =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 950., 4000. 
+
+# RESIDENCE_TIME ([years]) :  residence time of trees 	{OK_DGVM and NOT(LPJ_GAP_CONST_MORT)}
+RESIDENCE_TIME =  -9999., 30.0, 30.0, 40.0, 40.0, 40.0, 80.0, 80.0, 80.0, 0.0, 0.0, 0.0, 0.0  
+
+# TMIN_CRIT ([C]) :  critical tmin, tabulated 	{OK_STOMATE}
+TMIN_CRIT =  -9999.,  0.0, 0.0, -30.0, -14.0, -30.0, -45.0, -45.0, -9999., -9999., -9999., -9999., -9999. 
+
+# TCM_CRIT ([C]) :  critical tcm, tabulated  	{OK_STOMATE}
+TCM_CRIT =  -9999., -9999., -9999., 5.0, 15.5, 15.5, -8.0, -8.0, -8.0, -9999., -9999., -9999., -9999. 
+
+# HERBIVORES ([FLAG]) :  herbivores allowed? 	{OK_STOMATE }
+HERBIVORES =  n 
+
+# TREAT_EXPANSION ([FLAG]) :  treat expansion of PFTs across a grid cell? 	{OK_STOMATE }
+TREAT_EXPANSION =  n 
+
+# LPJ_GAP_CONST_MORT ([FLAG]) :  prescribe mortality if not using DGVM? 	{OK_STOMATE}
+LPJ_GAP_CONST_MORT =  y 
+
+# HARVEST_AGRI ([FLAG]) :  Harvest model for agricultural PFTs. 	{OK_STOMATE }
+HARVEST_AGRI =  y 
+
+# FIRE_DISABLE ([FLAG]) :  no fire allowed 	{OK_STOMATE }
+FIRE_DISABLE =  n 
+
+# SPINUP_ANALYTIC (BOOLEAN    ) :  Activation of the analytic resolution of the spinup. 	{OK_STOMATE}
+SPINUP_ANALYTIC =  n 
+
+# AGRICULTURE ([FLAG]) :  agriculture allowed? 	{OK_SECHIBA or OK_STOMATE}
+AGRICULTURE =  y 
+
+# IMPOSE_VEG ([FLAG]) :  Should the vegetation be prescribed ? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_VEG =  n 
+
+# IMPOSE_SOILT ([FLAG]) :  Should the soil type be prescribed ? 	{IMPOSE_VEG}
+IMPOSE_SOILT =  n 
+
+# LAI_MAP ([FLAG]) :  Read the LAI map 	{OK_SECHIBA or OK_STOMATE}
+LAI_MAP =  n 
+
+# SLOWPROC_LAI_OLD_INTERPOL ([FLAG]) :  Flag to use old "interpolation" of LAI 	{LAI_MAP}
+SLOWPROC_LAI_OLD_INTERPOL =  n 
+
+# LAND_USE ([FLAG]) :  Read a land_use vegetation map 	{OK_SECHIBA or OK_STOMATE}
+LAND_USE =  y 
+
+# VEGET_REINIT ([FLAG] ) :  booleen to indicate that a new LAND USE file will be used. 	{LAND_USE}
+VEGET_REINIT =  y 
+
+# LAND_COVER_CHANGE ([FLAG] ) :  treat land use modifications 	{LAND_USE}
+LAND_COVER_CHANGE =  n 
+
+# VEGET_YEAR ([FLAG] ) :  Year of the land_use vegetation map to be read 	{LAND_USE}
+VEGET_YEAR =  1 
+
+# SLOWPROC_VEGET_OLD_INTERPOL ([FLAG] ) :  Flag to use old "interpolation" of vegetation map. 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+SLOWPROC_VEGET_OLD_INTERPOL =  n 
+
+# MAXMASS_SNOW ([kg/m^2]  ) :  The maximum mass of a snow 	{OK_SECHIBA or HYDROL_CWRR}
+MAXMASS_SNOW =  3000. 
+
+# SNOWCRI ([kg/m^2]  ) :  Sets the amount above which only sublimation occures  	{OK_SECHIBA or HYDROL_CWRR}
+SNOWCRI =  1.5 
+
+# MIN_WIND ([m/s]) :  Minimum wind speed 	{OK_SECHIBA}
+MIN_WIND =  0.1 
+
+# MAX_SNOW_AGE ([days?]) :  Maximum period of snow aging  	{OK_SECHIBA}
+MAX_SNOW_AGE =  50. 
+
+# SNOW_TRANS ([m]   ) :  Transformation time constant for snow 	{OK_SECHIBA}
+SNOW_TRANS =  0.3 
+
+# Z0_OVER_HEIGHT ([-]   ) :  to get z0 from height  	{OK_SECHIBA }
+Z0_OVER_HEIGHT =  1/16. 
+
+# HEIGHT_DISPLACEMENT ([m]  ) :  Magic number which relates the height to the displacement height. 	{OK_SECHIBA }
+HEIGHT_DISPLACEMENT =  0.75 
+
+# Z0_BARE ([m]   ) :  bare soil roughness length 	{OK_SECHIBA }
+Z0_BARE =  0.01  
+
+# Z0_ICE ([m]   ) :  ice roughness length 	{OK_SECHIBA }
+Z0_ICE =  0.001 
+
+# TCST_SNOWA ([days]) :  Time constant of the albedo decay of snow 	{OK_SECHIBA }
+TCST_SNOWA =  5.0  
+
+# SNOWCRI_ALB ([cm]  ) :  Critical value for computation of snow albedo 	{OK_SECHIBA}
+SNOWCRI_ALB =  10.  
+
+# VIS_DRY ([-]  ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+VIS_DRY =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.27 
+
+# NIR_DRY ([-]   ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_DRY =  0.48, 0.44, 0.40, 0.36, 0.32, 0.28, 0.24, 0.20, 0.55 
+
+# VIS_WET  ([-]   ) :  The correspondance table for the soil color numbers and their albedo 	{OK_SECHIBA  }
+VIS_WET  =  0.12, 0.11, 0.10, 0.09, 0.08, 0.07, 0.06, 0.05, 0.15 
+
+# NIR_WET ([-]    ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_WET =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.31 
+
+# ALBSOIL_VIS ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_VIS =  0.18, 0.16, 0.16, 0.15, 0.12, 0.105, 0.09, 0.075, 0.25 
+
+# ALBSOIL_NIR  ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_NIR  =  0.36, 0.34, 0.34, 0.33, 0.30, 0.25, 0.20, 0.15, 0.45 
+
+# ALB_DEADLEAF  ([-]     ) :  albedo of dead leaves, VIS+NIR  	{OK_SECHIBA }
+ALB_DEADLEAF  =  0.12, 0.35 
+
+# ALB_ICE ([-]  ) :  albedo of ice, VIS+NIR 	{OK_SECHIBA}
+ALB_ICE =  0.60, 0.20 
+
+# CONDVEG_SNOWA ([-]) :  The snow albedo used by SECHIBA 	{OK_SECHIBA}
+CONDVEG_SNOWA =  1.E+20 
+
+# ALB_BARE_MODEL ([FLAG]) :  Switch bare soil albedo dependent (if TRUE) on soil wetness 	{OK_SECHIBA}
+ALB_BARE_MODEL =  n 
+
+# Z0CDRAG_AVE ([FLAG]) :  Average method for z0 	{OK_SECHIBA}
+Z0CDRAG_AVE =  y 
+
+# IMPOSE_AZE ([FLAG]) :  Should the surface parameters be prescribed 	{OK_SECHIBA}
+IMPOSE_AZE =  n 
+
+# CONDVEG_Z0 ([m]) :  Surface roughness 	{IMPOSE_AZE}
+CONDVEG_Z0 =  0.15 
+
+# ROUGHHEIGHT ([m] ) :  Height to be added to the height of the first level 	{IMPOSE_AZE}
+ROUGHHEIGHT =  0.0 
+
+# CONDVEG_ALBVIS ([-]) :  SW visible albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBVIS =  0.25 
+
+# CONDVEG_ALBNIR ([-]  ) :  SW near infrared albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBNIR =  0.25 
+
+# CONDVEG_EMIS ([-] ) :  Emissivity of the surface for LW radiation 	{IMPOSE_AZE}
+CONDVEG_EMIS =  1.0 
+
+# NLAI ([-]  ) :  Number of LAI levels 	{OK_SECHIBA}
+NLAI =  20 
+
+# LAIMAX ([m^2/m^2]   ) :  Maximum LAI 	{OK_SECHIBA}
+LAIMAX =   
+
+# DEW_VEG_POLY_COEFF ([-]   ) :  coefficients of the polynome of degree 5 for the dew 	{OK_SECHIBA}
+DEW_VEG_POLY_COEFF =  0.887773, 0.205673, 0.110112, 0.014843, 0.000824, 0.000017  
+
+# DOWNREGULATION_CO2 ([FLAG]   ) :  Activation of CO2 downregulation 	{OK_SECHIBA}
+DOWNREGULATION_CO2 =  n  
+
+# DOWNREGULATION_CO2_BASELEVEL ([ppm]   ) :  CO2 base level 	{OK_SECHIBA }
+DOWNREGULATION_CO2_BASELEVEL =  280. 
+
+# CLAYFRACTION_DEFAULT ([-]   ) :  default fraction of clay 	{OK_SECHIBA }
+CLAYFRACTION_DEFAULT =  0.2  
+
+# MIN_VEGFRAC  ([-]  ) :  Minimal fraction of mesh a vegetation type can occupy  	{OK_SECHIBA }
+MIN_VEGFRAC  =  0.001  
+
+# STEMPDIAG_BID  ([K]) :  only needed for an initial LAI if there is no restart file 	{OK_SECHIBA }
+STEMPDIAG_BID  =  280. 
+
+# LAI_LEVEL_DEPTH ([-]  ) :   	{OK_CO2}
+LAI_LEVEL_DEPTH =  0.15 
+
+# Oi ([ubar]  ) :  Intercellular oxygen partial pressure 	{OK_CO2}
+Oi =  210000. 
+
+# TOO_LONG  ([days]   ) :  longest sustainable time without regeneration (vernalization) 	{OK_STOMATE}
+TOO_LONG  =  5. 
+
+# TAU_FIRE  ([days]    ) :  Time scale for memory of the fire index (days). Validated for one year in the DGVM.  	{OK_STOMATE }
+TAU_FIRE  =  30. 
+
+# LITTER_CRIT ([gC/m^2]  ) :  Critical litter quantity for fire 	{OK_STOMATE }
+LITTER_CRIT =  200. 
+
+# FIRE_RESIST_STRUCT ([-]  ) :   	{OK_STOMATE }
+FIRE_RESIST_STRUCT =  0.5 
+
+# CO2FRAC ([-]  ) :  What fraction of a burned plant compartment goes into the atmosphere 	{OK_STOMATE }
+CO2FRAC =  0.95, 0.95, 0., 0.3, 0., 0., 0.95, 0.95 
+
+# BCFRAC_COEFF ([-]  ) :   	{OK_STOMATE }
+BCFRAC_COEFF =  0.3, 1.3, 88.2  
+
+# FIREFRAC_COEFF  ([-]   ) :   	{OK_STOMATE }
+FIREFRAC_COEFF  =  0.45, 0.8, 0.6, 0.13 
+
+# AVAILABILITY_FACT  ([-]   ) :   	{OK_STOMATE }
+AVAILABILITY_FACT  =  0.1 
+
+# REF_GREFF ([1/year]  ) :  Asymptotic maximum mortality rate 	{OK_STOMATE }
+REF_GREFF =  0.035 
+
+# OK_MINRES ([FLAG]) :  Do we try to reach a minimum reservoir even if we are severely stressed? 	{OK_STOMATE }
+OK_MINRES =  y 
+
+# TAU_LEAFINIT ([days]  ) :  time to attain the initial foliage using the carbohydrate reserve  	{OK_STOMATE }
+TAU_LEAFINIT =  10. 
+
+# RESERVE_TIME_TREE  ([days]    ) :  maximum time during which reserve is used (trees)  	{OK_STOMATE }
+RESERVE_TIME_TREE  =  30. 
+
+# RESERVE_TIME_GRASS  ([days]   ) :  maximum time during which reserve is used (grasses)  	{OK_STOMATE }
+RESERVE_TIME_GRASS  =  20.  
+
+# R0 ([-]  ) :  Standard root allocation  	{OK_STOMATE }
+R0 =  0.3  
+
+# F_FRUIT ([-]    ) :  Standard fruit allocation 	{OK_STOMATE }
+F_FRUIT =  0.1  
+
+# ALLOC_SAP_ABOVE_GRASS  ([-]   ) :  fraction of sapwood allocation above ground  	{OK_STOMATE }
+ALLOC_SAP_ABOVE_GRASS  =  1.0  
+
+# MIN_LTOLSR  ([-]   ) :  extrema of leaf allocation fraction  	{OK_STOMATE }
+MIN_LTOLSR  =  0.2 
+
+# MAX_LTOLSR ([-]   ) :  extrema of leaf allocation fraction 	{OK_STOMATE }
+MAX_LTOLSR =  0.5 
+
+# Z_NITROGEN ([m]  ) :  scaling depth for nitrogen limitation  	{OK_STOMATE}
+Z_NITROGEN =  0.2  
+
+# LAI_MAX_TO_HAPPY ([-]  ) :   	{OK_STOMATE }
+LAI_MAX_TO_HAPPY =  0.5  
+
+# NLIM_TREF  ([C]  ) :   	{OK_STOMATE }
+NLIM_TREF  =  25.  
+
+# PIPE_TUNE1 ([-]    ) :  crown area  	{OK_STOMATE }
+PIPE_TUNE1 =  100.0 
+
+# PIPE_TUNE2  ([-]      ) :  height 	{OK_STOMATE }
+PIPE_TUNE2  =  40.0  
+
+# PIPE_TUNE3 ([-]    ) :  height 	{OK_STOMATE }
+PIPE_TUNE3 =  0.5  
+
+# PIPE_TUNE4 ([-]  ) :  needed for stem diameter 	{OK_STOMATE }
+PIPE_TUNE4 =  0.3  
+
+# PIPE_DENSITY  ([-]  ) :  Density 	{OK_STOMATE }
+PIPE_DENSITY  =  2.e5  
+
+# PIPE_K1  ([-]   ) :   	{OK_STOMATE }
+PIPE_K1  =  8.e3  
+
+# PIPE_TUNE_EXP_COEFF  ([-]   ) :  pipe tune exponential coeff  	{OK_STOMATE }
+PIPE_TUNE_EXP_COEFF  =  1.6  
+
+# PRECIP_CRIT  ([mm/year]  ) :  minimum precip 	{OK_STOMATE }
+PRECIP_CRIT  =  100. 
+
+# GDD_CRIT_ESTAB ([-]  ) :  minimum gdd for establishment of saplings 	{OK_STOMATE }
+GDD_CRIT_ESTAB =  150.  
+
+# FPC_CRIT ([-]  ) :  critical fpc, needed for light competition and establishment 	{OK_STOMATE }
+FPC_CRIT =  0.95 
+
+# ALPHA_GRASS ([-]   ) :  sapling characteristics : alpha's 	{OK_STOMATE }
+ALPHA_GRASS =  0.5 
+
+# ALPHA_TREE ([-]   ) :  sapling characteristics : alpha's  	{OK_STOMATE }
+ALPHA_TREE =  1. 
+
+# MASS_RATIO_HEART_SAP ([-]   ) :  mass ratio (heartwood+sapwood)/sapwood 	{OK_STOMATE }
+MASS_RATIO_HEART_SAP =  3. 
+
+# FRAC_GROWTHRESP ([-]) :  fraction of GPP which is lost as growth respiration 	{OK_STOMATE }
+FRAC_GROWTHRESP =  0.28 
+
+# TAU_HUM_MONTH ([days]  ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_MONTH =  20.  
+
+# TAU_HUM_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_WEEK =  7. 
+
+# TAU_T2M_MONTH ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_MONTH =  20. 
+
+# TAU_T2M_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_WEEK =  7. 
+
+# TAU_TSOIL_MONTH  ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_TSOIL_MONTH  =  20.  
+
+# TAU_SOILHUM_MONTH ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_SOILHUM_MONTH =  20.  
+
+# TAU_GPP_WEEK  ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GPP_WEEK  =  7.  
+
+# TAU_GDD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GDD =  40.  
+
+# TAU_NGD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_NGD =  50. 
+
+# COEFF_TAU_LONGTERM ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+COEFF_TAU_LONGTERM =  3.  
+
+# BM_SAPL_CARBRES  ([-]   ) :   	{OK_STOMATE }
+BM_SAPL_CARBRES  =  5.  
+
+# BM_SAPL_SAPABOVE ([-]    ) :   	{OK_STOMATE}
+BM_SAPL_SAPABOVE =  0.5  
+
+# BM_SAPL_HEARTABOVE  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTABOVE  =  2. 
+
+# BM_SAPL_HEARTBELOW  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTBELOW  =  2.  
+
+# INIT_SAPL_MASS_LEAF_NAT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_NAT =  0.1  
+
+# INIT_SAPL_MASS_LEAF_AGRI ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_AGRI =  1.  
+
+# INIT_SAPL_MASS_CARBRES ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_CARBRES =  5.  
+
+# INIT_SAPL_MASS_ROOT ([-]   ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_ROOT =  0.1  
+
+# INIT_SAPL_MASS_FRUIT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_FRUIT =  0.3  
+
+# CN_SAPL_INIT  ([-]   ) :   	{OK_STOMATE }
+CN_SAPL_INIT  =  0.5  
+
+# MIGRATE_TREE  ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_TREE  =  10000. 
+
+# MIGRATE_GRASS ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_GRASS =  10000. 
+
+# LAI_INITMIN_TREE ([m^2/m^2]  ) :   	{OK_STOMATE }
+LAI_INITMIN_TREE =  0.3 
+
+# LAI_INITMIN_GRASS  ([m^2/m^2]    ) :   	{OK_STOMATE }
+LAI_INITMIN_GRASS  =  0.1 
+
+# DIA_COEFF ([-]   ) :   	{OK_STOMATE }
+DIA_COEFF =  4., 0.5 
+
+# MAXDIA_COEFF ([-]   ) :   	{OK_STOMATE }
+MAXDIA_COEFF =  100., 0.01  
+
+# BM_SAPL_LEAF ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_LEAF =  4., 4., 0.8, 5.  
+
+# METABOLIC_REF_FRAC ([-]) :  	{OK_STOMATE }
+METABOLIC_REF_FRAC =  0.85   
+
+# Z_DECOMP ([m]   ) :  scaling depth for soil activity 	{OK_STOMATE }
+Z_DECOMP =  0.2 
+
+# CN ([-]  ) :  C/N ratio 	{OK_STOMATE }
+CN =  40., 40., 40., 40., 40., 40., 40., 40. 
+
+# LC  ([-]   ) :  Lignine/C ratio of the different plant parts 	{OK_STOMATE }
+LC  =  0.22, 0.35, 0.35, 0.35, 0.35, 0.22, 0.22, 0.22 
+
+# FRAC_SOIL_STRUCT_AA ([-]) :  frac_soil(istructural,iactive,iabove) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_AA =  0.55 
+
+# FRAC_SOIL_STRUCT_A  ([-]) :  frac_soil(istructural,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_A  =  0.45 
+
+# FRAC_SOIL_STRUCT_SA ([-]   ) :  frac_soil(istructural,islow,iabove) 	{OK_STOMATE}
+FRAC_SOIL_STRUCT_SA =  0.7   
+
+# FRAC_SOIL_STRUCT_SB ([-]   ) :  frac_soil(istructural,islow,ibelow)  	{OK_STOMATE }
+FRAC_SOIL_STRUCT_SB =  0.7   
+
+# FRAC_SOIL_METAB_AA  ([-]   ) :  frac_soil(imetabolic,iactive,iabove)  	{OK_STOMATE }
+FRAC_SOIL_METAB_AA  =  0.45  
+
+# FRAC_SOIL_METAB_AB  ([-]   ) :  frac_soil(imetabolic,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_METAB_AB  =  0.45   
+
+# METABOLIC_LN_RATIO ([-]   ) :   	{OK_STOMATE }
+METABOLIC_LN_RATIO =  0.018   
+
+# TAU_METABOLIC ([days] ) :   	{OK_STOMATE }
+TAU_METABOLIC =  0.066 
+
+# TAU_STRUCT  ([days]) :   	{OK_STOMATE }
+TAU_STRUCT  =  0.245  
+
+# SOIL_Q10 ([-]) :   	{OK_STOMATE }
+SOIL_Q10 =  0.69 ( 
+
+# TSOIL_REF ([C]   ) :   	{OK_STOMATE }
+TSOIL_REF =  30.  
+
+# LITTER_STRUCT_COEF  ([-]   ) :   	{OK_STOMATE }
+LITTER_STRUCT_COEF  =  3.  
+
+# MOIST_COEFF ([-]   ) :   	{OK_STOMATE }
+MOIST_COEFF =  1.1, 2.4, 0.29 
+
+# FRAC_TURNOVER_DAILY  ([-]) :   	{OK_STOMATE }
+FRAC_TURNOVER_DAILY  =  0.55 
+
+# TAX_MAX ([-]   ) :  maximum fraction of allocatable biomass used for maintenance respiration 	{OK_STOMATE }
+TAX_MAX =  0.8 
+
+# ALWAYS_INIT ([-]   ) :  take carbon from atmosphere if carbohydrate reserve too small?  	{OK_STOMATE }
+ALWAYS_INIT =  n  
+
+# MIN_GROWTHINIT_TIME  ([days]  ) :  minimum time since last beginning of a growing season 	{OK_STOMATE }
+MIN_GROWTHINIT_TIME  =  300.  
+
+# MOIAVAIL_ALWAYS_TREE ([-]   ) :  moisture availability above which moisture tendency doesn't matter  	{OK_STOMATE }
+MOIAVAIL_ALWAYS_TREE =  1.0  
+
+# MOIAVAIL_ALWAYS_GRASS  ([-]   ) :  moisture availability above which moisture tendency doesn't matter 	{OK_STOMATE }
+MOIAVAIL_ALWAYS_GRASS  =  0.6  
+
+# T_ALWAYS_ADD ([C]    ) :  monthly temp. above which temp. tendency doesn't matter  	{OK_STOMATE }
+T_ALWAYS_ADD =  10. 
+
+# GDDNCD_REF  ([-]   ) :   	{OK_STOMATE }
+GDDNCD_REF  =  603.  
+
+# GDDNCD_CURVE ([-]  ) :   	{OK_STOMATE }
+GDDNCD_CURVE =  0.0091  
+
+# GDDNCD_OFFSET ([-]  ) :   	{OK_STOMATE }
+GDDNCD_OFFSET =  64.  
+
+# BM_SAPL_RESCALE  ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_RESCALE  =  40.  
+
+# MAINT_RESP_MIN_VMAX ([-]  ) :   	{OK_STOMATE }
+MAINT_RESP_MIN_VMAX =  0.3 
+
+# MAINT_RESP_COEFF  ([-] ) :   	{OK_STOMATE }
+MAINT_RESP_COEFF  =  1.4  
+
+# FRAC_CARB_AP ([-]) :  frac carb coefficients from active pool: depends on clay content 	{OK_STOMATE }
+FRAC_CARB_AP =  0.004 
+
+# FRAC_CARB_SA ([-]) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SA =  0.42 
+
+# FRAC_CARB_SP ([-] ) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SP =  0.03 
+
+# FRAC_CARB_PA ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PA =  0.45 
+
+# FRAC_CARB_PS ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PS =  0.0 
+
+# ACTIVE_TO_PASS_CLAY_FRAC ([-] ) :   	{OK_STOMATE }
+ACTIVE_TO_PASS_CLAY_FRAC =  0.68   
+
+# CARBON_TAU_IACTIVE ( [days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IACTIVE =  0.149 
+
+# CARBON_TAU_ISLOW ([days]) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_ISLOW =  5.48 
+
+# CARBON_TAU_IPASSIVE ([days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IPASSIVE =  241. 
+
+# FLUX_TOT_COEFF ([days] ) :  	{OK_STOMATE }
+FLUX_TOT_COEFF =  1.2, 1.4,.75 
+
+# NEW_TURNOVER_TIME_REF ([days]  ) :   	{OK_STOMATE }
+NEW_TURNOVER_TIME_REF =  20.  
+
+# DT_TURNOVER_TIME  ([days]  ) :   	{OK_STOMATE }
+DT_TURNOVER_TIME  =  10. 
+
+# LEAF_AGE_CRIT_TREF ([days]  ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_TREF =  20.  
+
+# LEAF_AGE_CRIT_COEFF  ([-] ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_COEFF  =  1.5, 0.75, 10.  
+
+# VMAX_OFFSET  ([-]  ) :  offset (minimum relative vcmax) 	{OK_STOMATE }
+VMAX_OFFSET  =  0.3 
+
+# LEAFAGE_FIRSTMAX ([-] ) :  leaf age at which vmax attains vcmax_opt (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_FIRSTMAX =  0.03  
+
+# LEAFAGE_LASTMAX  ([-]  ) :  leaf age at which vmax falls below vcmax_opt (in fraction of critical leaf age)  	{OK_STOMATE }
+LEAFAGE_LASTMAX  =  0.5  
+
+# LEAFAGE_OLD  ([-]  ) :  leaf age at which vmax attains its minimum (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_OLD  =  1. 
+
+# GPPFRAC_DORMANCE  ([-]) :  rapport maximal GPP/GGP_max pour dormance 	{OK_STOMATE }
+GPPFRAC_DORMANCE  =  0.2  
+
+# TAU_CLIMATOLOGY ([days]) :  tau for "climatologic variables  	{OK_STOMATE }
+TAU_CLIMATOLOGY =  20 
+
+# HVC1  ([-]  ) :  parameters for herbivore activity 	{OK_STOMATE }
+HVC1  =  0.019 
+
+# HVC2  ([-]  ) :  parameters for herbivore activity  	{OK_STOMATE }
+HVC2  =  1.38 
+
+# LEAF_FRAC_HVC ([-] ) :  parameters for herbivore activity  	{OK_STOMATE }
+LEAF_FRAC_HVC =  0.33 
+
+# TLONG_REF_MAX ([K]  ) :  maximum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MAX =  303.1 
+
+# TLONG_REF_MIN  ([K]  ) :  minimum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MIN  =  253.1 
+
+# NCD_MAX_YEAR ([days]) :   	{OK_STOMATE }
+NCD_MAX_YEAR =  3.  
+
+# GDD_THRESHOLD  ([days] ) :   	{OK_STOMATE }
+GDD_THRESHOLD  =  5.  
+
+# GREEN_AGE_EVER  ([-]  ) :   	{OK_STOMATE }
+GREEN_AGE_EVER  =  2.  
+
+# GREEN_AGE_DEC ([-] ) :   	{OK_STOMATE }
+GREEN_AGE_DEC =  0.5  
+
+# ESTAB_MAX_TREE ([-]   ) :  Maximum tree establishment rate  	{OK_DGVM}
+ESTAB_MAX_TREE =  0.12  
+
+# ESTAB_MAX_GRASS ([-]  ) :  Maximum grass establishment rate 	{OK_DGVM}
+ESTAB_MAX_GRASS =  0.12  
+
+# ESTABLISH_SCAL_FACT ([-] ) :   	{OK_DGVM }
+ESTABLISH_SCAL_FACT =  5. 
+
+# MAX_TREE_COVERAGE  ([-] ) :   	{OK_DGVM }
+MAX_TREE_COVERAGE  =  0.98 
+
+# IND_0_ESTAB ([-]  ) :   	{OK_DGVM }
+IND_0_ESTAB =  0.2 
+
+# ANNUAL_INCREASE ([FLAG]) :  for diagnosis of fpc increase, compare today's fpc to last year's maximum (T) or to fpc of last time step (F)? 	{OK_DGVM}
+ANNUAL_INCREASE =  y 
+
+# MIN_COVER  ([-]  ) :  For trees, minimum fraction of crown area occupied  	{OK_DGVM}
+MIN_COVER  =  0.05  
+
+# IND_0  ([-]  ) :  initial density of individuals 	{OK_DGVM}
+IND_0  =  0.02  
+
+# MIN_AVAIL ([-]  ) :  minimum availability 	{OK_DGVM}
+MIN_AVAIL =  0.01 
+
+# RIP_TIME_MIN ([year]  ) :   	{OK_DGVM}
+RIP_TIME_MIN =  1.25  
+
+# NPP_LONGTERM_INIT ([gC/m^2/year]) :   	{OK_DGVM}
+NPP_LONGTERM_INIT =  10. 
+
+# EVERYWHERE_INIT ([-] ) :   	{OK_DGVM}
+EVERYWHERE_INIT =  0.05  
+
+# THERMOSOIL_NBLEV ((-)) :  Number of soil level 	{}
+THERMOSOIL_NBLEV =  7 
+
+# DRY_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}] ) :  Dry soil Heat capacity of soils 	{OK_SECHIBA }
+DRY_SOIL_HEAT_CAPACITY =  1.80e+6 
+
+# DRY_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}] ) :  Dry soil Thermal Conductivity of soils 	{OK_SECHIBA}
+DRY_SOIL_HEAT_COND =  0.40  
+
+# WET_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}]) :  Wet soil Heat capacity of soils  	{OK_SECHIBA}
+WET_SOIL_HEAT_CAPACITY =  3.03e+6 
+
+# WET_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Wet soil Thermal Conductivity of soils 	{OK_SECHIBA }
+WET_SOIL_HEAT_COND =  1.89  
+
+# SNOW_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Thermal Conductivity of snow 	{OK_SECHIBA  }
+SNOW_HEAT_COND =  0.3 
+
+# SNOW_DENSITY ([-] ) :  Snow density for the soil thermodynamics  	{OK_SECHIBA }
+SNOW_DENSITY =  330.0 
+
+# NOBIO_WATER_CAPAC_VOLUMETRI ([s/m^2]) :   	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+NOBIO_WATER_CAPAC_VOLUMETRI =  150. 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# CHOISNEL_DIFF_MIN ([kg/m^2/dt]) :  Diffusion constant for the slow regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MIN =  0.001 
+
+# CHOISNEL_DIFF_MAX ([kg/m^2/dt]) :  Diffusion constant for the fast regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MAX =  0.1 
+
+# CHOISNEL_DIFF_EXP ([-]) :  The exponential in the diffusion law 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_EXP =  1.5 
+
+# CHOISNEL_RSOL_CSTE ([s/m^2]) :  Constant in the computation of resistance for bare  soil evaporation  	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_RSOL_CSTE =  33.E3 
+
+# HCRIT_LITTER ([m]) :  Scaling depth for litter humidity 	{OK_SECHIBA and .NOT.(HYDROL_CWRR) }
+HCRIT_LITTER =  0.08  
+
+# SECHIBA_DAY ([days]) :  Time within the day simulated 	{OK_SECHIBA}
+SECHIBA_DAY =  0.0 
+
+# VEGET_UPDATE ([years]) :  Update vegetation frequency 	{LAND_USE}
+VEGET_UPDATE =  0Y 
+
+# SECHIBA_ZCANOP ([m]) :  Soil level used for canopy development (if STOMATE disactivated) 	{OK_SECHIBA and .NOT. OK_STOMATE  }
+SECHIBA_ZCANOP =  0.5 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# DT_SLOW ([seconds]) :  Time step of STOMATE and other slow processes 	{OK_STOMATE}
+DT_SLOW =  86400. 
+
+# SECHIBA_VEGMAX ([-]) :  Maximum vegetation distribution within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_VEGMAX =  0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0 
+
+# SECHIBA_FRAC_NOBIO ([-]) :  Fraction of other surface types within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_FRAC_NOBIO =  0.0 
+
+# SECHIBA_LAI ([-]) :  LAI for all vegetation types (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# SOIL_FRACTIONS ([-]) :  Fraction of the 3 soil types (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOILT}
+SOIL_FRACTIONS =  -9999._sechiba 
+
+# CLAY_FRACTION ([-] ) :  Fraction of the clay fraction (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOIL}
+CLAY_FRACTION =  0.2 
+
+# REINF_SLOPE ([-]) :  Slope coef for reinfiltration  	{IMPOSE_VEG}
+REINF_SLOPE =  0.1 
+
+# SLOWPROC_HEIGHT ([m]) :  Height for all vegetation types  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1.0, 1.0 
+
+# GET_SLOPE ([FLAG]) :  Read slopes from file and do the interpolation 	{}
+GET_SLOPE =  n 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(LAI_MAP)}
+LAI_FILE =  lai2D.nc 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAI_MAP}
+LAI_FILE =  lai2D.nc 
+
+# RENORM_LAI ([FLAG]) :  flag to force LAI renormelization 	{LAI_MAP}
+RENORM_LAI =  n 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAND_USE}
+VEGETATION_FILE =  PFTmap.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# SOILCLASS_FILE ([FILE]) :  Name of file from which soil types are read 	{NOT(IMPOSE_VEG)}
+SOILCLASS_FILE =  soils_param.nc 
+
+# SLOPE_NOREINF ([-]) :  See slope_noreinf above 	{}
+SLOPE_NOREINF =  0.5 
+
+# TOPOGRAPHY_FILE ([FILE]) :  Name of file from which the topography map is to be read 	{}
+TOPOGRAPHY_FILE =  cartepente2d_15min.nc 
+
+# SOILALB_FILE ([FILE]) :  Name of file from which the bare soil albedo 	{NOT(IMPOSE_AZE)}
+SOILALB_FILE =  soils_param.nc 
+
+# CDRAG_FROM_GCM ([FLAG]) :  Keep cdrag coefficient from gcm. 	{OK_SECHIBA}
+CDRAG_FROM_GCM =  y 
+
+# DIFFUCO_LEAFCI ([ppm]) :  Initial leaf CO2 level if not found in restart 	{OK_SECHIBA}
+DIFFUCO_LEAFCI =  233. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{}
+ALLOW_WEATHERGEN =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# HYDROL_OK_HDIFF ([FLAG]) :  do horizontal diffusion? 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)  }
+HYDROL_OK_HDIFF =  n 
+
+# HYDROL_SNOW ([kg/m^2]) :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE ([days]) :  Initial snow age if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO ([m]) :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE ([days]) :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_HUMR ([-]) :  Initial soil moisture stress if not found in restart 	{OK_SECHIBA }
+HYDROL_HUMR =  1.0 
+
+# HYDROL_BQSB ([kg/m^2]) :  Initial restart deep soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_BQSB =  999999.  
+
+# HYDROL_GQSB ([kg/m^2]) :  Initial upper soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_GQSB =  0.0 
+
+# HYDROL_DSG ([m]) :  Initial upper reservoir depth if not found in restart 	{OK_SECHIBA }
+HYDROL_DSG =  0.0 
+
+# HYDROL_QSV ([kg/m^2]) :  Initial water on canopy if not found in restart 	{OK_SECHIBA }
+HYDROL_QSV =  0.0 
+
+# HYDROL_DSP ([m]) :  Initial dry soil above upper reservoir if not found in restart 	{OK_SECHIBA }
+HYDROL_DSP =  999999. 
+
+# HYDROL_TAU_HDIFF ([seconds]) :  time scale (s) for horizontal diffusion of water 	{HYDROL_OK_HDIFF}
+HYDROL_TAU_HDIFF =  86400. 
+
+# CHECK_CWRR ([FLAG]) :  Should we check detailed CWRR water balance ? 	{HYDROL_CWRR}
+CHECK_CWRR =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{HYDROL_CWRR}
+DO_PONDS =  n 
+
+# CWRR_N_VANGENUCHTEN ([-]) :  Van genuchten coefficient n 	{HYDROL_CWRR}
+CWRR_N_VANGENUCHTEN =  1.89, 1.56, 1.31 
+
+# CWRR_A_VANGENUCHTEN ([1/mm]  ) :  Van genuchten coefficient a 	{HYDROL_CWRR}
+CWRR_A_VANGENUCHTEN =  0.0075, 0.0036, 0.0019 
+
+# VWC_RESIDUAL ([mm]  ) :  Residual soil water content 	{HYDROL_CWRR}
+VWC_RESIDUAL =  0.065, 0.078, 0.095 
+
+# VWC_SAT ([-]  ) :  Saturated soil water content 	{HYDROL_CWRR}
+VWC_SAT =  0.41, 0.43, 0.41 
+
+# CWRR_KS  ([mm/d]   ) :  Hydraulic conductivity Saturation 	{HYDROL_CWRR }
+CWRR_KS  =  1060.8, 249.6, 62.4 
+
+# WETNESS_TRANSPIR_MAX ([-]    ) :  Soil moisture above which transpir is max 	{HYDROL_CWRR}
+WETNESS_TRANSPIR_MAX =  0.5, 0.5, 0.5 
+
+# DRAINAGE_FACTOR_F ([-]   ) :  Max value of the permeability coeff at the bottom of the soil  	{HYDROL_CWRR}
+DRAINAGE_FACTOR_F =  1.0, 1.0, 1.0  
+
+# VWC_FC  ([-]   ) :  Volumetric water content field capacity 	{HYDROL_CWRR}
+VWC_FC  =  0.32, 0.32, 0.32 
+
+# VWC_WP ([-]   ) :  Volumetric water content Wilting pt 	{HYDROL_CWRR}
+VWC_WP =  0.10, 0.10, 0.10  
+
+# VWC_MIN_FOR_WET_ALB ([-]  ) :  Vol. wat. cont. above which albedo is cst 	{HYDROL_CWRR}
+VWC_MIN_FOR_WET_ALB =  0.25, 0.25, 0.25 
+
+# VWC_MAX_FOR_DRY_ALB ([-]   ) :  Vol. wat. cont. below which albedo is cst 	{HYDROL_CWRR}
+VWC_MAX_FOR_DRY_ALB =  0.1, 0.1, 0.1 
+
+# HYDROL_MOISTURE_CONTENT () :  Soil moisture on each soil tile and levels 	{HYDROL_CWRR       }
+HYDROL_MOISTURE_CONTENT =  0.3 
+
+# US_INIT () :  US_NVM_NSTM_NSLM 	{HYDROL_CWRR       }
+US_INIT =  0.0 
+
+# FREE_DRAIN_COEF () :  Coefficient for free drainage at bottom 	{HYDROL_CWRR       }
+FREE_DRAIN_COEF =  1.0, 1.0, 1.0 
+
+# WATER_TO_INFILT () :  Water to be infiltrated on top of the soil 	{HYDROL_CWRR    }
+WATER_TO_INFILT =  0.0 
+
+# EVAPNU_SOIL () :  Bare soil evap on each soil if not found in restart 	{HYDROL_CWRR  }
+EVAPNU_SOIL =  0.0 
+
+# HYDROL_SNOW () :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE () :  Initial snow age if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO () :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE () :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_QSV () :  Initial water on canopy if not found in restart 	{OK_SECHIBA}
+HYDROL_QSV =  0.0 
+
+# CWRR_NKS_N0  ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_N0  =  0.95 
+
+# CWRR_NKS_POWER ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_POWER =  0.34 
+
+# CWRR_AKS_A0  ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_A0  =  0.00012 
+
+# CWRR_AKS_POWER ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_POWER =  0.53 
+
+# KFACT_DECAY_RATE ([-]) :  Factor for Ks decay with depth 	{HYDROL_CWRR }
+KFACT_DECAY_RATE =  2.0 
+
+# KFACT_STARTING_DEPTH ([-]) :  Depth for compacted value of Ks  	{HYDROL_CWRR }
+KFACT_STARTING_DEPTH =  0.3 
+
+# KFACT_MAX ([-]) :  Maximum Factor for Ks increase due to vegetation 	{HYDROL_CWRR }
+KFACT_MAX =  10.0 
+
+# ROUTING_TIMESTEP ([seconds]) :  Time step of the routing scheme 	{RIVER_ROUTING}
+ROUTING_TIMESTEP =  86400. 
+
+# ROUTING_RIVERS ([-]) :  Number of rivers  	{RIVER_ROUTING}
+ROUTING_RIVERS =  50 
+
+# DO_FLOODINFILT ([FLAG]) :  Should floodplains reinfiltrate into the soil  	{RIVER_ROUTING}
+DO_FLOODINFILT =  n 
+
+# DO_SWAMPS ([FLAG]) :  Should we include swamp parameterization  	{RIVER_ROUTING}
+DO_SWAMPS =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{RIVER_ROUTING}
+DO_PONDS =  n 
+
+# SLOW_TCST ([days]) :  Time constant for the slow reservoir  	{RIVER_ROUTING }
+SLOW_TCST =  n 
+
+# FAST_TCST ([days]) :  Time constant for the fast reservoir  	{RIVER_ROUTING }
+FAST_TCST =  fast_tcst_cwrr or fast_tcst_chois depending on flag HYDROL_CWRR 
+
+# STREAM_TCST ([days]) :  Time constant for the stream reservoir  	{RIVER_ROUTING}
+STREAM_TCST =  stream_tcst_cwrr or stream_tcst_chois depending on flag HYDROL_CWRR 
+
+# FLOOD_TCST ([days]) :  Time constant for the flood reservoir  	{RIVER_ROUTING}
+FLOOD_TCST =  4.0 
+
+# SWAMP_CST ([-]) :  Fraction of the river that flows back to swamps  	{RIVER_ROUTING}
+SWAMP_CST =  0.2 
+
+# FLOOD_BETA ([-] ) :  Parameter to fix the shape of the floodplain   	{RIVER_ROUTING}
+FLOOD_BETA =  2.0 
+
+# POND_BETAP ([-] ) :  Ratio of the basin surface intercepted by ponds and the maximum surface of ponds 	{RIVER_ROUTING}
+POND_BETAP =  0.5 
+
+# FLOOD_CRI ([mm] ) :  Potential height for which all the basin is flooded 	{DO_FLOODPLAINS or DO_PONDS}
+FLOOD_CRI =  2000. 
+
+# POND_CRI ([mm] ) :  Potential height for which all the basin is a pond 	{DO_FLOODPLAINS or DO_PONDS}
+POND_CRI =  2000. 
+
+# RIVER_DESC ([FLAG]) :  Writes out a description of the rivers 	{RIVER_ROUTING}
+RIVER_DESC =  n 
+
+# RIVER_DESC_FILE ([FILE]) :  Filename in which we write the description of the rivers. If suffix is ".nc" a netCDF file is created 	{RIVER_DESC}
+RIVER_DESC_FILE =  river_desc.txt 
+
+# ROUTING_FILE ([FILE]) :  Name of file which contains the routing information 	{RIVER_ROUTING}
+ROUTING_FILE =  routing.nc 
+
+# IRRIGATION_FILE ([FILE]) :  Name of file which contains the map of irrigated areas 	{DO_IRRIGATION OR DO_FLOODPLAINS}
+IRRIGATION_FILE =  floodplains.nc 
+
+# EPS_CARBON ([%]   ) :  Allowed error on carbon stock 	{SPINUP_ANALYTIC}
+EPS_CARBON =  0.01 
+
+# SPINUP_PERIOD ([years]   ) :  Period to calulcate equilibrium during spinup analytic 	{SPINUP_ANALYTIC}
+SPINUP_PERIOD =  -1 
+
+# STOMATE_FORCING_NAME ([FILE]) :  Name of STOMATE's forcing file 	{OK_STOMATE}
+STOMATE_FORCING_NAME =  NONE 
+
+# STOMATE_FORCING_MEMSIZE ([MegaBytes]) :  Size of STOMATE forcing data in memory  	{OK_STOMATE}
+STOMATE_FORCING_MEMSIZE =  50 
+
+# STOMATE_CFORCING_NAME ([FILE]) :  Name of STOMATE's carbon forcing file 	{OK_STOMATE}
+STOMATE_CFORCING_NAME =  NONE 
+
+# FORCESOIL_STEP_PER_YEAR ([days, months, year]) :  Number of time steps per year for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_STEP_PER_YEAR =  365 
+
+# FORCESOIL_NB_YEAR ([years]) :  Number of years saved for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_NB_YEAR =  1 
+
+# BAVARD ([-]) :  level of online diagnostics in STOMATE (0-4) 	{OK_STOMATE}
+BAVARD =  1 
+
+# REFTEMP_FILE ([FILE]) :  Name of file from which the reference temperature is read 	{OK_STOMATE}
+REFTEMP_FILE =  reftemp.nc 
+
+# XIOS_ORCHIDEE_OK ([FLAG]) :  Use XIOS for writing diagnostics file 	{}
+XIOS_ORCHIDEE_OK =  n 
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/PARAM/run.def	(revision 5631)
@@ -0,0 +1,5 @@
+# $Id: run.def,v 1.1 2010/10/06 15:09:33 ssipsl Exp $
+#
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,31 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# resolution of forcing file (not used yet)
+RESOL=OOL360180
+stomate_LEVEL=7
+
+[InitialStateFiles]
+List=	()
+	
+[BoundaryFiles]
+List=	()
+ListNonDel= (${config_SBG_RestartPath}/${config_SBG_RestartJobName}/SBG/Restart/${config_SBG_RestartJobName}_${Date_Restarts}_stomate_Cforcing.nc, stomate_Cforcing.nc)\
+            (${R_IN}/SRF/reftemp.nc, .)
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+
+[OutputText]
+List=   (run.def, used_run.def, out_forcesoil, out_orchidee)
+
+[OutputFiles]
+List=	()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,151 @@
+#!/bin/ksh
+
+#D- Driver du script pour STOMATE
+
+function ORCHIDEE_def
+{
+    IGCM_debug_PushStack "ORCHIDEE_def"
+    
+    typeset ORCHIDEE_def_KEY ORCHIDEE_default_KEY
+    
+    ORCHIDEE_def_KEY=$( grep -e "^${1}\ *=" run.def | gawk -- 'BEGIN {FS="="} {print $2}')
+    ORCHIDEE_default_KEY=$( grep -e "^${1}\ *=" ${SUBMIT_DIR}/PARAM/orchidee.default | gawk -- 'BEGIN {FS="="} {print $2}')
+
+    if [ X"${ORCHIDEE_def_KEY}" != X ] ; then
+	IGCM_debug_Print 2 "ORCHIDEE : ${1} has already been set in def file."
+	IGCM_debug_Print 2 " default value : ${ORCHIDEE_default_KEY}"
+	IGCM_debug_Print 2 " script value : ${2}"
+	IGCM_debug_Print 2 " USER value : ${ORCHIDEE_def_KEY}"
+	IGCM_debug_Print 2 "               We will not set in again !"
+    else
+	echo "${1}= ${2}" >> run.def
+	echo ""  >> run.def
+	echo "ORCHIDEE_def : ${1} ${2}"
+    fi
+    
+    IGCM_debug_PopStack "ORCHIDEE_def"
+    return $RET
+}
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    RESOL=${forcesoil_UserChoices_RESOL}
+
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG RestartDate
+    Date_Restarts=$( IGCM_date_ConvertFormatToGregorian ${config_SBG_RestartDate} )
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG RestartJobName
+    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SBG RestartPath    
+
+    NUM_PROC=1
+#D- Number of processors used for lmdz and oasis coupler computed from PBS variable
+    if [ X"${BATCH_NUM_PROC_TOT}" != X ] ; then
+	NUM_PROC=${BATCH_NUM_PROC_TOT}
+    fi
+    echo BATCH_NUM_PROC_TOT=${BATCH_NUM_PROC_TOT}
+    echo NUM_PROC=${NUM_PROC}
+
+    if ( [ X${BATCH_NUM_PROC_TOT} != X ] && [ "${BATCH_NUM_PROC_TOT}" -gt 1 ] ) ; then
+	MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND}
+    fi
+
+    if [ ! -f ${SUBMIT_DIR}/PARAM/run.def ] ; then
+	echo "#orchidee add :" > ${SUBMIT_DIR}/PARAM/run.def
+    else
+	echo "#orchidee add :" >> ${SUBMIT_DIR}/PARAM/run.def
+    fi
+    echo "" >> ${SUBMIT_DIR}/PARAM/run.def
+
+     IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_PeriodStart
+{
+    IGCM_debug_PushStack "SBG_PeriodStart"
+
+    IGCM_debug_PopStack "SBG_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    typeset STOMATE_WRITE_STEP
+
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+	    (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;;
+	1M|1m) 
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		STOMATE_WRITE_STEP=-1.
+		;;
+	*M|*m) 
+		STOMATE_WRITE_STEP=-1.
+		;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	*M|*m) 
+	    WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = 30 )) ;;
+	    *M|*m)
+		PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	5D|5d) 
+	    (( STOMATE_WRITE_STEP = 5 )) ;;
+	1D|1d) 
+	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*s)
+	    WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' )
+	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*) 
+	    IGCM_debug_Exit "SBG_Update " ${config_SBG_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
+	    IGCM_debug_Verif_Exit ;;
+    esac
+
+    ORCHIDEE_def STOMATE_OK_STOMATE y
+    ORCHIDEE_def STOMATE_OK_CO2 y
+
+    ORCHIDEE_def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    ORCHIDEE_def STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL}
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "Error in forcesoil !"
+	echo "You must use some old restarts with this job." 
+	echo "We will stop here."
+	IGCM_debug_Exit "YOU MUST USE SOME OLD RESTARTS WITH THE JOB FORCESOIL." 
+	IGCM_debug_Verif_Exit
+    else
+	ORCHIDEE_def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+	ORCHIDEE_def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+    fi
+
+    ORCHIDEE_def TIME_LENGTH ${PeriodLengthInYears}Y
+#    ORCHIDEE_def TIME_SKIP ${OldSimulationLengthInDays}D
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+    echo FINALIZE SBG !!!
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/PARAM/orchidee.default
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/PARAM/orchidee.default	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/PARAM/orchidee.default	(revision 5631)
@@ -0,0 +1,1514 @@
+#
+#
+#  WARNING !!! 
+#  DO NOT MODIFY THIS FILE.
+#  THIS FILE IS ONLY PROVIDING INFORMATION ABOUT DEFAULT PARAMETER SETTINGS IN ORCHIDEE. 
+#
+#*******************************************************************************************
+#                    Namelist for ORCHIDEE (trunk revision 2135) 
+#*******************************************************************************************
+#
+#  For more details, see : http://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/OrchideeParameters 
+#
+#  Note : [m] : meters; [K] : Kelvin degrees; [C] : Celsius degrees
+#
+
+#*******************************************************************************************
+#          ORCHIDEE driver parameters (read in Off-line mode only) 
+#*******************************************************************************************
+
+# DEBUG_INFO ([FLAG] ) :  Flag for debug information 	{[-]}
+DEBUG_INFO =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# SPLIT_DT ([-]) :  splits the timestep imposed by the forcing 	{NOT(WEATHERGEN)}
+SPLIT_DT =  12 
+
+# RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions 	{[-]}
+RESTART_FILEIN =  NONE 
+
+# RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by the driver 	{[-]}
+RESTART_FILEOUT =  driver_rest_out.nc 
+
+# DRIVER_reset_time ([FLAG]) :  Overwrite time values from the driver restart file 	{[-]}
+DRIVER_reset_time =  n 
+
+# TIME_SKIP ([seconds, days, months, years]) :  Time in the forcing file at which the model is started. 	{[-]}
+TIME_SKIP =  0 
+
+# TIME_LENGTH ([seconds, days, months, years]) :  Length of the integration in time. 	{[-]}
+TIME_LENGTH =  DEF 
+
+# RELAXATION ([FLAG]) :  method of forcing 	{[-]}
+RELAXATION =  n 
+
+# RELAX_A ([days?]) :  Time constant of the relaxation layer 	{RELAXATION}
+RELAX_A =  1.0 
+
+# NO_INTER  ([FLAG]) :  No interpolation IF split is larger than 1 	{[-]}
+NO_INTER  =  y 
+
+# INTER_LIN ([FLAG]) :  Interpolation IF split is larger than 1 	{[-]}
+INTER_LIN =  n 
+
+# SPRED_PREC ([-]) :  Spread the precipitation. 	{[-]}
+SPRED_PREC =  1 
+
+# NETRAD_CONS ([FLAG]) :  Conserve net radiation in the forcing 	{INTER_LIN}
+NETRAD_CONS =  y 
+
+# ATM_CO2 ([ppm]) :  Value for atm CO2 	{[-]}
+ATM_CO2 =  350. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{[-]}
+ALLOW_WEATHERGEN =  n 
+
+# DT_WEATHGEN ([seconds]) :  Calling frequency of weather generator 	{ALLOW_WEATHERGEN}
+DT_WEATHGEN =  1800. 
+
+# LIMIT_WEST ([Degrees] ) :  Western limit of region 	{[-]}
+LIMIT_WEST =  -180. 
+
+# LIMIT_EAST ([Degrees] ) :  Eastern limit of region 	{[-]}
+LIMIT_EAST =  180. 
+
+# LIMIT_NORTH ([Degrees]) :  Northern limit of region 	{[-]}
+LIMIT_NORTH =  90. 
+
+# LIMIT_SOUTH ([Degrees]) :  Southern limit of region 	{[-]}
+LIMIT_SOUTH =  -90. 
+
+# MERID_RES ([Degrees]) :  North-South Resolution 	{ALLOW_WEATHERGEN}
+MERID_RES =  2. 
+
+# ZONAL_RES ([Degrees] ) :  East-West Resolution 	{ALLOW_WEATHERGEN}
+ZONAL_RES =  2. 
+
+# IPPREC ([-] ) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+IPPREC =  0 
+
+# WEATHGEN_PRECIP_EXACT ([FLAG]) :  Exact monthly precipitation 	{ALLOW_WEATHERGEN}
+WEATHGEN_PRECIP_EXACT =  n 
+
+# DUMP_WEATHER ([FLAG]) :  Write weather from generator into a forcing file 	{ALLOW_WEATHERGEN  }
+DUMP_WEATHER =  n 
+
+# DUMP_WEATHER_FILE ([FILE]) :  Name of the file that contains the weather from generator 	{DUMP_WEATHER}
+DUMP_WEATHER_FILE =  weather_dump.nc 
+
+# DUMP_WEATHER_GATHERED ([FLAG]) :  Dump weather data on gathered grid 	{DUMP_WEATHER}
+DUMP_WEATHER_GATHERED =  y 
+
+# HEIGHT_LEV1 ([m]) :   	{DUMP_WEATHER}
+HEIGHT_LEV1 =  10. 
+
+#*******************************************************************************************
+#          ORCHIDEE parameters  
+#*******************************************************************************************
+
+# LONGPRINT ([FLAG]) :  ORCHIDEE will print more messages 	{OK_SECHIBA}
+LONGPRINT =  n 
+
+# CHECKTIME ([FLAG]) :  ORCHIDEE will print messages on time 	{OK_SECHIBA}
+CHECKTIME =  n 
+
+# SOILTYPE_CLASSIF ([-]) :  Type of classification used for the map of soil types  	{!IMPOSE_VEG}
+SOILTYPE_CLASSIF =  zobler 
+
+# ORCHIDEE_WATCHOUT ([FLAG]) :  ORCHIDEE will write out its forcing to a file 	{}
+ORCHIDEE_WATCHOUT =  n 
+
+# DT_WATCHOUT ([seconds]) :  ORCHIDEE will write out with this frequency 	{ORCHIDEE_WATCHOUT}
+DT_WATCHOUT =  dt 
+
+# WATCHOUT_FILE ([FILE]) :  Filenane for the ORCHIDEE forcing file 	{ORCHIDEE_WATCHOUT}
+WATCHOUT_FILE =  orchidee_watchout.nc 
+
+# RIVER_ROUTING ([FLAG]) :  Decides if we route the water or not 	{OK_SECHIBA}
+RIVER_ROUTING =  n 
+
+# HYDROL_CWRR ([FLAG]) :  Allows to switch on the multilayer hydrology of CWRR 	{OK_SECHIBA}
+HYDROL_CWRR =  n 
+
+# HYDROL_SOIL_DEPTH ([m]) :  Total depth of soil reservoir 	{OK_SECHIBA }
+HYDROL_SOIL_DEPTH =  4./ 2. (if HYDROL_CWRR) 
+
+# DO_IRRIGATION ([FLAG]) :  Should we compute an irrigation flux  	{RIVER_ROUTING }
+DO_IRRIGATION =  n 
+
+# DO_FLOODPLAINS ([FLAG]  ) :  Should we include floodplains  	{RIVER_ROUTING }
+DO_FLOODPLAINS =  n 
+
+# CHECK_WATERBAL ([FLAG]  ) :  Should we check the global water balance  	{OK_SECHIBA}
+CHECK_WATERBAL =  n 
+
+# STOMATE_OK_CO2 ([FLAG]) :  Activate CO2? 	{OK_SECHIBA }
+STOMATE_OK_CO2 =  n 
+
+# STOMATE_OK_STOMATE ([FLAG]) :  Activate STOMATE? 	{OK_SECHIBA and OK_CO2}
+STOMATE_OK_STOMATE =  n 
+
+# STOMATE_OK_DGVM ([FLAG]) :  Activate DGVM? 	{OK_STOMATE}
+STOMATE_OK_DGVM =  n 
+
+# DIFFUCO_OK_INCA ([FLAG]) :  Activate DIFFUCO_INCA? 	{OK_SECHIBA}
+DIFFUCO_OK_INCA =  n 
+
+# LEAFAGE_OK_INCA ([FLAG]) :  Activate LEAFAGE? 	{DIFFUCO_OK_INCA}
+LEAFAGE_OK_INCA =  n 
+
+# CANOPY_EXTINCTION  ([FLAG]) :  Use canopy radiative transfer model? 	{DIFFUCO_OK_INCA }
+CANOPY_EXTINCTION  =  n 
+
+# CANOPY_MULTILAYER ([FLAG]) :  Use canopy radiative transfer model with multi-layers 	{CANOPY_EXTINCTION }
+CANOPY_MULTILAYER =  n 
+
+# NOx_RAIN_PULSE ([FLAG]) :  Calculate NOx emissions with pulse? 	{DIFFUCO_OK_INCA }
+NOx_RAIN_PULSE =  n 
+
+# NOx_BBG_FERTIL ([FLAG]) :  Calculate NOx emissions with bbg fertilizing effect? 	{DIFFUCO_OK_INCA }
+NOx_BBG_FERTIL =  n 
+
+# NOx_FERTILIZERS_USE ([FLAG] ) :  Calculate NOx emissions with fertilizers use? 	{DIFFUCO_OK_INCA }
+NOx_FERTILIZERS_USE =  n 
+
+# STOMATE_WATCHOUT ([FLAG]) :  STOMATE does minimum service 	{OK_SECHIBA }
+STOMATE_WATCHOUT =  n 
+
+# NVM ([-]) :  number of PFTs   	{OK_SECHIBA or OK_STOMATE}
+NVM =  13 
+
+# IMPOSE_PARAM ([FLAG]) :  Do you impose the values of the parameters? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_PARAM =  y 
+
+# SECHIBA_restart_in ([FILE]) :  Name of restart to READ for initial conditions 	{OK_SECHIBA }
+SECHIBA_restart_in =  NONE 
+
+# SECHIBA_rest_out ([FILE]) :  Name of restart files to be created by SECHIBA 	{OK_SECHIBA}
+SECHIBA_rest_out =  sechiba_rest_out.nc 
+
+# SECHIBA_reset_time ([FLAG]) :  Override the time from the restart files for SECHIBA and STOMATE 	{OK_SECHIBA}
+SECHIBA_reset_time =  y 
+
+# STOMATE_RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions of STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEIN =  NONE 
+
+# STOMATE_RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEOUT =  stomate_restart.nc 
+
+# ALMA_OUTPUT ([FLAG]) :  Should the output follow the ALMA convention 	{OK_SECHIBA}
+ALMA_OUTPUT =  n 
+
+# OUTPUT_FILE ([FILE]) :  Name of file in which the output is going to be written 	{OK_SECHIBA}
+OUTPUT_FILE =  sechiba_history.nc 
+
+# WRITE_STEP ([seconds]) :  Frequency in seconds at which to WRITE output 	{OK_SECHIBA}
+WRITE_STEP =  86400. 
+
+# SECHIBA_HISTLEVEL ([-]) :  SECHIBA history output level (0..10) 	{OK_SECHIBA and HF}
+SECHIBA_HISTLEVEL =  5 
+
+# SECHIBA_HISTFILE2 ([FLAG]) :  Flag to switch on histfile 2 for SECHIBA (hi-frequency ?) 	{OK_SECHIBA}
+SECHIBA_HISTFILE2 =  n 
+
+# WRITE_STEP2 ([seconds]) :  Frequency in seconds at which to WRITE output 	{SECHIBA_HISTFILE2}
+WRITE_STEP2 =  1800.0 
+
+# SECHIBA_OUTPUT_FILE2 ([FILE]) :  Name of file in which the output number 2 is going to be written 	{SECHIBA_HISTFILE2}
+SECHIBA_OUTPUT_FILE2 =  sechiba_out_2.nc 
+
+# SECHIBA_HISTLEVEL2 ([-] ) :  SECHIBA history 2 output level (0..10) 	{SECHIBA_HISTFILE2}
+SECHIBA_HISTLEVEL2 =  1 
+
+# STOMATE_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_OUTPUT_FILE =  stomate_history.nc 
+
+# STOMATE_HIST_DT ([days]) :  STOMATE history time step 	{OK_STOMATE}
+STOMATE_HIST_DT =  10. 
+
+# STOMATE_IPCC_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_IPCC_OUTPUT_FILE =  stomate_ipcc_history.nc 
+
+# STOMATE_IPCC_HIST_DT ([days]) :  STOMATE IPCC history time step 	{OK_STOMATE}
+STOMATE_IPCC_HIST_DT =  0. 
+
+# STOMATE_HISTLEVEL ([-]) :  STOMATE history output level (0..10) 	{OK_STOMATE}
+STOMATE_HISTLEVEL =  10 
+
+# ECCENTRICITY ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+ECCENTRICITY =  0.016724 
+
+# PERIHELIE ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+PERIHELIE =  102.04 
+
+# OBLIQUITY ([Degrees]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+OBLIQUITY =  23.446 
+
+# OK_THROUGHFALL_PFT ([FLAG]) :  Activate use of PERCENT_THROUGHFALL_PFT 	{HYDROL_CWRR}
+OK_THROUGHFALL_PFT =  FALSE 
+
+# PFT_TO_MTC ([-]) :  correspondance array linking a PFT to MTC 	{OK_SECHIBA or OK_STOMATE}
+PFT_TO_MTC =  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 
+
+# PFT_NAME ([-]) :  Name of a PFT 	{OK_SECHIBA or OK_STOMATE}
+PFT_NAME =  bare ground, tropical broad-leaved evergreen, tropical broad-leaved raingreen, temperate needleleaf evergreen, temperate broad-leaved evergreen, temperate broad-leaved summergreen,  boreal needleleaf evergreen, boreal broad-leaved summergreen, boreal needleleaf summergreen,  C3 grass, C4 grass, C3 agriculture, C4 agriculture  
+
+# LEAF_TAB ([-] ) :  leaf type : 1 	{OK_STOMATE}
+LEAF_TAB =  4, 1, 1, 2, 1, 1, 2, 1, 2, 3, 3, 3, 3  
+
+# PHENO_MODEL ([-] ) :  which phenology model is used? (tabulated)  	{OK_STOMATE}
+PHENO_MODEL =  none, none, moi, none, none, ncdgdd, none, ncdgdd, ngd, moigdd, moigdd, moigdd, moigdd 
+
+# SECHIBA_LAI ([m^2/m^2]) :  laimax for maximum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# LLAIMIN ([m^2/m^2]) :  laimin for minimum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+LLAIMIN =  0., 8., 0., 4., 4.5, 0., 4., 0., 0., 0., 0., 0., 0. 
+
+# SLOWPROC_HEIGHT ([m] ) :  prescribed height of vegetation  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1., 1. 
+
+# TYPE_OF_LAI ([-]) :  Type of behaviour of the LAI evolution algorithm  	{OK_SECHIBA}
+TYPE_OF_LAI =  inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter 
+
+# NATURAL ([BOOLEAN]) :  natural?  	{OK_SECHIBA, OK_STOMATE}
+NATURAL =  y, y, y, y, y, y, y, y, y, y, y, n, n  
+
+# IS_C4 ([BOOLEAN]) :  flag for C4 vegetation types 	{OK_SECHIBA or OK_STOMATE}
+IS_C4 =  n, n, n, n, n, n, n, n, n, n, n, y, n, y 
+
+# VCMAX_FIX ([micromol/m^2/s] ) :  values used for vcmax when STOMATE is not activated 	{OK_SECHIBA and NOT(OK_STOMATE)}
+VCMAX_FIX =  0., 40., 50., 30., 35., 40.,30., 40., 35., 60., 60., 70., 70. 
+
+# DOWNREGULATION_CO2_COEFF ([-]) :  coefficient for CO2 downregulation (unitless) 	{OK_CO2}
+DOWNREGULATION_CO2_COEFF =  0., 0.38, 0.38, 0.28, 0.28, 0.28, 0.22, 0.22, 0.22, 0.26, 0.26, 0.26, 0.26 
+
+# E_KmC ([J mol-1]) :  Energy of activation for KmC 	{OK_CO2}
+E_KmC =  -9999.,  79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430. 
+
+# E_KmO ([J mol-1]) :  Energy of activation for KmO 	{OK_CO2}
+E_KmO =  -9999., 36380.,  36380.,  36380.,  36380.,  36380., 36380., 36380., 36380., 36380., 36380., 36380., 36380. 
+
+# E_gamma_star ([J mol-1]) :  Energy of activation for gamma_star 	{OK_CO2}
+E_gamma_star =  -9999., 37830.,  37830.,  37830.,  37830.,  37830., 37830., 37830., 37830., 37830., 37830., 37830., 37830. 
+
+# E_Vcmax ([J mol-1]) :  Energy of activation for Vcmax 	{OK_CO2}
+E_Vcmax =  -9999., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 67300., 71513., 67300. 
+
+# E_Jmax ([J mol-1]) :  Energy of activation for Jmax 	{OK_CO2}
+E_Jmax =  -9999., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 77900., 49884., 77900.  
+
+# aSV ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+aSV =  -9999., 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 641.64, 668.39, 641.64  
+
+# bSV ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+bSV =  -9999., -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, 0., -1.07, 0.  
+
+# TPHOTO_MIN ([-]) :  minimum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MIN =  -9999.,  -4., -4., -4., -4.,-4.,-4., -4., -4., -4., -4., -4., -4. 
+
+# TPHOTO_MAX ([-]) :  maximum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MAX =  -9999., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55. 
+
+# aSJ ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+aSJ =  -9999., 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 630., 659.70, 630.  
+
+# bSJ ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+bSJ =  -9999., -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, 0., -0.75, 0.  
+
+# D_Vcmax ([J mol-1]) :  Energy of deactivation for Vcmax 	{OK_CO2}
+D_Vcmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# D_Jmax ([J mol-1]) :  Energy of deactivation for Jmax 	{OK_CO2}
+D_Jmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# E_Rd ([J mol-1]) :  Energy of activation for Rd 	{OK_CO2}
+E_Rd =  -9999., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390. 
+
+# VCMAX25 ([micromol/m^2/s]) :  Maximum rate of Rubisco activity-limited carboxylation at 25Â°C 	{OK_STOMATE}
+VCMAX25 =  -9999., 65., 65., 35., 45., 55., 35., 45., 35., 70., 70., 70., 70. 
+
+# ARJV ([mu mol e- (mu mol CO2)-1]) :  a coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+ARJV =  -9999., 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 1.715, 2.59, 1.715 
+
+# BRJV ([(mu mol e- (mu mol CO2)-1) (Â°C)-1]) :  b coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+BRJV =  -9999., -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, 0., -0.035, 0. 
+
+# KmC25 ([ubar]) :  MichaelisâMenten constant of Rubisco for CO2 at 25Â°C 	{OK_CO2}
+KmC25 =  -9999., 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 650., 404.9, 650. 
+
+# KmO25 ([ubar]) :  MichaelisâMenten constant of Rubisco for O2 at 25Â°C 	{OK_CO2}
+KmO25 =  -9999., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 450000., 278400., 450000. 
+
+# gamma_star25 ([ubar]) :  Ci-based CO2 compensation point in the absence of Rd at 25Â°C (ubar) 	{OK_CO2}
+gamma_star25 =  -9999., 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75 
+
+# a1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+a1 =  -9999., 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85 
+
+# b1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+b1 =  -9999., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.20, 0.14, 0.20 
+
+# g0 ([mol mâ2 sâ1 barâ1]) :  Residual stomatal conductance when irradiance approaches zero  	{OK_CO2}
+g0 =  -9999., 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.01875, 0.00625, 0.01875  
+
+# h_protons ([mol mol-1]) :  Number of protons required to produce one ATP 	{OK_CO2}
+h_protons =  -9999., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4.  
+
+# fpsir ([-]) :  Fraction of PSII eâ transport rate partitioned to the C4 cycle 	{OK_CO2}
+fpsir =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.4, -9999., 0.4  
+
+# fQ ([-]) :  Fraction of electrons at reduced plastoquinone that follow the Q-cycle 	{OK_CO2}
+fQ =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 1., -9999., 1. 
+
+# fpseudo ([-]) :  Fraction of electrons at PSI that follow pseudocyclic transport  	{OK_CO2}
+fpseudo =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# kp ([mol mâ2 sâ1 barâ1]) :  Initial carboxylation efficiency of the PEP carboxylase 	{OK_CO2}
+kp =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.7, -9999., 0.7 
+
+# alpha ([-]) :  Fraction of PSII activity in the bundle sheath 	{OK_CO2}
+alpha =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# gbs ([mol mâ2 sâ1 barâ1]) :  Bundle-sheath conductance 	{OK_CO2}
+gbs =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.003, -9999., 0.003 
+
+# theta ([â]) :  Convexity factor for response of J to irradiance 	{OK_CO2}
+theta =  -9999., 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7 
+
+# alpha_LL ([mol eâ (mol photon)â1]) :  Conversion efficiency of absorbed light into J at strictly limiting light 	{OK_CO2}
+alpha_LL =  -9999., 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372 
+
+# EXT_COEFF ([-]) :  extinction coefficient of the Monsi&Seaki relationship (1953) 	{OK_SECHIBA or OK_STOMATE}
+EXT_COEFF =  .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5 
+
+# HYDROL_HUMCSTE ([m]) :  Root profile 	{OK_SECHIBA}
+HYDROL_HUMCSTE =  humcste_cwrr or humcste_mct depending on flag HYDROL_CWRR 
+
+# PREF_SOIL_VEG ([-]        ) :  The soil tile number for each vegetation 	{OK_SECHIBA or OK_STOMATE}
+PREF_SOIL_VEG =  1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 
+
+# RSTRUCT_CONST ([s/m]) :  Structural resistance  	{OK_SECHIBA}
+RSTRUCT_CONST =  0.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0,  2.5,  2.0,  2.0,  2.0 
+
+# KZERO ([kg/m^2/s]) :  A vegetation dependent constant used in the calculation of the surface resistance. 	{OK_SECHIBA}
+KZERO =  0.0, 12.E-5, 12.E-5, 12.e-5, 12.e-5, 25.e-5, 12.e-5,25.e-5, 25.e-5, 30.e-5, 30.e-5, 30.e-5, 30.e-5  
+
+# RVEG_PFT ([-]) :  Artificial parameter to increase or decrease canopy resistance. 	{OK_SECHIBA}
+RVEG_PFT =  1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1. 
+
+# WMAX_VEG ([kg/m^3]) :  Maximum field capacity for each of the vegetations (Temporary): max quantity of water 	{OK_SECHIBA}
+WMAX_VEG =  150., 150., 150., 150., 150., 150., 150.,150., 150., 150., 150., 150., 150. 
+
+# PERCENT_THROUGHFALL_PFT ([%]) :  Percent by PFT of precip that is not intercepted by the canopy 	{OK_SECHIBA OR HYDROL_CWRR}
+PERCENT_THROUGHFALL_PFT =  30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 
+
+# SNOWA_AGED ([-]) :  Minimum snow albedo value for each vegetation type after aging (dirty old snow) 	{OK_SECHIBA}
+SNOWA_AGED =  0.35, 0., 0., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.18, 0.18, 0.18, 0.18 
+
+# SNOWA_DEC ([-]) :  Decay rate of snow albedo value for each vegetation type as it will be used in condveg_snow 	{OK_SECHIBA}
+SNOWA_DEC =  0.45, 0.,  0., 0.06, 0.06, 0.11, 0.06, 0.11, 0.11, 0.52,0.52, 0.52, 0.52 
+
+# ALB_LEAF_VIS ([-]) :  leaf albedo of vegetation type, visible albedo 	{OK_SECHIBA}
+ALB_LEAF_VIS =  .00, .04, .06, .06, .06,.06, .06, .06, .06, .10, .10, .10, .10 
+
+# ALB_LEAF_NIR ([-]) :  leaf albedo of vegetation type, near infrared albedo 	{OK_SECHIBA}
+ALB_LEAF_NIR =  .00, .20, .22, .22, .22,.22, .22, .22, .22, .30, .30, .30, .30  
+
+# ISO_ACTIVITY ([-]) :  Biogenic activity for each age class : isoprene 	{DIFFUCO_OK_INCA}
+ISO_ACTIVITY =  0.5, 1.5, 1.5, 0.5 
+
+# METHANOL_ACTIVITY ([-]) :  Isoprene emission factor for each age class : methanol 	{DIFFUCO_OK_INCA}
+METHANOL_ACTIVITY =  1., 1., 0.5, 0.5 
+
+# EM_FACTOR_ISOPRENE ([ugC/g/h] ) :  Isoprene emission factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_ISOPRENE =  0., 24., 24., 8., 16., 45., 8., 8., 8., 16., 24., 5., 5. 
+
+# EM_FACTOR_MONOTERPENE ([ugC/g/h] ) :  Monoterpene emission factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MONOTERPENE =  0., 0.8, 0.8, 2.4, 1.2, 0.8, 2.4, 2.4, 2.4, 0.8, 1.2, 0.2, 0.2 
+
+# EM_FACTOR_ORVOC ([ugC/g/h]  ) :  ORVOC emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_ORVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_OVOC ([ugC/g/h]        ) :  OVOC emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_OVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_MBO ([ugC/g/h]  ) :  MBO emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MBO =  0., 0., 0., 20.0, 0., 0., 0., 0., 0., 0., 0., 0., 0. 
+
+# EM_FACTOR_METHANOL ([ugC/g/h]  ) :  Methanol emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_METHANOL =  0., 0.6, 0.6, 1.8, 0.9, 0.6, 1.8, 1.8, 1.8, 0.6, 0.9, 2., 2. 
+
+# EM_FACTOR_ACETONE ([ugC/g/h]     ) :  Acetone emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETONE =  0., 0.29, 0.29, 0.87, 0.43, 0.29, 0.87, 0.87, 0.87, 0.29, 0.43, 0.07, 0.07  
+
+# EM_FACTOR_ACETAL ([ugC/g/h]  ) :  Acetaldehyde emissions factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_ACETAL =  0., 0.1, 0.1, 0.3, 0.15, 0.1, 0.3, 0.3, 0.3, 0.1, 0.15, 0.025, 0.025 
+
+# EM_FACTOR_FORMAL ([ugC/g/h]  ) :  Formaldehyde emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_FORMAL =  0., 0.07, 0.07, 0.2, 0.1, 0.07, 0.2, 0.2, 0.2, 0.07, 0.1, 0.017, 0.017 
+
+# EM_FACTOR_ACETIC ([ugC/g/h]  ) :  Acetic Acid emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETIC =  0., 0.002, 0.002, 0.006, 0.003, 0.002, 0.006, 0.006, 0.006, 0.002, 0.003, 0.0005, 0.0005 
+
+# EM_FACTOR_FORMIC ([ugC/g/h]  ) :  Formic Acid emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_FORMIC =  0., 0.01, 0.01, 0.03, 0.015, 0.01, 0.03, 0.03, 0.03, 0.01, 0.015, 0.0025, 0.0025  
+
+# EM_FACTOR_NO_WET ([ngN/m^2/s]) :  NOx emissions factor wet soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_WET =  0., 2.6, 0.06, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.36, 0.36, 0.36, 0.36 
+
+# EM_FACTOR_NO_DRY ([ngN/m^2/s] ) :  NOx emissions factor dry soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_DRY =  0., 8.60, 0.40, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 2.65, 2.65, 2.65, 2.65 
+
+# LARCH ([-]  ) :  Larcher 1991 SAI/LAI ratio 	{DIFFUCO_OK_INCA }
+LARCH =  0., 0.015, 0.015, 0.003, 0.005, 0.005, 0.003, 0.005, 0.003, 0.005, 0.005, 0.008, 0.008 
+
+# SLA ([m^2/gC]) :  specif leaf area  	{OK_STOMATE}
+SLA =  1.5E-2, 1.53E-2, 2.6E-2, 9.26E-3, 2E-2, 2.6E-2, 9.26E-3, 2.6E-2, 1.9E-2, 2.6E-2, 2.6E-2, 2.6E-2, 2.6E-2 
+
+# S0  ([-]    ) :  Standard sapwood allocation  	{OK_STOMATE }
+S0  =  -9999., .25, .25, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30 
+
+# MAINT_RESP_SLOPE_C ([-]) :  slope of maintenance respiration coefficient (1/K), constant c of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_C =  -9999., .20, .20, .16, .16, .16, .16, .16, .16, .16, .12, .16, .12  
+
+# MAINT_RESP_SLOPE_B ([-]) :  slope of maintenance respiration coefficient (1/K), constant b of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_B =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, -.00133, .0, -.00133, .0  
+
+# MAINT_RESP_SLOPE_A ([-]) :  slope of maintenance respiration coefficient (1/K), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_A =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0     
+
+# CM_ZERO_LEAF ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for leaves, tabulated 	{OK_STOMATE}
+CM_ZERO_LEAF =  -9999., 2.35E-3, 2.62E-3, 1.01E-3, 2.35E-3, 2.62E-3, 1.01E-3,2.62E-3, 2.05E-3, 2.62E-3, 2.62E-3, 2.62E-3, 2.62E-3 
+
+# CM_ZERO_SAPABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C,for sapwood above, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPABOVE =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# CM_ZERO_SAPBELOW ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for sapwood below, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPBELOW =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4  
+
+# CM_ZERO_HEARTABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for heartwood above, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTABOVE =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_HEARTBELOW ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C,for heartwood below, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTBELOW =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_ROOT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for roots, tabulated 	{OK_STOMATE}
+CM_ZERO_ROOT =  -9999.,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3 
+
+# CM_ZERO_FRUIT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for fruits, tabulated 	{OK_STOMATE}
+CM_ZERO_FRUIT =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4     
+
+# CM_ZERO_CARBRES ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for carbohydrate reserve, tabulated 	{OK_STOMATE}
+CM_ZERO_CARBRES =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# FLAM ([-]) :  flamability: critical fraction of water holding capacity 	{OK_STOMATE}
+FLAM =  -9999., .15, .25, .25, .25, .25, .25, .25, .25, .25, .25, .35, .35 
+
+# RESIST ([-]) :  fire resistance 	{OK_STOMATE}
+RESIST =  -9999., .95, .90, .12, .50, .12, .12, .12, .12, .0, .0, .0, .0  
+
+# COEFF_LCCHANGE_1 ([-]) :  Coeff of biomass export for the year 	{OK_STOMATE}
+COEFF_LCCHANGE_1 =  -9999., 0.897, 0.897, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597  
+
+# COEFF_LCCHANGE_10 ([-]) :  Coeff of biomass export for the decade 	{OK_STOMATE}
+COEFF_LCCHANGE_10 =  -9999., 0.103, 0.103, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.403, 0.299, 0.403 
+
+# COEFF_LCCHANGE_100 ([-]) :  Coeff of biomass export for the century 	{OK_STOMATE}
+COEFF_LCCHANGE_100 =  -9999., 0., 0., 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0., 0.104, 0. 
+
+# LAI_MAX ([m^2/m^2]) :  maximum LAI, PFT-specific 	{OK_STOMATE}
+LAI_MAX =  -9999., 7., 7., 5., 5., 5., 4.5, 4.5, 3.0, 2.5, 2.5, 5.,5.  
+
+# PHENO_TYPE ([-]) :  type of phenology, 0 	{OK_STOMATE}
+PHENO_TYPE =  0, 1, 3, 1, 1, 2, 1, 2, 2, 4, 4, 2, 3 
+
+# PHENO_GDD_CRIT_C ([-]) :  critical gdd, tabulated (C), constant c of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_C =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 270., 400., 125., 400. 
+
+# PHENO_GDD_CRIT_B ([-]) :  critical gdd, tabulated (C), constant b of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_B =  -9999., -9999., -9999., -9999., -9999., -9999., -9999.,-9999., -9999., 6.25, 0., 0., 0. 
+
+# PHENO_GDD_CRIT_A ([-]) :  critical gdd, tabulated (C), constant a of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_A =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.03125,  0., 0., 0. 
+
+# NGD_CRIT ([days]) :  critical ngd, tabulated. Threshold -5 degrees 	{OK_STOMATE}
+NGD_CRIT =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# NCDGDD_TEMP ([C] ) :  critical temperature for the ncd vs. gdd function in phenology 	{OK_STOMATE}
+NCDGDD_TEMP =  -9999., -9999., -9999., -9999., -9999., 5., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# HUM_FRAC ([%]) :  critical humidity (relative to min/max) for phenology 	{OK_STOMATE}
+HUM_FRAC =  -9999., -9999., .5, -9999., -9999., -9999., -9999., -9999.,  -9999., .5, .5, .5,.5      
+
+# HUM_MIN_TIME ([days]) :  minimum time elapsed since moisture minimum 	{OK_STOMATE}
+HUM_MIN_TIME =  -9999., -9999., 50., -9999., -9999., -9999., -9999., -9999., -9999., 35., 35., 75., 75. 
+
+# TAU_SAP ([days]) :  sapwood -> heartwood conversion time 	{OK_STOMATE}
+TAU_SAP =  -9999., 730., 730., 730., 730., 730., 730., 730., 730., -9999., -9999., -9999., -9999. 
+
+# TAU_FRUIT ([days]) :  fruit lifetime 	{OK_STOMATE}
+TAU_FRUIT =  -9999., 90., 90., 90., 90., 90., 90., 90., 90., -9999., -9999., -9999., -9999. 
+
+# ECUREUIL ([-]) :  fraction of primary leaf and root allocation put into reserve 	{OK_STOMATE}
+ECUREUIL =  -9999., .0, 1., .0, .0, 1., .0, 1., 1., 1., 1., 1., 1. 
+
+# ALLOC_MIN ([-]) :  minimum allocation above/below  	{OK_STOMATE}
+ALLOC_MIN =  -9999., 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, -9999., -9999., -9999., -9999.  
+
+# ALLOC_MAX ([-]) :  maximum allocation above/below  	{OK_STOMATE}
+ALLOC_MAX =  -9999., 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, -9999., -9999., -9999., -9999. 
+
+# DEMI_ALLOC  ([-]) :  mean allocation above/below  	{OK_STOMATE}
+DEMI_ALLOC  =  -9999., 5., 5., 5., 5., 5., 5., 5., 5., -9999., -9999., -9999., -9999. 
+
+# LEAFLIFE_TAB ([years]) :  leaf longevity 	{OK_STOMATE}
+LEAFLIFE_TAB =  -9999., .5, 2., .33, 1., 2., .33, 2., 2., 2., 2., 2., 2.  
+
+# LEAFFALL ([days]) :  length of death of leaves, tabulated  	{OK_STOMATE}
+LEAFFALL =  -9999., -9999., 10., -9999., -9999., 10., -9999., 10., 10., 10., 10., 10., 10.  
+
+# LEAFAGECRIT ([days]) :  critical leaf age, tabulated 	{OK_STOMATE}
+LEAFAGECRIT =  -9999., 730., 180., 910., 730., 180., 910., 180., 180., 120., 120., 90., 90.   
+
+# SENESCENCE_TYPE ([-]) :  type of senescence, tabulated 	{OK_STOMATE}
+SENESCENCE_TYPE =  none, none, dry, none, none, cold, none, cold, cold, mixed, mixed, mixed, mixed  
+
+# SENESCENCE_HUM ([-] ) :  critical relative moisture availability for senescence 	{OK_STOMATE}
+SENESCENCE_HUM =  -9999., -9999., .3, -9999., -9999., -9999., -9999., -9999., -9999., .2, .2, .3, .2  
+
+# NOSENESCENCE_HUM ([-]) :  relative moisture availability above which there is no humidity-related senescence 	{OK_STOMATE}
+NOSENESCENCE_HUM =  -9999., -9999., .8, -9999., -9999., -9999., -9999., -9999., -9999., .3, .3, .3, .3  
+
+# MAX_TURNOVER_TIME ([days]) :  maximum turnover time for grasse 	{OK_STOMATE}
+MAX_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999.,  80.,  80., 80., 80.  
+
+# MIN_TURNOVER_TIME ([days]) :  minimum turnover time for grasse  	{OK_STOMATE}
+MIN_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 10., 10., 10., 10.  
+
+# MIN_LEAF_AGE_FOR_SENESCENCE ([days] ) :  minimum leaf age to allow senescence g 	{OK_STOMATE}
+MIN_LEAF_AGE_FOR_SENESCENCE =  -9999., -9999., 90., -9999., -9999., 90., -9999., 60., 60., 30., 30., 30., 30. 
+
+# SENESCENCE_TEMP_C ([-]) :  critical temperature for senescence (C), constant c of aT^2+bT+c, tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_C =  -9999., -9999., -9999., -9999., -9999., 12., -9999., 7., 2., -1.375, 5., 5., 10. 
+
+# SENESCENCE_TEMP_B ([-]) :  critical temperature for senescence (C), constant b of aT^2+bT+c ,tabulated 	{OK_STOMATE }
+SENESCENCE_TEMP_B =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0., .1, 0., 0., 0. 
+
+# SENESCENCE_TEMP_A ([-] ) :  critical temperature for senescence (C), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_A =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0.,.00375, 0., 0., 0.  
+
+# GDD_SENESCENCE ([days] ) :  minimum gdd to allow senescence of crops   	{OK_STOMATE}
+GDD_SENESCENCE =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 950., 4000. 
+
+# RESIDENCE_TIME ([years]) :  residence time of trees 	{OK_DGVM and NOT(LPJ_GAP_CONST_MORT)}
+RESIDENCE_TIME =  -9999., 30.0, 30.0, 40.0, 40.0, 40.0, 80.0, 80.0, 80.0, 0.0, 0.0, 0.0, 0.0  
+
+# TMIN_CRIT ([C]) :  critical tmin, tabulated 	{OK_STOMATE}
+TMIN_CRIT =  -9999.,  0.0, 0.0, -30.0, -14.0, -30.0, -45.0, -45.0, -9999., -9999., -9999., -9999., -9999. 
+
+# TCM_CRIT ([C]) :  critical tcm, tabulated  	{OK_STOMATE}
+TCM_CRIT =  -9999., -9999., -9999., 5.0, 15.5, 15.5, -8.0, -8.0, -8.0, -9999., -9999., -9999., -9999. 
+
+# HERBIVORES ([FLAG]) :  herbivores allowed? 	{OK_STOMATE }
+HERBIVORES =  n 
+
+# TREAT_EXPANSION ([FLAG]) :  treat expansion of PFTs across a grid cell? 	{OK_STOMATE }
+TREAT_EXPANSION =  n 
+
+# LPJ_GAP_CONST_MORT ([FLAG]) :  prescribe mortality if not using DGVM? 	{OK_STOMATE}
+LPJ_GAP_CONST_MORT =  y 
+
+# HARVEST_AGRI ([FLAG]) :  Harvest model for agricultural PFTs. 	{OK_STOMATE }
+HARVEST_AGRI =  y 
+
+# FIRE_DISABLE ([FLAG]) :  no fire allowed 	{OK_STOMATE }
+FIRE_DISABLE =  n 
+
+# SPINUP_ANALYTIC (BOOLEAN    ) :  Activation of the analytic resolution of the spinup. 	{OK_STOMATE}
+SPINUP_ANALYTIC =  n 
+
+# AGRICULTURE ([FLAG]) :  agriculture allowed? 	{OK_SECHIBA or OK_STOMATE}
+AGRICULTURE =  y 
+
+# IMPOSE_VEG ([FLAG]) :  Should the vegetation be prescribed ? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_VEG =  n 
+
+# IMPOSE_SOILT ([FLAG]) :  Should the soil type be prescribed ? 	{IMPOSE_VEG}
+IMPOSE_SOILT =  n 
+
+# LAI_MAP ([FLAG]) :  Read the LAI map 	{OK_SECHIBA or OK_STOMATE}
+LAI_MAP =  n 
+
+# SLOWPROC_LAI_OLD_INTERPOL ([FLAG]) :  Flag to use old "interpolation" of LAI 	{LAI_MAP}
+SLOWPROC_LAI_OLD_INTERPOL =  n 
+
+# LAND_USE ([FLAG]) :  Read a land_use vegetation map 	{OK_SECHIBA or OK_STOMATE}
+LAND_USE =  y 
+
+# VEGET_REINIT ([FLAG] ) :  booleen to indicate that a new LAND USE file will be used. 	{LAND_USE}
+VEGET_REINIT =  y 
+
+# LAND_COVER_CHANGE ([FLAG] ) :  treat land use modifications 	{LAND_USE}
+LAND_COVER_CHANGE =  n 
+
+# VEGET_YEAR ([FLAG] ) :  Year of the land_use vegetation map to be read 	{LAND_USE}
+VEGET_YEAR =  1 
+
+# SLOWPROC_VEGET_OLD_INTERPOL ([FLAG] ) :  Flag to use old "interpolation" of vegetation map. 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+SLOWPROC_VEGET_OLD_INTERPOL =  n 
+
+# MAXMASS_SNOW ([kg/m^2]  ) :  The maximum mass of a snow 	{OK_SECHIBA or HYDROL_CWRR}
+MAXMASS_SNOW =  3000. 
+
+# SNOWCRI ([kg/m^2]  ) :  Sets the amount above which only sublimation occures  	{OK_SECHIBA or HYDROL_CWRR}
+SNOWCRI =  1.5 
+
+# MIN_WIND ([m/s]) :  Minimum wind speed 	{OK_SECHIBA}
+MIN_WIND =  0.1 
+
+# MAX_SNOW_AGE ([days?]) :  Maximum period of snow aging  	{OK_SECHIBA}
+MAX_SNOW_AGE =  50. 
+
+# SNOW_TRANS ([m]   ) :  Transformation time constant for snow 	{OK_SECHIBA}
+SNOW_TRANS =  0.3 
+
+# Z0_OVER_HEIGHT ([-]   ) :  to get z0 from height  	{OK_SECHIBA }
+Z0_OVER_HEIGHT =  1/16. 
+
+# HEIGHT_DISPLACEMENT ([m]  ) :  Magic number which relates the height to the displacement height. 	{OK_SECHIBA }
+HEIGHT_DISPLACEMENT =  0.75 
+
+# Z0_BARE ([m]   ) :  bare soil roughness length 	{OK_SECHIBA }
+Z0_BARE =  0.01  
+
+# Z0_ICE ([m]   ) :  ice roughness length 	{OK_SECHIBA }
+Z0_ICE =  0.001 
+
+# TCST_SNOWA ([days]) :  Time constant of the albedo decay of snow 	{OK_SECHIBA }
+TCST_SNOWA =  5.0  
+
+# SNOWCRI_ALB ([cm]  ) :  Critical value for computation of snow albedo 	{OK_SECHIBA}
+SNOWCRI_ALB =  10.  
+
+# VIS_DRY ([-]  ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+VIS_DRY =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.27 
+
+# NIR_DRY ([-]   ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_DRY =  0.48, 0.44, 0.40, 0.36, 0.32, 0.28, 0.24, 0.20, 0.55 
+
+# VIS_WET  ([-]   ) :  The correspondance table for the soil color numbers and their albedo 	{OK_SECHIBA  }
+VIS_WET  =  0.12, 0.11, 0.10, 0.09, 0.08, 0.07, 0.06, 0.05, 0.15 
+
+# NIR_WET ([-]    ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_WET =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.31 
+
+# ALBSOIL_VIS ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_VIS =  0.18, 0.16, 0.16, 0.15, 0.12, 0.105, 0.09, 0.075, 0.25 
+
+# ALBSOIL_NIR  ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_NIR  =  0.36, 0.34, 0.34, 0.33, 0.30, 0.25, 0.20, 0.15, 0.45 
+
+# ALB_DEADLEAF  ([-]     ) :  albedo of dead leaves, VIS+NIR  	{OK_SECHIBA }
+ALB_DEADLEAF  =  0.12, 0.35 
+
+# ALB_ICE ([-]  ) :  albedo of ice, VIS+NIR 	{OK_SECHIBA}
+ALB_ICE =  0.60, 0.20 
+
+# CONDVEG_SNOWA ([-]) :  The snow albedo used by SECHIBA 	{OK_SECHIBA}
+CONDVEG_SNOWA =  1.E+20 
+
+# ALB_BARE_MODEL ([FLAG]) :  Switch bare soil albedo dependent (if TRUE) on soil wetness 	{OK_SECHIBA}
+ALB_BARE_MODEL =  n 
+
+# Z0CDRAG_AVE ([FLAG]) :  Average method for z0 	{OK_SECHIBA}
+Z0CDRAG_AVE =  y 
+
+# IMPOSE_AZE ([FLAG]) :  Should the surface parameters be prescribed 	{OK_SECHIBA}
+IMPOSE_AZE =  n 
+
+# CONDVEG_Z0 ([m]) :  Surface roughness 	{IMPOSE_AZE}
+CONDVEG_Z0 =  0.15 
+
+# ROUGHHEIGHT ([m] ) :  Height to be added to the height of the first level 	{IMPOSE_AZE}
+ROUGHHEIGHT =  0.0 
+
+# CONDVEG_ALBVIS ([-]) :  SW visible albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBVIS =  0.25 
+
+# CONDVEG_ALBNIR ([-]  ) :  SW near infrared albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBNIR =  0.25 
+
+# CONDVEG_EMIS ([-] ) :  Emissivity of the surface for LW radiation 	{IMPOSE_AZE}
+CONDVEG_EMIS =  1.0 
+
+# NLAI ([-]  ) :  Number of LAI levels 	{OK_SECHIBA}
+NLAI =  20 
+
+# LAIMAX ([m^2/m^2]   ) :  Maximum LAI 	{OK_SECHIBA}
+LAIMAX =   
+
+# DEW_VEG_POLY_COEFF ([-]   ) :  coefficients of the polynome of degree 5 for the dew 	{OK_SECHIBA}
+DEW_VEG_POLY_COEFF =  0.887773, 0.205673, 0.110112, 0.014843, 0.000824, 0.000017  
+
+# DOWNREGULATION_CO2 ([FLAG]   ) :  Activation of CO2 downregulation 	{OK_SECHIBA}
+DOWNREGULATION_CO2 =  n  
+
+# DOWNREGULATION_CO2_BASELEVEL ([ppm]   ) :  CO2 base level 	{OK_SECHIBA }
+DOWNREGULATION_CO2_BASELEVEL =  280. 
+
+# CLAYFRACTION_DEFAULT ([-]   ) :  default fraction of clay 	{OK_SECHIBA }
+CLAYFRACTION_DEFAULT =  0.2  
+
+# MIN_VEGFRAC  ([-]  ) :  Minimal fraction of mesh a vegetation type can occupy  	{OK_SECHIBA }
+MIN_VEGFRAC  =  0.001  
+
+# STEMPDIAG_BID  ([K]) :  only needed for an initial LAI if there is no restart file 	{OK_SECHIBA }
+STEMPDIAG_BID  =  280. 
+
+# LAI_LEVEL_DEPTH ([-]  ) :   	{OK_CO2}
+LAI_LEVEL_DEPTH =  0.15 
+
+# Oi ([ubar]  ) :  Intercellular oxygen partial pressure 	{OK_CO2}
+Oi =  210000. 
+
+# TOO_LONG  ([days]   ) :  longest sustainable time without regeneration (vernalization) 	{OK_STOMATE}
+TOO_LONG  =  5. 
+
+# TAU_FIRE  ([days]    ) :  Time scale for memory of the fire index (days). Validated for one year in the DGVM.  	{OK_STOMATE }
+TAU_FIRE  =  30. 
+
+# LITTER_CRIT ([gC/m^2]  ) :  Critical litter quantity for fire 	{OK_STOMATE }
+LITTER_CRIT =  200. 
+
+# FIRE_RESIST_STRUCT ([-]  ) :   	{OK_STOMATE }
+FIRE_RESIST_STRUCT =  0.5 
+
+# CO2FRAC ([-]  ) :  What fraction of a burned plant compartment goes into the atmosphere 	{OK_STOMATE }
+CO2FRAC =  0.95, 0.95, 0., 0.3, 0., 0., 0.95, 0.95 
+
+# BCFRAC_COEFF ([-]  ) :   	{OK_STOMATE }
+BCFRAC_COEFF =  0.3, 1.3, 88.2  
+
+# FIREFRAC_COEFF  ([-]   ) :   	{OK_STOMATE }
+FIREFRAC_COEFF  =  0.45, 0.8, 0.6, 0.13 
+
+# AVAILABILITY_FACT  ([-]   ) :   	{OK_STOMATE }
+AVAILABILITY_FACT  =  0.1 
+
+# REF_GREFF ([1/year]  ) :  Asymptotic maximum mortality rate 	{OK_STOMATE }
+REF_GREFF =  0.035 
+
+# OK_MINRES ([FLAG]) :  Do we try to reach a minimum reservoir even if we are severely stressed? 	{OK_STOMATE }
+OK_MINRES =  y 
+
+# TAU_LEAFINIT ([days]  ) :  time to attain the initial foliage using the carbohydrate reserve  	{OK_STOMATE }
+TAU_LEAFINIT =  10. 
+
+# RESERVE_TIME_TREE  ([days]    ) :  maximum time during which reserve is used (trees)  	{OK_STOMATE }
+RESERVE_TIME_TREE  =  30. 
+
+# RESERVE_TIME_GRASS  ([days]   ) :  maximum time during which reserve is used (grasses)  	{OK_STOMATE }
+RESERVE_TIME_GRASS  =  20.  
+
+# R0 ([-]  ) :  Standard root allocation  	{OK_STOMATE }
+R0 =  0.3  
+
+# F_FRUIT ([-]    ) :  Standard fruit allocation 	{OK_STOMATE }
+F_FRUIT =  0.1  
+
+# ALLOC_SAP_ABOVE_GRASS  ([-]   ) :  fraction of sapwood allocation above ground  	{OK_STOMATE }
+ALLOC_SAP_ABOVE_GRASS  =  1.0  
+
+# MIN_LTOLSR  ([-]   ) :  extrema of leaf allocation fraction  	{OK_STOMATE }
+MIN_LTOLSR  =  0.2 
+
+# MAX_LTOLSR ([-]   ) :  extrema of leaf allocation fraction 	{OK_STOMATE }
+MAX_LTOLSR =  0.5 
+
+# Z_NITROGEN ([m]  ) :  scaling depth for nitrogen limitation  	{OK_STOMATE}
+Z_NITROGEN =  0.2  
+
+# LAI_MAX_TO_HAPPY ([-]  ) :   	{OK_STOMATE }
+LAI_MAX_TO_HAPPY =  0.5  
+
+# NLIM_TREF  ([C]  ) :   	{OK_STOMATE }
+NLIM_TREF  =  25.  
+
+# PIPE_TUNE1 ([-]    ) :  crown area  	{OK_STOMATE }
+PIPE_TUNE1 =  100.0 
+
+# PIPE_TUNE2  ([-]      ) :  height 	{OK_STOMATE }
+PIPE_TUNE2  =  40.0  
+
+# PIPE_TUNE3 ([-]    ) :  height 	{OK_STOMATE }
+PIPE_TUNE3 =  0.5  
+
+# PIPE_TUNE4 ([-]  ) :  needed for stem diameter 	{OK_STOMATE }
+PIPE_TUNE4 =  0.3  
+
+# PIPE_DENSITY  ([-]  ) :  Density 	{OK_STOMATE }
+PIPE_DENSITY  =  2.e5  
+
+# PIPE_K1  ([-]   ) :   	{OK_STOMATE }
+PIPE_K1  =  8.e3  
+
+# PIPE_TUNE_EXP_COEFF  ([-]   ) :  pipe tune exponential coeff  	{OK_STOMATE }
+PIPE_TUNE_EXP_COEFF  =  1.6  
+
+# PRECIP_CRIT  ([mm/year]  ) :  minimum precip 	{OK_STOMATE }
+PRECIP_CRIT  =  100. 
+
+# GDD_CRIT_ESTAB ([-]  ) :  minimum gdd for establishment of saplings 	{OK_STOMATE }
+GDD_CRIT_ESTAB =  150.  
+
+# FPC_CRIT ([-]  ) :  critical fpc, needed for light competition and establishment 	{OK_STOMATE }
+FPC_CRIT =  0.95 
+
+# ALPHA_GRASS ([-]   ) :  sapling characteristics : alpha's 	{OK_STOMATE }
+ALPHA_GRASS =  0.5 
+
+# ALPHA_TREE ([-]   ) :  sapling characteristics : alpha's  	{OK_STOMATE }
+ALPHA_TREE =  1. 
+
+# MASS_RATIO_HEART_SAP ([-]   ) :  mass ratio (heartwood+sapwood)/sapwood 	{OK_STOMATE }
+MASS_RATIO_HEART_SAP =  3. 
+
+# FRAC_GROWTHRESP ([-]) :  fraction of GPP which is lost as growth respiration 	{OK_STOMATE }
+FRAC_GROWTHRESP =  0.28 
+
+# TAU_HUM_MONTH ([days]  ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_MONTH =  20.  
+
+# TAU_HUM_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_WEEK =  7. 
+
+# TAU_T2M_MONTH ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_MONTH =  20. 
+
+# TAU_T2M_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_WEEK =  7. 
+
+# TAU_TSOIL_MONTH  ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_TSOIL_MONTH  =  20.  
+
+# TAU_SOILHUM_MONTH ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_SOILHUM_MONTH =  20.  
+
+# TAU_GPP_WEEK  ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GPP_WEEK  =  7.  
+
+# TAU_GDD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GDD =  40.  
+
+# TAU_NGD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_NGD =  50. 
+
+# COEFF_TAU_LONGTERM ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+COEFF_TAU_LONGTERM =  3.  
+
+# BM_SAPL_CARBRES  ([-]   ) :   	{OK_STOMATE }
+BM_SAPL_CARBRES  =  5.  
+
+# BM_SAPL_SAPABOVE ([-]    ) :   	{OK_STOMATE}
+BM_SAPL_SAPABOVE =  0.5  
+
+# BM_SAPL_HEARTABOVE  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTABOVE  =  2. 
+
+# BM_SAPL_HEARTBELOW  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTBELOW  =  2.  
+
+# INIT_SAPL_MASS_LEAF_NAT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_NAT =  0.1  
+
+# INIT_SAPL_MASS_LEAF_AGRI ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_AGRI =  1.  
+
+# INIT_SAPL_MASS_CARBRES ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_CARBRES =  5.  
+
+# INIT_SAPL_MASS_ROOT ([-]   ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_ROOT =  0.1  
+
+# INIT_SAPL_MASS_FRUIT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_FRUIT =  0.3  
+
+# CN_SAPL_INIT  ([-]   ) :   	{OK_STOMATE }
+CN_SAPL_INIT  =  0.5  
+
+# MIGRATE_TREE  ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_TREE  =  10000. 
+
+# MIGRATE_GRASS ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_GRASS =  10000. 
+
+# LAI_INITMIN_TREE ([m^2/m^2]  ) :   	{OK_STOMATE }
+LAI_INITMIN_TREE =  0.3 
+
+# LAI_INITMIN_GRASS  ([m^2/m^2]    ) :   	{OK_STOMATE }
+LAI_INITMIN_GRASS  =  0.1 
+
+# DIA_COEFF ([-]   ) :   	{OK_STOMATE }
+DIA_COEFF =  4., 0.5 
+
+# MAXDIA_COEFF ([-]   ) :   	{OK_STOMATE }
+MAXDIA_COEFF =  100., 0.01  
+
+# BM_SAPL_LEAF ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_LEAF =  4., 4., 0.8, 5.  
+
+# METABOLIC_REF_FRAC ([-]) :  	{OK_STOMATE }
+METABOLIC_REF_FRAC =  0.85   
+
+# Z_DECOMP ([m]   ) :  scaling depth for soil activity 	{OK_STOMATE }
+Z_DECOMP =  0.2 
+
+# CN ([-]  ) :  C/N ratio 	{OK_STOMATE }
+CN =  40., 40., 40., 40., 40., 40., 40., 40. 
+
+# LC  ([-]   ) :  Lignine/C ratio of the different plant parts 	{OK_STOMATE }
+LC  =  0.22, 0.35, 0.35, 0.35, 0.35, 0.22, 0.22, 0.22 
+
+# FRAC_SOIL_STRUCT_AA ([-]) :  frac_soil(istructural,iactive,iabove) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_AA =  0.55 
+
+# FRAC_SOIL_STRUCT_A  ([-]) :  frac_soil(istructural,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_A  =  0.45 
+
+# FRAC_SOIL_STRUCT_SA ([-]   ) :  frac_soil(istructural,islow,iabove) 	{OK_STOMATE}
+FRAC_SOIL_STRUCT_SA =  0.7   
+
+# FRAC_SOIL_STRUCT_SB ([-]   ) :  frac_soil(istructural,islow,ibelow)  	{OK_STOMATE }
+FRAC_SOIL_STRUCT_SB =  0.7   
+
+# FRAC_SOIL_METAB_AA  ([-]   ) :  frac_soil(imetabolic,iactive,iabove)  	{OK_STOMATE }
+FRAC_SOIL_METAB_AA  =  0.45  
+
+# FRAC_SOIL_METAB_AB  ([-]   ) :  frac_soil(imetabolic,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_METAB_AB  =  0.45   
+
+# METABOLIC_LN_RATIO ([-]   ) :   	{OK_STOMATE }
+METABOLIC_LN_RATIO =  0.018   
+
+# TAU_METABOLIC ([days] ) :   	{OK_STOMATE }
+TAU_METABOLIC =  0.066 
+
+# TAU_STRUCT  ([days]) :   	{OK_STOMATE }
+TAU_STRUCT  =  0.245  
+
+# SOIL_Q10 ([-]) :   	{OK_STOMATE }
+SOIL_Q10 =  0.69 ( 
+
+# TSOIL_REF ([C]   ) :   	{OK_STOMATE }
+TSOIL_REF =  30.  
+
+# LITTER_STRUCT_COEF  ([-]   ) :   	{OK_STOMATE }
+LITTER_STRUCT_COEF  =  3.  
+
+# MOIST_COEFF ([-]   ) :   	{OK_STOMATE }
+MOIST_COEFF =  1.1, 2.4, 0.29 
+
+# FRAC_TURNOVER_DAILY  ([-]) :   	{OK_STOMATE }
+FRAC_TURNOVER_DAILY  =  0.55 
+
+# TAX_MAX ([-]   ) :  maximum fraction of allocatable biomass used for maintenance respiration 	{OK_STOMATE }
+TAX_MAX =  0.8 
+
+# ALWAYS_INIT ([-]   ) :  take carbon from atmosphere if carbohydrate reserve too small?  	{OK_STOMATE }
+ALWAYS_INIT =  n  
+
+# MIN_GROWTHINIT_TIME  ([days]  ) :  minimum time since last beginning of a growing season 	{OK_STOMATE }
+MIN_GROWTHINIT_TIME  =  300.  
+
+# MOIAVAIL_ALWAYS_TREE ([-]   ) :  moisture availability above which moisture tendency doesn't matter  	{OK_STOMATE }
+MOIAVAIL_ALWAYS_TREE =  1.0  
+
+# MOIAVAIL_ALWAYS_GRASS  ([-]   ) :  moisture availability above which moisture tendency doesn't matter 	{OK_STOMATE }
+MOIAVAIL_ALWAYS_GRASS  =  0.6  
+
+# T_ALWAYS_ADD ([C]    ) :  monthly temp. above which temp. tendency doesn't matter  	{OK_STOMATE }
+T_ALWAYS_ADD =  10. 
+
+# GDDNCD_REF  ([-]   ) :   	{OK_STOMATE }
+GDDNCD_REF  =  603.  
+
+# GDDNCD_CURVE ([-]  ) :   	{OK_STOMATE }
+GDDNCD_CURVE =  0.0091  
+
+# GDDNCD_OFFSET ([-]  ) :   	{OK_STOMATE }
+GDDNCD_OFFSET =  64.  
+
+# BM_SAPL_RESCALE  ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_RESCALE  =  40.  
+
+# MAINT_RESP_MIN_VMAX ([-]  ) :   	{OK_STOMATE }
+MAINT_RESP_MIN_VMAX =  0.3 
+
+# MAINT_RESP_COEFF  ([-] ) :   	{OK_STOMATE }
+MAINT_RESP_COEFF  =  1.4  
+
+# FRAC_CARB_AP ([-]) :  frac carb coefficients from active pool: depends on clay content 	{OK_STOMATE }
+FRAC_CARB_AP =  0.004 
+
+# FRAC_CARB_SA ([-]) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SA =  0.42 
+
+# FRAC_CARB_SP ([-] ) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SP =  0.03 
+
+# FRAC_CARB_PA ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PA =  0.45 
+
+# FRAC_CARB_PS ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PS =  0.0 
+
+# ACTIVE_TO_PASS_CLAY_FRAC ([-] ) :   	{OK_STOMATE }
+ACTIVE_TO_PASS_CLAY_FRAC =  0.68   
+
+# CARBON_TAU_IACTIVE ( [days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IACTIVE =  0.149 
+
+# CARBON_TAU_ISLOW ([days]) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_ISLOW =  5.48 
+
+# CARBON_TAU_IPASSIVE ([days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IPASSIVE =  241. 
+
+# FLUX_TOT_COEFF ([days] ) :  	{OK_STOMATE }
+FLUX_TOT_COEFF =  1.2, 1.4,.75 
+
+# NEW_TURNOVER_TIME_REF ([days]  ) :   	{OK_STOMATE }
+NEW_TURNOVER_TIME_REF =  20.  
+
+# DT_TURNOVER_TIME  ([days]  ) :   	{OK_STOMATE }
+DT_TURNOVER_TIME  =  10. 
+
+# LEAF_AGE_CRIT_TREF ([days]  ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_TREF =  20.  
+
+# LEAF_AGE_CRIT_COEFF  ([-] ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_COEFF  =  1.5, 0.75, 10.  
+
+# VMAX_OFFSET  ([-]  ) :  offset (minimum relative vcmax) 	{OK_STOMATE }
+VMAX_OFFSET  =  0.3 
+
+# LEAFAGE_FIRSTMAX ([-] ) :  leaf age at which vmax attains vcmax_opt (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_FIRSTMAX =  0.03  
+
+# LEAFAGE_LASTMAX  ([-]  ) :  leaf age at which vmax falls below vcmax_opt (in fraction of critical leaf age)  	{OK_STOMATE }
+LEAFAGE_LASTMAX  =  0.5  
+
+# LEAFAGE_OLD  ([-]  ) :  leaf age at which vmax attains its minimum (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_OLD  =  1. 
+
+# GPPFRAC_DORMANCE  ([-]) :  rapport maximal GPP/GGP_max pour dormance 	{OK_STOMATE }
+GPPFRAC_DORMANCE  =  0.2  
+
+# TAU_CLIMATOLOGY ([days]) :  tau for "climatologic variables  	{OK_STOMATE }
+TAU_CLIMATOLOGY =  20 
+
+# HVC1  ([-]  ) :  parameters for herbivore activity 	{OK_STOMATE }
+HVC1  =  0.019 
+
+# HVC2  ([-]  ) :  parameters for herbivore activity  	{OK_STOMATE }
+HVC2  =  1.38 
+
+# LEAF_FRAC_HVC ([-] ) :  parameters for herbivore activity  	{OK_STOMATE }
+LEAF_FRAC_HVC =  0.33 
+
+# TLONG_REF_MAX ([K]  ) :  maximum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MAX =  303.1 
+
+# TLONG_REF_MIN  ([K]  ) :  minimum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MIN  =  253.1 
+
+# NCD_MAX_YEAR ([days]) :   	{OK_STOMATE }
+NCD_MAX_YEAR =  3.  
+
+# GDD_THRESHOLD  ([days] ) :   	{OK_STOMATE }
+GDD_THRESHOLD  =  5.  
+
+# GREEN_AGE_EVER  ([-]  ) :   	{OK_STOMATE }
+GREEN_AGE_EVER  =  2.  
+
+# GREEN_AGE_DEC ([-] ) :   	{OK_STOMATE }
+GREEN_AGE_DEC =  0.5  
+
+# ESTAB_MAX_TREE ([-]   ) :  Maximum tree establishment rate  	{OK_DGVM}
+ESTAB_MAX_TREE =  0.12  
+
+# ESTAB_MAX_GRASS ([-]  ) :  Maximum grass establishment rate 	{OK_DGVM}
+ESTAB_MAX_GRASS =  0.12  
+
+# ESTABLISH_SCAL_FACT ([-] ) :   	{OK_DGVM }
+ESTABLISH_SCAL_FACT =  5. 
+
+# MAX_TREE_COVERAGE  ([-] ) :   	{OK_DGVM }
+MAX_TREE_COVERAGE  =  0.98 
+
+# IND_0_ESTAB ([-]  ) :   	{OK_DGVM }
+IND_0_ESTAB =  0.2 
+
+# ANNUAL_INCREASE ([FLAG]) :  for diagnosis of fpc increase, compare today's fpc to last year's maximum (T) or to fpc of last time step (F)? 	{OK_DGVM}
+ANNUAL_INCREASE =  y 
+
+# MIN_COVER  ([-]  ) :  For trees, minimum fraction of crown area occupied  	{OK_DGVM}
+MIN_COVER  =  0.05  
+
+# IND_0  ([-]  ) :  initial density of individuals 	{OK_DGVM}
+IND_0  =  0.02  
+
+# MIN_AVAIL ([-]  ) :  minimum availability 	{OK_DGVM}
+MIN_AVAIL =  0.01 
+
+# RIP_TIME_MIN ([year]  ) :   	{OK_DGVM}
+RIP_TIME_MIN =  1.25  
+
+# NPP_LONGTERM_INIT ([gC/m^2/year]) :   	{OK_DGVM}
+NPP_LONGTERM_INIT =  10. 
+
+# EVERYWHERE_INIT ([-] ) :   	{OK_DGVM}
+EVERYWHERE_INIT =  0.05  
+
+# THERMOSOIL_NBLEV ((-)) :  Number of soil level 	{}
+THERMOSOIL_NBLEV =  7 
+
+# DRY_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}] ) :  Dry soil Heat capacity of soils 	{OK_SECHIBA }
+DRY_SOIL_HEAT_CAPACITY =  1.80e+6 
+
+# DRY_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}] ) :  Dry soil Thermal Conductivity of soils 	{OK_SECHIBA}
+DRY_SOIL_HEAT_COND =  0.40  
+
+# WET_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}]) :  Wet soil Heat capacity of soils  	{OK_SECHIBA}
+WET_SOIL_HEAT_CAPACITY =  3.03e+6 
+
+# WET_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Wet soil Thermal Conductivity of soils 	{OK_SECHIBA }
+WET_SOIL_HEAT_COND =  1.89  
+
+# SNOW_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Thermal Conductivity of snow 	{OK_SECHIBA  }
+SNOW_HEAT_COND =  0.3 
+
+# SNOW_DENSITY ([-] ) :  Snow density for the soil thermodynamics  	{OK_SECHIBA }
+SNOW_DENSITY =  330.0 
+
+# NOBIO_WATER_CAPAC_VOLUMETRI ([s/m^2]) :   	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+NOBIO_WATER_CAPAC_VOLUMETRI =  150. 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# CHOISNEL_DIFF_MIN ([kg/m^2/dt]) :  Diffusion constant for the slow regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MIN =  0.001 
+
+# CHOISNEL_DIFF_MAX ([kg/m^2/dt]) :  Diffusion constant for the fast regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MAX =  0.1 
+
+# CHOISNEL_DIFF_EXP ([-]) :  The exponential in the diffusion law 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_EXP =  1.5 
+
+# CHOISNEL_RSOL_CSTE ([s/m^2]) :  Constant in the computation of resistance for bare  soil evaporation  	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_RSOL_CSTE =  33.E3 
+
+# HCRIT_LITTER ([m]) :  Scaling depth for litter humidity 	{OK_SECHIBA and .NOT.(HYDROL_CWRR) }
+HCRIT_LITTER =  0.08  
+
+# SECHIBA_DAY ([days]) :  Time within the day simulated 	{OK_SECHIBA}
+SECHIBA_DAY =  0.0 
+
+# VEGET_UPDATE ([years]) :  Update vegetation frequency 	{LAND_USE}
+VEGET_UPDATE =  0Y 
+
+# SECHIBA_ZCANOP ([m]) :  Soil level used for canopy development (if STOMATE disactivated) 	{OK_SECHIBA and .NOT. OK_STOMATE  }
+SECHIBA_ZCANOP =  0.5 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# DT_SLOW ([seconds]) :  Time step of STOMATE and other slow processes 	{OK_STOMATE}
+DT_SLOW =  86400. 
+
+# SECHIBA_VEGMAX ([-]) :  Maximum vegetation distribution within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_VEGMAX =  0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0 
+
+# SECHIBA_FRAC_NOBIO ([-]) :  Fraction of other surface types within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_FRAC_NOBIO =  0.0 
+
+# SECHIBA_LAI ([-]) :  LAI for all vegetation types (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# SOIL_FRACTIONS ([-]) :  Fraction of the 3 soil types (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOILT}
+SOIL_FRACTIONS =  -9999._sechiba 
+
+# CLAY_FRACTION ([-] ) :  Fraction of the clay fraction (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOIL}
+CLAY_FRACTION =  0.2 
+
+# REINF_SLOPE ([-]) :  Slope coef for reinfiltration  	{IMPOSE_VEG}
+REINF_SLOPE =  0.1 
+
+# SLOWPROC_HEIGHT ([m]) :  Height for all vegetation types  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1.0, 1.0 
+
+# GET_SLOPE ([FLAG]) :  Read slopes from file and do the interpolation 	{}
+GET_SLOPE =  n 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(LAI_MAP)}
+LAI_FILE =  lai2D.nc 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAI_MAP}
+LAI_FILE =  lai2D.nc 
+
+# RENORM_LAI ([FLAG]) :  flag to force LAI renormelization 	{LAI_MAP}
+RENORM_LAI =  n 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAND_USE}
+VEGETATION_FILE =  PFTmap.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# SOILCLASS_FILE ([FILE]) :  Name of file from which soil types are read 	{NOT(IMPOSE_VEG)}
+SOILCLASS_FILE =  soils_param.nc 
+
+# SLOPE_NOREINF ([-]) :  See slope_noreinf above 	{}
+SLOPE_NOREINF =  0.5 
+
+# TOPOGRAPHY_FILE ([FILE]) :  Name of file from which the topography map is to be read 	{}
+TOPOGRAPHY_FILE =  cartepente2d_15min.nc 
+
+# SOILALB_FILE ([FILE]) :  Name of file from which the bare soil albedo 	{NOT(IMPOSE_AZE)}
+SOILALB_FILE =  soils_param.nc 
+
+# CDRAG_FROM_GCM ([FLAG]) :  Keep cdrag coefficient from gcm. 	{OK_SECHIBA}
+CDRAG_FROM_GCM =  y 
+
+# DIFFUCO_LEAFCI ([ppm]) :  Initial leaf CO2 level if not found in restart 	{OK_SECHIBA}
+DIFFUCO_LEAFCI =  233. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{}
+ALLOW_WEATHERGEN =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# HYDROL_OK_HDIFF ([FLAG]) :  do horizontal diffusion? 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)  }
+HYDROL_OK_HDIFF =  n 
+
+# HYDROL_SNOW ([kg/m^2]) :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE ([days]) :  Initial snow age if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO ([m]) :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE ([days]) :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_HUMR ([-]) :  Initial soil moisture stress if not found in restart 	{OK_SECHIBA }
+HYDROL_HUMR =  1.0 
+
+# HYDROL_BQSB ([kg/m^2]) :  Initial restart deep soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_BQSB =  999999.  
+
+# HYDROL_GQSB ([kg/m^2]) :  Initial upper soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_GQSB =  0.0 
+
+# HYDROL_DSG ([m]) :  Initial upper reservoir depth if not found in restart 	{OK_SECHIBA }
+HYDROL_DSG =  0.0 
+
+# HYDROL_QSV ([kg/m^2]) :  Initial water on canopy if not found in restart 	{OK_SECHIBA }
+HYDROL_QSV =  0.0 
+
+# HYDROL_DSP ([m]) :  Initial dry soil above upper reservoir if not found in restart 	{OK_SECHIBA }
+HYDROL_DSP =  999999. 
+
+# HYDROL_TAU_HDIFF ([seconds]) :  time scale (s) for horizontal diffusion of water 	{HYDROL_OK_HDIFF}
+HYDROL_TAU_HDIFF =  86400. 
+
+# CHECK_CWRR ([FLAG]) :  Should we check detailed CWRR water balance ? 	{HYDROL_CWRR}
+CHECK_CWRR =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{HYDROL_CWRR}
+DO_PONDS =  n 
+
+# CWRR_N_VANGENUCHTEN ([-]) :  Van genuchten coefficient n 	{HYDROL_CWRR}
+CWRR_N_VANGENUCHTEN =  1.89, 1.56, 1.31 
+
+# CWRR_A_VANGENUCHTEN ([1/mm]  ) :  Van genuchten coefficient a 	{HYDROL_CWRR}
+CWRR_A_VANGENUCHTEN =  0.0075, 0.0036, 0.0019 
+
+# VWC_RESIDUAL ([mm]  ) :  Residual soil water content 	{HYDROL_CWRR}
+VWC_RESIDUAL =  0.065, 0.078, 0.095 
+
+# VWC_SAT ([-]  ) :  Saturated soil water content 	{HYDROL_CWRR}
+VWC_SAT =  0.41, 0.43, 0.41 
+
+# CWRR_KS  ([mm/d]   ) :  Hydraulic conductivity Saturation 	{HYDROL_CWRR }
+CWRR_KS  =  1060.8, 249.6, 62.4 
+
+# WETNESS_TRANSPIR_MAX ([-]    ) :  Soil moisture above which transpir is max 	{HYDROL_CWRR}
+WETNESS_TRANSPIR_MAX =  0.5, 0.5, 0.5 
+
+# DRAINAGE_FACTOR_F ([-]   ) :  Max value of the permeability coeff at the bottom of the soil  	{HYDROL_CWRR}
+DRAINAGE_FACTOR_F =  1.0, 1.0, 1.0  
+
+# VWC_FC  ([-]   ) :  Volumetric water content field capacity 	{HYDROL_CWRR}
+VWC_FC  =  0.32, 0.32, 0.32 
+
+# VWC_WP ([-]   ) :  Volumetric water content Wilting pt 	{HYDROL_CWRR}
+VWC_WP =  0.10, 0.10, 0.10  
+
+# VWC_MIN_FOR_WET_ALB ([-]  ) :  Vol. wat. cont. above which albedo is cst 	{HYDROL_CWRR}
+VWC_MIN_FOR_WET_ALB =  0.25, 0.25, 0.25 
+
+# VWC_MAX_FOR_DRY_ALB ([-]   ) :  Vol. wat. cont. below which albedo is cst 	{HYDROL_CWRR}
+VWC_MAX_FOR_DRY_ALB =  0.1, 0.1, 0.1 
+
+# HYDROL_MOISTURE_CONTENT () :  Soil moisture on each soil tile and levels 	{HYDROL_CWRR       }
+HYDROL_MOISTURE_CONTENT =  0.3 
+
+# US_INIT () :  US_NVM_NSTM_NSLM 	{HYDROL_CWRR       }
+US_INIT =  0.0 
+
+# FREE_DRAIN_COEF () :  Coefficient for free drainage at bottom 	{HYDROL_CWRR       }
+FREE_DRAIN_COEF =  1.0, 1.0, 1.0 
+
+# WATER_TO_INFILT () :  Water to be infiltrated on top of the soil 	{HYDROL_CWRR    }
+WATER_TO_INFILT =  0.0 
+
+# EVAPNU_SOIL () :  Bare soil evap on each soil if not found in restart 	{HYDROL_CWRR  }
+EVAPNU_SOIL =  0.0 
+
+# HYDROL_SNOW () :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE () :  Initial snow age if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO () :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE () :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_QSV () :  Initial water on canopy if not found in restart 	{OK_SECHIBA}
+HYDROL_QSV =  0.0 
+
+# CWRR_NKS_N0  ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_N0  =  0.95 
+
+# CWRR_NKS_POWER ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_POWER =  0.34 
+
+# CWRR_AKS_A0  ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_A0  =  0.00012 
+
+# CWRR_AKS_POWER ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_POWER =  0.53 
+
+# KFACT_DECAY_RATE ([-]) :  Factor for Ks decay with depth 	{HYDROL_CWRR }
+KFACT_DECAY_RATE =  2.0 
+
+# KFACT_STARTING_DEPTH ([-]) :  Depth for compacted value of Ks  	{HYDROL_CWRR }
+KFACT_STARTING_DEPTH =  0.3 
+
+# KFACT_MAX ([-]) :  Maximum Factor for Ks increase due to vegetation 	{HYDROL_CWRR }
+KFACT_MAX =  10.0 
+
+# ROUTING_TIMESTEP ([seconds]) :  Time step of the routing scheme 	{RIVER_ROUTING}
+ROUTING_TIMESTEP =  86400. 
+
+# ROUTING_RIVERS ([-]) :  Number of rivers  	{RIVER_ROUTING}
+ROUTING_RIVERS =  50 
+
+# DO_FLOODINFILT ([FLAG]) :  Should floodplains reinfiltrate into the soil  	{RIVER_ROUTING}
+DO_FLOODINFILT =  n 
+
+# DO_SWAMPS ([FLAG]) :  Should we include swamp parameterization  	{RIVER_ROUTING}
+DO_SWAMPS =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{RIVER_ROUTING}
+DO_PONDS =  n 
+
+# SLOW_TCST ([days]) :  Time constant for the slow reservoir  	{RIVER_ROUTING }
+SLOW_TCST =  n 
+
+# FAST_TCST ([days]) :  Time constant for the fast reservoir  	{RIVER_ROUTING }
+FAST_TCST =  fast_tcst_cwrr or fast_tcst_chois depending on flag HYDROL_CWRR 
+
+# STREAM_TCST ([days]) :  Time constant for the stream reservoir  	{RIVER_ROUTING}
+STREAM_TCST =  stream_tcst_cwrr or stream_tcst_chois depending on flag HYDROL_CWRR 
+
+# FLOOD_TCST ([days]) :  Time constant for the flood reservoir  	{RIVER_ROUTING}
+FLOOD_TCST =  4.0 
+
+# SWAMP_CST ([-]) :  Fraction of the river that flows back to swamps  	{RIVER_ROUTING}
+SWAMP_CST =  0.2 
+
+# FLOOD_BETA ([-] ) :  Parameter to fix the shape of the floodplain   	{RIVER_ROUTING}
+FLOOD_BETA =  2.0 
+
+# POND_BETAP ([-] ) :  Ratio of the basin surface intercepted by ponds and the maximum surface of ponds 	{RIVER_ROUTING}
+POND_BETAP =  0.5 
+
+# FLOOD_CRI ([mm] ) :  Potential height for which all the basin is flooded 	{DO_FLOODPLAINS or DO_PONDS}
+FLOOD_CRI =  2000. 
+
+# POND_CRI ([mm] ) :  Potential height for which all the basin is a pond 	{DO_FLOODPLAINS or DO_PONDS}
+POND_CRI =  2000. 
+
+# RIVER_DESC ([FLAG]) :  Writes out a description of the rivers 	{RIVER_ROUTING}
+RIVER_DESC =  n 
+
+# RIVER_DESC_FILE ([FILE]) :  Filename in which we write the description of the rivers. If suffix is ".nc" a netCDF file is created 	{RIVER_DESC}
+RIVER_DESC_FILE =  river_desc.txt 
+
+# ROUTING_FILE ([FILE]) :  Name of file which contains the routing information 	{RIVER_ROUTING}
+ROUTING_FILE =  routing.nc 
+
+# IRRIGATION_FILE ([FILE]) :  Name of file which contains the map of irrigated areas 	{DO_IRRIGATION OR DO_FLOODPLAINS}
+IRRIGATION_FILE =  floodplains.nc 
+
+# EPS_CARBON ([%]   ) :  Allowed error on carbon stock 	{SPINUP_ANALYTIC}
+EPS_CARBON =  0.01 
+
+# SPINUP_PERIOD ([years]   ) :  Period to calulcate equilibrium during spinup analytic 	{SPINUP_ANALYTIC}
+SPINUP_PERIOD =  -1 
+
+# STOMATE_FORCING_NAME ([FILE]) :  Name of STOMATE's forcing file 	{OK_STOMATE}
+STOMATE_FORCING_NAME =  NONE 
+
+# STOMATE_FORCING_MEMSIZE ([MegaBytes]) :  Size of STOMATE forcing data in memory  	{OK_STOMATE}
+STOMATE_FORCING_MEMSIZE =  50 
+
+# STOMATE_CFORCING_NAME ([FILE]) :  Name of STOMATE's carbon forcing file 	{OK_STOMATE}
+STOMATE_CFORCING_NAME =  NONE 
+
+# FORCESOIL_STEP_PER_YEAR ([days, months, year]) :  Number of time steps per year for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_STEP_PER_YEAR =  365 
+
+# FORCESOIL_NB_YEAR ([years]) :  Number of years saved for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_NB_YEAR =  1 
+
+# BAVARD ([-]) :  level of online diagnostics in STOMATE (0-4) 	{OK_STOMATE}
+BAVARD =  1 
+
+# REFTEMP_FILE ([FILE]) :  Name of file from which the reference temperature is read 	{OK_STOMATE}
+REFTEMP_FILE =  reftemp.nc 
+
+# XIOS_ORCHIDEE_OK ([FLAG]) :  Use XIOS for writing diagnostics file 	{}
+XIOS_ORCHIDEE_OK =  n 
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/PARAM/run.def	(revision 5631)
@@ -0,0 +1,3 @@
+# $Id: run.def,v 1.1 2010/10/11 14:13:57 ssipsl Exp $
+#
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/FORCESOIL/config.card	(revision 5631)
@@ -0,0 +1,97 @@
+#
+# This is config.card file for restart with an NEW libIGCM simulation tree.
+#
+#====================================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=AUTO
+LongName="Please, explain here what is this simulation for"
+TagName=AUTO
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=AUTO
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=AUTO
+#============================
+#-- leap, noleap, 360d
+CalendarType=360d
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1980-01-01
+DateEnd=1989-12-30
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=10Y
+#============================
+#-- Total Number of Processors (minimum is 2 for a coupled configuration)
+JobNumProcTot=_AUTO_
+#============================
+PeriodNb=1
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component, Name of component, Tag of component
+SBG= (stomate, orchidee)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+Name=forcesoil
+#D- For each component, Real name of executable, Name of executable for oasis
+SBG= (forcesoil, forcesoil, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- If you want a GENERAL RULE FOR RESTARTS, put this flag to 'y'
+OverRule=n
+#D- Last day of the experience used as restart
+RestartDate=1979-12-31
+#D- Define restart simulation name (=> JOB_OS)
+RestartJobName=TESTFORCE
+#D- Path Server Group Login (=> PSGL)
+RestartPath=${ARCHIVE}/IGCM_OUT
+# Attention login depend de la machine
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=_AUTO_
+#D- Do we rebuild parallel output, this flag determines
+#D- frequency of rebuild submission
+RebuildFrequency=NONE
+#D- Optimization of rebuid
+RebuildFromArchive=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=NONE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=NONE
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+
+#========================================================================
+#D-- SRF - STOMATE
+[SBG]
+WriteFrequency="1M"
+Restart=y
+#-- Last day of the experience used as restart
+RestartDate=1979-12-30
+# Define restart simulation name
+RestartJobName=TESTFORCE
+RestartPath=${ARCHIVE}/${LOGIN}/IGCM_OUT
+# Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/orchidee_ol.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/orchidee_ol.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/orchidee_ol.card	(revision 5631)
@@ -0,0 +1,35 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# resolution of forcing file (not used yet)
+RESOL=OOL360180
+# If you want to use the same forcing file
+NORESTART=n
+# If you want use config.card PeriodLength for TIME_LENGTH
+TIMELENGTH=y
+
+[InitialStateFiles]
+List=	
+
+[BoundaryFiles]
+List=	(${R_IN}/SRF/METEO/NCC/ncc_for_${year}.nc, forcing_file.nc)
+ListNonDel= ()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .) 
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(driver_rest_out.nc,  driver_rest.nc,  driver_rest_in.nc)
+# \
+#    (used_run.def, used_run.def, used_run_in.def)
+# Uncomment previous lines to be sure to STOP if something was wrong in ORCHIDEE.
+
+[OutputText]
+List=   (run.def, used_run.def, out_orchidee_ol)
+# avec la // : out_orchidee_*
+
+[OutputFiles]
+List=	
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/orchidee_ol.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/orchidee_ol.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/orchidee_ol.driver	(revision 5631)
@@ -0,0 +1,106 @@
+#!/bin/ksh
+
+#D- Driver du script pour ORCHIDEE_OL (off-line)
+
+function ORCHIDEE_def
+{
+    IGCM_debug_PushStack "ORCHIDEE_def"
+    
+    typeset ORCHIDEE_def_KEY ORCHIDEE_default_KEY
+    
+    ORCHIDEE_def_KEY=$( grep -e "^${1}\ *=" run.def | gawk -- 'BEGIN {FS="="} {print $2}')
+    ORCHIDEE_default_KEY=$( grep -e "^${1}\ *=" ${SUBMIT_DIR}/PARAM/orchidee.default | gawk -- 'BEGIN {FS="="} {print $2}')
+
+    if [ X"${ORCHIDEE_def_KEY}" != X ] ; then
+	IGCM_debug_Print 2 "ORCHIDEE : ${1} has already been set in def file."
+	IGCM_debug_Print 2 " default value : ${ORCHIDEE_default_KEY}"
+	IGCM_debug_Print 2 " script value : ${2}"
+	IGCM_debug_Print 2 " USER value : ${ORCHIDEE_def_KEY}"
+	IGCM_debug_Print 2 "               We will not set in again !"
+    else
+	echo "${1}= ${2}" >> run.def
+	echo "" >> run.def
+	echo "ORCHIDEE_def : ${1} ${2}"
+    fi
+    
+    IGCM_debug_PopStack "ORCHIDEE_def"
+    return $RET
+}
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    NUM_PROC=1
+#D- Number of processors used for lmdz and oasis coupler computed from PBS variable
+    if [ X"${BATCH_NUM_PROC_TOT}" != X ] ; then
+	NUM_PROC=${BATCH_NUM_PROC_TOT}
+    fi
+    echo BATCH_NUM_PROC_TOT=${BATCH_NUM_PROC_TOT}
+    echo NUM_PROC=${NUM_PROC}
+
+    if ( [ X${BATCH_NUM_PROC_TOT} != X ] && [ "${BATCH_NUM_PROC_TOT}" -gt 1 ] ) ; then
+	MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND}
+    fi
+
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/COMP/orchidee_ol.card UserChoices
+    RESOL=${orchidee_ol_UserChoices_RESOL}
+
+    if [ ! -f ${SUBMIT_DIR}/PARAM/run.def ] ; then
+	echo "#orchidee add :" > ${SUBMIT_DIR}/PARAM/run.def
+    else
+	echo "#orchidee add :" >> ${SUBMIT_DIR}/PARAM/run.def
+    fi
+    echo "" >> ${SUBMIT_DIR}/PARAM/run.def
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    if [ X"${orchidee_ol_UserChoices_TIMELENGTH}" = Xy ] ; then
+	case ${config_UserChoices_PeriodLength} in
+	    *Y|*y|*M|*m|*D|*d)
+		ORCHIDEE_def TIME_LENGTH ${PeriodLengthInDays}D
+		;;
+	    *s)
+		ORCHIDEE_def TIME_LENGTH ${config_UserChoices_PeriodLength}
+	esac
+    fi
+
+    if ( ${FirstInitialize} ) ; then
+	if ( [ "${config_OOL_Restart}" = "y" ] ) ; then
+	    ORCHIDEE_def RESTART_FILEIN driver_rest_in.nc
+	else
+	    ORCHIDEE_def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D
+	fi
+    else
+	if [ X${orchidee_ol_UserChoices_NORESTART} = Xn ] ; then
+	    ORCHIDEE_def RESTART_FILEIN driver_rest_in.nc
+	else
+	    if [ ${DRYRUN} -le 2 ] ; then
+		IGCM_sys_Rm driver_rest_in.nc
+	    fi
+	    ORCHIDEE_def RESTART_FILEIN NONE
+	fi
+    fi
+
+#    IGCM_sys_Put_Out run.def ${R_OUT_OOL}/${PREFIX}_run.def
+    FileToBeDeleted[${#FileToBeDeleted[@]}]=run.def
+
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+
+    echo FINALIZE OOL !!!
+
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,75 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+LAIMAP=n
+IMPOSE_VEG=n
+# if IMPOSE_VEG = n
+LAND_USE=y
+# if LAND_USE=y
+VEGET_UPDATE=0Y
+# if LAND_USE=n and we want to use carteveg5km.nc for maxvegetfrac map.
+# (instead of default PFTmap_1850to2005_AR5_LUHa.rc2 below)
+OLD_VEGET=n
+ROUTING=n
+NEWHYDROL=n
+OKCO2=y
+sechiba_LEVEL=6
+
+[InitialStateFiles]
+List=       (${R_IN}/SRF/ROUTING/routing.nc, .),     \
+            (${R_IN}/SRF/SOIL/soils_param.nc, .), \
+            (${R_IN}/SRF/cartepente2d_15min.nc, .), \
+            (${R_IN}/SRF/ROUTING/floodplains.nc, .), \
+            (${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_${year}.nc, PFTmap.nc)
+
+[BoundaryFiles]
+#List=	(${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_${year_p1}.nc, .)
+List=	()
+ListNonDel= (${R_IN}/SRF/LAI/lai2D_03.nc, lai2D.nc)
+#If you want to come back to old BIG LAND USE file (to run on multipple years, just one time with LAND USE activated), you must 
+# 1) empty BC list and INIT first PFTmap lines
+# 2) and suppress previous ListNonDel line and ucomment next one :
+#ListNonDel= (${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2.nc, PFTmap.nc) \
+#             (${R_IN}/SRF/lai2D_03.nc, lai2D.nc)
+# See also same comment in sechiba.driver.
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   (used_run.def, out_orchidee, river_desc.txt)
+
+[OutputFiles]
+List=	(sechiba_history.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history.nc, Post_1M_sechiba_history), \
+        (sechiba_out_2.nc, ${R_OUT_SRF_O_H}/${PREFIX}_HF_sechiba_out_2.nc, Post_HF_sechiba_out_2), \
+        (orchidee_watchout.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_watchout.nc, NONE)
+
+[Post_1M_sechiba_history]
+Patches = ()
+GatherWithInternal= (lon, lat, veget, time_counter, time_counter_bnds, Areas, Contfrac)
+TimeSeriesVars2D = (nobiofrac, alb_nir, alb_vis, bqsb, evap, fluxlat, fluxsens, gqsb, netrad, qair, rain, runoff, snow, snownobio, snowf, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac)
+# ALMAOUTPUT
+#TimeSeriesVars2D = (nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, ESoil, ECanop, TVeg, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+ChunckJob2D = NONE
+TimeSeriesVars3D = (lai, maxvegetfrac, vegetfrac, ptn, nee)
+# ALMAOUTPUT
+#TimeSeriesVars3D = (ECanop, TVeg, GPP, CO2FLUX)
+ChunckJob3D = NONE
+Seasonal=ON
+
+[Post_HF_sechiba_out_2]
+Patches= ()
+GatherWithInternal= (lon, lat, veget, time_counter, time_counter_bnds, Areas, Contfrac)
+TimeSeriesVars2D= (mrsos, mrro)
+ChunckJob2D= 50Y
+TimeSeriesVars3D= (ptn)
+ChunckJob3D= 10Y
+Seasonal= OFF
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,160 @@
+#!/bin/ksh
+
+#D- Driver du script pour SECHIBA
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    echo "ORCHIDEE Tag : " ${config_UserChoices_TagName}
+
+    RESOL_SRF=ALL
+    
+    typeset frequency
+    for frequency in ${config_SRF_WriteFrequency} ; do
+        case ${frequency} in
+            HF|hf) SRF_ok_hf=y ;;
+        esac
+    done
+
+    if [ X${sechiba_UserChoices_LAND_USE} = Xy ] ; then
+      sed -e 's&#List=\(.*\)PFTmap\(.*\)year_p1\(.*\)&List=\1PFTmap\2year_p1\3&' ${SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp
+      IGCM_sys_Mv sechiba.card.tmp ${SUBMIT_DIR}/COMP/sechiba.card
+    fi
+
+    if [ X${sechiba_UserChoices_IMPOSE_VEG} = Xy ] ; then
+      sed -e 's&\(List.*=\)*\([[:space:]]*(*\).*PFTmap.*\${year}.*.nc,.*)&\1\2)&' ${SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp
+      IGCM_sys_Mv sechiba.card.tmp ${SUBMIT_DIR}/COMP/sechiba.card
+    fi
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+# Optionnal function executed at the beginning of the main loop, 
+# after IGCM_config_PeriodStart see libIGCM/AA_job. 
+# It may be used to set special variables used in forward lists
+function SRF_PeriodStart
+{
+    IGCM_debug_PushStack "SRF_PeriodStart"
+    IGCM_debug_PopStack "SRF_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    typeset SECHIBA_WRITE_STEP
+
+    # Get WriteFrenquecies from config.card for SECHIBA
+    SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' ) 
+    case ${SRF_WriteFrequency} in
+	*Y|*y) 
+	    WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+	    (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;;
+	1M)
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		SECHIBA_WRITE_STEP=-1.
+		;;
+	    *M|*m)
+		SECHIBA_WRITE_STEP=-1.
+		;;
+	    *)
+		(( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 ))
+		;;
+	    esac
+	    ;;
+	*M|*m) 
+	    WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+		(( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12 ))
+		;;
+	    *M|*m)
+		PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )
+		(( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths  * 86400 / PeriodLengthInMonths  ))
+		;;
+	    *)
+		(( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 ))
+		;;
+	    esac
+	    ;;
+	5D|5d) 
+	    (( SECHIBA_WRITE_STEP = 5 * 86400 )) ;;
+	1D|1d) 
+	    (( SECHIBA_WRITE_STEP = 86400 )) ;;
+	*s)
+	    WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' )
+	    (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;;
+	*) 
+	    IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
+	    IGCM_debug_Verif_Exit ;;
+    esac
+    ORCHIDEE_def WRITE_STEP ${SECHIBA_WRITE_STEP}
+    ORCHIDEE_def SECHIBA_HISTLEVEL ${sechiba_UserChoices_sechiba_LEVEL}
+    # Outputs HF in HISTFILE2 if required
+    if [ X${SRF_ok_hf} = Xy ] ; then
+	ORCHIDEE_def SECHIBA_HISTFILE2 y
+	ORCHIDEE_def SECHIBA_HISTLEVEL2 1
+	ORCHIDEE_def WRITE_STEP2 10800.0
+    fi
+
+    ORCHIDEE_def STOMATE_OK_CO2 ${sechiba_UserChoices_OKCO2}
+
+    ORCHIDEE_def LAI_MAP ${sechiba_UserChoices_LAIMAP}
+    ORCHIDEE_def RIVER_ROUTING ${sechiba_UserChoices_ROUTING}
+    ORCHIDEE_def HYDROL_CWRR ${sechiba_UserChoices_NEWHYDROL}
+
+    if [ X${sechiba_UserChoices_IMPOSE_VEG} = Xn ] ; then
+	if [ X${sechiba_UserChoices_LAND_USE} = Xy ] ; then
+	    ORCHIDEE_def VEGET_UPDATE ${sechiba_UserChoices_VEGET_UPDATE}
+
+            ##MM : cutting PFTmaps of ORCHIDEE : for first year without restart, we must use this year map
+            ##     WARNING : the next year map must be avaible and the december month, then this device will
+            ##               only work with PeriodLength scrictly less than 1Y.
+            # If you want to come back to old BIG LAND USE file
+            # (to run on multipple years, just one time with LAND USE activated), 
+            # you must 
+            # comment all next 8 lines and check correct parameters in run.def file
+            # for your LAND USE specific file.
+	    ORCHIDEE_def VEGET_REINIT y
+	    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+		ORCHIDEE_def VEGET_YEAR 1
+	    else
+		ORCHIDEE_def VEGET_YEAR 0
+		IGCM_sys_Mv -f PFTmap_IPCC_${year_p1}.nc PFTmap.nc
+	    fi
+	elif [ X${sechiba_UserChoices_OLD_VEGET} = Xy ] ; then
+	    ORCHIDEE_def LAND_USE n
+	fi
+    else
+	ORCHIDEE_def IMPOSE_VEG y
+    fi
+
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	ORCHIDEE_def SECHIBA_reset_time y
+    else
+	ORCHIDEE_def SECHIBA_restart_in sechiba_rest_in.nc
+	ORCHIDEE_def SECHIBA_reset_time y
+    fi
+    FileToBeDeleted[${#FileToBeDeleted[@]}]=run.def
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    #IGCM_sys_Put_Out ${RUN_DIR}/used_run.def ${R_SAVE}/${PREFIX}_used_run.def
+
+    echo FINALIZE SRF !!!
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/PARAM/orchidee.default
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/PARAM/orchidee.default	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/PARAM/orchidee.default	(revision 5631)
@@ -0,0 +1,1514 @@
+#
+#
+#  WARNING !!! 
+#  DO NOT MODIFY THIS FILE.
+#  THIS FILE IS ONLY PROVIDING INFORMATION ABOUT DEFAULT PARAMETER SETTINGS IN ORCHIDEE. 
+#
+#*******************************************************************************************
+#                    Namelist for ORCHIDEE (trunk revision 2135) 
+#*******************************************************************************************
+#
+#  For more details, see : http://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/OrchideeParameters 
+#
+#  Note : [m] : meters; [K] : Kelvin degrees; [C] : Celsius degrees
+#
+
+#*******************************************************************************************
+#          ORCHIDEE driver parameters (read in Off-line mode only) 
+#*******************************************************************************************
+
+# DEBUG_INFO ([FLAG] ) :  Flag for debug information 	{[-]}
+DEBUG_INFO =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# SPLIT_DT ([-]) :  splits the timestep imposed by the forcing 	{NOT(WEATHERGEN)}
+SPLIT_DT =  12 
+
+# RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions 	{[-]}
+RESTART_FILEIN =  NONE 
+
+# RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by the driver 	{[-]}
+RESTART_FILEOUT =  driver_rest_out.nc 
+
+# DRIVER_reset_time ([FLAG]) :  Overwrite time values from the driver restart file 	{[-]}
+DRIVER_reset_time =  n 
+
+# TIME_SKIP ([seconds, days, months, years]) :  Time in the forcing file at which the model is started. 	{[-]}
+TIME_SKIP =  0 
+
+# TIME_LENGTH ([seconds, days, months, years]) :  Length of the integration in time. 	{[-]}
+TIME_LENGTH =  DEF 
+
+# RELAXATION ([FLAG]) :  method of forcing 	{[-]}
+RELAXATION =  n 
+
+# RELAX_A ([days?]) :  Time constant of the relaxation layer 	{RELAXATION}
+RELAX_A =  1.0 
+
+# NO_INTER  ([FLAG]) :  No interpolation IF split is larger than 1 	{[-]}
+NO_INTER  =  y 
+
+# INTER_LIN ([FLAG]) :  Interpolation IF split is larger than 1 	{[-]}
+INTER_LIN =  n 
+
+# SPRED_PREC ([-]) :  Spread the precipitation. 	{[-]}
+SPRED_PREC =  1 
+
+# NETRAD_CONS ([FLAG]) :  Conserve net radiation in the forcing 	{INTER_LIN}
+NETRAD_CONS =  y 
+
+# ATM_CO2 ([ppm]) :  Value for atm CO2 	{[-]}
+ATM_CO2 =  350. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{[-]}
+ALLOW_WEATHERGEN =  n 
+
+# DT_WEATHGEN ([seconds]) :  Calling frequency of weather generator 	{ALLOW_WEATHERGEN}
+DT_WEATHGEN =  1800. 
+
+# LIMIT_WEST ([Degrees] ) :  Western limit of region 	{[-]}
+LIMIT_WEST =  -180. 
+
+# LIMIT_EAST ([Degrees] ) :  Eastern limit of region 	{[-]}
+LIMIT_EAST =  180. 
+
+# LIMIT_NORTH ([Degrees]) :  Northern limit of region 	{[-]}
+LIMIT_NORTH =  90. 
+
+# LIMIT_SOUTH ([Degrees]) :  Southern limit of region 	{[-]}
+LIMIT_SOUTH =  -90. 
+
+# MERID_RES ([Degrees]) :  North-South Resolution 	{ALLOW_WEATHERGEN}
+MERID_RES =  2. 
+
+# ZONAL_RES ([Degrees] ) :  East-West Resolution 	{ALLOW_WEATHERGEN}
+ZONAL_RES =  2. 
+
+# IPPREC ([-] ) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+IPPREC =  0 
+
+# WEATHGEN_PRECIP_EXACT ([FLAG]) :  Exact monthly precipitation 	{ALLOW_WEATHERGEN}
+WEATHGEN_PRECIP_EXACT =  n 
+
+# DUMP_WEATHER ([FLAG]) :  Write weather from generator into a forcing file 	{ALLOW_WEATHERGEN  }
+DUMP_WEATHER =  n 
+
+# DUMP_WEATHER_FILE ([FILE]) :  Name of the file that contains the weather from generator 	{DUMP_WEATHER}
+DUMP_WEATHER_FILE =  weather_dump.nc 
+
+# DUMP_WEATHER_GATHERED ([FLAG]) :  Dump weather data on gathered grid 	{DUMP_WEATHER}
+DUMP_WEATHER_GATHERED =  y 
+
+# HEIGHT_LEV1 ([m]) :   	{DUMP_WEATHER}
+HEIGHT_LEV1 =  10. 
+
+#*******************************************************************************************
+#          ORCHIDEE parameters  
+#*******************************************************************************************
+
+# LONGPRINT ([FLAG]) :  ORCHIDEE will print more messages 	{OK_SECHIBA}
+LONGPRINT =  n 
+
+# CHECKTIME ([FLAG]) :  ORCHIDEE will print messages on time 	{OK_SECHIBA}
+CHECKTIME =  n 
+
+# SOILTYPE_CLASSIF ([-]) :  Type of classification used for the map of soil types  	{!IMPOSE_VEG}
+SOILTYPE_CLASSIF =  zobler 
+
+# ORCHIDEE_WATCHOUT ([FLAG]) :  ORCHIDEE will write out its forcing to a file 	{}
+ORCHIDEE_WATCHOUT =  n 
+
+# DT_WATCHOUT ([seconds]) :  ORCHIDEE will write out with this frequency 	{ORCHIDEE_WATCHOUT}
+DT_WATCHOUT =  dt 
+
+# WATCHOUT_FILE ([FILE]) :  Filenane for the ORCHIDEE forcing file 	{ORCHIDEE_WATCHOUT}
+WATCHOUT_FILE =  orchidee_watchout.nc 
+
+# RIVER_ROUTING ([FLAG]) :  Decides if we route the water or not 	{OK_SECHIBA}
+RIVER_ROUTING =  n 
+
+# HYDROL_CWRR ([FLAG]) :  Allows to switch on the multilayer hydrology of CWRR 	{OK_SECHIBA}
+HYDROL_CWRR =  n 
+
+# HYDROL_SOIL_DEPTH ([m]) :  Total depth of soil reservoir 	{OK_SECHIBA }
+HYDROL_SOIL_DEPTH =  4./ 2. (if HYDROL_CWRR) 
+
+# DO_IRRIGATION ([FLAG]) :  Should we compute an irrigation flux  	{RIVER_ROUTING }
+DO_IRRIGATION =  n 
+
+# DO_FLOODPLAINS ([FLAG]  ) :  Should we include floodplains  	{RIVER_ROUTING }
+DO_FLOODPLAINS =  n 
+
+# CHECK_WATERBAL ([FLAG]  ) :  Should we check the global water balance  	{OK_SECHIBA}
+CHECK_WATERBAL =  n 
+
+# STOMATE_OK_CO2 ([FLAG]) :  Activate CO2? 	{OK_SECHIBA }
+STOMATE_OK_CO2 =  n 
+
+# STOMATE_OK_STOMATE ([FLAG]) :  Activate STOMATE? 	{OK_SECHIBA and OK_CO2}
+STOMATE_OK_STOMATE =  n 
+
+# STOMATE_OK_DGVM ([FLAG]) :  Activate DGVM? 	{OK_STOMATE}
+STOMATE_OK_DGVM =  n 
+
+# DIFFUCO_OK_INCA ([FLAG]) :  Activate DIFFUCO_INCA? 	{OK_SECHIBA}
+DIFFUCO_OK_INCA =  n 
+
+# LEAFAGE_OK_INCA ([FLAG]) :  Activate LEAFAGE? 	{DIFFUCO_OK_INCA}
+LEAFAGE_OK_INCA =  n 
+
+# CANOPY_EXTINCTION  ([FLAG]) :  Use canopy radiative transfer model? 	{DIFFUCO_OK_INCA }
+CANOPY_EXTINCTION  =  n 
+
+# CANOPY_MULTILAYER ([FLAG]) :  Use canopy radiative transfer model with multi-layers 	{CANOPY_EXTINCTION }
+CANOPY_MULTILAYER =  n 
+
+# NOx_RAIN_PULSE ([FLAG]) :  Calculate NOx emissions with pulse? 	{DIFFUCO_OK_INCA }
+NOx_RAIN_PULSE =  n 
+
+# NOx_BBG_FERTIL ([FLAG]) :  Calculate NOx emissions with bbg fertilizing effect? 	{DIFFUCO_OK_INCA }
+NOx_BBG_FERTIL =  n 
+
+# NOx_FERTILIZERS_USE ([FLAG] ) :  Calculate NOx emissions with fertilizers use? 	{DIFFUCO_OK_INCA }
+NOx_FERTILIZERS_USE =  n 
+
+# STOMATE_WATCHOUT ([FLAG]) :  STOMATE does minimum service 	{OK_SECHIBA }
+STOMATE_WATCHOUT =  n 
+
+# NVM ([-]) :  number of PFTs   	{OK_SECHIBA or OK_STOMATE}
+NVM =  13 
+
+# IMPOSE_PARAM ([FLAG]) :  Do you impose the values of the parameters? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_PARAM =  y 
+
+# SECHIBA_restart_in ([FILE]) :  Name of restart to READ for initial conditions 	{OK_SECHIBA }
+SECHIBA_restart_in =  NONE 
+
+# SECHIBA_rest_out ([FILE]) :  Name of restart files to be created by SECHIBA 	{OK_SECHIBA}
+SECHIBA_rest_out =  sechiba_rest_out.nc 
+
+# SECHIBA_reset_time ([FLAG]) :  Override the time from the restart files for SECHIBA and STOMATE 	{OK_SECHIBA}
+SECHIBA_reset_time =  y 
+
+# STOMATE_RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions of STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEIN =  NONE 
+
+# STOMATE_RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEOUT =  stomate_restart.nc 
+
+# ALMA_OUTPUT ([FLAG]) :  Should the output follow the ALMA convention 	{OK_SECHIBA}
+ALMA_OUTPUT =  n 
+
+# OUTPUT_FILE ([FILE]) :  Name of file in which the output is going to be written 	{OK_SECHIBA}
+OUTPUT_FILE =  sechiba_history.nc 
+
+# WRITE_STEP ([seconds]) :  Frequency in seconds at which to WRITE output 	{OK_SECHIBA}
+WRITE_STEP =  86400. 
+
+# SECHIBA_HISTLEVEL ([-]) :  SECHIBA history output level (0..10) 	{OK_SECHIBA and HF}
+SECHIBA_HISTLEVEL =  5 
+
+# SECHIBA_HISTFILE2 ([FLAG]) :  Flag to switch on histfile 2 for SECHIBA (hi-frequency ?) 	{OK_SECHIBA}
+SECHIBA_HISTFILE2 =  n 
+
+# WRITE_STEP2 ([seconds]) :  Frequency in seconds at which to WRITE output 	{SECHIBA_HISTFILE2}
+WRITE_STEP2 =  1800.0 
+
+# SECHIBA_OUTPUT_FILE2 ([FILE]) :  Name of file in which the output number 2 is going to be written 	{SECHIBA_HISTFILE2}
+SECHIBA_OUTPUT_FILE2 =  sechiba_out_2.nc 
+
+# SECHIBA_HISTLEVEL2 ([-] ) :  SECHIBA history 2 output level (0..10) 	{SECHIBA_HISTFILE2}
+SECHIBA_HISTLEVEL2 =  1 
+
+# STOMATE_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_OUTPUT_FILE =  stomate_history.nc 
+
+# STOMATE_HIST_DT ([days]) :  STOMATE history time step 	{OK_STOMATE}
+STOMATE_HIST_DT =  10. 
+
+# STOMATE_IPCC_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_IPCC_OUTPUT_FILE =  stomate_ipcc_history.nc 
+
+# STOMATE_IPCC_HIST_DT ([days]) :  STOMATE IPCC history time step 	{OK_STOMATE}
+STOMATE_IPCC_HIST_DT =  0. 
+
+# STOMATE_HISTLEVEL ([-]) :  STOMATE history output level (0..10) 	{OK_STOMATE}
+STOMATE_HISTLEVEL =  10 
+
+# ECCENTRICITY ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+ECCENTRICITY =  0.016724 
+
+# PERIHELIE ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+PERIHELIE =  102.04 
+
+# OBLIQUITY ([Degrees]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+OBLIQUITY =  23.446 
+
+# OK_THROUGHFALL_PFT ([FLAG]) :  Activate use of PERCENT_THROUGHFALL_PFT 	{HYDROL_CWRR}
+OK_THROUGHFALL_PFT =  FALSE 
+
+# PFT_TO_MTC ([-]) :  correspondance array linking a PFT to MTC 	{OK_SECHIBA or OK_STOMATE}
+PFT_TO_MTC =  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 
+
+# PFT_NAME ([-]) :  Name of a PFT 	{OK_SECHIBA or OK_STOMATE}
+PFT_NAME =  bare ground, tropical broad-leaved evergreen, tropical broad-leaved raingreen, temperate needleleaf evergreen, temperate broad-leaved evergreen, temperate broad-leaved summergreen,  boreal needleleaf evergreen, boreal broad-leaved summergreen, boreal needleleaf summergreen,  C3 grass, C4 grass, C3 agriculture, C4 agriculture  
+
+# LEAF_TAB ([-] ) :  leaf type : 1 	{OK_STOMATE}
+LEAF_TAB =  4, 1, 1, 2, 1, 1, 2, 1, 2, 3, 3, 3, 3  
+
+# PHENO_MODEL ([-] ) :  which phenology model is used? (tabulated)  	{OK_STOMATE}
+PHENO_MODEL =  none, none, moi, none, none, ncdgdd, none, ncdgdd, ngd, moigdd, moigdd, moigdd, moigdd 
+
+# SECHIBA_LAI ([m^2/m^2]) :  laimax for maximum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# LLAIMIN ([m^2/m^2]) :  laimin for minimum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+LLAIMIN =  0., 8., 0., 4., 4.5, 0., 4., 0., 0., 0., 0., 0., 0. 
+
+# SLOWPROC_HEIGHT ([m] ) :  prescribed height of vegetation  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1., 1. 
+
+# TYPE_OF_LAI ([-]) :  Type of behaviour of the LAI evolution algorithm  	{OK_SECHIBA}
+TYPE_OF_LAI =  inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter 
+
+# NATURAL ([BOOLEAN]) :  natural?  	{OK_SECHIBA, OK_STOMATE}
+NATURAL =  y, y, y, y, y, y, y, y, y, y, y, n, n  
+
+# IS_C4 ([BOOLEAN]) :  flag for C4 vegetation types 	{OK_SECHIBA or OK_STOMATE}
+IS_C4 =  n, n, n, n, n, n, n, n, n, n, n, y, n, y 
+
+# VCMAX_FIX ([micromol/m^2/s] ) :  values used for vcmax when STOMATE is not activated 	{OK_SECHIBA and NOT(OK_STOMATE)}
+VCMAX_FIX =  0., 40., 50., 30., 35., 40.,30., 40., 35., 60., 60., 70., 70. 
+
+# DOWNREGULATION_CO2_COEFF ([-]) :  coefficient for CO2 downregulation (unitless) 	{OK_CO2}
+DOWNREGULATION_CO2_COEFF =  0., 0.38, 0.38, 0.28, 0.28, 0.28, 0.22, 0.22, 0.22, 0.26, 0.26, 0.26, 0.26 
+
+# E_KmC ([J mol-1]) :  Energy of activation for KmC 	{OK_CO2}
+E_KmC =  -9999.,  79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430. 
+
+# E_KmO ([J mol-1]) :  Energy of activation for KmO 	{OK_CO2}
+E_KmO =  -9999., 36380.,  36380.,  36380.,  36380.,  36380., 36380., 36380., 36380., 36380., 36380., 36380., 36380. 
+
+# E_gamma_star ([J mol-1]) :  Energy of activation for gamma_star 	{OK_CO2}
+E_gamma_star =  -9999., 37830.,  37830.,  37830.,  37830.,  37830., 37830., 37830., 37830., 37830., 37830., 37830., 37830. 
+
+# E_Vcmax ([J mol-1]) :  Energy of activation for Vcmax 	{OK_CO2}
+E_Vcmax =  -9999., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 67300., 71513., 67300. 
+
+# E_Jmax ([J mol-1]) :  Energy of activation for Jmax 	{OK_CO2}
+E_Jmax =  -9999., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 77900., 49884., 77900.  
+
+# aSV ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+aSV =  -9999., 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 641.64, 668.39, 641.64  
+
+# bSV ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+bSV =  -9999., -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, 0., -1.07, 0.  
+
+# TPHOTO_MIN ([-]) :  minimum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MIN =  -9999.,  -4., -4., -4., -4.,-4.,-4., -4., -4., -4., -4., -4., -4. 
+
+# TPHOTO_MAX ([-]) :  maximum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MAX =  -9999., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55. 
+
+# aSJ ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+aSJ =  -9999., 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 630., 659.70, 630.  
+
+# bSJ ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+bSJ =  -9999., -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, 0., -0.75, 0.  
+
+# D_Vcmax ([J mol-1]) :  Energy of deactivation for Vcmax 	{OK_CO2}
+D_Vcmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# D_Jmax ([J mol-1]) :  Energy of deactivation for Jmax 	{OK_CO2}
+D_Jmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# E_Rd ([J mol-1]) :  Energy of activation for Rd 	{OK_CO2}
+E_Rd =  -9999., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390. 
+
+# VCMAX25 ([micromol/m^2/s]) :  Maximum rate of Rubisco activity-limited carboxylation at 25Â°C 	{OK_STOMATE}
+VCMAX25 =  -9999., 65., 65., 35., 45., 55., 35., 45., 35., 70., 70., 70., 70. 
+
+# ARJV ([mu mol e- (mu mol CO2)-1]) :  a coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+ARJV =  -9999., 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 1.715, 2.59, 1.715 
+
+# BRJV ([(mu mol e- (mu mol CO2)-1) (Â°C)-1]) :  b coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+BRJV =  -9999., -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, 0., -0.035, 0. 
+
+# KmC25 ([ubar]) :  MichaelisâMenten constant of Rubisco for CO2 at 25Â°C 	{OK_CO2}
+KmC25 =  -9999., 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 650., 404.9, 650. 
+
+# KmO25 ([ubar]) :  MichaelisâMenten constant of Rubisco for O2 at 25Â°C 	{OK_CO2}
+KmO25 =  -9999., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 450000., 278400., 450000. 
+
+# gamma_star25 ([ubar]) :  Ci-based CO2 compensation point in the absence of Rd at 25Â°C (ubar) 	{OK_CO2}
+gamma_star25 =  -9999., 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75 
+
+# a1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+a1 =  -9999., 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85 
+
+# b1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+b1 =  -9999., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.20, 0.14, 0.20 
+
+# g0 ([mol mâ2 sâ1 barâ1]) :  Residual stomatal conductance when irradiance approaches zero  	{OK_CO2}
+g0 =  -9999., 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.01875, 0.00625, 0.01875  
+
+# h_protons ([mol mol-1]) :  Number of protons required to produce one ATP 	{OK_CO2}
+h_protons =  -9999., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4.  
+
+# fpsir ([-]) :  Fraction of PSII eâ transport rate partitioned to the C4 cycle 	{OK_CO2}
+fpsir =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.4, -9999., 0.4  
+
+# fQ ([-]) :  Fraction of electrons at reduced plastoquinone that follow the Q-cycle 	{OK_CO2}
+fQ =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 1., -9999., 1. 
+
+# fpseudo ([-]) :  Fraction of electrons at PSI that follow pseudocyclic transport  	{OK_CO2}
+fpseudo =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# kp ([mol mâ2 sâ1 barâ1]) :  Initial carboxylation efficiency of the PEP carboxylase 	{OK_CO2}
+kp =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.7, -9999., 0.7 
+
+# alpha ([-]) :  Fraction of PSII activity in the bundle sheath 	{OK_CO2}
+alpha =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# gbs ([mol mâ2 sâ1 barâ1]) :  Bundle-sheath conductance 	{OK_CO2}
+gbs =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.003, -9999., 0.003 
+
+# theta ([â]) :  Convexity factor for response of J to irradiance 	{OK_CO2}
+theta =  -9999., 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7 
+
+# alpha_LL ([mol eâ (mol photon)â1]) :  Conversion efficiency of absorbed light into J at strictly limiting light 	{OK_CO2}
+alpha_LL =  -9999., 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372 
+
+# EXT_COEFF ([-]) :  extinction coefficient of the Monsi&Seaki relationship (1953) 	{OK_SECHIBA or OK_STOMATE}
+EXT_COEFF =  .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5 
+
+# HYDROL_HUMCSTE ([m]) :  Root profile 	{OK_SECHIBA}
+HYDROL_HUMCSTE =  humcste_cwrr or humcste_mct depending on flag HYDROL_CWRR 
+
+# PREF_SOIL_VEG ([-]        ) :  The soil tile number for each vegetation 	{OK_SECHIBA or OK_STOMATE}
+PREF_SOIL_VEG =  1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 
+
+# RSTRUCT_CONST ([s/m]) :  Structural resistance  	{OK_SECHIBA}
+RSTRUCT_CONST =  0.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0,  2.5,  2.0,  2.0,  2.0 
+
+# KZERO ([kg/m^2/s]) :  A vegetation dependent constant used in the calculation of the surface resistance. 	{OK_SECHIBA}
+KZERO =  0.0, 12.E-5, 12.E-5, 12.e-5, 12.e-5, 25.e-5, 12.e-5,25.e-5, 25.e-5, 30.e-5, 30.e-5, 30.e-5, 30.e-5  
+
+# RVEG_PFT ([-]) :  Artificial parameter to increase or decrease canopy resistance. 	{OK_SECHIBA}
+RVEG_PFT =  1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1. 
+
+# WMAX_VEG ([kg/m^3]) :  Maximum field capacity for each of the vegetations (Temporary): max quantity of water 	{OK_SECHIBA}
+WMAX_VEG =  150., 150., 150., 150., 150., 150., 150.,150., 150., 150., 150., 150., 150. 
+
+# PERCENT_THROUGHFALL_PFT ([%]) :  Percent by PFT of precip that is not intercepted by the canopy 	{OK_SECHIBA OR HYDROL_CWRR}
+PERCENT_THROUGHFALL_PFT =  30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 
+
+# SNOWA_AGED ([-]) :  Minimum snow albedo value for each vegetation type after aging (dirty old snow) 	{OK_SECHIBA}
+SNOWA_AGED =  0.35, 0., 0., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.18, 0.18, 0.18, 0.18 
+
+# SNOWA_DEC ([-]) :  Decay rate of snow albedo value for each vegetation type as it will be used in condveg_snow 	{OK_SECHIBA}
+SNOWA_DEC =  0.45, 0.,  0., 0.06, 0.06, 0.11, 0.06, 0.11, 0.11, 0.52,0.52, 0.52, 0.52 
+
+# ALB_LEAF_VIS ([-]) :  leaf albedo of vegetation type, visible albedo 	{OK_SECHIBA}
+ALB_LEAF_VIS =  .00, .04, .06, .06, .06,.06, .06, .06, .06, .10, .10, .10, .10 
+
+# ALB_LEAF_NIR ([-]) :  leaf albedo of vegetation type, near infrared albedo 	{OK_SECHIBA}
+ALB_LEAF_NIR =  .00, .20, .22, .22, .22,.22, .22, .22, .22, .30, .30, .30, .30  
+
+# ISO_ACTIVITY ([-]) :  Biogenic activity for each age class : isoprene 	{DIFFUCO_OK_INCA}
+ISO_ACTIVITY =  0.5, 1.5, 1.5, 0.5 
+
+# METHANOL_ACTIVITY ([-]) :  Isoprene emission factor for each age class : methanol 	{DIFFUCO_OK_INCA}
+METHANOL_ACTIVITY =  1., 1., 0.5, 0.5 
+
+# EM_FACTOR_ISOPRENE ([ugC/g/h] ) :  Isoprene emission factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_ISOPRENE =  0., 24., 24., 8., 16., 45., 8., 8., 8., 16., 24., 5., 5. 
+
+# EM_FACTOR_MONOTERPENE ([ugC/g/h] ) :  Monoterpene emission factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MONOTERPENE =  0., 0.8, 0.8, 2.4, 1.2, 0.8, 2.4, 2.4, 2.4, 0.8, 1.2, 0.2, 0.2 
+
+# EM_FACTOR_ORVOC ([ugC/g/h]  ) :  ORVOC emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_ORVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_OVOC ([ugC/g/h]        ) :  OVOC emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_OVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_MBO ([ugC/g/h]  ) :  MBO emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MBO =  0., 0., 0., 20.0, 0., 0., 0., 0., 0., 0., 0., 0., 0. 
+
+# EM_FACTOR_METHANOL ([ugC/g/h]  ) :  Methanol emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_METHANOL =  0., 0.6, 0.6, 1.8, 0.9, 0.6, 1.8, 1.8, 1.8, 0.6, 0.9, 2., 2. 
+
+# EM_FACTOR_ACETONE ([ugC/g/h]     ) :  Acetone emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETONE =  0., 0.29, 0.29, 0.87, 0.43, 0.29, 0.87, 0.87, 0.87, 0.29, 0.43, 0.07, 0.07  
+
+# EM_FACTOR_ACETAL ([ugC/g/h]  ) :  Acetaldehyde emissions factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_ACETAL =  0., 0.1, 0.1, 0.3, 0.15, 0.1, 0.3, 0.3, 0.3, 0.1, 0.15, 0.025, 0.025 
+
+# EM_FACTOR_FORMAL ([ugC/g/h]  ) :  Formaldehyde emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_FORMAL =  0., 0.07, 0.07, 0.2, 0.1, 0.07, 0.2, 0.2, 0.2, 0.07, 0.1, 0.017, 0.017 
+
+# EM_FACTOR_ACETIC ([ugC/g/h]  ) :  Acetic Acid emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETIC =  0., 0.002, 0.002, 0.006, 0.003, 0.002, 0.006, 0.006, 0.006, 0.002, 0.003, 0.0005, 0.0005 
+
+# EM_FACTOR_FORMIC ([ugC/g/h]  ) :  Formic Acid emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_FORMIC =  0., 0.01, 0.01, 0.03, 0.015, 0.01, 0.03, 0.03, 0.03, 0.01, 0.015, 0.0025, 0.0025  
+
+# EM_FACTOR_NO_WET ([ngN/m^2/s]) :  NOx emissions factor wet soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_WET =  0., 2.6, 0.06, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.36, 0.36, 0.36, 0.36 
+
+# EM_FACTOR_NO_DRY ([ngN/m^2/s] ) :  NOx emissions factor dry soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_DRY =  0., 8.60, 0.40, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 2.65, 2.65, 2.65, 2.65 
+
+# LARCH ([-]  ) :  Larcher 1991 SAI/LAI ratio 	{DIFFUCO_OK_INCA }
+LARCH =  0., 0.015, 0.015, 0.003, 0.005, 0.005, 0.003, 0.005, 0.003, 0.005, 0.005, 0.008, 0.008 
+
+# SLA ([m^2/gC]) :  specif leaf area  	{OK_STOMATE}
+SLA =  1.5E-2, 1.53E-2, 2.6E-2, 9.26E-3, 2E-2, 2.6E-2, 9.26E-3, 2.6E-2, 1.9E-2, 2.6E-2, 2.6E-2, 2.6E-2, 2.6E-2 
+
+# S0  ([-]    ) :  Standard sapwood allocation  	{OK_STOMATE }
+S0  =  -9999., .25, .25, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30 
+
+# MAINT_RESP_SLOPE_C ([-]) :  slope of maintenance respiration coefficient (1/K), constant c of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_C =  -9999., .20, .20, .16, .16, .16, .16, .16, .16, .16, .12, .16, .12  
+
+# MAINT_RESP_SLOPE_B ([-]) :  slope of maintenance respiration coefficient (1/K), constant b of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_B =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, -.00133, .0, -.00133, .0  
+
+# MAINT_RESP_SLOPE_A ([-]) :  slope of maintenance respiration coefficient (1/K), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_A =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0     
+
+# CM_ZERO_LEAF ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for leaves, tabulated 	{OK_STOMATE}
+CM_ZERO_LEAF =  -9999., 2.35E-3, 2.62E-3, 1.01E-3, 2.35E-3, 2.62E-3, 1.01E-3,2.62E-3, 2.05E-3, 2.62E-3, 2.62E-3, 2.62E-3, 2.62E-3 
+
+# CM_ZERO_SAPABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C,for sapwood above, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPABOVE =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# CM_ZERO_SAPBELOW ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for sapwood below, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPBELOW =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4  
+
+# CM_ZERO_HEARTABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for heartwood above, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTABOVE =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_HEARTBELOW ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C,for heartwood below, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTBELOW =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_ROOT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for roots, tabulated 	{OK_STOMATE}
+CM_ZERO_ROOT =  -9999.,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3 
+
+# CM_ZERO_FRUIT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for fruits, tabulated 	{OK_STOMATE}
+CM_ZERO_FRUIT =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4     
+
+# CM_ZERO_CARBRES ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for carbohydrate reserve, tabulated 	{OK_STOMATE}
+CM_ZERO_CARBRES =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# FLAM ([-]) :  flamability: critical fraction of water holding capacity 	{OK_STOMATE}
+FLAM =  -9999., .15, .25, .25, .25, .25, .25, .25, .25, .25, .25, .35, .35 
+
+# RESIST ([-]) :  fire resistance 	{OK_STOMATE}
+RESIST =  -9999., .95, .90, .12, .50, .12, .12, .12, .12, .0, .0, .0, .0  
+
+# COEFF_LCCHANGE_1 ([-]) :  Coeff of biomass export for the year 	{OK_STOMATE}
+COEFF_LCCHANGE_1 =  -9999., 0.897, 0.897, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597  
+
+# COEFF_LCCHANGE_10 ([-]) :  Coeff of biomass export for the decade 	{OK_STOMATE}
+COEFF_LCCHANGE_10 =  -9999., 0.103, 0.103, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.403, 0.299, 0.403 
+
+# COEFF_LCCHANGE_100 ([-]) :  Coeff of biomass export for the century 	{OK_STOMATE}
+COEFF_LCCHANGE_100 =  -9999., 0., 0., 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0., 0.104, 0. 
+
+# LAI_MAX ([m^2/m^2]) :  maximum LAI, PFT-specific 	{OK_STOMATE}
+LAI_MAX =  -9999., 7., 7., 5., 5., 5., 4.5, 4.5, 3.0, 2.5, 2.5, 5.,5.  
+
+# PHENO_TYPE ([-]) :  type of phenology, 0 	{OK_STOMATE}
+PHENO_TYPE =  0, 1, 3, 1, 1, 2, 1, 2, 2, 4, 4, 2, 3 
+
+# PHENO_GDD_CRIT_C ([-]) :  critical gdd, tabulated (C), constant c of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_C =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 270., 400., 125., 400. 
+
+# PHENO_GDD_CRIT_B ([-]) :  critical gdd, tabulated (C), constant b of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_B =  -9999., -9999., -9999., -9999., -9999., -9999., -9999.,-9999., -9999., 6.25, 0., 0., 0. 
+
+# PHENO_GDD_CRIT_A ([-]) :  critical gdd, tabulated (C), constant a of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_A =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.03125,  0., 0., 0. 
+
+# NGD_CRIT ([days]) :  critical ngd, tabulated. Threshold -5 degrees 	{OK_STOMATE}
+NGD_CRIT =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# NCDGDD_TEMP ([C] ) :  critical temperature for the ncd vs. gdd function in phenology 	{OK_STOMATE}
+NCDGDD_TEMP =  -9999., -9999., -9999., -9999., -9999., 5., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# HUM_FRAC ([%]) :  critical humidity (relative to min/max) for phenology 	{OK_STOMATE}
+HUM_FRAC =  -9999., -9999., .5, -9999., -9999., -9999., -9999., -9999.,  -9999., .5, .5, .5,.5      
+
+# HUM_MIN_TIME ([days]) :  minimum time elapsed since moisture minimum 	{OK_STOMATE}
+HUM_MIN_TIME =  -9999., -9999., 50., -9999., -9999., -9999., -9999., -9999., -9999., 35., 35., 75., 75. 
+
+# TAU_SAP ([days]) :  sapwood -> heartwood conversion time 	{OK_STOMATE}
+TAU_SAP =  -9999., 730., 730., 730., 730., 730., 730., 730., 730., -9999., -9999., -9999., -9999. 
+
+# TAU_FRUIT ([days]) :  fruit lifetime 	{OK_STOMATE}
+TAU_FRUIT =  -9999., 90., 90., 90., 90., 90., 90., 90., 90., -9999., -9999., -9999., -9999. 
+
+# ECUREUIL ([-]) :  fraction of primary leaf and root allocation put into reserve 	{OK_STOMATE}
+ECUREUIL =  -9999., .0, 1., .0, .0, 1., .0, 1., 1., 1., 1., 1., 1. 
+
+# ALLOC_MIN ([-]) :  minimum allocation above/below  	{OK_STOMATE}
+ALLOC_MIN =  -9999., 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, -9999., -9999., -9999., -9999.  
+
+# ALLOC_MAX ([-]) :  maximum allocation above/below  	{OK_STOMATE}
+ALLOC_MAX =  -9999., 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, -9999., -9999., -9999., -9999. 
+
+# DEMI_ALLOC  ([-]) :  mean allocation above/below  	{OK_STOMATE}
+DEMI_ALLOC  =  -9999., 5., 5., 5., 5., 5., 5., 5., 5., -9999., -9999., -9999., -9999. 
+
+# LEAFLIFE_TAB ([years]) :  leaf longevity 	{OK_STOMATE}
+LEAFLIFE_TAB =  -9999., .5, 2., .33, 1., 2., .33, 2., 2., 2., 2., 2., 2.  
+
+# LEAFFALL ([days]) :  length of death of leaves, tabulated  	{OK_STOMATE}
+LEAFFALL =  -9999., -9999., 10., -9999., -9999., 10., -9999., 10., 10., 10., 10., 10., 10.  
+
+# LEAFAGECRIT ([days]) :  critical leaf age, tabulated 	{OK_STOMATE}
+LEAFAGECRIT =  -9999., 730., 180., 910., 730., 180., 910., 180., 180., 120., 120., 90., 90.   
+
+# SENESCENCE_TYPE ([-]) :  type of senescence, tabulated 	{OK_STOMATE}
+SENESCENCE_TYPE =  none, none, dry, none, none, cold, none, cold, cold, mixed, mixed, mixed, mixed  
+
+# SENESCENCE_HUM ([-] ) :  critical relative moisture availability for senescence 	{OK_STOMATE}
+SENESCENCE_HUM =  -9999., -9999., .3, -9999., -9999., -9999., -9999., -9999., -9999., .2, .2, .3, .2  
+
+# NOSENESCENCE_HUM ([-]) :  relative moisture availability above which there is no humidity-related senescence 	{OK_STOMATE}
+NOSENESCENCE_HUM =  -9999., -9999., .8, -9999., -9999., -9999., -9999., -9999., -9999., .3, .3, .3, .3  
+
+# MAX_TURNOVER_TIME ([days]) :  maximum turnover time for grasse 	{OK_STOMATE}
+MAX_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999.,  80.,  80., 80., 80.  
+
+# MIN_TURNOVER_TIME ([days]) :  minimum turnover time for grasse  	{OK_STOMATE}
+MIN_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 10., 10., 10., 10.  
+
+# MIN_LEAF_AGE_FOR_SENESCENCE ([days] ) :  minimum leaf age to allow senescence g 	{OK_STOMATE}
+MIN_LEAF_AGE_FOR_SENESCENCE =  -9999., -9999., 90., -9999., -9999., 90., -9999., 60., 60., 30., 30., 30., 30. 
+
+# SENESCENCE_TEMP_C ([-]) :  critical temperature for senescence (C), constant c of aT^2+bT+c, tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_C =  -9999., -9999., -9999., -9999., -9999., 12., -9999., 7., 2., -1.375, 5., 5., 10. 
+
+# SENESCENCE_TEMP_B ([-]) :  critical temperature for senescence (C), constant b of aT^2+bT+c ,tabulated 	{OK_STOMATE }
+SENESCENCE_TEMP_B =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0., .1, 0., 0., 0. 
+
+# SENESCENCE_TEMP_A ([-] ) :  critical temperature for senescence (C), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_A =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0.,.00375, 0., 0., 0.  
+
+# GDD_SENESCENCE ([days] ) :  minimum gdd to allow senescence of crops   	{OK_STOMATE}
+GDD_SENESCENCE =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 950., 4000. 
+
+# RESIDENCE_TIME ([years]) :  residence time of trees 	{OK_DGVM and NOT(LPJ_GAP_CONST_MORT)}
+RESIDENCE_TIME =  -9999., 30.0, 30.0, 40.0, 40.0, 40.0, 80.0, 80.0, 80.0, 0.0, 0.0, 0.0, 0.0  
+
+# TMIN_CRIT ([C]) :  critical tmin, tabulated 	{OK_STOMATE}
+TMIN_CRIT =  -9999.,  0.0, 0.0, -30.0, -14.0, -30.0, -45.0, -45.0, -9999., -9999., -9999., -9999., -9999. 
+
+# TCM_CRIT ([C]) :  critical tcm, tabulated  	{OK_STOMATE}
+TCM_CRIT =  -9999., -9999., -9999., 5.0, 15.5, 15.5, -8.0, -8.0, -8.0, -9999., -9999., -9999., -9999. 
+
+# HERBIVORES ([FLAG]) :  herbivores allowed? 	{OK_STOMATE }
+HERBIVORES =  n 
+
+# TREAT_EXPANSION ([FLAG]) :  treat expansion of PFTs across a grid cell? 	{OK_STOMATE }
+TREAT_EXPANSION =  n 
+
+# LPJ_GAP_CONST_MORT ([FLAG]) :  prescribe mortality if not using DGVM? 	{OK_STOMATE}
+LPJ_GAP_CONST_MORT =  y 
+
+# HARVEST_AGRI ([FLAG]) :  Harvest model for agricultural PFTs. 	{OK_STOMATE }
+HARVEST_AGRI =  y 
+
+# FIRE_DISABLE ([FLAG]) :  no fire allowed 	{OK_STOMATE }
+FIRE_DISABLE =  n 
+
+# SPINUP_ANALYTIC (BOOLEAN    ) :  Activation of the analytic resolution of the spinup. 	{OK_STOMATE}
+SPINUP_ANALYTIC =  n 
+
+# AGRICULTURE ([FLAG]) :  agriculture allowed? 	{OK_SECHIBA or OK_STOMATE}
+AGRICULTURE =  y 
+
+# IMPOSE_VEG ([FLAG]) :  Should the vegetation be prescribed ? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_VEG =  n 
+
+# IMPOSE_SOILT ([FLAG]) :  Should the soil type be prescribed ? 	{IMPOSE_VEG}
+IMPOSE_SOILT =  n 
+
+# LAI_MAP ([FLAG]) :  Read the LAI map 	{OK_SECHIBA or OK_STOMATE}
+LAI_MAP =  n 
+
+# SLOWPROC_LAI_OLD_INTERPOL ([FLAG]) :  Flag to use old "interpolation" of LAI 	{LAI_MAP}
+SLOWPROC_LAI_OLD_INTERPOL =  n 
+
+# LAND_USE ([FLAG]) :  Read a land_use vegetation map 	{OK_SECHIBA or OK_STOMATE}
+LAND_USE =  y 
+
+# VEGET_REINIT ([FLAG] ) :  booleen to indicate that a new LAND USE file will be used. 	{LAND_USE}
+VEGET_REINIT =  y 
+
+# LAND_COVER_CHANGE ([FLAG] ) :  treat land use modifications 	{LAND_USE}
+LAND_COVER_CHANGE =  n 
+
+# VEGET_YEAR ([FLAG] ) :  Year of the land_use vegetation map to be read 	{LAND_USE}
+VEGET_YEAR =  1 
+
+# SLOWPROC_VEGET_OLD_INTERPOL ([FLAG] ) :  Flag to use old "interpolation" of vegetation map. 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+SLOWPROC_VEGET_OLD_INTERPOL =  n 
+
+# MAXMASS_SNOW ([kg/m^2]  ) :  The maximum mass of a snow 	{OK_SECHIBA or HYDROL_CWRR}
+MAXMASS_SNOW =  3000. 
+
+# SNOWCRI ([kg/m^2]  ) :  Sets the amount above which only sublimation occures  	{OK_SECHIBA or HYDROL_CWRR}
+SNOWCRI =  1.5 
+
+# MIN_WIND ([m/s]) :  Minimum wind speed 	{OK_SECHIBA}
+MIN_WIND =  0.1 
+
+# MAX_SNOW_AGE ([days?]) :  Maximum period of snow aging  	{OK_SECHIBA}
+MAX_SNOW_AGE =  50. 
+
+# SNOW_TRANS ([m]   ) :  Transformation time constant for snow 	{OK_SECHIBA}
+SNOW_TRANS =  0.3 
+
+# Z0_OVER_HEIGHT ([-]   ) :  to get z0 from height  	{OK_SECHIBA }
+Z0_OVER_HEIGHT =  1/16. 
+
+# HEIGHT_DISPLACEMENT ([m]  ) :  Magic number which relates the height to the displacement height. 	{OK_SECHIBA }
+HEIGHT_DISPLACEMENT =  0.75 
+
+# Z0_BARE ([m]   ) :  bare soil roughness length 	{OK_SECHIBA }
+Z0_BARE =  0.01  
+
+# Z0_ICE ([m]   ) :  ice roughness length 	{OK_SECHIBA }
+Z0_ICE =  0.001 
+
+# TCST_SNOWA ([days]) :  Time constant of the albedo decay of snow 	{OK_SECHIBA }
+TCST_SNOWA =  5.0  
+
+# SNOWCRI_ALB ([cm]  ) :  Critical value for computation of snow albedo 	{OK_SECHIBA}
+SNOWCRI_ALB =  10.  
+
+# VIS_DRY ([-]  ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+VIS_DRY =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.27 
+
+# NIR_DRY ([-]   ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_DRY =  0.48, 0.44, 0.40, 0.36, 0.32, 0.28, 0.24, 0.20, 0.55 
+
+# VIS_WET  ([-]   ) :  The correspondance table for the soil color numbers and their albedo 	{OK_SECHIBA  }
+VIS_WET  =  0.12, 0.11, 0.10, 0.09, 0.08, 0.07, 0.06, 0.05, 0.15 
+
+# NIR_WET ([-]    ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_WET =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.31 
+
+# ALBSOIL_VIS ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_VIS =  0.18, 0.16, 0.16, 0.15, 0.12, 0.105, 0.09, 0.075, 0.25 
+
+# ALBSOIL_NIR  ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_NIR  =  0.36, 0.34, 0.34, 0.33, 0.30, 0.25, 0.20, 0.15, 0.45 
+
+# ALB_DEADLEAF  ([-]     ) :  albedo of dead leaves, VIS+NIR  	{OK_SECHIBA }
+ALB_DEADLEAF  =  0.12, 0.35 
+
+# ALB_ICE ([-]  ) :  albedo of ice, VIS+NIR 	{OK_SECHIBA}
+ALB_ICE =  0.60, 0.20 
+
+# CONDVEG_SNOWA ([-]) :  The snow albedo used by SECHIBA 	{OK_SECHIBA}
+CONDVEG_SNOWA =  1.E+20 
+
+# ALB_BARE_MODEL ([FLAG]) :  Switch bare soil albedo dependent (if TRUE) on soil wetness 	{OK_SECHIBA}
+ALB_BARE_MODEL =  n 
+
+# Z0CDRAG_AVE ([FLAG]) :  Average method for z0 	{OK_SECHIBA}
+Z0CDRAG_AVE =  y 
+
+# IMPOSE_AZE ([FLAG]) :  Should the surface parameters be prescribed 	{OK_SECHIBA}
+IMPOSE_AZE =  n 
+
+# CONDVEG_Z0 ([m]) :  Surface roughness 	{IMPOSE_AZE}
+CONDVEG_Z0 =  0.15 
+
+# ROUGHHEIGHT ([m] ) :  Height to be added to the height of the first level 	{IMPOSE_AZE}
+ROUGHHEIGHT =  0.0 
+
+# CONDVEG_ALBVIS ([-]) :  SW visible albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBVIS =  0.25 
+
+# CONDVEG_ALBNIR ([-]  ) :  SW near infrared albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBNIR =  0.25 
+
+# CONDVEG_EMIS ([-] ) :  Emissivity of the surface for LW radiation 	{IMPOSE_AZE}
+CONDVEG_EMIS =  1.0 
+
+# NLAI ([-]  ) :  Number of LAI levels 	{OK_SECHIBA}
+NLAI =  20 
+
+# LAIMAX ([m^2/m^2]   ) :  Maximum LAI 	{OK_SECHIBA}
+LAIMAX =   
+
+# DEW_VEG_POLY_COEFF ([-]   ) :  coefficients of the polynome of degree 5 for the dew 	{OK_SECHIBA}
+DEW_VEG_POLY_COEFF =  0.887773, 0.205673, 0.110112, 0.014843, 0.000824, 0.000017  
+
+# DOWNREGULATION_CO2 ([FLAG]   ) :  Activation of CO2 downregulation 	{OK_SECHIBA}
+DOWNREGULATION_CO2 =  n  
+
+# DOWNREGULATION_CO2_BASELEVEL ([ppm]   ) :  CO2 base level 	{OK_SECHIBA }
+DOWNREGULATION_CO2_BASELEVEL =  280. 
+
+# CLAYFRACTION_DEFAULT ([-]   ) :  default fraction of clay 	{OK_SECHIBA }
+CLAYFRACTION_DEFAULT =  0.2  
+
+# MIN_VEGFRAC  ([-]  ) :  Minimal fraction of mesh a vegetation type can occupy  	{OK_SECHIBA }
+MIN_VEGFRAC  =  0.001  
+
+# STEMPDIAG_BID  ([K]) :  only needed for an initial LAI if there is no restart file 	{OK_SECHIBA }
+STEMPDIAG_BID  =  280. 
+
+# LAI_LEVEL_DEPTH ([-]  ) :   	{OK_CO2}
+LAI_LEVEL_DEPTH =  0.15 
+
+# Oi ([ubar]  ) :  Intercellular oxygen partial pressure 	{OK_CO2}
+Oi =  210000. 
+
+# TOO_LONG  ([days]   ) :  longest sustainable time without regeneration (vernalization) 	{OK_STOMATE}
+TOO_LONG  =  5. 
+
+# TAU_FIRE  ([days]    ) :  Time scale for memory of the fire index (days). Validated for one year in the DGVM.  	{OK_STOMATE }
+TAU_FIRE  =  30. 
+
+# LITTER_CRIT ([gC/m^2]  ) :  Critical litter quantity for fire 	{OK_STOMATE }
+LITTER_CRIT =  200. 
+
+# FIRE_RESIST_STRUCT ([-]  ) :   	{OK_STOMATE }
+FIRE_RESIST_STRUCT =  0.5 
+
+# CO2FRAC ([-]  ) :  What fraction of a burned plant compartment goes into the atmosphere 	{OK_STOMATE }
+CO2FRAC =  0.95, 0.95, 0., 0.3, 0., 0., 0.95, 0.95 
+
+# BCFRAC_COEFF ([-]  ) :   	{OK_STOMATE }
+BCFRAC_COEFF =  0.3, 1.3, 88.2  
+
+# FIREFRAC_COEFF  ([-]   ) :   	{OK_STOMATE }
+FIREFRAC_COEFF  =  0.45, 0.8, 0.6, 0.13 
+
+# AVAILABILITY_FACT  ([-]   ) :   	{OK_STOMATE }
+AVAILABILITY_FACT  =  0.1 
+
+# REF_GREFF ([1/year]  ) :  Asymptotic maximum mortality rate 	{OK_STOMATE }
+REF_GREFF =  0.035 
+
+# OK_MINRES ([FLAG]) :  Do we try to reach a minimum reservoir even if we are severely stressed? 	{OK_STOMATE }
+OK_MINRES =  y 
+
+# TAU_LEAFINIT ([days]  ) :  time to attain the initial foliage using the carbohydrate reserve  	{OK_STOMATE }
+TAU_LEAFINIT =  10. 
+
+# RESERVE_TIME_TREE  ([days]    ) :  maximum time during which reserve is used (trees)  	{OK_STOMATE }
+RESERVE_TIME_TREE  =  30. 
+
+# RESERVE_TIME_GRASS  ([days]   ) :  maximum time during which reserve is used (grasses)  	{OK_STOMATE }
+RESERVE_TIME_GRASS  =  20.  
+
+# R0 ([-]  ) :  Standard root allocation  	{OK_STOMATE }
+R0 =  0.3  
+
+# F_FRUIT ([-]    ) :  Standard fruit allocation 	{OK_STOMATE }
+F_FRUIT =  0.1  
+
+# ALLOC_SAP_ABOVE_GRASS  ([-]   ) :  fraction of sapwood allocation above ground  	{OK_STOMATE }
+ALLOC_SAP_ABOVE_GRASS  =  1.0  
+
+# MIN_LTOLSR  ([-]   ) :  extrema of leaf allocation fraction  	{OK_STOMATE }
+MIN_LTOLSR  =  0.2 
+
+# MAX_LTOLSR ([-]   ) :  extrema of leaf allocation fraction 	{OK_STOMATE }
+MAX_LTOLSR =  0.5 
+
+# Z_NITROGEN ([m]  ) :  scaling depth for nitrogen limitation  	{OK_STOMATE}
+Z_NITROGEN =  0.2  
+
+# LAI_MAX_TO_HAPPY ([-]  ) :   	{OK_STOMATE }
+LAI_MAX_TO_HAPPY =  0.5  
+
+# NLIM_TREF  ([C]  ) :   	{OK_STOMATE }
+NLIM_TREF  =  25.  
+
+# PIPE_TUNE1 ([-]    ) :  crown area  	{OK_STOMATE }
+PIPE_TUNE1 =  100.0 
+
+# PIPE_TUNE2  ([-]      ) :  height 	{OK_STOMATE }
+PIPE_TUNE2  =  40.0  
+
+# PIPE_TUNE3 ([-]    ) :  height 	{OK_STOMATE }
+PIPE_TUNE3 =  0.5  
+
+# PIPE_TUNE4 ([-]  ) :  needed for stem diameter 	{OK_STOMATE }
+PIPE_TUNE4 =  0.3  
+
+# PIPE_DENSITY  ([-]  ) :  Density 	{OK_STOMATE }
+PIPE_DENSITY  =  2.e5  
+
+# PIPE_K1  ([-]   ) :   	{OK_STOMATE }
+PIPE_K1  =  8.e3  
+
+# PIPE_TUNE_EXP_COEFF  ([-]   ) :  pipe tune exponential coeff  	{OK_STOMATE }
+PIPE_TUNE_EXP_COEFF  =  1.6  
+
+# PRECIP_CRIT  ([mm/year]  ) :  minimum precip 	{OK_STOMATE }
+PRECIP_CRIT  =  100. 
+
+# GDD_CRIT_ESTAB ([-]  ) :  minimum gdd for establishment of saplings 	{OK_STOMATE }
+GDD_CRIT_ESTAB =  150.  
+
+# FPC_CRIT ([-]  ) :  critical fpc, needed for light competition and establishment 	{OK_STOMATE }
+FPC_CRIT =  0.95 
+
+# ALPHA_GRASS ([-]   ) :  sapling characteristics : alpha's 	{OK_STOMATE }
+ALPHA_GRASS =  0.5 
+
+# ALPHA_TREE ([-]   ) :  sapling characteristics : alpha's  	{OK_STOMATE }
+ALPHA_TREE =  1. 
+
+# MASS_RATIO_HEART_SAP ([-]   ) :  mass ratio (heartwood+sapwood)/sapwood 	{OK_STOMATE }
+MASS_RATIO_HEART_SAP =  3. 
+
+# FRAC_GROWTHRESP ([-]) :  fraction of GPP which is lost as growth respiration 	{OK_STOMATE }
+FRAC_GROWTHRESP =  0.28 
+
+# TAU_HUM_MONTH ([days]  ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_MONTH =  20.  
+
+# TAU_HUM_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_WEEK =  7. 
+
+# TAU_T2M_MONTH ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_MONTH =  20. 
+
+# TAU_T2M_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_WEEK =  7. 
+
+# TAU_TSOIL_MONTH  ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_TSOIL_MONTH  =  20.  
+
+# TAU_SOILHUM_MONTH ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_SOILHUM_MONTH =  20.  
+
+# TAU_GPP_WEEK  ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GPP_WEEK  =  7.  
+
+# TAU_GDD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GDD =  40.  
+
+# TAU_NGD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_NGD =  50. 
+
+# COEFF_TAU_LONGTERM ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+COEFF_TAU_LONGTERM =  3.  
+
+# BM_SAPL_CARBRES  ([-]   ) :   	{OK_STOMATE }
+BM_SAPL_CARBRES  =  5.  
+
+# BM_SAPL_SAPABOVE ([-]    ) :   	{OK_STOMATE}
+BM_SAPL_SAPABOVE =  0.5  
+
+# BM_SAPL_HEARTABOVE  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTABOVE  =  2. 
+
+# BM_SAPL_HEARTBELOW  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTBELOW  =  2.  
+
+# INIT_SAPL_MASS_LEAF_NAT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_NAT =  0.1  
+
+# INIT_SAPL_MASS_LEAF_AGRI ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_AGRI =  1.  
+
+# INIT_SAPL_MASS_CARBRES ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_CARBRES =  5.  
+
+# INIT_SAPL_MASS_ROOT ([-]   ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_ROOT =  0.1  
+
+# INIT_SAPL_MASS_FRUIT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_FRUIT =  0.3  
+
+# CN_SAPL_INIT  ([-]   ) :   	{OK_STOMATE }
+CN_SAPL_INIT  =  0.5  
+
+# MIGRATE_TREE  ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_TREE  =  10000. 
+
+# MIGRATE_GRASS ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_GRASS =  10000. 
+
+# LAI_INITMIN_TREE ([m^2/m^2]  ) :   	{OK_STOMATE }
+LAI_INITMIN_TREE =  0.3 
+
+# LAI_INITMIN_GRASS  ([m^2/m^2]    ) :   	{OK_STOMATE }
+LAI_INITMIN_GRASS  =  0.1 
+
+# DIA_COEFF ([-]   ) :   	{OK_STOMATE }
+DIA_COEFF =  4., 0.5 
+
+# MAXDIA_COEFF ([-]   ) :   	{OK_STOMATE }
+MAXDIA_COEFF =  100., 0.01  
+
+# BM_SAPL_LEAF ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_LEAF =  4., 4., 0.8, 5.  
+
+# METABOLIC_REF_FRAC ([-]) :  	{OK_STOMATE }
+METABOLIC_REF_FRAC =  0.85   
+
+# Z_DECOMP ([m]   ) :  scaling depth for soil activity 	{OK_STOMATE }
+Z_DECOMP =  0.2 
+
+# CN ([-]  ) :  C/N ratio 	{OK_STOMATE }
+CN =  40., 40., 40., 40., 40., 40., 40., 40. 
+
+# LC  ([-]   ) :  Lignine/C ratio of the different plant parts 	{OK_STOMATE }
+LC  =  0.22, 0.35, 0.35, 0.35, 0.35, 0.22, 0.22, 0.22 
+
+# FRAC_SOIL_STRUCT_AA ([-]) :  frac_soil(istructural,iactive,iabove) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_AA =  0.55 
+
+# FRAC_SOIL_STRUCT_A  ([-]) :  frac_soil(istructural,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_A  =  0.45 
+
+# FRAC_SOIL_STRUCT_SA ([-]   ) :  frac_soil(istructural,islow,iabove) 	{OK_STOMATE}
+FRAC_SOIL_STRUCT_SA =  0.7   
+
+# FRAC_SOIL_STRUCT_SB ([-]   ) :  frac_soil(istructural,islow,ibelow)  	{OK_STOMATE }
+FRAC_SOIL_STRUCT_SB =  0.7   
+
+# FRAC_SOIL_METAB_AA  ([-]   ) :  frac_soil(imetabolic,iactive,iabove)  	{OK_STOMATE }
+FRAC_SOIL_METAB_AA  =  0.45  
+
+# FRAC_SOIL_METAB_AB  ([-]   ) :  frac_soil(imetabolic,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_METAB_AB  =  0.45   
+
+# METABOLIC_LN_RATIO ([-]   ) :   	{OK_STOMATE }
+METABOLIC_LN_RATIO =  0.018   
+
+# TAU_METABOLIC ([days] ) :   	{OK_STOMATE }
+TAU_METABOLIC =  0.066 
+
+# TAU_STRUCT  ([days]) :   	{OK_STOMATE }
+TAU_STRUCT  =  0.245  
+
+# SOIL_Q10 ([-]) :   	{OK_STOMATE }
+SOIL_Q10 =  0.69 ( 
+
+# TSOIL_REF ([C]   ) :   	{OK_STOMATE }
+TSOIL_REF =  30.  
+
+# LITTER_STRUCT_COEF  ([-]   ) :   	{OK_STOMATE }
+LITTER_STRUCT_COEF  =  3.  
+
+# MOIST_COEFF ([-]   ) :   	{OK_STOMATE }
+MOIST_COEFF =  1.1, 2.4, 0.29 
+
+# FRAC_TURNOVER_DAILY  ([-]) :   	{OK_STOMATE }
+FRAC_TURNOVER_DAILY  =  0.55 
+
+# TAX_MAX ([-]   ) :  maximum fraction of allocatable biomass used for maintenance respiration 	{OK_STOMATE }
+TAX_MAX =  0.8 
+
+# ALWAYS_INIT ([-]   ) :  take carbon from atmosphere if carbohydrate reserve too small?  	{OK_STOMATE }
+ALWAYS_INIT =  n  
+
+# MIN_GROWTHINIT_TIME  ([days]  ) :  minimum time since last beginning of a growing season 	{OK_STOMATE }
+MIN_GROWTHINIT_TIME  =  300.  
+
+# MOIAVAIL_ALWAYS_TREE ([-]   ) :  moisture availability above which moisture tendency doesn't matter  	{OK_STOMATE }
+MOIAVAIL_ALWAYS_TREE =  1.0  
+
+# MOIAVAIL_ALWAYS_GRASS  ([-]   ) :  moisture availability above which moisture tendency doesn't matter 	{OK_STOMATE }
+MOIAVAIL_ALWAYS_GRASS  =  0.6  
+
+# T_ALWAYS_ADD ([C]    ) :  monthly temp. above which temp. tendency doesn't matter  	{OK_STOMATE }
+T_ALWAYS_ADD =  10. 
+
+# GDDNCD_REF  ([-]   ) :   	{OK_STOMATE }
+GDDNCD_REF  =  603.  
+
+# GDDNCD_CURVE ([-]  ) :   	{OK_STOMATE }
+GDDNCD_CURVE =  0.0091  
+
+# GDDNCD_OFFSET ([-]  ) :   	{OK_STOMATE }
+GDDNCD_OFFSET =  64.  
+
+# BM_SAPL_RESCALE  ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_RESCALE  =  40.  
+
+# MAINT_RESP_MIN_VMAX ([-]  ) :   	{OK_STOMATE }
+MAINT_RESP_MIN_VMAX =  0.3 
+
+# MAINT_RESP_COEFF  ([-] ) :   	{OK_STOMATE }
+MAINT_RESP_COEFF  =  1.4  
+
+# FRAC_CARB_AP ([-]) :  frac carb coefficients from active pool: depends on clay content 	{OK_STOMATE }
+FRAC_CARB_AP =  0.004 
+
+# FRAC_CARB_SA ([-]) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SA =  0.42 
+
+# FRAC_CARB_SP ([-] ) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SP =  0.03 
+
+# FRAC_CARB_PA ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PA =  0.45 
+
+# FRAC_CARB_PS ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PS =  0.0 
+
+# ACTIVE_TO_PASS_CLAY_FRAC ([-] ) :   	{OK_STOMATE }
+ACTIVE_TO_PASS_CLAY_FRAC =  0.68   
+
+# CARBON_TAU_IACTIVE ( [days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IACTIVE =  0.149 
+
+# CARBON_TAU_ISLOW ([days]) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_ISLOW =  5.48 
+
+# CARBON_TAU_IPASSIVE ([days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IPASSIVE =  241. 
+
+# FLUX_TOT_COEFF ([days] ) :  	{OK_STOMATE }
+FLUX_TOT_COEFF =  1.2, 1.4,.75 
+
+# NEW_TURNOVER_TIME_REF ([days]  ) :   	{OK_STOMATE }
+NEW_TURNOVER_TIME_REF =  20.  
+
+# DT_TURNOVER_TIME  ([days]  ) :   	{OK_STOMATE }
+DT_TURNOVER_TIME  =  10. 
+
+# LEAF_AGE_CRIT_TREF ([days]  ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_TREF =  20.  
+
+# LEAF_AGE_CRIT_COEFF  ([-] ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_COEFF  =  1.5, 0.75, 10.  
+
+# VMAX_OFFSET  ([-]  ) :  offset (minimum relative vcmax) 	{OK_STOMATE }
+VMAX_OFFSET  =  0.3 
+
+# LEAFAGE_FIRSTMAX ([-] ) :  leaf age at which vmax attains vcmax_opt (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_FIRSTMAX =  0.03  
+
+# LEAFAGE_LASTMAX  ([-]  ) :  leaf age at which vmax falls below vcmax_opt (in fraction of critical leaf age)  	{OK_STOMATE }
+LEAFAGE_LASTMAX  =  0.5  
+
+# LEAFAGE_OLD  ([-]  ) :  leaf age at which vmax attains its minimum (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_OLD  =  1. 
+
+# GPPFRAC_DORMANCE  ([-]) :  rapport maximal GPP/GGP_max pour dormance 	{OK_STOMATE }
+GPPFRAC_DORMANCE  =  0.2  
+
+# TAU_CLIMATOLOGY ([days]) :  tau for "climatologic variables  	{OK_STOMATE }
+TAU_CLIMATOLOGY =  20 
+
+# HVC1  ([-]  ) :  parameters for herbivore activity 	{OK_STOMATE }
+HVC1  =  0.019 
+
+# HVC2  ([-]  ) :  parameters for herbivore activity  	{OK_STOMATE }
+HVC2  =  1.38 
+
+# LEAF_FRAC_HVC ([-] ) :  parameters for herbivore activity  	{OK_STOMATE }
+LEAF_FRAC_HVC =  0.33 
+
+# TLONG_REF_MAX ([K]  ) :  maximum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MAX =  303.1 
+
+# TLONG_REF_MIN  ([K]  ) :  minimum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MIN  =  253.1 
+
+# NCD_MAX_YEAR ([days]) :   	{OK_STOMATE }
+NCD_MAX_YEAR =  3.  
+
+# GDD_THRESHOLD  ([days] ) :   	{OK_STOMATE }
+GDD_THRESHOLD  =  5.  
+
+# GREEN_AGE_EVER  ([-]  ) :   	{OK_STOMATE }
+GREEN_AGE_EVER  =  2.  
+
+# GREEN_AGE_DEC ([-] ) :   	{OK_STOMATE }
+GREEN_AGE_DEC =  0.5  
+
+# ESTAB_MAX_TREE ([-]   ) :  Maximum tree establishment rate  	{OK_DGVM}
+ESTAB_MAX_TREE =  0.12  
+
+# ESTAB_MAX_GRASS ([-]  ) :  Maximum grass establishment rate 	{OK_DGVM}
+ESTAB_MAX_GRASS =  0.12  
+
+# ESTABLISH_SCAL_FACT ([-] ) :   	{OK_DGVM }
+ESTABLISH_SCAL_FACT =  5. 
+
+# MAX_TREE_COVERAGE  ([-] ) :   	{OK_DGVM }
+MAX_TREE_COVERAGE  =  0.98 
+
+# IND_0_ESTAB ([-]  ) :   	{OK_DGVM }
+IND_0_ESTAB =  0.2 
+
+# ANNUAL_INCREASE ([FLAG]) :  for diagnosis of fpc increase, compare today's fpc to last year's maximum (T) or to fpc of last time step (F)? 	{OK_DGVM}
+ANNUAL_INCREASE =  y 
+
+# MIN_COVER  ([-]  ) :  For trees, minimum fraction of crown area occupied  	{OK_DGVM}
+MIN_COVER  =  0.05  
+
+# IND_0  ([-]  ) :  initial density of individuals 	{OK_DGVM}
+IND_0  =  0.02  
+
+# MIN_AVAIL ([-]  ) :  minimum availability 	{OK_DGVM}
+MIN_AVAIL =  0.01 
+
+# RIP_TIME_MIN ([year]  ) :   	{OK_DGVM}
+RIP_TIME_MIN =  1.25  
+
+# NPP_LONGTERM_INIT ([gC/m^2/year]) :   	{OK_DGVM}
+NPP_LONGTERM_INIT =  10. 
+
+# EVERYWHERE_INIT ([-] ) :   	{OK_DGVM}
+EVERYWHERE_INIT =  0.05  
+
+# THERMOSOIL_NBLEV ((-)) :  Number of soil level 	{}
+THERMOSOIL_NBLEV =  7 
+
+# DRY_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}] ) :  Dry soil Heat capacity of soils 	{OK_SECHIBA }
+DRY_SOIL_HEAT_CAPACITY =  1.80e+6 
+
+# DRY_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}] ) :  Dry soil Thermal Conductivity of soils 	{OK_SECHIBA}
+DRY_SOIL_HEAT_COND =  0.40  
+
+# WET_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}]) :  Wet soil Heat capacity of soils  	{OK_SECHIBA}
+WET_SOIL_HEAT_CAPACITY =  3.03e+6 
+
+# WET_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Wet soil Thermal Conductivity of soils 	{OK_SECHIBA }
+WET_SOIL_HEAT_COND =  1.89  
+
+# SNOW_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Thermal Conductivity of snow 	{OK_SECHIBA  }
+SNOW_HEAT_COND =  0.3 
+
+# SNOW_DENSITY ([-] ) :  Snow density for the soil thermodynamics  	{OK_SECHIBA }
+SNOW_DENSITY =  330.0 
+
+# NOBIO_WATER_CAPAC_VOLUMETRI ([s/m^2]) :   	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+NOBIO_WATER_CAPAC_VOLUMETRI =  150. 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# CHOISNEL_DIFF_MIN ([kg/m^2/dt]) :  Diffusion constant for the slow regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MIN =  0.001 
+
+# CHOISNEL_DIFF_MAX ([kg/m^2/dt]) :  Diffusion constant for the fast regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MAX =  0.1 
+
+# CHOISNEL_DIFF_EXP ([-]) :  The exponential in the diffusion law 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_EXP =  1.5 
+
+# CHOISNEL_RSOL_CSTE ([s/m^2]) :  Constant in the computation of resistance for bare  soil evaporation  	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_RSOL_CSTE =  33.E3 
+
+# HCRIT_LITTER ([m]) :  Scaling depth for litter humidity 	{OK_SECHIBA and .NOT.(HYDROL_CWRR) }
+HCRIT_LITTER =  0.08  
+
+# SECHIBA_DAY ([days]) :  Time within the day simulated 	{OK_SECHIBA}
+SECHIBA_DAY =  0.0 
+
+# VEGET_UPDATE ([years]) :  Update vegetation frequency 	{LAND_USE}
+VEGET_UPDATE =  0Y 
+
+# SECHIBA_ZCANOP ([m]) :  Soil level used for canopy development (if STOMATE disactivated) 	{OK_SECHIBA and .NOT. OK_STOMATE  }
+SECHIBA_ZCANOP =  0.5 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# DT_SLOW ([seconds]) :  Time step of STOMATE and other slow processes 	{OK_STOMATE}
+DT_SLOW =  86400. 
+
+# SECHIBA_VEGMAX ([-]) :  Maximum vegetation distribution within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_VEGMAX =  0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0 
+
+# SECHIBA_FRAC_NOBIO ([-]) :  Fraction of other surface types within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_FRAC_NOBIO =  0.0 
+
+# SECHIBA_LAI ([-]) :  LAI for all vegetation types (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# SOIL_FRACTIONS ([-]) :  Fraction of the 3 soil types (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOILT}
+SOIL_FRACTIONS =  -9999._sechiba 
+
+# CLAY_FRACTION ([-] ) :  Fraction of the clay fraction (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOIL}
+CLAY_FRACTION =  0.2 
+
+# REINF_SLOPE ([-]) :  Slope coef for reinfiltration  	{IMPOSE_VEG}
+REINF_SLOPE =  0.1 
+
+# SLOWPROC_HEIGHT ([m]) :  Height for all vegetation types  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1.0, 1.0 
+
+# GET_SLOPE ([FLAG]) :  Read slopes from file and do the interpolation 	{}
+GET_SLOPE =  n 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(LAI_MAP)}
+LAI_FILE =  lai2D.nc 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAI_MAP}
+LAI_FILE =  lai2D.nc 
+
+# RENORM_LAI ([FLAG]) :  flag to force LAI renormelization 	{LAI_MAP}
+RENORM_LAI =  n 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAND_USE}
+VEGETATION_FILE =  PFTmap.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# SOILCLASS_FILE ([FILE]) :  Name of file from which soil types are read 	{NOT(IMPOSE_VEG)}
+SOILCLASS_FILE =  soils_param.nc 
+
+# SLOPE_NOREINF ([-]) :  See slope_noreinf above 	{}
+SLOPE_NOREINF =  0.5 
+
+# TOPOGRAPHY_FILE ([FILE]) :  Name of file from which the topography map is to be read 	{}
+TOPOGRAPHY_FILE =  cartepente2d_15min.nc 
+
+# SOILALB_FILE ([FILE]) :  Name of file from which the bare soil albedo 	{NOT(IMPOSE_AZE)}
+SOILALB_FILE =  soils_param.nc 
+
+# CDRAG_FROM_GCM ([FLAG]) :  Keep cdrag coefficient from gcm. 	{OK_SECHIBA}
+CDRAG_FROM_GCM =  y 
+
+# DIFFUCO_LEAFCI ([ppm]) :  Initial leaf CO2 level if not found in restart 	{OK_SECHIBA}
+DIFFUCO_LEAFCI =  233. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{}
+ALLOW_WEATHERGEN =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# HYDROL_OK_HDIFF ([FLAG]) :  do horizontal diffusion? 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)  }
+HYDROL_OK_HDIFF =  n 
+
+# HYDROL_SNOW ([kg/m^2]) :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE ([days]) :  Initial snow age if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO ([m]) :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE ([days]) :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_HUMR ([-]) :  Initial soil moisture stress if not found in restart 	{OK_SECHIBA }
+HYDROL_HUMR =  1.0 
+
+# HYDROL_BQSB ([kg/m^2]) :  Initial restart deep soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_BQSB =  999999.  
+
+# HYDROL_GQSB ([kg/m^2]) :  Initial upper soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_GQSB =  0.0 
+
+# HYDROL_DSG ([m]) :  Initial upper reservoir depth if not found in restart 	{OK_SECHIBA }
+HYDROL_DSG =  0.0 
+
+# HYDROL_QSV ([kg/m^2]) :  Initial water on canopy if not found in restart 	{OK_SECHIBA }
+HYDROL_QSV =  0.0 
+
+# HYDROL_DSP ([m]) :  Initial dry soil above upper reservoir if not found in restart 	{OK_SECHIBA }
+HYDROL_DSP =  999999. 
+
+# HYDROL_TAU_HDIFF ([seconds]) :  time scale (s) for horizontal diffusion of water 	{HYDROL_OK_HDIFF}
+HYDROL_TAU_HDIFF =  86400. 
+
+# CHECK_CWRR ([FLAG]) :  Should we check detailed CWRR water balance ? 	{HYDROL_CWRR}
+CHECK_CWRR =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{HYDROL_CWRR}
+DO_PONDS =  n 
+
+# CWRR_N_VANGENUCHTEN ([-]) :  Van genuchten coefficient n 	{HYDROL_CWRR}
+CWRR_N_VANGENUCHTEN =  1.89, 1.56, 1.31 
+
+# CWRR_A_VANGENUCHTEN ([1/mm]  ) :  Van genuchten coefficient a 	{HYDROL_CWRR}
+CWRR_A_VANGENUCHTEN =  0.0075, 0.0036, 0.0019 
+
+# VWC_RESIDUAL ([mm]  ) :  Residual soil water content 	{HYDROL_CWRR}
+VWC_RESIDUAL =  0.065, 0.078, 0.095 
+
+# VWC_SAT ([-]  ) :  Saturated soil water content 	{HYDROL_CWRR}
+VWC_SAT =  0.41, 0.43, 0.41 
+
+# CWRR_KS  ([mm/d]   ) :  Hydraulic conductivity Saturation 	{HYDROL_CWRR }
+CWRR_KS  =  1060.8, 249.6, 62.4 
+
+# WETNESS_TRANSPIR_MAX ([-]    ) :  Soil moisture above which transpir is max 	{HYDROL_CWRR}
+WETNESS_TRANSPIR_MAX =  0.5, 0.5, 0.5 
+
+# DRAINAGE_FACTOR_F ([-]   ) :  Max value of the permeability coeff at the bottom of the soil  	{HYDROL_CWRR}
+DRAINAGE_FACTOR_F =  1.0, 1.0, 1.0  
+
+# VWC_FC  ([-]   ) :  Volumetric water content field capacity 	{HYDROL_CWRR}
+VWC_FC  =  0.32, 0.32, 0.32 
+
+# VWC_WP ([-]   ) :  Volumetric water content Wilting pt 	{HYDROL_CWRR}
+VWC_WP =  0.10, 0.10, 0.10  
+
+# VWC_MIN_FOR_WET_ALB ([-]  ) :  Vol. wat. cont. above which albedo is cst 	{HYDROL_CWRR}
+VWC_MIN_FOR_WET_ALB =  0.25, 0.25, 0.25 
+
+# VWC_MAX_FOR_DRY_ALB ([-]   ) :  Vol. wat. cont. below which albedo is cst 	{HYDROL_CWRR}
+VWC_MAX_FOR_DRY_ALB =  0.1, 0.1, 0.1 
+
+# HYDROL_MOISTURE_CONTENT () :  Soil moisture on each soil tile and levels 	{HYDROL_CWRR       }
+HYDROL_MOISTURE_CONTENT =  0.3 
+
+# US_INIT () :  US_NVM_NSTM_NSLM 	{HYDROL_CWRR       }
+US_INIT =  0.0 
+
+# FREE_DRAIN_COEF () :  Coefficient for free drainage at bottom 	{HYDROL_CWRR       }
+FREE_DRAIN_COEF =  1.0, 1.0, 1.0 
+
+# WATER_TO_INFILT () :  Water to be infiltrated on top of the soil 	{HYDROL_CWRR    }
+WATER_TO_INFILT =  0.0 
+
+# EVAPNU_SOIL () :  Bare soil evap on each soil if not found in restart 	{HYDROL_CWRR  }
+EVAPNU_SOIL =  0.0 
+
+# HYDROL_SNOW () :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE () :  Initial snow age if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO () :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE () :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_QSV () :  Initial water on canopy if not found in restart 	{OK_SECHIBA}
+HYDROL_QSV =  0.0 
+
+# CWRR_NKS_N0  ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_N0  =  0.95 
+
+# CWRR_NKS_POWER ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_POWER =  0.34 
+
+# CWRR_AKS_A0  ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_A0  =  0.00012 
+
+# CWRR_AKS_POWER ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_POWER =  0.53 
+
+# KFACT_DECAY_RATE ([-]) :  Factor for Ks decay with depth 	{HYDROL_CWRR }
+KFACT_DECAY_RATE =  2.0 
+
+# KFACT_STARTING_DEPTH ([-]) :  Depth for compacted value of Ks  	{HYDROL_CWRR }
+KFACT_STARTING_DEPTH =  0.3 
+
+# KFACT_MAX ([-]) :  Maximum Factor for Ks increase due to vegetation 	{HYDROL_CWRR }
+KFACT_MAX =  10.0 
+
+# ROUTING_TIMESTEP ([seconds]) :  Time step of the routing scheme 	{RIVER_ROUTING}
+ROUTING_TIMESTEP =  86400. 
+
+# ROUTING_RIVERS ([-]) :  Number of rivers  	{RIVER_ROUTING}
+ROUTING_RIVERS =  50 
+
+# DO_FLOODINFILT ([FLAG]) :  Should floodplains reinfiltrate into the soil  	{RIVER_ROUTING}
+DO_FLOODINFILT =  n 
+
+# DO_SWAMPS ([FLAG]) :  Should we include swamp parameterization  	{RIVER_ROUTING}
+DO_SWAMPS =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{RIVER_ROUTING}
+DO_PONDS =  n 
+
+# SLOW_TCST ([days]) :  Time constant for the slow reservoir  	{RIVER_ROUTING }
+SLOW_TCST =  n 
+
+# FAST_TCST ([days]) :  Time constant for the fast reservoir  	{RIVER_ROUTING }
+FAST_TCST =  fast_tcst_cwrr or fast_tcst_chois depending on flag HYDROL_CWRR 
+
+# STREAM_TCST ([days]) :  Time constant for the stream reservoir  	{RIVER_ROUTING}
+STREAM_TCST =  stream_tcst_cwrr or stream_tcst_chois depending on flag HYDROL_CWRR 
+
+# FLOOD_TCST ([days]) :  Time constant for the flood reservoir  	{RIVER_ROUTING}
+FLOOD_TCST =  4.0 
+
+# SWAMP_CST ([-]) :  Fraction of the river that flows back to swamps  	{RIVER_ROUTING}
+SWAMP_CST =  0.2 
+
+# FLOOD_BETA ([-] ) :  Parameter to fix the shape of the floodplain   	{RIVER_ROUTING}
+FLOOD_BETA =  2.0 
+
+# POND_BETAP ([-] ) :  Ratio of the basin surface intercepted by ponds and the maximum surface of ponds 	{RIVER_ROUTING}
+POND_BETAP =  0.5 
+
+# FLOOD_CRI ([mm] ) :  Potential height for which all the basin is flooded 	{DO_FLOODPLAINS or DO_PONDS}
+FLOOD_CRI =  2000. 
+
+# POND_CRI ([mm] ) :  Potential height for which all the basin is a pond 	{DO_FLOODPLAINS or DO_PONDS}
+POND_CRI =  2000. 
+
+# RIVER_DESC ([FLAG]) :  Writes out a description of the rivers 	{RIVER_ROUTING}
+RIVER_DESC =  n 
+
+# RIVER_DESC_FILE ([FILE]) :  Filename in which we write the description of the rivers. If suffix is ".nc" a netCDF file is created 	{RIVER_DESC}
+RIVER_DESC_FILE =  river_desc.txt 
+
+# ROUTING_FILE ([FILE]) :  Name of file which contains the routing information 	{RIVER_ROUTING}
+ROUTING_FILE =  routing.nc 
+
+# IRRIGATION_FILE ([FILE]) :  Name of file which contains the map of irrigated areas 	{DO_IRRIGATION OR DO_FLOODPLAINS}
+IRRIGATION_FILE =  floodplains.nc 
+
+# EPS_CARBON ([%]   ) :  Allowed error on carbon stock 	{SPINUP_ANALYTIC}
+EPS_CARBON =  0.01 
+
+# SPINUP_PERIOD ([years]   ) :  Period to calulcate equilibrium during spinup analytic 	{SPINUP_ANALYTIC}
+SPINUP_PERIOD =  -1 
+
+# STOMATE_FORCING_NAME ([FILE]) :  Name of STOMATE's forcing file 	{OK_STOMATE}
+STOMATE_FORCING_NAME =  NONE 
+
+# STOMATE_FORCING_MEMSIZE ([MegaBytes]) :  Size of STOMATE forcing data in memory  	{OK_STOMATE}
+STOMATE_FORCING_MEMSIZE =  50 
+
+# STOMATE_CFORCING_NAME ([FILE]) :  Name of STOMATE's carbon forcing file 	{OK_STOMATE}
+STOMATE_CFORCING_NAME =  NONE 
+
+# FORCESOIL_STEP_PER_YEAR ([days, months, year]) :  Number of time steps per year for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_STEP_PER_YEAR =  365 
+
+# FORCESOIL_NB_YEAR ([years]) :  Number of years saved for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_NB_YEAR =  1 
+
+# BAVARD ([-]) :  level of online diagnostics in STOMATE (0-4) 	{OK_STOMATE}
+BAVARD =  1 
+
+# REFTEMP_FILE ([FILE]) :  Name of file from which the reference temperature is read 	{OK_STOMATE}
+REFTEMP_FILE =  reftemp.nc 
+
+# XIOS_ORCHIDEE_OK ([FLAG]) :  Use XIOS for writing diagnostics file 	{}
+XIOS_ORCHIDEE_OK =  n 
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/PARAM/run.def	(revision 5631)
@@ -0,0 +1,3 @@
+# $Id: run.def,v 1.1 2010/10/11 13:37:16 ssipsl Exp $
+#
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,68 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12+13] "  | "Mkm^2"  | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai_lands      | "lai"              |  ""              | "(lai[d=1,K=2:13])"                      | "lai (LANDS)"      | "1"      | "2"
+# lai2_lands     | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+# lai3_lands     | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+# lai4_lands     | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+# lai5_lands     | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+# lai6_lands     | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+# lai7_lands     | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+# lai8_lands     | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+# lai9_lands     | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+# lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+# lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+# lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+# lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,69 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+maxveget_forcing | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12,13] "  | "Mkm^2"  | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai2_lands     | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai3_lands     | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai4_lands     | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai5_lands     | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai6_lands     | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai7_lands     | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai8_lands     | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai9_lands     | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC/config.card	(revision 5631)
@@ -0,0 +1,112 @@
+#
+# This is config.card file for restart with an NEW libIGCM simulation tree.
+#
+#====================================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=AUTO
+LongName="Please, explain here what is this simulation for"
+TagName=AUTO
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=AUTO
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=AUTO
+#============================
+#-- leap, noleap, 360d
+CalendarType=gregorian
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1982-01-01
+DateEnd=1982-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1M
+#============================
+#-- Total Number of Processors (minimum is 2 for a coupled configuration)
+JobNumProcTot=_AUTO_
+#============================
+PeriodNb=12
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component, Name of component, Tag of component
+SRF= (sechiba, orchidee)
+OOL= (orchidee_ol, orchidee)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+Name=orchidee_ol
+#D- For each component, Real name of executable, Name of executable for oasis
+SRF= ("", "")
+OOL= (orchidee_ol, orchidee_ol, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- If you want a GENERAL RULE FOR RESTARTS, put this flag to 'y'
+OverRule=n
+#D- Last day of the experience used as restart
+RestartDate=1981-12-31
+#D- Define restart simulation name (=> JOB_OS)
+RestartJobName=CD1
+#D- Path Server Group Login (=> PSGL)
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+# Attention login depend de la machine
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=_AUTO_
+#D- Do we rebuild parallel output, this flag determines
+#D- frequency of rebuild submission
+RebuildFrequency=5Y
+#D- Optimization of rebuid
+RebuildFromArchive=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=10Y
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=10Y
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+
+#========================================================================
+#D-- SRF - SECHIBA
+[SRF]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1982-01-01
+# Define restart simulation name
+RestartJobName=2L18
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+#-- Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
+#D-- OOL -
+[OOL]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1982-01-01
+# Define restart simulation name
+RestartJobName=2L18
+RestartPath=${ARCHIVE}/${LOGIN}/SORTIES_CPL_IPSL
+# Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/orchidee_ol.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/orchidee_ol.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/orchidee_ol.card	(revision 5631)
@@ -0,0 +1,35 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# resolution of forcing file (not used yet)
+RESOL=OOL360180
+# If you want to use the same forcing file
+NORESTART=n
+# If you want use config.card PeriodLength for TIME_LENGTH
+TIMELENGTH=y
+
+[InitialStateFiles]
+List=	
+
+[BoundaryFiles]
+List=	(${R_IN}/SRF/METEO/NCC/ncc_for_${year}.nc, forcing_file.nc)
+ListNonDel= ()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(driver_rest_out.nc,  driver_rest.nc,  driver_rest_in.nc)
+# \
+#    (used_run.def, used_run.def, used_run_in.def)
+# Uncomment previous lines to be sure to STOP if something was wrong in ORCHIDEE.
+
+[OutputText]
+List=   (run.def, used_run.def, out_orchidee_ol)
+# avec la // : out_orchidee_*
+
+[OutputFiles]
+List=	
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/orchidee_ol.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/orchidee_ol.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/orchidee_ol.driver	(revision 5631)
@@ -0,0 +1,123 @@
+#!/bin/ksh
+
+#D- Driver du script pour ORCHIDEE_OL (off-line)
+
+function ORCHIDEE_def
+{
+    IGCM_debug_PushStack "ORCHIDEE_def"
+    
+    typeset ORCHIDEE_def_KEY ORCHIDEE_default_KEY
+    
+    ORCHIDEE_def_KEY=$( grep -e "^${1}\ *=" run.def | gawk -- 'BEGIN {FS="="} {print $2}')
+    ORCHIDEE_default_KEY=$( grep -e "^${1}\ *=" ${SUBMIT_DIR}/PARAM/orchidee.default | gawk -- 'BEGIN {FS="="} {print $2}')
+
+    if [ X"${ORCHIDEE_def_KEY}" != X ] ; then
+	IGCM_debug_Print 2 "ORCHIDEE : ${1} has already been set in def file."
+	IGCM_debug_Print 2 " default value : ${ORCHIDEE_default_KEY}"
+	IGCM_debug_Print 2 " script value : ${2}"
+	IGCM_debug_Print 2 " USER value : ${ORCHIDEE_def_KEY}"
+	IGCM_debug_Print 2 "               We will not set in again !"
+    else
+	echo "${1}= ${2}" >> run.def
+	echo ""  >> run.def
+	echo "ORCHIDEE_def : ${1} ${2}"
+    fi
+    
+    IGCM_debug_PopStack "ORCHIDEE_def"
+    return $RET
+}
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    NUM_PROC=1
+#D- Number of processors used for lmdz and oasis coupler computed from PBS variable
+    if [ X"${BATCH_NUM_PROC_TOT}" != X ] ; then
+	NUM_PROC=${BATCH_NUM_PROC_TOT}
+    fi
+    echo BATCH_NUM_PROC_TOT=${BATCH_NUM_PROC_TOT}
+    echo NUM_PROC=${NUM_PROC}
+
+    if ( [ X${BATCH_NUM_PROC_TOT} != X ] && [ "${BATCH_NUM_PROC_TOT}" -gt 1 ] ) ; then
+	MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND}
+    fi
+
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/COMP/orchidee_ol.card UserChoices
+    RESOL=${orchidee_ol_UserChoices_RESOL}
+
+    if [ ! -f ${SUBMIT_DIR}/PARAM/run.def ] ; then
+	echo "#orchidee add :" > ${SUBMIT_DIR}/PARAM/run.def
+    else
+	echo "#orchidee add :" >> ${SUBMIT_DIR}/PARAM/run.def
+    fi
+    echo "" >> ${SUBMIT_DIR}/PARAM/run.def
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    if [ X"${orchidee_ol_UserChoices_TIMELENGTH}" = Xy ] ; then
+	case ${config_UserChoices_PeriodLength} in
+	    *M|*m|*D|*d)
+		ORCHIDEE_def TIME_LENGTH ${PeriodLengthInDays}D
+		;;
+	    *s|*Y)
+		ORCHIDEE_def TIME_LENGTH ${config_UserChoices_PeriodLength}
+        ;;
+        *)
+        IGCM_debug_Exit "OOL_Update " ${config_UserChoices_PeriodLength} " invalid PeriodLength in config.card : choose between 1Y, 1M, 5D, 1D."
+        IGCM_debug_Verif_Exit
+	esac
+    fi
+
+    if ( ${FirstInitialize} ) ; then
+	if ( [ "${config_OOL_Restart}" = "y" ] ) ; then
+	    ORCHIDEE_def RESTART_FILEIN driver_rest_in.nc
+	else
+	    ORCHIDEE_def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D
+	fi
+    else
+	if [ X${orchidee_ol_UserChoices_NORESTART} = Xn ] ; then
+	    ORCHIDEE_def RESTART_FILEIN driver_rest_in.nc
+	else
+	    if [ ${DRYRUN} -le 2 ] ; then
+		IGCM_sys_Rm driver_rest_in.nc
+	    fi
+	    ORCHIDEE_def RESTART_FILEIN NONE
+	fi
+    fi
+
+#    IGCM_sys_Put_Out run.def ${R_OUT_OOL}/${PREFIX}_run.def
+    FileToBeDeleted[${#FileToBeDeleted[@]}]=run.def
+
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+
+    echo FINALIZE OOL !!!
+
+    typeset CondSpinup
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+	CondSpinup=""
+	CondSpinup=$(grep -a  "Equilibrium for carbon pools is reached"  out_orchidee_ol)
+	if [ X"${CondSpinup}" != X ] ; then
+	    echo "SPINUP ANALYTIC :  your spinup is successful :"
+	    echo ${CondSpinup}
+	    IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/stomate.card UserChoices SPINUP_DONE y
+	    echo "We stop the simulation"
+	    PeriodDateEnd=${DateEnd}
+	fi
+    fi
+
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,76 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+LAIMAP=n
+IMPOSE_VEG=n
+# if IMPOSE_VEG = n
+LAND_USE=y
+# if LAND_USE=y
+VEGET_UPDATE=0Y
+# if LAND_USE=n and we want to use carteveg5km.nc for maxvegetfrac map.
+# (instead of default PFTmap_1850to2005_AR5_LUHa.rc2 below)
+OLD_VEGET=n
+ROUTING=n
+NEWHYDROL=n
+OKCO2=y
+sechiba_LEVEL=11
+
+[InitialStateFiles]
+List=       (${R_IN}/SRF/ROUTING/routing.nc, .),     \
+            (${R_IN}/SRF/SOIL/soils_param.nc, .), \
+            (${R_IN}/SRF/cartepente2d_15min.nc, .), \
+	    (${R_IN}/SRF/reftemp.nc, .), \
+            (${R_IN}/SRF/albedo/alb_bg_modisopt_2D_ESA_v2.nc, alb_bg.nc), \
+            (${R_IN}/SRF/ROUTING/floodplains.nc, .), \
+            (${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_${year}.nc, PFTmap.nc)
+	
+[BoundaryFiles]
+#List=	(${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_${year_p1}.nc, .)
+List=	()
+ListNonDel= ()
+#If you want to come back to old BIG LAND USE file (to run on multipple years, just one time with LAND USE activated), you must 
+# 1) empty BC list and INIT first PFTmap lines
+# 2) and suppress previous ListNonDel line and ucomment next one :
+#ListNonDel= (${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2.nc, PFTmap.nc)
+# See also same comment in sechiba.driver.
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   ( used_run.def, out_orchidee, river_desc.txt)
+
+[OutputFiles]
+List=	(sechiba_history.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_sechiba_history.nc, Post_1M_sechiba_history), \
+        (sechiba_out_2.nc, ${R_OUT_SRF_O_H}/${PREFIX}_HF_sechiba_out_2.nc, Post_HF_sechiba_out_2), \
+        (orchidee_watchout.nc, ${R_OUT_SRF_O_M}/${PREFIX}_1M_watchout.nc, NONE)
+
+[Post_1M_sechiba_history]
+Patches = ()
+GatherWithInternal= (lon, lat, veget, time_counter, time_counter_bnds, Areas, Contfrac)
+TimeSeriesVars2D = (nobiofrac, alb_nir, alb_vis, bqsb, evap, fluxlat, fluxsens, gqsb, netrad, qair, rain, runoff, snow, snownobio, snowf, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac)
+# ALMAOUTPUT
+#TimeSeriesVars2D = (nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, ESoil, ECanop, TVeg, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+ChunckJob2D = NONE
+TimeSeriesVars3D = (lai, maxvegetfrac, vegetfrac, ptn, nee)
+# ALMAOUTPUT
+#TimeSeriesVars3D = (ECanop, TVeg, GPP, CO2FLUX)
+ChunckJob3D = NONE
+Seasonal=ON
+
+[Post_HF_sechiba_out_2]
+Patches= ()
+GatherWithInternal= (lon, lat, veget, time_counter, time_counter_bnds, Areas, Contfrac)
+TimeSeriesVars2D= (mrsos, mrro)
+ChunckJob2D= 50Y
+TimeSeriesVars3D= (ptn)
+ChunckJob3D= 10Y
+Seasonal= OFF
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,160 @@
+#!/bin/ksh
+
+#D- Driver du script pour SECHIBA
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    echo "ORCHIDEE Tag : " ${config_UserChoices_TagName}
+
+    RESOL_SRF=ALL
+    
+    typeset frequency
+    for frequency in ${config_SRF_WriteFrequency} ; do
+        case ${frequency} in
+            HF|hf) SRF_ok_hf=y ;;
+        esac
+    done
+
+    if [ X${sechiba_UserChoices_LAND_USE} = Xy ] ; then
+      sed -e 's&#List=\(.*\)PFTmap\(.*\)year_p1\(.*\)&List=\1PFTmap\2year_p1\3&' ${SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp
+      IGCM_sys_Mv sechiba.card.tmp ${SUBMIT_DIR}/COMP/sechiba.card
+    fi
+
+    if [ X${sechiba_UserChoices_IMPOSE_VEG} = Xy ] ; then
+      sed -e 's&\(List.*=\)*\([[:space:]]*(*\).*PFTmap.*\${year}.*.nc,.*)&\1\2)&' ${SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp
+      IGCM_sys_Mv sechiba.card.tmp ${SUBMIT_DIR}/COMP/sechiba.card
+    fi
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+# Optionnal function executed at the beginning of the main loop, 
+# after IGCM_config_PeriodStart see libIGCM/AA_job. 
+# It may be used to set special variables used in forward lists
+function SRF_PeriodStart
+{
+    IGCM_debug_PushStack "SRF_PeriodStart"
+    IGCM_debug_PopStack "SRF_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    typeset SECHIBA_WRITE_STEP
+
+    # Get WriteFrenquecies from config.card for SECHIBA
+    SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' ) 
+    case ${SRF_WriteFrequency} in
+	*Y|*y) 
+	    WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+	    (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;;
+	1M)
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		SECHIBA_WRITE_STEP=-1.
+		;;
+	    *M|*m)
+		SECHIBA_WRITE_STEP=-1.
+		;;
+	    *)
+		(( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 ))
+		;;
+	    esac
+	    ;;
+	*M|*m) 
+	    WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+		(( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12 ))
+		;;
+	    *M|*m)
+		PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )
+		(( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths  * 86400 / PeriodLengthInMonths  ))
+		;;
+	    *)
+		(( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 ))
+		;;
+	    esac
+	    ;;
+	5D|5d) 
+	    (( SECHIBA_WRITE_STEP = 5 * 86400 )) ;;
+	1D|1d) 
+	    (( SECHIBA_WRITE_STEP = 86400 )) ;;
+	*s)
+	    WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' )
+	    (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;;
+	*) 
+	    IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
+	    IGCM_debug_Verif_Exit ;;
+    esac
+    ORCHIDEE_def WRITE_STEP ${SECHIBA_WRITE_STEP}
+    ORCHIDEE_def SECHIBA_HISTLEVEL ${sechiba_UserChoices_sechiba_LEVEL}
+    # Outputs HF in HISTFILE2 if required
+    if [ X${SRF_ok_hf} = Xy ] ; then
+	ORCHIDEE_def SECHIBA_HISTFILE2 y
+	ORCHIDEE_def SECHIBA_HISTLEVEL2 1
+	ORCHIDEE_def WRITE_STEP2 10800.0
+    fi
+
+    ORCHIDEE_def STOMATE_OK_CO2 ${sechiba_UserChoices_OKCO2}
+
+    ORCHIDEE_def LAI_MAP ${sechiba_UserChoices_LAIMAP}
+    ORCHIDEE_def RIVER_ROUTING ${sechiba_UserChoices_ROUTING}
+    ORCHIDEE_def HYDROL_CWRR ${sechiba_UserChoices_NEWHYDROL}
+
+    if [ X${sechiba_UserChoices_IMPOSE_VEG} = Xn ] ; then
+	if [ X${sechiba_UserChoices_LAND_USE} = Xy ] ; then
+	    ORCHIDEE_def VEGET_UPDATE ${sechiba_UserChoices_VEGET_UPDATE}
+
+            ##MM : cutting PFTmaps of ORCHIDEE : for first year without restart, we must use this year map
+            ##     WARNING : the next year map must be avaible and the december month, then this device will
+            ##               only work with PeriodLength scrictly less than 1Y.
+            # If you want to come back to old BIG LAND USE file
+            # (to run on multipple years, just one time with LAND USE activated), 
+            # you must 
+            # comment all next 8 lines and check correct parameters in orchidee.def file
+            # for your LAND USE specific file.
+	    ORCHIDEE_def VEGET_REINIT y
+	    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+		ORCHIDEE_def VEGET_YEAR 1
+	    else
+		ORCHIDEE_def VEGET_YEAR 0
+		IGCM_sys_Mv -f PFTmap_IPCC_${year_p1}.nc PFTmap.nc
+	    fi
+	elif [ X${sechiba_UserChoices_OLD_VEGET} = Xy ] ; then
+	    ORCHIDEE_def LAND_USE n
+	fi
+    else
+	ORCHIDEE_def IMPOSE_VEG y
+    fi
+
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	ORCHIDEE_def SECHIBA_reset_time y
+    else
+	ORCHIDEE_def SECHIBA_restart_in sechiba_rest_in.nc
+	ORCHIDEE_def SECHIBA_reset_time y
+    fi
+    FileToBeDeleted[${#FileToBeDeleted[@]}]=run.def
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    #IGCM_sys_Put_Out ${RUN_DIR}/used_run.def ${R_SAVE}/${PREFIX}_used_run.def
+
+    echo FINALIZE SRF !!!
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,52 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+stomate_LEVEL=10
+SPINUP_ANALYTIC=n
+
+[InitialStateFiles]
+List=   ()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= (${R_IN}/SRF/reftemp.nc, .)
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=   (${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+# \
+#	(stomate_forcing.nc, stomate_forcing.nc, stomate_forcing.nc) \
+#	(stomate_Cforcing.nc, stomate_Cforcing.nc, stomate_Cforcing.nc)
+
+
+[OutputText]
+List=   (used_run.def)
+
+[OutputFiles]
+List=	(stomate_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_history.nc, Post_1M_stomate_history) \
+    (stomate_ipcc_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_ipcc_history.nc, Post_1M_stomate_ipcc_history)
+
+[Post_1M_stomate_history]
+Patches= ()
+GatherWithInternal= (lon, lat, PFT, time_counter, Areas)
+TimeSeriesVars2D= (T2M_MONTH,CONTFRAC,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,HARVEST_ABOVE)
+ChunckJob2D = NONE
+TimeSeriesVars3D= (CO2FLUX,LAI,VEGET_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION)
+ChunckJob3D = NONE
+Seasonal=ON
+
+[Post_1M_stomate_ipcc_history]
+Patches= ()
+GatherWithInternal= (lon, lat, PFT, time_counter, Areas)
+TimeSeriesVars2D=(cVeg, cLitter, cSoil, cProduct, cMassVariation, lai, gpp, ra, npp, rh, fFire, fHarvest, fLuc, nbp, fVegLitter, fLitterSoil, cLeaf, cWood, cRoot, cMisc, cLitterAbove, cLitterBelow, cSoilFast, cSoilMedium, cSoilSlow, landCoverFrac, treeFracPrimDec, treeFracPrimEver, c3PftFrac, c4PftFrac, rGrowth, rMaint, nppLeaf, nppWood, nppRoot, nep)
+ChunckJob2D = NONE
+TimeSeriesVars3D=()
+ChunckJob3D = NONE
+Seasonal=ON
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,132 @@
+#!/bin/ksh
+
+#D- Driver du script pour STOMATE
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    RESOL_SBG=ALL
+
+    typeset frequency
+    for frequency in ${config_SBG_WriteFrequency} ; do
+        case ${frequency} in
+            HF|hf) SBG_ok_hf=y ;;
+        esac
+    done
+    
+    IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_PeriodStart
+{
+    IGCM_debug_PushStack "SBG_PeriodStart"
+
+    IGCM_debug_PopStack "SBG_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    typeset STOMATE_WRITE_STEP
+
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+	    (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;;
+	1M|1m) 
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		STOMATE_WRITE_STEP=-1.
+		;;
+	    *M|*m)
+		STOMATE_WRITE_STEP=-1.
+		;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	*M|*m) 
+	    WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = 30 )) ;;
+	    *M|*m)
+		PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	5D|5d) 
+	    (( STOMATE_WRITE_STEP = 5 )) ;;
+	1D|1d) 
+	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*s)
+	    WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' )
+	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*) 
+	    IGCM_debug_Exit "SBG_Update " ${config_SBG_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
+	    IGCM_debug_Verif_Exit ;;
+    esac
+
+    ORCHIDEE_def STOMATE_OK_STOMATE y
+
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+	ORCHIDEE_def SPINUP_ANALYTIC y
+    fi
+
+    ORCHIDEE_def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    ORCHIDEE_def STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL}
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "STOMATE : without restart"
+    else
+	ORCHIDEE_def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+    fi
+
+    if [ X${SBG_ok_hf} = Xy ] ; then 
+	ORCHIDEE_def STOMATE_IPCC_HIST_DT 1D
+    else
+	ORCHIDEE_def STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP}
+    fi
+
+    ORCHIDEE_def STOMATE_FORCING_NAME stomate_forcing.nc
+    ORCHIDEE_def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+
+    if [ -f CO2.txt ] ; then
+        # If this file exist, then read CO2 value and set ATM_CO2 in run.def
+        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`
+        ORCHIDEE_def ATM_CO2 ${IPCC_CO2}
+    fi
+
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+    typeset NbDaysDone NbYearsDone
+
+#     NbDaysDone=$( IGCM_date_DaysBetweenGregorianDate ${PeriodDateEnd} ${DateBegin} )
+#     NbYearsDone=$(( NbDaysDone / 360 ))
+    
+#     echo $NbDaysDone, $NbYearsDone, $(( NbYearsDone % 10 ))
+#    if [ $(( NbYearsDone % 10 )) = 0 ] ; then
+    if [ $( IGCM_date_DaysBetweenGregorianDate ${PeriodDateEnd} ${DateEnd} ) -ge 0 ] ; then
+	IGCM_sys_Put_Out stomate_Cforcing.nc ${R_OUT_SBG_R}/${config_UserChoices_JobName}_${PeriodDateEnd}_stomate_Cforcing.nc
+	IGCM_sys_Put_Out stomate_forcing.nc  ${R_OUT_SBG_R}/${config_UserChoices_JobName}_${PeriodDateEnd}_stomate_forcing.nc
+	rm -f stomate_Cforcing.nc
+	rm -f stomate_forcing.nc
+    fi
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/PARAM/orchidee.default
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/PARAM/orchidee.default	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/PARAM/orchidee.default	(revision 5631)
@@ -0,0 +1,1514 @@
+#
+#
+#  WARNING !!! 
+#  DO NOT MODIFY THIS FILE.
+#  THIS FILE IS ONLY PROVIDING INFORMATION ABOUT DEFAULT PARAMETER SETTINGS IN ORCHIDEE. 
+#
+#*******************************************************************************************
+#                    Namelist for ORCHIDEE (trunk revision 2135) 
+#*******************************************************************************************
+#
+#  For more details, see : http://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/OrchideeParameters 
+#
+#  Note : [m] : meters; [K] : Kelvin degrees; [C] : Celsius degrees
+#
+
+#*******************************************************************************************
+#          ORCHIDEE driver parameters (read in Off-line mode only) 
+#*******************************************************************************************
+
+# DEBUG_INFO ([FLAG] ) :  Flag for debug information 	{[-]}
+DEBUG_INFO =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# SPLIT_DT ([-]) :  splits the timestep imposed by the forcing 	{NOT(WEATHERGEN)}
+SPLIT_DT =  12 
+
+# RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions 	{[-]}
+RESTART_FILEIN =  NONE 
+
+# RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by the driver 	{[-]}
+RESTART_FILEOUT =  driver_rest_out.nc 
+
+# DRIVER_reset_time ([FLAG]) :  Overwrite time values from the driver restart file 	{[-]}
+DRIVER_reset_time =  n 
+
+# TIME_SKIP ([seconds, days, months, years]) :  Time in the forcing file at which the model is started. 	{[-]}
+TIME_SKIP =  0 
+
+# TIME_LENGTH ([seconds, days, months, years]) :  Length of the integration in time. 	{[-]}
+TIME_LENGTH =  DEF 
+
+# RELAXATION ([FLAG]) :  method of forcing 	{[-]}
+RELAXATION =  n 
+
+# RELAX_A ([days?]) :  Time constant of the relaxation layer 	{RELAXATION}
+RELAX_A =  1.0 
+
+# NO_INTER  ([FLAG]) :  No interpolation IF split is larger than 1 	{[-]}
+NO_INTER  =  y 
+
+# INTER_LIN ([FLAG]) :  Interpolation IF split is larger than 1 	{[-]}
+INTER_LIN =  n 
+
+# SPRED_PREC ([-]) :  Spread the precipitation. 	{[-]}
+SPRED_PREC =  1 
+
+# NETRAD_CONS ([FLAG]) :  Conserve net radiation in the forcing 	{INTER_LIN}
+NETRAD_CONS =  y 
+
+# ATM_CO2 ([ppm]) :  Value for atm CO2 	{[-]}
+ATM_CO2 =  350. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{[-]}
+ALLOW_WEATHERGEN =  n 
+
+# DT_WEATHGEN ([seconds]) :  Calling frequency of weather generator 	{ALLOW_WEATHERGEN}
+DT_WEATHGEN =  1800. 
+
+# LIMIT_WEST ([Degrees] ) :  Western limit of region 	{[-]}
+LIMIT_WEST =  -180. 
+
+# LIMIT_EAST ([Degrees] ) :  Eastern limit of region 	{[-]}
+LIMIT_EAST =  180. 
+
+# LIMIT_NORTH ([Degrees]) :  Northern limit of region 	{[-]}
+LIMIT_NORTH =  90. 
+
+# LIMIT_SOUTH ([Degrees]) :  Southern limit of region 	{[-]}
+LIMIT_SOUTH =  -90. 
+
+# MERID_RES ([Degrees]) :  North-South Resolution 	{ALLOW_WEATHERGEN}
+MERID_RES =  2. 
+
+# ZONAL_RES ([Degrees] ) :  East-West Resolution 	{ALLOW_WEATHERGEN}
+ZONAL_RES =  2. 
+
+# IPPREC ([-] ) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+IPPREC =  0 
+
+# WEATHGEN_PRECIP_EXACT ([FLAG]) :  Exact monthly precipitation 	{ALLOW_WEATHERGEN}
+WEATHGEN_PRECIP_EXACT =  n 
+
+# DUMP_WEATHER ([FLAG]) :  Write weather from generator into a forcing file 	{ALLOW_WEATHERGEN  }
+DUMP_WEATHER =  n 
+
+# DUMP_WEATHER_FILE ([FILE]) :  Name of the file that contains the weather from generator 	{DUMP_WEATHER}
+DUMP_WEATHER_FILE =  weather_dump.nc 
+
+# DUMP_WEATHER_GATHERED ([FLAG]) :  Dump weather data on gathered grid 	{DUMP_WEATHER}
+DUMP_WEATHER_GATHERED =  y 
+
+# HEIGHT_LEV1 ([m]) :   	{DUMP_WEATHER}
+HEIGHT_LEV1 =  10. 
+
+#*******************************************************************************************
+#          ORCHIDEE parameters  
+#*******************************************************************************************
+
+# LONGPRINT ([FLAG]) :  ORCHIDEE will print more messages 	{OK_SECHIBA}
+LONGPRINT =  n 
+
+# CHECKTIME ([FLAG]) :  ORCHIDEE will print messages on time 	{OK_SECHIBA}
+CHECKTIME =  n 
+
+# SOILTYPE_CLASSIF ([-]) :  Type of classification used for the map of soil types  	{!IMPOSE_VEG}
+SOILTYPE_CLASSIF =  zobler 
+
+# ORCHIDEE_WATCHOUT ([FLAG]) :  ORCHIDEE will write out its forcing to a file 	{}
+ORCHIDEE_WATCHOUT =  n 
+
+# DT_WATCHOUT ([seconds]) :  ORCHIDEE will write out with this frequency 	{ORCHIDEE_WATCHOUT}
+DT_WATCHOUT =  dt 
+
+# WATCHOUT_FILE ([FILE]) :  Filenane for the ORCHIDEE forcing file 	{ORCHIDEE_WATCHOUT}
+WATCHOUT_FILE =  orchidee_watchout.nc 
+
+# RIVER_ROUTING ([FLAG]) :  Decides if we route the water or not 	{OK_SECHIBA}
+RIVER_ROUTING =  n 
+
+# HYDROL_CWRR ([FLAG]) :  Allows to switch on the multilayer hydrology of CWRR 	{OK_SECHIBA}
+HYDROL_CWRR =  n 
+
+# HYDROL_SOIL_DEPTH ([m]) :  Total depth of soil reservoir 	{OK_SECHIBA }
+HYDROL_SOIL_DEPTH =  4./ 2. (if HYDROL_CWRR) 
+
+# DO_IRRIGATION ([FLAG]) :  Should we compute an irrigation flux  	{RIVER_ROUTING }
+DO_IRRIGATION =  n 
+
+# DO_FLOODPLAINS ([FLAG]  ) :  Should we include floodplains  	{RIVER_ROUTING }
+DO_FLOODPLAINS =  n 
+
+# CHECK_WATERBAL ([FLAG]  ) :  Should we check the global water balance  	{OK_SECHIBA}
+CHECK_WATERBAL =  n 
+
+# STOMATE_OK_CO2 ([FLAG]) :  Activate CO2? 	{OK_SECHIBA }
+STOMATE_OK_CO2 =  n 
+
+# STOMATE_OK_STOMATE ([FLAG]) :  Activate STOMATE? 	{OK_SECHIBA and OK_CO2}
+STOMATE_OK_STOMATE =  n 
+
+# STOMATE_OK_DGVM ([FLAG]) :  Activate DGVM? 	{OK_STOMATE}
+STOMATE_OK_DGVM =  n 
+
+# DIFFUCO_OK_INCA ([FLAG]) :  Activate DIFFUCO_INCA? 	{OK_SECHIBA}
+DIFFUCO_OK_INCA =  n 
+
+# LEAFAGE_OK_INCA ([FLAG]) :  Activate LEAFAGE? 	{DIFFUCO_OK_INCA}
+LEAFAGE_OK_INCA =  n 
+
+# CANOPY_EXTINCTION  ([FLAG]) :  Use canopy radiative transfer model? 	{DIFFUCO_OK_INCA }
+CANOPY_EXTINCTION  =  n 
+
+# CANOPY_MULTILAYER ([FLAG]) :  Use canopy radiative transfer model with multi-layers 	{CANOPY_EXTINCTION }
+CANOPY_MULTILAYER =  n 
+
+# NOx_RAIN_PULSE ([FLAG]) :  Calculate NOx emissions with pulse? 	{DIFFUCO_OK_INCA }
+NOx_RAIN_PULSE =  n 
+
+# NOx_BBG_FERTIL ([FLAG]) :  Calculate NOx emissions with bbg fertilizing effect? 	{DIFFUCO_OK_INCA }
+NOx_BBG_FERTIL =  n 
+
+# NOx_FERTILIZERS_USE ([FLAG] ) :  Calculate NOx emissions with fertilizers use? 	{DIFFUCO_OK_INCA }
+NOx_FERTILIZERS_USE =  n 
+
+# STOMATE_WATCHOUT ([FLAG]) :  STOMATE does minimum service 	{OK_SECHIBA }
+STOMATE_WATCHOUT =  n 
+
+# NVM ([-]) :  number of PFTs   	{OK_SECHIBA or OK_STOMATE}
+NVM =  13 
+
+# IMPOSE_PARAM ([FLAG]) :  Do you impose the values of the parameters? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_PARAM =  y 
+
+# SECHIBA_restart_in ([FILE]) :  Name of restart to READ for initial conditions 	{OK_SECHIBA }
+SECHIBA_restart_in =  NONE 
+
+# SECHIBA_rest_out ([FILE]) :  Name of restart files to be created by SECHIBA 	{OK_SECHIBA}
+SECHIBA_rest_out =  sechiba_rest_out.nc 
+
+# SECHIBA_reset_time ([FLAG]) :  Override the time from the restart files for SECHIBA and STOMATE 	{OK_SECHIBA}
+SECHIBA_reset_time =  y 
+
+# STOMATE_RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions of STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEIN =  NONE 
+
+# STOMATE_RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEOUT =  stomate_restart.nc 
+
+# ALMA_OUTPUT ([FLAG]) :  Should the output follow the ALMA convention 	{OK_SECHIBA}
+ALMA_OUTPUT =  n 
+
+# OUTPUT_FILE ([FILE]) :  Name of file in which the output is going to be written 	{OK_SECHIBA}
+OUTPUT_FILE =  sechiba_history.nc 
+
+# WRITE_STEP ([seconds]) :  Frequency in seconds at which to WRITE output 	{OK_SECHIBA}
+WRITE_STEP =  86400. 
+
+# SECHIBA_HISTLEVEL ([-]) :  SECHIBA history output level (0..10) 	{OK_SECHIBA and HF}
+SECHIBA_HISTLEVEL =  5 
+
+# SECHIBA_HISTFILE2 ([FLAG]) :  Flag to switch on histfile 2 for SECHIBA (hi-frequency ?) 	{OK_SECHIBA}
+SECHIBA_HISTFILE2 =  n 
+
+# WRITE_STEP2 ([seconds]) :  Frequency in seconds at which to WRITE output 	{SECHIBA_HISTFILE2}
+WRITE_STEP2 =  1800.0 
+
+# SECHIBA_OUTPUT_FILE2 ([FILE]) :  Name of file in which the output number 2 is going to be written 	{SECHIBA_HISTFILE2}
+SECHIBA_OUTPUT_FILE2 =  sechiba_out_2.nc 
+
+# SECHIBA_HISTLEVEL2 ([-] ) :  SECHIBA history 2 output level (0..10) 	{SECHIBA_HISTFILE2}
+SECHIBA_HISTLEVEL2 =  1 
+
+# STOMATE_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_OUTPUT_FILE =  stomate_history.nc 
+
+# STOMATE_HIST_DT ([days]) :  STOMATE history time step 	{OK_STOMATE}
+STOMATE_HIST_DT =  10. 
+
+# STOMATE_IPCC_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_IPCC_OUTPUT_FILE =  stomate_ipcc_history.nc 
+
+# STOMATE_IPCC_HIST_DT ([days]) :  STOMATE IPCC history time step 	{OK_STOMATE}
+STOMATE_IPCC_HIST_DT =  0. 
+
+# STOMATE_HISTLEVEL ([-]) :  STOMATE history output level (0..10) 	{OK_STOMATE}
+STOMATE_HISTLEVEL =  10 
+
+# ECCENTRICITY ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+ECCENTRICITY =  0.016724 
+
+# PERIHELIE ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+PERIHELIE =  102.04 
+
+# OBLIQUITY ([Degrees]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+OBLIQUITY =  23.446 
+
+# OK_THROUGHFALL_PFT ([FLAG]) :  Activate use of PERCENT_THROUGHFALL_PFT 	{HYDROL_CWRR}
+OK_THROUGHFALL_PFT =  FALSE 
+
+# PFT_TO_MTC ([-]) :  correspondance array linking a PFT to MTC 	{OK_SECHIBA or OK_STOMATE}
+PFT_TO_MTC =  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 
+
+# PFT_NAME ([-]) :  Name of a PFT 	{OK_SECHIBA or OK_STOMATE}
+PFT_NAME =  bare ground, tropical broad-leaved evergreen, tropical broad-leaved raingreen, temperate needleleaf evergreen, temperate broad-leaved evergreen, temperate broad-leaved summergreen,  boreal needleleaf evergreen, boreal broad-leaved summergreen, boreal needleleaf summergreen,  C3 grass, C4 grass, C3 agriculture, C4 agriculture  
+
+# LEAF_TAB ([-] ) :  leaf type : 1 	{OK_STOMATE}
+LEAF_TAB =  4, 1, 1, 2, 1, 1, 2, 1, 2, 3, 3, 3, 3  
+
+# PHENO_MODEL ([-] ) :  which phenology model is used? (tabulated)  	{OK_STOMATE}
+PHENO_MODEL =  none, none, moi, none, none, ncdgdd, none, ncdgdd, ngd, moigdd, moigdd, moigdd, moigdd 
+
+# SECHIBA_LAI ([m^2/m^2]) :  laimax for maximum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# LLAIMIN ([m^2/m^2]) :  laimin for minimum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+LLAIMIN =  0., 8., 0., 4., 4.5, 0., 4., 0., 0., 0., 0., 0., 0. 
+
+# SLOWPROC_HEIGHT ([m] ) :  prescribed height of vegetation  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1., 1. 
+
+# TYPE_OF_LAI ([-]) :  Type of behaviour of the LAI evolution algorithm  	{OK_SECHIBA}
+TYPE_OF_LAI =  inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter 
+
+# NATURAL ([BOOLEAN]) :  natural?  	{OK_SECHIBA, OK_STOMATE}
+NATURAL =  y, y, y, y, y, y, y, y, y, y, y, n, n  
+
+# IS_C4 ([BOOLEAN]) :  flag for C4 vegetation types 	{OK_SECHIBA or OK_STOMATE}
+IS_C4 =  n, n, n, n, n, n, n, n, n, n, n, y, n, y 
+
+# VCMAX_FIX ([micromol/m^2/s] ) :  values used for vcmax when STOMATE is not activated 	{OK_SECHIBA and NOT(OK_STOMATE)}
+VCMAX_FIX =  0., 40., 50., 30., 35., 40.,30., 40., 35., 60., 60., 70., 70. 
+
+# DOWNREGULATION_CO2_COEFF ([-]) :  coefficient for CO2 downregulation (unitless) 	{OK_CO2}
+DOWNREGULATION_CO2_COEFF =  0., 0.38, 0.38, 0.28, 0.28, 0.28, 0.22, 0.22, 0.22, 0.26, 0.26, 0.26, 0.26 
+
+# E_KmC ([J mol-1]) :  Energy of activation for KmC 	{OK_CO2}
+E_KmC =  -9999.,  79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430. 
+
+# E_KmO ([J mol-1]) :  Energy of activation for KmO 	{OK_CO2}
+E_KmO =  -9999., 36380.,  36380.,  36380.,  36380.,  36380., 36380., 36380., 36380., 36380., 36380., 36380., 36380. 
+
+# E_gamma_star ([J mol-1]) :  Energy of activation for gamma_star 	{OK_CO2}
+E_gamma_star =  -9999., 37830.,  37830.,  37830.,  37830.,  37830., 37830., 37830., 37830., 37830., 37830., 37830., 37830. 
+
+# E_Vcmax ([J mol-1]) :  Energy of activation for Vcmax 	{OK_CO2}
+E_Vcmax =  -9999., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 67300., 71513., 67300. 
+
+# E_Jmax ([J mol-1]) :  Energy of activation for Jmax 	{OK_CO2}
+E_Jmax =  -9999., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 77900., 49884., 77900.  
+
+# aSV ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+aSV =  -9999., 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 641.64, 668.39, 641.64  
+
+# bSV ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+bSV =  -9999., -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, 0., -1.07, 0.  
+
+# TPHOTO_MIN ([-]) :  minimum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MIN =  -9999.,  -4., -4., -4., -4.,-4.,-4., -4., -4., -4., -4., -4., -4. 
+
+# TPHOTO_MAX ([-]) :  maximum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MAX =  -9999., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55. 
+
+# aSJ ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+aSJ =  -9999., 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 630., 659.70, 630.  
+
+# bSJ ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+bSJ =  -9999., -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, 0., -0.75, 0.  
+
+# D_Vcmax ([J mol-1]) :  Energy of deactivation for Vcmax 	{OK_CO2}
+D_Vcmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# D_Jmax ([J mol-1]) :  Energy of deactivation for Jmax 	{OK_CO2}
+D_Jmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# E_Rd ([J mol-1]) :  Energy of activation for Rd 	{OK_CO2}
+E_Rd =  -9999., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390. 
+
+# VCMAX25 ([micromol/m^2/s]) :  Maximum rate of Rubisco activity-limited carboxylation at 25Â°C 	{OK_STOMATE}
+VCMAX25 =  -9999., 65., 65., 35., 45., 55., 35., 45., 35., 70., 70., 70., 70. 
+
+# ARJV ([mu mol e- (mu mol CO2)-1]) :  a coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+ARJV =  -9999., 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 1.715, 2.59, 1.715 
+
+# BRJV ([(mu mol e- (mu mol CO2)-1) (Â°C)-1]) :  b coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+BRJV =  -9999., -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, 0., -0.035, 0. 
+
+# KmC25 ([ubar]) :  MichaelisâMenten constant of Rubisco for CO2 at 25Â°C 	{OK_CO2}
+KmC25 =  -9999., 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 650., 404.9, 650. 
+
+# KmO25 ([ubar]) :  MichaelisâMenten constant of Rubisco for O2 at 25Â°C 	{OK_CO2}
+KmO25 =  -9999., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 450000., 278400., 450000. 
+
+# gamma_star25 ([ubar]) :  Ci-based CO2 compensation point in the absence of Rd at 25Â°C (ubar) 	{OK_CO2}
+gamma_star25 =  -9999., 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75 
+
+# a1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+a1 =  -9999., 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85 
+
+# b1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+b1 =  -9999., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.20, 0.14, 0.20 
+
+# g0 ([mol mâ2 sâ1 barâ1]) :  Residual stomatal conductance when irradiance approaches zero  	{OK_CO2}
+g0 =  -9999., 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.01875, 0.00625, 0.01875  
+
+# h_protons ([mol mol-1]) :  Number of protons required to produce one ATP 	{OK_CO2}
+h_protons =  -9999., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4.  
+
+# fpsir ([-]) :  Fraction of PSII eâ transport rate partitioned to the C4 cycle 	{OK_CO2}
+fpsir =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.4, -9999., 0.4  
+
+# fQ ([-]) :  Fraction of electrons at reduced plastoquinone that follow the Q-cycle 	{OK_CO2}
+fQ =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 1., -9999., 1. 
+
+# fpseudo ([-]) :  Fraction of electrons at PSI that follow pseudocyclic transport  	{OK_CO2}
+fpseudo =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# kp ([mol mâ2 sâ1 barâ1]) :  Initial carboxylation efficiency of the PEP carboxylase 	{OK_CO2}
+kp =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.7, -9999., 0.7 
+
+# alpha ([-]) :  Fraction of PSII activity in the bundle sheath 	{OK_CO2}
+alpha =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# gbs ([mol mâ2 sâ1 barâ1]) :  Bundle-sheath conductance 	{OK_CO2}
+gbs =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.003, -9999., 0.003 
+
+# theta ([â]) :  Convexity factor for response of J to irradiance 	{OK_CO2}
+theta =  -9999., 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7 
+
+# alpha_LL ([mol eâ (mol photon)â1]) :  Conversion efficiency of absorbed light into J at strictly limiting light 	{OK_CO2}
+alpha_LL =  -9999., 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372 
+
+# EXT_COEFF ([-]) :  extinction coefficient of the Monsi&Seaki relationship (1953) 	{OK_SECHIBA or OK_STOMATE}
+EXT_COEFF =  .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5 
+
+# HYDROL_HUMCSTE ([m]) :  Root profile 	{OK_SECHIBA}
+HYDROL_HUMCSTE =  humcste_cwrr or humcste_mct depending on flag HYDROL_CWRR 
+
+# PREF_SOIL_VEG ([-]        ) :  The soil tile number for each vegetation 	{OK_SECHIBA or OK_STOMATE}
+PREF_SOIL_VEG =  1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 
+
+# RSTRUCT_CONST ([s/m]) :  Structural resistance  	{OK_SECHIBA}
+RSTRUCT_CONST =  0.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0,  2.5,  2.0,  2.0,  2.0 
+
+# KZERO ([kg/m^2/s]) :  A vegetation dependent constant used in the calculation of the surface resistance. 	{OK_SECHIBA}
+KZERO =  0.0, 12.E-5, 12.E-5, 12.e-5, 12.e-5, 25.e-5, 12.e-5,25.e-5, 25.e-5, 30.e-5, 30.e-5, 30.e-5, 30.e-5  
+
+# RVEG_PFT ([-]) :  Artificial parameter to increase or decrease canopy resistance. 	{OK_SECHIBA}
+RVEG_PFT =  1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1. 
+
+# WMAX_VEG ([kg/m^3]) :  Maximum field capacity for each of the vegetations (Temporary): max quantity of water 	{OK_SECHIBA}
+WMAX_VEG =  150., 150., 150., 150., 150., 150., 150.,150., 150., 150., 150., 150., 150. 
+
+# PERCENT_THROUGHFALL_PFT ([%]) :  Percent by PFT of precip that is not intercepted by the canopy 	{OK_SECHIBA OR HYDROL_CWRR}
+PERCENT_THROUGHFALL_PFT =  30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 
+
+# SNOWA_AGED ([-]) :  Minimum snow albedo value for each vegetation type after aging (dirty old snow) 	{OK_SECHIBA}
+SNOWA_AGED =  0.35, 0., 0., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.18, 0.18, 0.18, 0.18 
+
+# SNOWA_DEC ([-]) :  Decay rate of snow albedo value for each vegetation type as it will be used in condveg_snow 	{OK_SECHIBA}
+SNOWA_DEC =  0.45, 0.,  0., 0.06, 0.06, 0.11, 0.06, 0.11, 0.11, 0.52,0.52, 0.52, 0.52 
+
+# ALB_LEAF_VIS ([-]) :  leaf albedo of vegetation type, visible albedo 	{OK_SECHIBA}
+ALB_LEAF_VIS =  .00, .04, .06, .06, .06,.06, .06, .06, .06, .10, .10, .10, .10 
+
+# ALB_LEAF_NIR ([-]) :  leaf albedo of vegetation type, near infrared albedo 	{OK_SECHIBA}
+ALB_LEAF_NIR =  .00, .20, .22, .22, .22,.22, .22, .22, .22, .30, .30, .30, .30  
+
+# ISO_ACTIVITY ([-]) :  Biogenic activity for each age class : isoprene 	{DIFFUCO_OK_INCA}
+ISO_ACTIVITY =  0.5, 1.5, 1.5, 0.5 
+
+# METHANOL_ACTIVITY ([-]) :  Isoprene emission factor for each age class : methanol 	{DIFFUCO_OK_INCA}
+METHANOL_ACTIVITY =  1., 1., 0.5, 0.5 
+
+# EM_FACTOR_ISOPRENE ([ugC/g/h] ) :  Isoprene emission factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_ISOPRENE =  0., 24., 24., 8., 16., 45., 8., 8., 8., 16., 24., 5., 5. 
+
+# EM_FACTOR_MONOTERPENE ([ugC/g/h] ) :  Monoterpene emission factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MONOTERPENE =  0., 0.8, 0.8, 2.4, 1.2, 0.8, 2.4, 2.4, 2.4, 0.8, 1.2, 0.2, 0.2 
+
+# EM_FACTOR_ORVOC ([ugC/g/h]  ) :  ORVOC emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_ORVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_OVOC ([ugC/g/h]        ) :  OVOC emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_OVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_MBO ([ugC/g/h]  ) :  MBO emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MBO =  0., 0., 0., 20.0, 0., 0., 0., 0., 0., 0., 0., 0., 0. 
+
+# EM_FACTOR_METHANOL ([ugC/g/h]  ) :  Methanol emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_METHANOL =  0., 0.6, 0.6, 1.8, 0.9, 0.6, 1.8, 1.8, 1.8, 0.6, 0.9, 2., 2. 
+
+# EM_FACTOR_ACETONE ([ugC/g/h]     ) :  Acetone emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETONE =  0., 0.29, 0.29, 0.87, 0.43, 0.29, 0.87, 0.87, 0.87, 0.29, 0.43, 0.07, 0.07  
+
+# EM_FACTOR_ACETAL ([ugC/g/h]  ) :  Acetaldehyde emissions factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_ACETAL =  0., 0.1, 0.1, 0.3, 0.15, 0.1, 0.3, 0.3, 0.3, 0.1, 0.15, 0.025, 0.025 
+
+# EM_FACTOR_FORMAL ([ugC/g/h]  ) :  Formaldehyde emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_FORMAL =  0., 0.07, 0.07, 0.2, 0.1, 0.07, 0.2, 0.2, 0.2, 0.07, 0.1, 0.017, 0.017 
+
+# EM_FACTOR_ACETIC ([ugC/g/h]  ) :  Acetic Acid emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETIC =  0., 0.002, 0.002, 0.006, 0.003, 0.002, 0.006, 0.006, 0.006, 0.002, 0.003, 0.0005, 0.0005 
+
+# EM_FACTOR_FORMIC ([ugC/g/h]  ) :  Formic Acid emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_FORMIC =  0., 0.01, 0.01, 0.03, 0.015, 0.01, 0.03, 0.03, 0.03, 0.01, 0.015, 0.0025, 0.0025  
+
+# EM_FACTOR_NO_WET ([ngN/m^2/s]) :  NOx emissions factor wet soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_WET =  0., 2.6, 0.06, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.36, 0.36, 0.36, 0.36 
+
+# EM_FACTOR_NO_DRY ([ngN/m^2/s] ) :  NOx emissions factor dry soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_DRY =  0., 8.60, 0.40, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 2.65, 2.65, 2.65, 2.65 
+
+# LARCH ([-]  ) :  Larcher 1991 SAI/LAI ratio 	{DIFFUCO_OK_INCA }
+LARCH =  0., 0.015, 0.015, 0.003, 0.005, 0.005, 0.003, 0.005, 0.003, 0.005, 0.005, 0.008, 0.008 
+
+# SLA ([m^2/gC]) :  specif leaf area  	{OK_STOMATE}
+SLA =  1.5E-2, 1.53E-2, 2.6E-2, 9.26E-3, 2E-2, 2.6E-2, 9.26E-3, 2.6E-2, 1.9E-2, 2.6E-2, 2.6E-2, 2.6E-2, 2.6E-2 
+
+# S0  ([-]    ) :  Standard sapwood allocation  	{OK_STOMATE }
+S0  =  -9999., .25, .25, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30 
+
+# MAINT_RESP_SLOPE_C ([-]) :  slope of maintenance respiration coefficient (1/K), constant c of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_C =  -9999., .20, .20, .16, .16, .16, .16, .16, .16, .16, .12, .16, .12  
+
+# MAINT_RESP_SLOPE_B ([-]) :  slope of maintenance respiration coefficient (1/K), constant b of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_B =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, -.00133, .0, -.00133, .0  
+
+# MAINT_RESP_SLOPE_A ([-]) :  slope of maintenance respiration coefficient (1/K), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_A =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0     
+
+# CM_ZERO_LEAF ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for leaves, tabulated 	{OK_STOMATE}
+CM_ZERO_LEAF =  -9999., 2.35E-3, 2.62E-3, 1.01E-3, 2.35E-3, 2.62E-3, 1.01E-3,2.62E-3, 2.05E-3, 2.62E-3, 2.62E-3, 2.62E-3, 2.62E-3 
+
+# CM_ZERO_SAPABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C,for sapwood above, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPABOVE =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# CM_ZERO_SAPBELOW ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for sapwood below, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPBELOW =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4  
+
+# CM_ZERO_HEARTABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for heartwood above, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTABOVE =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_HEARTBELOW ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C,for heartwood below, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTBELOW =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_ROOT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for roots, tabulated 	{OK_STOMATE}
+CM_ZERO_ROOT =  -9999.,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3 
+
+# CM_ZERO_FRUIT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for fruits, tabulated 	{OK_STOMATE}
+CM_ZERO_FRUIT =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4     
+
+# CM_ZERO_CARBRES ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for carbohydrate reserve, tabulated 	{OK_STOMATE}
+CM_ZERO_CARBRES =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# FLAM ([-]) :  flamability: critical fraction of water holding capacity 	{OK_STOMATE}
+FLAM =  -9999., .15, .25, .25, .25, .25, .25, .25, .25, .25, .25, .35, .35 
+
+# RESIST ([-]) :  fire resistance 	{OK_STOMATE}
+RESIST =  -9999., .95, .90, .12, .50, .12, .12, .12, .12, .0, .0, .0, .0  
+
+# COEFF_LCCHANGE_1 ([-]) :  Coeff of biomass export for the year 	{OK_STOMATE}
+COEFF_LCCHANGE_1 =  -9999., 0.897, 0.897, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597  
+
+# COEFF_LCCHANGE_10 ([-]) :  Coeff of biomass export for the decade 	{OK_STOMATE}
+COEFF_LCCHANGE_10 =  -9999., 0.103, 0.103, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.403, 0.299, 0.403 
+
+# COEFF_LCCHANGE_100 ([-]) :  Coeff of biomass export for the century 	{OK_STOMATE}
+COEFF_LCCHANGE_100 =  -9999., 0., 0., 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0., 0.104, 0. 
+
+# LAI_MAX ([m^2/m^2]) :  maximum LAI, PFT-specific 	{OK_STOMATE}
+LAI_MAX =  -9999., 7., 7., 5., 5., 5., 4.5, 4.5, 3.0, 2.5, 2.5, 5.,5.  
+
+# PHENO_TYPE ([-]) :  type of phenology, 0 	{OK_STOMATE}
+PHENO_TYPE =  0, 1, 3, 1, 1, 2, 1, 2, 2, 4, 4, 2, 3 
+
+# PHENO_GDD_CRIT_C ([-]) :  critical gdd, tabulated (C), constant c of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_C =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 270., 400., 125., 400. 
+
+# PHENO_GDD_CRIT_B ([-]) :  critical gdd, tabulated (C), constant b of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_B =  -9999., -9999., -9999., -9999., -9999., -9999., -9999.,-9999., -9999., 6.25, 0., 0., 0. 
+
+# PHENO_GDD_CRIT_A ([-]) :  critical gdd, tabulated (C), constant a of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_A =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.03125,  0., 0., 0. 
+
+# NGD_CRIT ([days]) :  critical ngd, tabulated. Threshold -5 degrees 	{OK_STOMATE}
+NGD_CRIT =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# NCDGDD_TEMP ([C] ) :  critical temperature for the ncd vs. gdd function in phenology 	{OK_STOMATE}
+NCDGDD_TEMP =  -9999., -9999., -9999., -9999., -9999., 5., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# HUM_FRAC ([%]) :  critical humidity (relative to min/max) for phenology 	{OK_STOMATE}
+HUM_FRAC =  -9999., -9999., .5, -9999., -9999., -9999., -9999., -9999.,  -9999., .5, .5, .5,.5      
+
+# HUM_MIN_TIME ([days]) :  minimum time elapsed since moisture minimum 	{OK_STOMATE}
+HUM_MIN_TIME =  -9999., -9999., 50., -9999., -9999., -9999., -9999., -9999., -9999., 35., 35., 75., 75. 
+
+# TAU_SAP ([days]) :  sapwood -> heartwood conversion time 	{OK_STOMATE}
+TAU_SAP =  -9999., 730., 730., 730., 730., 730., 730., 730., 730., -9999., -9999., -9999., -9999. 
+
+# TAU_FRUIT ([days]) :  fruit lifetime 	{OK_STOMATE}
+TAU_FRUIT =  -9999., 90., 90., 90., 90., 90., 90., 90., 90., -9999., -9999., -9999., -9999. 
+
+# ECUREUIL ([-]) :  fraction of primary leaf and root allocation put into reserve 	{OK_STOMATE}
+ECUREUIL =  -9999., .0, 1., .0, .0, 1., .0, 1., 1., 1., 1., 1., 1. 
+
+# ALLOC_MIN ([-]) :  minimum allocation above/below  	{OK_STOMATE}
+ALLOC_MIN =  -9999., 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, -9999., -9999., -9999., -9999.  
+
+# ALLOC_MAX ([-]) :  maximum allocation above/below  	{OK_STOMATE}
+ALLOC_MAX =  -9999., 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, -9999., -9999., -9999., -9999. 
+
+# DEMI_ALLOC  ([-]) :  mean allocation above/below  	{OK_STOMATE}
+DEMI_ALLOC  =  -9999., 5., 5., 5., 5., 5., 5., 5., 5., -9999., -9999., -9999., -9999. 
+
+# LEAFLIFE_TAB ([years]) :  leaf longevity 	{OK_STOMATE}
+LEAFLIFE_TAB =  -9999., .5, 2., .33, 1., 2., .33, 2., 2., 2., 2., 2., 2.  
+
+# LEAFFALL ([days]) :  length of death of leaves, tabulated  	{OK_STOMATE}
+LEAFFALL =  -9999., -9999., 10., -9999., -9999., 10., -9999., 10., 10., 10., 10., 10., 10.  
+
+# LEAFAGECRIT ([days]) :  critical leaf age, tabulated 	{OK_STOMATE}
+LEAFAGECRIT =  -9999., 730., 180., 910., 730., 180., 910., 180., 180., 120., 120., 90., 90.   
+
+# SENESCENCE_TYPE ([-]) :  type of senescence, tabulated 	{OK_STOMATE}
+SENESCENCE_TYPE =  none, none, dry, none, none, cold, none, cold, cold, mixed, mixed, mixed, mixed  
+
+# SENESCENCE_HUM ([-] ) :  critical relative moisture availability for senescence 	{OK_STOMATE}
+SENESCENCE_HUM =  -9999., -9999., .3, -9999., -9999., -9999., -9999., -9999., -9999., .2, .2, .3, .2  
+
+# NOSENESCENCE_HUM ([-]) :  relative moisture availability above which there is no humidity-related senescence 	{OK_STOMATE}
+NOSENESCENCE_HUM =  -9999., -9999., .8, -9999., -9999., -9999., -9999., -9999., -9999., .3, .3, .3, .3  
+
+# MAX_TURNOVER_TIME ([days]) :  maximum turnover time for grasse 	{OK_STOMATE}
+MAX_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999.,  80.,  80., 80., 80.  
+
+# MIN_TURNOVER_TIME ([days]) :  minimum turnover time for grasse  	{OK_STOMATE}
+MIN_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 10., 10., 10., 10.  
+
+# MIN_LEAF_AGE_FOR_SENESCENCE ([days] ) :  minimum leaf age to allow senescence g 	{OK_STOMATE}
+MIN_LEAF_AGE_FOR_SENESCENCE =  -9999., -9999., 90., -9999., -9999., 90., -9999., 60., 60., 30., 30., 30., 30. 
+
+# SENESCENCE_TEMP_C ([-]) :  critical temperature for senescence (C), constant c of aT^2+bT+c, tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_C =  -9999., -9999., -9999., -9999., -9999., 12., -9999., 7., 2., -1.375, 5., 5., 10. 
+
+# SENESCENCE_TEMP_B ([-]) :  critical temperature for senescence (C), constant b of aT^2+bT+c ,tabulated 	{OK_STOMATE }
+SENESCENCE_TEMP_B =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0., .1, 0., 0., 0. 
+
+# SENESCENCE_TEMP_A ([-] ) :  critical temperature for senescence (C), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_A =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0.,.00375, 0., 0., 0.  
+
+# GDD_SENESCENCE ([days] ) :  minimum gdd to allow senescence of crops   	{OK_STOMATE}
+GDD_SENESCENCE =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 950., 4000. 
+
+# RESIDENCE_TIME ([years]) :  residence time of trees 	{OK_DGVM and NOT(LPJ_GAP_CONST_MORT)}
+RESIDENCE_TIME =  -9999., 30.0, 30.0, 40.0, 40.0, 40.0, 80.0, 80.0, 80.0, 0.0, 0.0, 0.0, 0.0  
+
+# TMIN_CRIT ([C]) :  critical tmin, tabulated 	{OK_STOMATE}
+TMIN_CRIT =  -9999.,  0.0, 0.0, -30.0, -14.0, -30.0, -45.0, -45.0, -9999., -9999., -9999., -9999., -9999. 
+
+# TCM_CRIT ([C]) :  critical tcm, tabulated  	{OK_STOMATE}
+TCM_CRIT =  -9999., -9999., -9999., 5.0, 15.5, 15.5, -8.0, -8.0, -8.0, -9999., -9999., -9999., -9999. 
+
+# HERBIVORES ([FLAG]) :  herbivores allowed? 	{OK_STOMATE }
+HERBIVORES =  n 
+
+# TREAT_EXPANSION ([FLAG]) :  treat expansion of PFTs across a grid cell? 	{OK_STOMATE }
+TREAT_EXPANSION =  n 
+
+# LPJ_GAP_CONST_MORT ([FLAG]) :  prescribe mortality if not using DGVM? 	{OK_STOMATE}
+LPJ_GAP_CONST_MORT =  y 
+
+# HARVEST_AGRI ([FLAG]) :  Harvest model for agricultural PFTs. 	{OK_STOMATE }
+HARVEST_AGRI =  y 
+
+# FIRE_DISABLE ([FLAG]) :  no fire allowed 	{OK_STOMATE }
+FIRE_DISABLE =  n 
+
+# SPINUP_ANALYTIC (BOOLEAN    ) :  Activation of the analytic resolution of the spinup. 	{OK_STOMATE}
+SPINUP_ANALYTIC =  n 
+
+# AGRICULTURE ([FLAG]) :  agriculture allowed? 	{OK_SECHIBA or OK_STOMATE}
+AGRICULTURE =  y 
+
+# IMPOSE_VEG ([FLAG]) :  Should the vegetation be prescribed ? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_VEG =  n 
+
+# IMPOSE_SOILT ([FLAG]) :  Should the soil type be prescribed ? 	{IMPOSE_VEG}
+IMPOSE_SOILT =  n 
+
+# LAI_MAP ([FLAG]) :  Read the LAI map 	{OK_SECHIBA or OK_STOMATE}
+LAI_MAP =  n 
+
+# SLOWPROC_LAI_OLD_INTERPOL ([FLAG]) :  Flag to use old "interpolation" of LAI 	{LAI_MAP}
+SLOWPROC_LAI_OLD_INTERPOL =  n 
+
+# LAND_USE ([FLAG]) :  Read a land_use vegetation map 	{OK_SECHIBA or OK_STOMATE}
+LAND_USE =  y 
+
+# VEGET_REINIT ([FLAG] ) :  booleen to indicate that a new LAND USE file will be used. 	{LAND_USE}
+VEGET_REINIT =  y 
+
+# LAND_COVER_CHANGE ([FLAG] ) :  treat land use modifications 	{LAND_USE}
+LAND_COVER_CHANGE =  n 
+
+# VEGET_YEAR ([FLAG] ) :  Year of the land_use vegetation map to be read 	{LAND_USE}
+VEGET_YEAR =  1 
+
+# SLOWPROC_VEGET_OLD_INTERPOL ([FLAG] ) :  Flag to use old "interpolation" of vegetation map. 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+SLOWPROC_VEGET_OLD_INTERPOL =  n 
+
+# MAXMASS_SNOW ([kg/m^2]  ) :  The maximum mass of a snow 	{OK_SECHIBA or HYDROL_CWRR}
+MAXMASS_SNOW =  3000. 
+
+# SNOWCRI ([kg/m^2]  ) :  Sets the amount above which only sublimation occures  	{OK_SECHIBA or HYDROL_CWRR}
+SNOWCRI =  1.5 
+
+# MIN_WIND ([m/s]) :  Minimum wind speed 	{OK_SECHIBA}
+MIN_WIND =  0.1 
+
+# MAX_SNOW_AGE ([days?]) :  Maximum period of snow aging  	{OK_SECHIBA}
+MAX_SNOW_AGE =  50. 
+
+# SNOW_TRANS ([m]   ) :  Transformation time constant for snow 	{OK_SECHIBA}
+SNOW_TRANS =  0.3 
+
+# Z0_OVER_HEIGHT ([-]   ) :  to get z0 from height  	{OK_SECHIBA }
+Z0_OVER_HEIGHT =  1/16. 
+
+# HEIGHT_DISPLACEMENT ([m]  ) :  Magic number which relates the height to the displacement height. 	{OK_SECHIBA }
+HEIGHT_DISPLACEMENT =  0.75 
+
+# Z0_BARE ([m]   ) :  bare soil roughness length 	{OK_SECHIBA }
+Z0_BARE =  0.01  
+
+# Z0_ICE ([m]   ) :  ice roughness length 	{OK_SECHIBA }
+Z0_ICE =  0.001 
+
+# TCST_SNOWA ([days]) :  Time constant of the albedo decay of snow 	{OK_SECHIBA }
+TCST_SNOWA =  5.0  
+
+# SNOWCRI_ALB ([cm]  ) :  Critical value for computation of snow albedo 	{OK_SECHIBA}
+SNOWCRI_ALB =  10.  
+
+# VIS_DRY ([-]  ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+VIS_DRY =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.27 
+
+# NIR_DRY ([-]   ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_DRY =  0.48, 0.44, 0.40, 0.36, 0.32, 0.28, 0.24, 0.20, 0.55 
+
+# VIS_WET  ([-]   ) :  The correspondance table for the soil color numbers and their albedo 	{OK_SECHIBA  }
+VIS_WET  =  0.12, 0.11, 0.10, 0.09, 0.08, 0.07, 0.06, 0.05, 0.15 
+
+# NIR_WET ([-]    ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_WET =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.31 
+
+# ALBSOIL_VIS ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_VIS =  0.18, 0.16, 0.16, 0.15, 0.12, 0.105, 0.09, 0.075, 0.25 
+
+# ALBSOIL_NIR  ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_NIR  =  0.36, 0.34, 0.34, 0.33, 0.30, 0.25, 0.20, 0.15, 0.45 
+
+# ALB_DEADLEAF  ([-]     ) :  albedo of dead leaves, VIS+NIR  	{OK_SECHIBA }
+ALB_DEADLEAF  =  0.12, 0.35 
+
+# ALB_ICE ([-]  ) :  albedo of ice, VIS+NIR 	{OK_SECHIBA}
+ALB_ICE =  0.60, 0.20 
+
+# CONDVEG_SNOWA ([-]) :  The snow albedo used by SECHIBA 	{OK_SECHIBA}
+CONDVEG_SNOWA =  1.E+20 
+
+# ALB_BARE_MODEL ([FLAG]) :  Switch bare soil albedo dependent (if TRUE) on soil wetness 	{OK_SECHIBA}
+ALB_BARE_MODEL =  n 
+
+# Z0CDRAG_AVE ([FLAG]) :  Average method for z0 	{OK_SECHIBA}
+Z0CDRAG_AVE =  y 
+
+# IMPOSE_AZE ([FLAG]) :  Should the surface parameters be prescribed 	{OK_SECHIBA}
+IMPOSE_AZE =  n 
+
+# CONDVEG_Z0 ([m]) :  Surface roughness 	{IMPOSE_AZE}
+CONDVEG_Z0 =  0.15 
+
+# ROUGHHEIGHT ([m] ) :  Height to be added to the height of the first level 	{IMPOSE_AZE}
+ROUGHHEIGHT =  0.0 
+
+# CONDVEG_ALBVIS ([-]) :  SW visible albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBVIS =  0.25 
+
+# CONDVEG_ALBNIR ([-]  ) :  SW near infrared albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBNIR =  0.25 
+
+# CONDVEG_EMIS ([-] ) :  Emissivity of the surface for LW radiation 	{IMPOSE_AZE}
+CONDVEG_EMIS =  1.0 
+
+# NLAI ([-]  ) :  Number of LAI levels 	{OK_SECHIBA}
+NLAI =  20 
+
+# LAIMAX ([m^2/m^2]   ) :  Maximum LAI 	{OK_SECHIBA}
+LAIMAX =   
+
+# DEW_VEG_POLY_COEFF ([-]   ) :  coefficients of the polynome of degree 5 for the dew 	{OK_SECHIBA}
+DEW_VEG_POLY_COEFF =  0.887773, 0.205673, 0.110112, 0.014843, 0.000824, 0.000017  
+
+# DOWNREGULATION_CO2 ([FLAG]   ) :  Activation of CO2 downregulation 	{OK_SECHIBA}
+DOWNREGULATION_CO2 =  n  
+
+# DOWNREGULATION_CO2_BASELEVEL ([ppm]   ) :  CO2 base level 	{OK_SECHIBA }
+DOWNREGULATION_CO2_BASELEVEL =  280. 
+
+# CLAYFRACTION_DEFAULT ([-]   ) :  default fraction of clay 	{OK_SECHIBA }
+CLAYFRACTION_DEFAULT =  0.2  
+
+# MIN_VEGFRAC  ([-]  ) :  Minimal fraction of mesh a vegetation type can occupy  	{OK_SECHIBA }
+MIN_VEGFRAC  =  0.001  
+
+# STEMPDIAG_BID  ([K]) :  only needed for an initial LAI if there is no restart file 	{OK_SECHIBA }
+STEMPDIAG_BID  =  280. 
+
+# LAI_LEVEL_DEPTH ([-]  ) :   	{OK_CO2}
+LAI_LEVEL_DEPTH =  0.15 
+
+# Oi ([ubar]  ) :  Intercellular oxygen partial pressure 	{OK_CO2}
+Oi =  210000. 
+
+# TOO_LONG  ([days]   ) :  longest sustainable time without regeneration (vernalization) 	{OK_STOMATE}
+TOO_LONG  =  5. 
+
+# TAU_FIRE  ([days]    ) :  Time scale for memory of the fire index (days). Validated for one year in the DGVM.  	{OK_STOMATE }
+TAU_FIRE  =  30. 
+
+# LITTER_CRIT ([gC/m^2]  ) :  Critical litter quantity for fire 	{OK_STOMATE }
+LITTER_CRIT =  200. 
+
+# FIRE_RESIST_STRUCT ([-]  ) :   	{OK_STOMATE }
+FIRE_RESIST_STRUCT =  0.5 
+
+# CO2FRAC ([-]  ) :  What fraction of a burned plant compartment goes into the atmosphere 	{OK_STOMATE }
+CO2FRAC =  0.95, 0.95, 0., 0.3, 0., 0., 0.95, 0.95 
+
+# BCFRAC_COEFF ([-]  ) :   	{OK_STOMATE }
+BCFRAC_COEFF =  0.3, 1.3, 88.2  
+
+# FIREFRAC_COEFF  ([-]   ) :   	{OK_STOMATE }
+FIREFRAC_COEFF  =  0.45, 0.8, 0.6, 0.13 
+
+# AVAILABILITY_FACT  ([-]   ) :   	{OK_STOMATE }
+AVAILABILITY_FACT  =  0.1 
+
+# REF_GREFF ([1/year]  ) :  Asymptotic maximum mortality rate 	{OK_STOMATE }
+REF_GREFF =  0.035 
+
+# OK_MINRES ([FLAG]) :  Do we try to reach a minimum reservoir even if we are severely stressed? 	{OK_STOMATE }
+OK_MINRES =  y 
+
+# TAU_LEAFINIT ([days]  ) :  time to attain the initial foliage using the carbohydrate reserve  	{OK_STOMATE }
+TAU_LEAFINIT =  10. 
+
+# RESERVE_TIME_TREE  ([days]    ) :  maximum time during which reserve is used (trees)  	{OK_STOMATE }
+RESERVE_TIME_TREE  =  30. 
+
+# RESERVE_TIME_GRASS  ([days]   ) :  maximum time during which reserve is used (grasses)  	{OK_STOMATE }
+RESERVE_TIME_GRASS  =  20.  
+
+# R0 ([-]  ) :  Standard root allocation  	{OK_STOMATE }
+R0 =  0.3  
+
+# F_FRUIT ([-]    ) :  Standard fruit allocation 	{OK_STOMATE }
+F_FRUIT =  0.1  
+
+# ALLOC_SAP_ABOVE_GRASS  ([-]   ) :  fraction of sapwood allocation above ground  	{OK_STOMATE }
+ALLOC_SAP_ABOVE_GRASS  =  1.0  
+
+# MIN_LTOLSR  ([-]   ) :  extrema of leaf allocation fraction  	{OK_STOMATE }
+MIN_LTOLSR  =  0.2 
+
+# MAX_LTOLSR ([-]   ) :  extrema of leaf allocation fraction 	{OK_STOMATE }
+MAX_LTOLSR =  0.5 
+
+# Z_NITROGEN ([m]  ) :  scaling depth for nitrogen limitation  	{OK_STOMATE}
+Z_NITROGEN =  0.2  
+
+# LAI_MAX_TO_HAPPY ([-]  ) :   	{OK_STOMATE }
+LAI_MAX_TO_HAPPY =  0.5  
+
+# NLIM_TREF  ([C]  ) :   	{OK_STOMATE }
+NLIM_TREF  =  25.  
+
+# PIPE_TUNE1 ([-]    ) :  crown area  	{OK_STOMATE }
+PIPE_TUNE1 =  100.0 
+
+# PIPE_TUNE2  ([-]      ) :  height 	{OK_STOMATE }
+PIPE_TUNE2  =  40.0  
+
+# PIPE_TUNE3 ([-]    ) :  height 	{OK_STOMATE }
+PIPE_TUNE3 =  0.5  
+
+# PIPE_TUNE4 ([-]  ) :  needed for stem diameter 	{OK_STOMATE }
+PIPE_TUNE4 =  0.3  
+
+# PIPE_DENSITY  ([-]  ) :  Density 	{OK_STOMATE }
+PIPE_DENSITY  =  2.e5  
+
+# PIPE_K1  ([-]   ) :   	{OK_STOMATE }
+PIPE_K1  =  8.e3  
+
+# PIPE_TUNE_EXP_COEFF  ([-]   ) :  pipe tune exponential coeff  	{OK_STOMATE }
+PIPE_TUNE_EXP_COEFF  =  1.6  
+
+# PRECIP_CRIT  ([mm/year]  ) :  minimum precip 	{OK_STOMATE }
+PRECIP_CRIT  =  100. 
+
+# GDD_CRIT_ESTAB ([-]  ) :  minimum gdd for establishment of saplings 	{OK_STOMATE }
+GDD_CRIT_ESTAB =  150.  
+
+# FPC_CRIT ([-]  ) :  critical fpc, needed for light competition and establishment 	{OK_STOMATE }
+FPC_CRIT =  0.95 
+
+# ALPHA_GRASS ([-]   ) :  sapling characteristics : alpha's 	{OK_STOMATE }
+ALPHA_GRASS =  0.5 
+
+# ALPHA_TREE ([-]   ) :  sapling characteristics : alpha's  	{OK_STOMATE }
+ALPHA_TREE =  1. 
+
+# MASS_RATIO_HEART_SAP ([-]   ) :  mass ratio (heartwood+sapwood)/sapwood 	{OK_STOMATE }
+MASS_RATIO_HEART_SAP =  3. 
+
+# FRAC_GROWTHRESP ([-]) :  fraction of GPP which is lost as growth respiration 	{OK_STOMATE }
+FRAC_GROWTHRESP =  0.28 
+
+# TAU_HUM_MONTH ([days]  ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_MONTH =  20.  
+
+# TAU_HUM_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_WEEK =  7. 
+
+# TAU_T2M_MONTH ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_MONTH =  20. 
+
+# TAU_T2M_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_WEEK =  7. 
+
+# TAU_TSOIL_MONTH  ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_TSOIL_MONTH  =  20.  
+
+# TAU_SOILHUM_MONTH ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_SOILHUM_MONTH =  20.  
+
+# TAU_GPP_WEEK  ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GPP_WEEK  =  7.  
+
+# TAU_GDD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GDD =  40.  
+
+# TAU_NGD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_NGD =  50. 
+
+# COEFF_TAU_LONGTERM ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+COEFF_TAU_LONGTERM =  3.  
+
+# BM_SAPL_CARBRES  ([-]   ) :   	{OK_STOMATE }
+BM_SAPL_CARBRES  =  5.  
+
+# BM_SAPL_SAPABOVE ([-]    ) :   	{OK_STOMATE}
+BM_SAPL_SAPABOVE =  0.5  
+
+# BM_SAPL_HEARTABOVE  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTABOVE  =  2. 
+
+# BM_SAPL_HEARTBELOW  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTBELOW  =  2.  
+
+# INIT_SAPL_MASS_LEAF_NAT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_NAT =  0.1  
+
+# INIT_SAPL_MASS_LEAF_AGRI ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_AGRI =  1.  
+
+# INIT_SAPL_MASS_CARBRES ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_CARBRES =  5.  
+
+# INIT_SAPL_MASS_ROOT ([-]   ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_ROOT =  0.1  
+
+# INIT_SAPL_MASS_FRUIT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_FRUIT =  0.3  
+
+# CN_SAPL_INIT  ([-]   ) :   	{OK_STOMATE }
+CN_SAPL_INIT  =  0.5  
+
+# MIGRATE_TREE  ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_TREE  =  10000. 
+
+# MIGRATE_GRASS ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_GRASS =  10000. 
+
+# LAI_INITMIN_TREE ([m^2/m^2]  ) :   	{OK_STOMATE }
+LAI_INITMIN_TREE =  0.3 
+
+# LAI_INITMIN_GRASS  ([m^2/m^2]    ) :   	{OK_STOMATE }
+LAI_INITMIN_GRASS  =  0.1 
+
+# DIA_COEFF ([-]   ) :   	{OK_STOMATE }
+DIA_COEFF =  4., 0.5 
+
+# MAXDIA_COEFF ([-]   ) :   	{OK_STOMATE }
+MAXDIA_COEFF =  100., 0.01  
+
+# BM_SAPL_LEAF ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_LEAF =  4., 4., 0.8, 5.  
+
+# METABOLIC_REF_FRAC ([-]) :  	{OK_STOMATE }
+METABOLIC_REF_FRAC =  0.85   
+
+# Z_DECOMP ([m]   ) :  scaling depth for soil activity 	{OK_STOMATE }
+Z_DECOMP =  0.2 
+
+# CN ([-]  ) :  C/N ratio 	{OK_STOMATE }
+CN =  40., 40., 40., 40., 40., 40., 40., 40. 
+
+# LC  ([-]   ) :  Lignine/C ratio of the different plant parts 	{OK_STOMATE }
+LC  =  0.22, 0.35, 0.35, 0.35, 0.35, 0.22, 0.22, 0.22 
+
+# FRAC_SOIL_STRUCT_AA ([-]) :  frac_soil(istructural,iactive,iabove) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_AA =  0.55 
+
+# FRAC_SOIL_STRUCT_A  ([-]) :  frac_soil(istructural,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_A  =  0.45 
+
+# FRAC_SOIL_STRUCT_SA ([-]   ) :  frac_soil(istructural,islow,iabove) 	{OK_STOMATE}
+FRAC_SOIL_STRUCT_SA =  0.7   
+
+# FRAC_SOIL_STRUCT_SB ([-]   ) :  frac_soil(istructural,islow,ibelow)  	{OK_STOMATE }
+FRAC_SOIL_STRUCT_SB =  0.7   
+
+# FRAC_SOIL_METAB_AA  ([-]   ) :  frac_soil(imetabolic,iactive,iabove)  	{OK_STOMATE }
+FRAC_SOIL_METAB_AA  =  0.45  
+
+# FRAC_SOIL_METAB_AB  ([-]   ) :  frac_soil(imetabolic,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_METAB_AB  =  0.45   
+
+# METABOLIC_LN_RATIO ([-]   ) :   	{OK_STOMATE }
+METABOLIC_LN_RATIO =  0.018   
+
+# TAU_METABOLIC ([days] ) :   	{OK_STOMATE }
+TAU_METABOLIC =  0.066 
+
+# TAU_STRUCT  ([days]) :   	{OK_STOMATE }
+TAU_STRUCT  =  0.245  
+
+# SOIL_Q10 ([-]) :   	{OK_STOMATE }
+SOIL_Q10 =  0.69 ( 
+
+# TSOIL_REF ([C]   ) :   	{OK_STOMATE }
+TSOIL_REF =  30.  
+
+# LITTER_STRUCT_COEF  ([-]   ) :   	{OK_STOMATE }
+LITTER_STRUCT_COEF  =  3.  
+
+# MOIST_COEFF ([-]   ) :   	{OK_STOMATE }
+MOIST_COEFF =  1.1, 2.4, 0.29 
+
+# FRAC_TURNOVER_DAILY  ([-]) :   	{OK_STOMATE }
+FRAC_TURNOVER_DAILY  =  0.55 
+
+# TAX_MAX ([-]   ) :  maximum fraction of allocatable biomass used for maintenance respiration 	{OK_STOMATE }
+TAX_MAX =  0.8 
+
+# ALWAYS_INIT ([-]   ) :  take carbon from atmosphere if carbohydrate reserve too small?  	{OK_STOMATE }
+ALWAYS_INIT =  n  
+
+# MIN_GROWTHINIT_TIME  ([days]  ) :  minimum time since last beginning of a growing season 	{OK_STOMATE }
+MIN_GROWTHINIT_TIME  =  300.  
+
+# MOIAVAIL_ALWAYS_TREE ([-]   ) :  moisture availability above which moisture tendency doesn't matter  	{OK_STOMATE }
+MOIAVAIL_ALWAYS_TREE =  1.0  
+
+# MOIAVAIL_ALWAYS_GRASS  ([-]   ) :  moisture availability above which moisture tendency doesn't matter 	{OK_STOMATE }
+MOIAVAIL_ALWAYS_GRASS  =  0.6  
+
+# T_ALWAYS_ADD ([C]    ) :  monthly temp. above which temp. tendency doesn't matter  	{OK_STOMATE }
+T_ALWAYS_ADD =  10. 
+
+# GDDNCD_REF  ([-]   ) :   	{OK_STOMATE }
+GDDNCD_REF  =  603.  
+
+# GDDNCD_CURVE ([-]  ) :   	{OK_STOMATE }
+GDDNCD_CURVE =  0.0091  
+
+# GDDNCD_OFFSET ([-]  ) :   	{OK_STOMATE }
+GDDNCD_OFFSET =  64.  
+
+# BM_SAPL_RESCALE  ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_RESCALE  =  40.  
+
+# MAINT_RESP_MIN_VMAX ([-]  ) :   	{OK_STOMATE }
+MAINT_RESP_MIN_VMAX =  0.3 
+
+# MAINT_RESP_COEFF  ([-] ) :   	{OK_STOMATE }
+MAINT_RESP_COEFF  =  1.4  
+
+# FRAC_CARB_AP ([-]) :  frac carb coefficients from active pool: depends on clay content 	{OK_STOMATE }
+FRAC_CARB_AP =  0.004 
+
+# FRAC_CARB_SA ([-]) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SA =  0.42 
+
+# FRAC_CARB_SP ([-] ) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SP =  0.03 
+
+# FRAC_CARB_PA ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PA =  0.45 
+
+# FRAC_CARB_PS ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PS =  0.0 
+
+# ACTIVE_TO_PASS_CLAY_FRAC ([-] ) :   	{OK_STOMATE }
+ACTIVE_TO_PASS_CLAY_FRAC =  0.68   
+
+# CARBON_TAU_IACTIVE ( [days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IACTIVE =  0.149 
+
+# CARBON_TAU_ISLOW ([days]) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_ISLOW =  5.48 
+
+# CARBON_TAU_IPASSIVE ([days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IPASSIVE =  241. 
+
+# FLUX_TOT_COEFF ([days] ) :  	{OK_STOMATE }
+FLUX_TOT_COEFF =  1.2, 1.4,.75 
+
+# NEW_TURNOVER_TIME_REF ([days]  ) :   	{OK_STOMATE }
+NEW_TURNOVER_TIME_REF =  20.  
+
+# DT_TURNOVER_TIME  ([days]  ) :   	{OK_STOMATE }
+DT_TURNOVER_TIME  =  10. 
+
+# LEAF_AGE_CRIT_TREF ([days]  ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_TREF =  20.  
+
+# LEAF_AGE_CRIT_COEFF  ([-] ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_COEFF  =  1.5, 0.75, 10.  
+
+# VMAX_OFFSET  ([-]  ) :  offset (minimum relative vcmax) 	{OK_STOMATE }
+VMAX_OFFSET  =  0.3 
+
+# LEAFAGE_FIRSTMAX ([-] ) :  leaf age at which vmax attains vcmax_opt (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_FIRSTMAX =  0.03  
+
+# LEAFAGE_LASTMAX  ([-]  ) :  leaf age at which vmax falls below vcmax_opt (in fraction of critical leaf age)  	{OK_STOMATE }
+LEAFAGE_LASTMAX  =  0.5  
+
+# LEAFAGE_OLD  ([-]  ) :  leaf age at which vmax attains its minimum (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_OLD  =  1. 
+
+# GPPFRAC_DORMANCE  ([-]) :  rapport maximal GPP/GGP_max pour dormance 	{OK_STOMATE }
+GPPFRAC_DORMANCE  =  0.2  
+
+# TAU_CLIMATOLOGY ([days]) :  tau for "climatologic variables  	{OK_STOMATE }
+TAU_CLIMATOLOGY =  20 
+
+# HVC1  ([-]  ) :  parameters for herbivore activity 	{OK_STOMATE }
+HVC1  =  0.019 
+
+# HVC2  ([-]  ) :  parameters for herbivore activity  	{OK_STOMATE }
+HVC2  =  1.38 
+
+# LEAF_FRAC_HVC ([-] ) :  parameters for herbivore activity  	{OK_STOMATE }
+LEAF_FRAC_HVC =  0.33 
+
+# TLONG_REF_MAX ([K]  ) :  maximum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MAX =  303.1 
+
+# TLONG_REF_MIN  ([K]  ) :  minimum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MIN  =  253.1 
+
+# NCD_MAX_YEAR ([days]) :   	{OK_STOMATE }
+NCD_MAX_YEAR =  3.  
+
+# GDD_THRESHOLD  ([days] ) :   	{OK_STOMATE }
+GDD_THRESHOLD  =  5.  
+
+# GREEN_AGE_EVER  ([-]  ) :   	{OK_STOMATE }
+GREEN_AGE_EVER  =  2.  
+
+# GREEN_AGE_DEC ([-] ) :   	{OK_STOMATE }
+GREEN_AGE_DEC =  0.5  
+
+# ESTAB_MAX_TREE ([-]   ) :  Maximum tree establishment rate  	{OK_DGVM}
+ESTAB_MAX_TREE =  0.12  
+
+# ESTAB_MAX_GRASS ([-]  ) :  Maximum grass establishment rate 	{OK_DGVM}
+ESTAB_MAX_GRASS =  0.12  
+
+# ESTABLISH_SCAL_FACT ([-] ) :   	{OK_DGVM }
+ESTABLISH_SCAL_FACT =  5. 
+
+# MAX_TREE_COVERAGE  ([-] ) :   	{OK_DGVM }
+MAX_TREE_COVERAGE  =  0.98 
+
+# IND_0_ESTAB ([-]  ) :   	{OK_DGVM }
+IND_0_ESTAB =  0.2 
+
+# ANNUAL_INCREASE ([FLAG]) :  for diagnosis of fpc increase, compare today's fpc to last year's maximum (T) or to fpc of last time step (F)? 	{OK_DGVM}
+ANNUAL_INCREASE =  y 
+
+# MIN_COVER  ([-]  ) :  For trees, minimum fraction of crown area occupied  	{OK_DGVM}
+MIN_COVER  =  0.05  
+
+# IND_0  ([-]  ) :  initial density of individuals 	{OK_DGVM}
+IND_0  =  0.02  
+
+# MIN_AVAIL ([-]  ) :  minimum availability 	{OK_DGVM}
+MIN_AVAIL =  0.01 
+
+# RIP_TIME_MIN ([year]  ) :   	{OK_DGVM}
+RIP_TIME_MIN =  1.25  
+
+# NPP_LONGTERM_INIT ([gC/m^2/year]) :   	{OK_DGVM}
+NPP_LONGTERM_INIT =  10. 
+
+# EVERYWHERE_INIT ([-] ) :   	{OK_DGVM}
+EVERYWHERE_INIT =  0.05  
+
+# THERMOSOIL_NBLEV ((-)) :  Number of soil level 	{}
+THERMOSOIL_NBLEV =  7 
+
+# DRY_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}] ) :  Dry soil Heat capacity of soils 	{OK_SECHIBA }
+DRY_SOIL_HEAT_CAPACITY =  1.80e+6 
+
+# DRY_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}] ) :  Dry soil Thermal Conductivity of soils 	{OK_SECHIBA}
+DRY_SOIL_HEAT_COND =  0.40  
+
+# WET_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}]) :  Wet soil Heat capacity of soils  	{OK_SECHIBA}
+WET_SOIL_HEAT_CAPACITY =  3.03e+6 
+
+# WET_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Wet soil Thermal Conductivity of soils 	{OK_SECHIBA }
+WET_SOIL_HEAT_COND =  1.89  
+
+# SNOW_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Thermal Conductivity of snow 	{OK_SECHIBA  }
+SNOW_HEAT_COND =  0.3 
+
+# SNOW_DENSITY ([-] ) :  Snow density for the soil thermodynamics  	{OK_SECHIBA }
+SNOW_DENSITY =  330.0 
+
+# NOBIO_WATER_CAPAC_VOLUMETRI ([s/m^2]) :   	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+NOBIO_WATER_CAPAC_VOLUMETRI =  150. 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# CHOISNEL_DIFF_MIN ([kg/m^2/dt]) :  Diffusion constant for the slow regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MIN =  0.001 
+
+# CHOISNEL_DIFF_MAX ([kg/m^2/dt]) :  Diffusion constant for the fast regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MAX =  0.1 
+
+# CHOISNEL_DIFF_EXP ([-]) :  The exponential in the diffusion law 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_EXP =  1.5 
+
+# CHOISNEL_RSOL_CSTE ([s/m^2]) :  Constant in the computation of resistance for bare  soil evaporation  	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_RSOL_CSTE =  33.E3 
+
+# HCRIT_LITTER ([m]) :  Scaling depth for litter humidity 	{OK_SECHIBA and .NOT.(HYDROL_CWRR) }
+HCRIT_LITTER =  0.08  
+
+# SECHIBA_DAY ([days]) :  Time within the day simulated 	{OK_SECHIBA}
+SECHIBA_DAY =  0.0 
+
+# VEGET_UPDATE ([years]) :  Update vegetation frequency 	{LAND_USE}
+VEGET_UPDATE =  0Y 
+
+# SECHIBA_ZCANOP ([m]) :  Soil level used for canopy development (if STOMATE disactivated) 	{OK_SECHIBA and .NOT. OK_STOMATE  }
+SECHIBA_ZCANOP =  0.5 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# DT_SLOW ([seconds]) :  Time step of STOMATE and other slow processes 	{OK_STOMATE}
+DT_SLOW =  86400. 
+
+# SECHIBA_VEGMAX ([-]) :  Maximum vegetation distribution within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_VEGMAX =  0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0 
+
+# SECHIBA_FRAC_NOBIO ([-]) :  Fraction of other surface types within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_FRAC_NOBIO =  0.0 
+
+# SECHIBA_LAI ([-]) :  LAI for all vegetation types (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# SOIL_FRACTIONS ([-]) :  Fraction of the 3 soil types (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOILT}
+SOIL_FRACTIONS =  -9999._sechiba 
+
+# CLAY_FRACTION ([-] ) :  Fraction of the clay fraction (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOIL}
+CLAY_FRACTION =  0.2 
+
+# REINF_SLOPE ([-]) :  Slope coef for reinfiltration  	{IMPOSE_VEG}
+REINF_SLOPE =  0.1 
+
+# SLOWPROC_HEIGHT ([m]) :  Height for all vegetation types  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1.0, 1.0 
+
+# GET_SLOPE ([FLAG]) :  Read slopes from file and do the interpolation 	{}
+GET_SLOPE =  n 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(LAI_MAP)}
+LAI_FILE =  lai2D.nc 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAI_MAP}
+LAI_FILE =  lai2D.nc 
+
+# RENORM_LAI ([FLAG]) :  flag to force LAI renormelization 	{LAI_MAP}
+RENORM_LAI =  n 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAND_USE}
+VEGETATION_FILE =  PFTmap.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# SOILCLASS_FILE ([FILE]) :  Name of file from which soil types are read 	{NOT(IMPOSE_VEG)}
+SOILCLASS_FILE =  soils_param.nc 
+
+# SLOPE_NOREINF ([-]) :  See slope_noreinf above 	{}
+SLOPE_NOREINF =  0.5 
+
+# TOPOGRAPHY_FILE ([FILE]) :  Name of file from which the topography map is to be read 	{}
+TOPOGRAPHY_FILE =  cartepente2d_15min.nc 
+
+# SOILALB_FILE ([FILE]) :  Name of file from which the bare soil albedo 	{NOT(IMPOSE_AZE)}
+SOILALB_FILE =  soils_param.nc 
+
+# CDRAG_FROM_GCM ([FLAG]) :  Keep cdrag coefficient from gcm. 	{OK_SECHIBA}
+CDRAG_FROM_GCM =  y 
+
+# DIFFUCO_LEAFCI ([ppm]) :  Initial leaf CO2 level if not found in restart 	{OK_SECHIBA}
+DIFFUCO_LEAFCI =  233. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{}
+ALLOW_WEATHERGEN =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# HYDROL_OK_HDIFF ([FLAG]) :  do horizontal diffusion? 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)  }
+HYDROL_OK_HDIFF =  n 
+
+# HYDROL_SNOW ([kg/m^2]) :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE ([days]) :  Initial snow age if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO ([m]) :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE ([days]) :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_HUMR ([-]) :  Initial soil moisture stress if not found in restart 	{OK_SECHIBA }
+HYDROL_HUMR =  1.0 
+
+# HYDROL_BQSB ([kg/m^2]) :  Initial restart deep soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_BQSB =  999999.  
+
+# HYDROL_GQSB ([kg/m^2]) :  Initial upper soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_GQSB =  0.0 
+
+# HYDROL_DSG ([m]) :  Initial upper reservoir depth if not found in restart 	{OK_SECHIBA }
+HYDROL_DSG =  0.0 
+
+# HYDROL_QSV ([kg/m^2]) :  Initial water on canopy if not found in restart 	{OK_SECHIBA }
+HYDROL_QSV =  0.0 
+
+# HYDROL_DSP ([m]) :  Initial dry soil above upper reservoir if not found in restart 	{OK_SECHIBA }
+HYDROL_DSP =  999999. 
+
+# HYDROL_TAU_HDIFF ([seconds]) :  time scale (s) for horizontal diffusion of water 	{HYDROL_OK_HDIFF}
+HYDROL_TAU_HDIFF =  86400. 
+
+# CHECK_CWRR ([FLAG]) :  Should we check detailed CWRR water balance ? 	{HYDROL_CWRR}
+CHECK_CWRR =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{HYDROL_CWRR}
+DO_PONDS =  n 
+
+# CWRR_N_VANGENUCHTEN ([-]) :  Van genuchten coefficient n 	{HYDROL_CWRR}
+CWRR_N_VANGENUCHTEN =  1.89, 1.56, 1.31 
+
+# CWRR_A_VANGENUCHTEN ([1/mm]  ) :  Van genuchten coefficient a 	{HYDROL_CWRR}
+CWRR_A_VANGENUCHTEN =  0.0075, 0.0036, 0.0019 
+
+# VWC_RESIDUAL ([mm]  ) :  Residual soil water content 	{HYDROL_CWRR}
+VWC_RESIDUAL =  0.065, 0.078, 0.095 
+
+# VWC_SAT ([-]  ) :  Saturated soil water content 	{HYDROL_CWRR}
+VWC_SAT =  0.41, 0.43, 0.41 
+
+# CWRR_KS  ([mm/d]   ) :  Hydraulic conductivity Saturation 	{HYDROL_CWRR }
+CWRR_KS  =  1060.8, 249.6, 62.4 
+
+# WETNESS_TRANSPIR_MAX ([-]    ) :  Soil moisture above which transpir is max 	{HYDROL_CWRR}
+WETNESS_TRANSPIR_MAX =  0.5, 0.5, 0.5 
+
+# DRAINAGE_FACTOR_F ([-]   ) :  Max value of the permeability coeff at the bottom of the soil  	{HYDROL_CWRR}
+DRAINAGE_FACTOR_F =  1.0, 1.0, 1.0  
+
+# VWC_FC  ([-]   ) :  Volumetric water content field capacity 	{HYDROL_CWRR}
+VWC_FC  =  0.32, 0.32, 0.32 
+
+# VWC_WP ([-]   ) :  Volumetric water content Wilting pt 	{HYDROL_CWRR}
+VWC_WP =  0.10, 0.10, 0.10  
+
+# VWC_MIN_FOR_WET_ALB ([-]  ) :  Vol. wat. cont. above which albedo is cst 	{HYDROL_CWRR}
+VWC_MIN_FOR_WET_ALB =  0.25, 0.25, 0.25 
+
+# VWC_MAX_FOR_DRY_ALB ([-]   ) :  Vol. wat. cont. below which albedo is cst 	{HYDROL_CWRR}
+VWC_MAX_FOR_DRY_ALB =  0.1, 0.1, 0.1 
+
+# HYDROL_MOISTURE_CONTENT () :  Soil moisture on each soil tile and levels 	{HYDROL_CWRR       }
+HYDROL_MOISTURE_CONTENT =  0.3 
+
+# US_INIT () :  US_NVM_NSTM_NSLM 	{HYDROL_CWRR       }
+US_INIT =  0.0 
+
+# FREE_DRAIN_COEF () :  Coefficient for free drainage at bottom 	{HYDROL_CWRR       }
+FREE_DRAIN_COEF =  1.0, 1.0, 1.0 
+
+# WATER_TO_INFILT () :  Water to be infiltrated on top of the soil 	{HYDROL_CWRR    }
+WATER_TO_INFILT =  0.0 
+
+# EVAPNU_SOIL () :  Bare soil evap on each soil if not found in restart 	{HYDROL_CWRR  }
+EVAPNU_SOIL =  0.0 
+
+# HYDROL_SNOW () :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE () :  Initial snow age if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO () :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE () :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_QSV () :  Initial water on canopy if not found in restart 	{OK_SECHIBA}
+HYDROL_QSV =  0.0 
+
+# CWRR_NKS_N0  ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_N0  =  0.95 
+
+# CWRR_NKS_POWER ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_POWER =  0.34 
+
+# CWRR_AKS_A0  ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_A0  =  0.00012 
+
+# CWRR_AKS_POWER ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_POWER =  0.53 
+
+# KFACT_DECAY_RATE ([-]) :  Factor for Ks decay with depth 	{HYDROL_CWRR }
+KFACT_DECAY_RATE =  2.0 
+
+# KFACT_STARTING_DEPTH ([-]) :  Depth for compacted value of Ks  	{HYDROL_CWRR }
+KFACT_STARTING_DEPTH =  0.3 
+
+# KFACT_MAX ([-]) :  Maximum Factor for Ks increase due to vegetation 	{HYDROL_CWRR }
+KFACT_MAX =  10.0 
+
+# ROUTING_TIMESTEP ([seconds]) :  Time step of the routing scheme 	{RIVER_ROUTING}
+ROUTING_TIMESTEP =  86400. 
+
+# ROUTING_RIVERS ([-]) :  Number of rivers  	{RIVER_ROUTING}
+ROUTING_RIVERS =  50 
+
+# DO_FLOODINFILT ([FLAG]) :  Should floodplains reinfiltrate into the soil  	{RIVER_ROUTING}
+DO_FLOODINFILT =  n 
+
+# DO_SWAMPS ([FLAG]) :  Should we include swamp parameterization  	{RIVER_ROUTING}
+DO_SWAMPS =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{RIVER_ROUTING}
+DO_PONDS =  n 
+
+# SLOW_TCST ([days]) :  Time constant for the slow reservoir  	{RIVER_ROUTING }
+SLOW_TCST =  n 
+
+# FAST_TCST ([days]) :  Time constant for the fast reservoir  	{RIVER_ROUTING }
+FAST_TCST =  fast_tcst_cwrr or fast_tcst_chois depending on flag HYDROL_CWRR 
+
+# STREAM_TCST ([days]) :  Time constant for the stream reservoir  	{RIVER_ROUTING}
+STREAM_TCST =  stream_tcst_cwrr or stream_tcst_chois depending on flag HYDROL_CWRR 
+
+# FLOOD_TCST ([days]) :  Time constant for the flood reservoir  	{RIVER_ROUTING}
+FLOOD_TCST =  4.0 
+
+# SWAMP_CST ([-]) :  Fraction of the river that flows back to swamps  	{RIVER_ROUTING}
+SWAMP_CST =  0.2 
+
+# FLOOD_BETA ([-] ) :  Parameter to fix the shape of the floodplain   	{RIVER_ROUTING}
+FLOOD_BETA =  2.0 
+
+# POND_BETAP ([-] ) :  Ratio of the basin surface intercepted by ponds and the maximum surface of ponds 	{RIVER_ROUTING}
+POND_BETAP =  0.5 
+
+# FLOOD_CRI ([mm] ) :  Potential height for which all the basin is flooded 	{DO_FLOODPLAINS or DO_PONDS}
+FLOOD_CRI =  2000. 
+
+# POND_CRI ([mm] ) :  Potential height for which all the basin is a pond 	{DO_FLOODPLAINS or DO_PONDS}
+POND_CRI =  2000. 
+
+# RIVER_DESC ([FLAG]) :  Writes out a description of the rivers 	{RIVER_ROUTING}
+RIVER_DESC =  n 
+
+# RIVER_DESC_FILE ([FILE]) :  Filename in which we write the description of the rivers. If suffix is ".nc" a netCDF file is created 	{RIVER_DESC}
+RIVER_DESC_FILE =  river_desc.txt 
+
+# ROUTING_FILE ([FILE]) :  Name of file which contains the routing information 	{RIVER_ROUTING}
+ROUTING_FILE =  routing.nc 
+
+# IRRIGATION_FILE ([FILE]) :  Name of file which contains the map of irrigated areas 	{DO_IRRIGATION OR DO_FLOODPLAINS}
+IRRIGATION_FILE =  floodplains.nc 
+
+# EPS_CARBON ([%]   ) :  Allowed error on carbon stock 	{SPINUP_ANALYTIC}
+EPS_CARBON =  0.01 
+
+# SPINUP_PERIOD ([years]   ) :  Period to calulcate equilibrium during spinup analytic 	{SPINUP_ANALYTIC}
+SPINUP_PERIOD =  -1 
+
+# STOMATE_FORCING_NAME ([FILE]) :  Name of STOMATE's forcing file 	{OK_STOMATE}
+STOMATE_FORCING_NAME =  NONE 
+
+# STOMATE_FORCING_MEMSIZE ([MegaBytes]) :  Size of STOMATE forcing data in memory  	{OK_STOMATE}
+STOMATE_FORCING_MEMSIZE =  50 
+
+# STOMATE_CFORCING_NAME ([FILE]) :  Name of STOMATE's carbon forcing file 	{OK_STOMATE}
+STOMATE_CFORCING_NAME =  NONE 
+
+# FORCESOIL_STEP_PER_YEAR ([days, months, year]) :  Number of time steps per year for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_STEP_PER_YEAR =  365 
+
+# FORCESOIL_NB_YEAR ([years]) :  Number of years saved for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_NB_YEAR =  1 
+
+# BAVARD ([-]) :  level of online diagnostics in STOMATE (0-4) 	{OK_STOMATE}
+BAVARD =  1 
+
+# REFTEMP_FILE ([FILE]) :  Name of file from which the reference temperature is read 	{OK_STOMATE}
+REFTEMP_FILE =  reftemp.nc 
+
+# XIOS_ORCHIDEE_OK ([FLAG]) :  Use XIOS for writing diagnostics file 	{}
+XIOS_ORCHIDEE_OK =  n 
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/PARAM/run.def	(revision 5631)
@@ -0,0 +1,3 @@
+# $Id: run.def,v 1.1 2010/10/06 15:09:33 ssipsl Exp $
+#
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,68 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12+13] "  | "Mkm^2"  | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai_lands      | "lai"              |  ""              | "(lai[d=1,K=2:13])"                      | "lai (LANDS)"      | "1"      | "2"
+# lai2_lands     | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+# lai3_lands     | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+# lai4_lands     | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+# lai5_lands     | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+# lai6_lands     | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+# lai7_lands     | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+# lai8_lands     | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+# lai9_lands     | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+# lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+# lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+# lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+# lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,69 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+maxveget_forcing | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12,13] "  | "Mkm^2"  | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai02_lands    | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai03_lands    | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai04_lands    | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai05_lands    | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai06_lands    | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai07_lands    | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai08_lands    | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai09_lands    | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_stomate.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_stomate.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_stomate.cfg	(revision 5631)
@@ -0,0 +1,91 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+CONVFLUX_lands      | "CONVFLUX CONTFRAC"                  | "" | "(CONVFLUX[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                           | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands  | "CFLUX_PROD10 CONTFRAC"              | "" | "(CFLUX_PROD10[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                       | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands | "CFLUX_PROD100 CONTFRAC"             | "" | "(CFLUX_PROD100[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+HARVEST_ABOVE_lands | "HARVEST_ABOVE CONTFRAC"             | "" | "(HARVEST_ABOVE[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release product after harvest (LANDS)"                | "PgC/yr" | "2"
+SOIL_CARB_lands     | "TOTAL_SOIL_CARB VEGET_MAX CONTFRAC" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Total Soil Carbon (LANDS)"                                   | "PgC"    | "2"
+BIOMASS_lands       | "TOTAL_M VEGET_MAX CONTFRAC"         | "" | "(TOTAL_M[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Total Biomass (LANDS)"                                       | "PgC"    | "2"
+LITTER_lands        | "TOTAL_BM_LITTER VEGET_MAX CONTFRAC" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)" | "Total Litter (LANDS)"                                        | "PgC/yr" | "2"
+CO2FLUX_lands       | "CO2FLUX VEGET_MAX CONTFRAC"         | "" | "(CO2FLUX[d=1]*12*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"          | "NEE (LANDS)"                                                 | "PgC/yr" | "2"
+CO2FLUX_MONTHLY_SUM_lands | "CO2FLUX_MONTHLY_SUM VEGET_MAX CONTFRAC" | "" | "(CO2FLUX_MONTHLY_SUM[d=1]*12)"                                 | "NEE Sum (LANDS)"                                             | "PgC/yr" | "Areas[d=1]"
+NPP_lands           | "NPP VEGET_MAX CONTFRAC"             | "" | "(NPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Net Primary Produc (LANDS)"                                  | "PgC/yr" | "2"
+GPP_lands           | "GPP VEGET_MAX CONTFRAC"             | "" | "(GPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Gross Primary Produc (LANDS)"                                | "PgC/yr" | "2"
+HET_RESP_lands      | "HET_RESP VEGET_MAX CONTFRAC"        | "" | "(HET_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"        | "Heterotr. Resp. (LANDS)"                                     | "PgC/yr" | "2"
+MAINT_RESP_lands    | "MAINT_RESP VEGET_MAX CONTFRAC"      | "" | "(MAINT_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"      | "Maintenance Resp. (LANDS)"                                   | "PgC/yr" | "2"
+GROWTH_RESP_lands   | "GROWTH_RESP VEGET_MAX CONTFRAC"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Growth Resp. (LANDS)"                                        | "PgC/yr" | "2"
+cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"			    | "kg C m-2" | "Areas[d=1]"
+cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])" 	    | "Carbon in Litter Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])" 	    | "Carbon in Soil Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])" 	    | "Carbon in Products of Land Use Change" 	    | "kg C m-2" | "Areas[d=1]"
+lai_lands              | "lai"              | "" | "(lai[d=1])" 	    | "Leaf Area Fraction"   	     		    | "1"   	 | "Areas[d=1]"
+gpp_lands              | "gpp"              | "" | "(gpp[d=1])" 	    | "Gross Primary Production" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+ra_lands               | "ra"               | "" | "(ra[d=1])" 		    | "Autotrophic Respiration"			    | "kg C m-2 s-1" | "Areas[d=1]"
+npp_lands              | "npp"              | "" | "(npp[d=1])" 	    | "Net Primary Production" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+rh_lands               | "rh"               | "" | "(rh[d=1])" 		    | "Heterotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+fFire_lands            | "fFire"            | "" | "(fFire[d=1])" 	    | "CO2 Emission from Fire" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])" 	    | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]"
+fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])" 	    | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]"
+nbp_lands              | "nbp"              | "" | "(nbp[d=1])" 	    | "Net Biospheric Production"      	   	    | "kg C m-2 s-1" | "Areas[d=1]"
+fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])" 	    | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]"
+fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])" 	    | "Carbon in Leaves"      	       		    | "kg C m-2" | "Areas[d=1]"
+cWood_lands            | "cWood"            | "" | "(cWood[d=1])" 	    | "Carbon in Wood" 				    | "kg C m-2" | "Areas[d=1]"
+cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])" 	    | "Carbon in Roots" 			    | "kg C m-2" | "Areas[d=1]"
+cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])" 	    | "Carbon in Other Living Compartments" 	    | "kg C m-2" | "Areas[d=1]"
+cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])" 	    | "Carbon in Fast Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])" 	    | "Carbon in Slow Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"   	| "Areas[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%" 	| "Areas[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	    | "" | "(c3PftFrac[d=1])" 	    | "Total C3 PFT Cover Fraction" 	 	    | "%" 	| "Areas[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	    | "" | "(c4PftFrac[d=1])" 	    | "Total C4 PFT Cover Fraction" 		    | "%" 	| "Areas[d=1]"
+rGrowth_lands          | "rGrowth" 	    | "" | "(rGrowth[d=1])" 	    | "Growth Autotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+rMaint_lands           | "rMaint" 	    | "" | "(rMaint[d=1])" 	    | "Maintenance Autotrophic Respiration" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+nppLeaf_lands          | "nppLeaf" 	    | "" | "(nppLeaf[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]"
+nppWood_lands          | "nppWood" 	    | "" | "(nppWood[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]"
+nppRoot_lands          | "nppRoot" 	    | "" | "(nppRoot[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]"
+nep_lands              | "nep" 		    | "" | "(nep[d=1])" 	    | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "kg C m-2 s-1" | "Areas[d=1]"
+cMassVariation_lands     | "cMassVariation"     | "" | "(cMassVariation[d=1])"    | "Carbon Mass Variation"			    | "kg C m-2 s-1" | "Areas[d=1]"
+cBal_lands             | "cMassVariation nbp" | "" | "(cMassVariation[d=1,L=2:1000]-nbp[d=2,L=2:1000])" | "Total Carbon Balance"		    | "kg C m-2 s-1" | "Areas[d=1]"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_stomate_DGVM.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
@@ -0,0 +1,117 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+CONVFLUX_lands      | "CONVFLUX CONTFRAC"                  | "" | "(CONVFLUX[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                           | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands  | "CFLUX_PROD10 CONTFRAC"              | "" | "(CFLUX_PROD10[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                       | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands | "CFLUX_PROD100 CONTFRAC"             | "" | "(CFLUX_PROD100[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+HARVEST_ABOVE_lands | "HARVEST_ABOVE CONTFRAC"             | "" | "(HARVEST_ABOVE[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release product after harvest (LANDS)"                | "PgC/yr" | "2"
+SOIL_CARB_lands     | "TOTAL_SOIL_CARB VEGET_MAX CONTFRAC" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Total Soil Carbon (LANDS)"                                   | "PgC"    | "2"
+BIOMASS_lands       | "TOTAL_M VEGET_MAX CONTFRAC"         | "" | "(TOTAL_M[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Total Biomass (LANDS)"                                       | "PgC"    | "2"
+LITTER_lands        | "TOTAL_BM_LITTER VEGET_MAX CONTFRAC" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)" | "Total Litter (LANDS)"                                        | "PgC/yr" | "2"
+CO2FLUX_lands       | "CO2FLUX VEGET_MAX CONTFRAC"         | "" | "(CO2FLUX[d=1]*12*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"          | "NEE (LANDS)"                                                 | "PgC/yr" | "2"
+CO2FLUX_MONTHLY_SUM_lands | "CO2FLUX_MONTHLY_SUM VEGET_MAX CONTFRAC" | "" | "(CO2FLUX_MONTHLY_SUM[d=1]*12)"                                 | "NEE Sum (LANDS)"                                             | "PgC/yr" | "Areas[d=1]"
+NPP_lands           | "NPP VEGET_MAX CONTFRAC"             | "" | "(NPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Net Primary Produc (LANDS)"                                  | "PgC/yr" | "2"
+GPP_lands           | "GPP VEGET_MAX CONTFRAC"             | "" | "(GPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Gross Primary Produc (LANDS)"                                | "PgC/yr" | "2"
+HET_RESP_lands      | "HET_RESP VEGET_MAX CONTFRAC"        | "" | "(HET_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"        | "Heterotr. Resp. (LANDS)"                                     | "PgC/yr" | "2"
+MAINT_RESP_lands    | "MAINT_RESP VEGET_MAX CONTFRAC"      | "" | "(MAINT_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"      | "Maintenance Resp. (LANDS)"                                   | "PgC/yr" | "2"
+GROWTH_RESP_lands   | "GROWTH_RESP VEGET_MAX CONTFRAC"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Growth Resp. (LANDS)"                                        | "PgC/yr" | "2"
+cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"			    | "kg C m-2" | "Areas[d=1]"
+cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])" 	    | "Carbon in Litter Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])" 	    | "Carbon in Soil Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])" 	    | "Carbon in Products of Land Use Change" 	    | "kg C m-2" | "Areas[d=1]"
+lai_lands              | "lai"              | "" | "(lai[d=1])" 	    | "Leaf Area Fraction"   	     		    | "1"   	 | "Areas[d=1]"
+gpp_lands              | "gpp"              | "" | "(gpp[d=1])" 	    | "Gross Primary Production" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+ra_lands               | "ra"               | "" | "(ra[d=1])" 		    | "Autotrophic Respiration"			    | "kg C m-2 s-1" | "Areas[d=1]"
+npp_lands              | "npp"              | "" | "(npp[d=1])" 	    | "Net Primary Production" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+rh_lands               | "rh"               | "" | "(rh[d=1])" 		    | "Heterotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+fFire_lands            | "fFire"            | "" | "(fFire[d=1])" 	    | "CO2 Emission from Fire" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])" 	    | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]"
+fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])" 	    | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]"
+nbp_lands              | "nbp"              | "" | "(nbp[d=1])" 	    | "Net Biospheric Production"      	   	    | "kg C m-2 s-1" | "Areas[d=1]"
+fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])" 	    | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]"
+fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])" 	    | "Carbon in Leaves"      	       		    | "kg C m-2" | "Areas[d=1]"
+cWood_lands            | "cWood"            | "" | "(cWood[d=1])" 	    | "Carbon in Wood" 				    | "kg C m-2" | "Areas[d=1]"
+cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])" 	    | "Carbon in Roots" 			    | "kg C m-2" | "Areas[d=1]"
+cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])" 	    | "Carbon in Other Living Compartments" 	    | "kg C m-2" | "Areas[d=1]"
+cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])" 	    | "Carbon in Fast Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])" 	    | "Carbon in Slow Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"   	| "Areas[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%" 	| "Areas[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	    | "" | "(c3PftFrac[d=1])" 	    | "Total C3 PFT Cover Fraction" 	 	    | "%" 	| "Areas[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	    | "" | "(c4PftFrac[d=1])" 	    | "Total C4 PFT Cover Fraction" 		    | "%" 	| "Areas[d=1]"
+rGrowth_lands          | "rGrowth" 	    | "" | "(rGrowth[d=1])" 	    | "Growth Autotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+rMaint_lands           | "rMaint" 	    | "" | "(rMaint[d=1])" 	    | "Maintenance Autotrophic Respiration" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+nppLeaf_lands          | "nppLeaf" 	    | "" | "(nppLeaf[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]"
+nppWood_lands          | "nppWood" 	    | "" | "(nppWood[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]"
+nppRoot_lands          | "nppRoot" 	    | "" | "(nppRoot[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]"
+nep_lands              | "nep" 		    | "" | "(nep[d=1])" 	    | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "kg C m-2 s-1" | "Areas[d=1]"
+cMassVariation_lands     | "cMassVariation"     | "" | "(cMassVariation[d=1])"    | "Carbon Mass Variation"			    | "kg C m-2 s-1" | "Areas[d=1]"
+cBal_lands             | "cMassVariation nbp" | "" | "(cMassVariation[d=1,L=2:1000]-nbp[d=2,L=2:1000])" | "Total Carbon Balance"		    | "kg C m-2 s-1" | "Areas[d=1]"
+ADAPTATION01_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=1])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION02_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=2])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION03_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=3])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION04_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=4])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION05_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=5])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION06_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=6])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION07_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=7])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION08_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=8])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION09_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=9])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION10_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=10])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION11_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=11])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION12_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=12])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION13_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=13])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+REGENERATION01_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=1])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION02_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=2])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION03_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=3])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION04_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=4])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION05_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=5])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION06_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=6])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION07_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=7])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION08_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=8])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION09_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=9])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION10_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=10])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION11_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=11])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION12_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=12])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION13_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=13])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/OOL_SEC_STO/config.card	(revision 5631)
@@ -0,0 +1,128 @@
+#
+# This is config.card file for restart with an NEW libIGCM simulation tree.
+#
+#====================================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=AUTO
+LongName="Please, explain here what is this simulation for"
+TagName=AUTO
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=AUTO
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=AUTO
+ARCHIVE=AUTO
+#============================
+#-- leap, noleap, 360d
+CalendarType=gregorian
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1982-01-01
+DateEnd=1982-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1M
+#============================
+#-- Total Number of Processors (minimum is 2 for a coupled configuration)
+JobNumProcTot=_AUTO_
+#============================
+PeriodNb=12
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component, Name of component, Tag of component
+SRF= (sechiba, orchidee)
+SBG= (stomate, orchidee)
+OOL= (orchidee_ol, orchidee)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+Name=orchidee_ol
+#D- For each component, Real name of executable, Name of executable for oasis
+SRF= ("", "")
+SBG= ("", "")
+OOL= (orchidee_ol, orchidee_ol, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- If you want a GENERAL RULE FOR RESTARTS, put this flag to 'y'
+OverRule=n
+#D- Last day of the experience used as restart
+RestartDate=1981-12-31
+#D- Define restart simulation name (=> JOB_OS)
+RestartJobName=CD1
+#D- Path Server Group Login (=> PSGL)
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+# Attention login depend de la machine
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=_AUTO_
+#D- Do we rebuild parallel output, this flag determines
+#D- frequency of rebuild submission
+RebuildFrequency=5Y
+#D- Optimization of rebuid
+RebuildFromArchive=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=10Y
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=10Y
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+
+#========================================================================
+#D-- SRF - SECHIBA
+[SRF]
+WriteFrequency="1M HF"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1982-01-01
+# Define restart simulation name
+RestartJobName=HISTO2_
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+#-- Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
+#D-- SRF - STOMATE
+[SBG]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1982-01-01
+# Define restart simulation name
+RestartJobName=HISTO2_
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+#-- Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
+#D-- OOL -
+[OOL]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1982-01-01
+# Define restart simulation name
+RestartJobName=2L18
+RestartPath=${ARCHIVE}/${LOGIN}/SORTIES_CPL_IPSL
+# Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,43 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+LAIMAP=n
+IMPOSE_VEG=n
+# if IMPOSE_VEG = n
+LAND_USE=n
+# if LAND_USE=y
+VEGET_UPDATE=1Y
+# if LAND_USE=n and we want to use carteveg5km.nc for maxvegetfrac map.
+# (instead of default PFTmap_1850to2005_AR5_LUHa.rc2 below)
+OLD_VEGET=n
+
+[InitialStateFiles]
+List=	(${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_${year}.nc, PFTmap.nc)
+	
+[BoundaryFiles]
+#List=	(${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_${year_p1}.nc, .)
+List=	()
+ListNonDel= (${config_SBG_RestartPath}/${config_SBG_RestartJobName}/SBG/Restart/${config_SBG_RestartJobName}_${Date_Restarts}_stomate_forcing.nc, stomate_forcing.nc)
+#If you want to come back to old BIG LAND USE file (to run on multipple years, just one time with LAND USE activated), you must 
+# 1) empty BC list and INIT first PFTmap lines
+# 2) and suppress previous ListNonDel line and ucomment next one :
+#ListNonDel= (${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2.nc, PFTmap.nc) \
+#            (${config_SBG_RestartPath}/${config_SBG_RestartJobName}/SBG/Restart/${config_SBG_RestartJobName}_${Date_Restarts}_stomate_forcing.nc, stomate_forcing.nc)
+# See also same comment in sechiba.driver.
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   (run.def, used_run.def, out_teststomate, out_orchidee)
+
+[OutputFiles]
+List=	()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,195 @@
+#!/bin/ksh
+
+#D- Driver du script pour SECHIBA
+
+function ORCHIDEE_def
+{
+    IGCM_debug_PushStack "ORCHIDEE_def"
+    
+    typeset ORCHIDEE_def_KEY ORCHIDEE_default_KEY
+    
+    ORCHIDEE_def_KEY=$( grep -e "^${1}\ *=" run.def | gawk -- 'BEGIN {FS="="} {print $2}')
+    ORCHIDEE_default_KEY=$( grep -e "^${1}\ *=" ${SUBMIT_DIR}/PARAM/orchidee.default | gawk -- 'BEGIN {FS="="} {print $2}')
+
+    if [ X"${ORCHIDEE_def_KEY}" != X ] ; then
+	IGCM_debug_Print 2 "ORCHIDEE : ${1} has already been set in def file."
+	IGCM_debug_Print 2 " default value : ${ORCHIDEE_default_KEY}"
+	IGCM_debug_Print 2 " script value : ${2}"
+	IGCM_debug_Print 2 " USER value : ${ORCHIDEE_def_KEY}"
+	IGCM_debug_Print 2 "               We will not set in again !"
+    else
+	echo "${1}= ${2}" >> run.def
+	echo ""  >> run.def
+	echo "ORCHIDEE_def : ${1} ${2}"
+    fi
+    
+    IGCM_debug_PopStack "ORCHIDEE_def"
+    return $RET
+}
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    echo "ORCHIDEE Tag : " ${config_UserChoices_TagName}
+
+    NUM_PROC=1
+#D- Number of processors used for lmdz and oasis coupler computed from PBS variable
+    if [ X"${BATCH_NUM_PROC_TOT}" != X ] ; then
+	NUM_PROC=${BATCH_NUM_PROC_TOT}
+    fi
+    echo BATCH_NUM_PROC_TOT=${BATCH_NUM_PROC_TOT}
+    echo NUM_PROC=${NUM_PROC}
+
+    if ( [ X${BATCH_NUM_PROC_TOT} != X ] && [ "${BATCH_NUM_PROC_TOT}" -gt 1 ] ) ; then
+	MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND}
+    fi
+
+    RESOL_SRF=ALL
+    
+    typeset frequency
+    for frequency in ${config_SRF_WriteFrequency} ; do
+        case ${frequency} in
+            HF|hf) SRF_ok_hf=y ;;
+        esac
+    done
+
+    if [ X${sechiba_UserChoices_LAND_USE} = Xy ] ; then
+      sed -e 's&#List=\(.*\)PFTmap\(.*\)year_p1\(.*\)&List=\1PFTmap\2year_p1\3&' ${SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp
+      IGCM_sys_Mv sechiba.card.tmp ${SUBMIT_DIR}/COMP/sechiba.card
+    fi
+
+    if [ X${sechiba_UserChoices_IMPOSE_VEG} = Xy ] ; then
+      sed -e 's&\(List.*=\)*\([[:space:]]*(*\).*PFTmap.*\${year}.*.nc,.*)&\1\2)&' ${SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp
+      IGCM_sys_Mv sechiba.card.tmp ${SUBMIT_DIR}/COMP/sechiba.card
+    fi
+
+    if [ ! -f ${SUBMIT_DIR}/PARAM/run.def ] ; then
+	echo "#orchidee add :" > ${SUBMIT_DIR}/PARAM/run.def
+    else
+	echo "#orchidee add :" >> ${SUBMIT_DIR}/PARAM/run.def
+    fi
+    echo "" >> ${SUBMIT_DIR}/PARAM/run.def
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+# Optionnal function executed at the beginning of the main loop, 
+# after IGCM_config_PeriodStart see libIGCM/AA_job. 
+# It may be used to set special variables used in forward lists
+function SRF_PeriodStart
+{
+    IGCM_debug_PushStack "SRF_PeriodStart"
+    IGCM_debug_PopStack "SRF_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    typeset SECHIBA_WRITE_STEP
+
+    # Get WriteFrenquecies from config.card for SECHIBA
+    SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' ) 
+    case ${SRF_WriteFrequency} in
+	*Y|*y) 
+	    WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+	    (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;;
+	1M)
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		SECHIBA_WRITE_STEP=-1.
+		;;
+	    *M|*m)
+		SECHIBA_WRITE_STEP=-1.
+		;;
+	    *)
+		(( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 ))
+		;;
+	    esac
+	    ;;
+	*M|*m) 
+	    WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+		(( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12 ))
+		;;
+	    *M|*m)
+		PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )
+		(( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths  * 86400 / PeriodLengthInMonths  ))
+		;;
+	    *)
+		(( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 ))
+		;;
+	    esac
+	    ;;
+	5D|5d) 
+	    (( SECHIBA_WRITE_STEP = 5 * 86400 )) ;;
+	1D|1d) 
+	    (( SECHIBA_WRITE_STEP = 86400 )) ;;
+	*s)
+	    WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' )
+	    (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;;
+	*) 
+	    IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
+	    IGCM_debug_Verif_Exit ;;
+    esac
+    ORCHIDEE_def WRITE_STEP ${SECHIBA_WRITE_STEP}
+
+    if [ X${sechiba_UserChoices_IMPOSE_VEG} = Xn ] ; then
+	if [ X${sechiba_UserChoices_LAND_USE} = Xy ] ; then
+	    ORCHIDEE_def VEGET_UPDATE ${sechiba_UserChoices_VEGET_UPDATE}
+
+            ##MM : cutting PFTmaps of ORCHIDEE : for first year without restart, we must use this year map
+            ##     WARNING : the next year map must be avaible and the december month, then this device will
+            ##               only work with PeriodLength scrictly less than 1Y.
+            # If you want to come back to old BIG LAND USE file
+            # (to run on multipple years, just one time with LAND USE activated), 
+            # you must 
+            # comment all next 8 lines and check correct parameters in run.def file
+            # for your LAND USE specific file.
+	    ORCHIDEE_def VEGET_REINIT y
+	    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+		ORCHIDEE_def VEGET_YEAR 1
+	    else
+		ORCHIDEE_def VEGET_YEAR 0
+		IGCM_sys_Mv -f PFTmap_IPCC_${year_p1}.nc PFTmap.nc
+	    fi
+	elif [ X${sechiba_UserChoices_OLD_VEGET} = Xy ] ; then
+	    ORCHIDEE_def LAND_USE n
+	fi
+    else
+	ORCHIDEE_def IMPOSE_VEG y
+    fi
+
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	echo "Error in teststomate !"
+	echo "You must use some old restarts with this job." 
+	echo "We will stop here."
+	IGCM_debug_Exit "YOU MUST USE SOME OLD RESTARTS WITH THE JOB TESTSTOMATE." 
+	IGCM_debug_Verif_Exit
+    else
+	ORCHIDEE_def SECHIBA_restart_in sechiba_rest_in.nc
+    fi
+    FileToBeDeleted[${#FileToBeDeleted[@]}]=run.def
+
+    ORCHIDEE_def TIME_LENGTH ${PeriodLengthInDays}D
+#    ORCHIDEE_def TIME_SKIP ${OldSimulationLengthInDays}D
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    echo FINALIZE SRF !!!
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,51 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+stomate_LEVEL=10
+
+[InitialStateFiles]
+List=   ()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= (${R_IN}/SRF/reftemp.nc, .)
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=   (${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+# \
+#	(stomate_forcing.nc, stomate_forcing.nc, stomate_forcing.nc) \
+#	(stomate_Cforcing.nc, stomate_Cforcing.nc, stomate_Cforcing.nc)
+
+
+[OutputText]
+List=   (run.def, used_run.def)
+
+[OutputFiles]
+List=	(stomate_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_history.nc, Post_1M_stomate_history) \
+    (stomate_ipcc_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_ipcc_history.nc, Post_1M_stomate_ipcc_history)
+
+[Post_1M_stomate_history]
+Patches= ()
+GatherWithInternal= (lon, lat, PFT, time_counter, Areas)
+TimeSeriesVars2D= (T2M_MONTH,CONTFRAC,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,HARVEST_ABOVE)
+ChunckJob2D = NONE
+TimeSeriesVars3D= (CO2FLUX,LAI,VEGET_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION)
+ChunckJob3D = NONE
+Seasonal=ON
+
+[Post_1M_stomate_ipcc_history]
+Patches= ()
+GatherWithInternal= (lon, lat, PFT, time_counter, Areas)
+TimeSeriesVars2D=(cVeg, cLitter, cSoil, cProduct, cMassVariation, lai, gpp, ra, npp, rh, fFire, fHarvest, fLuc, nbp, fVegLitter, fLitterSoil, cLeaf, cWood, cRoot, cMisc, cLitterAbove, cLitterBelow, cSoilFast, cSoilMedium, cSoilSlow, landCoverFrac, treeFracPrimDec, treeFracPrimEver, c3PftFrac, c4PftFrac, rGrowth, rMaint, nppLeaf, nppWood, nppRoot, nep)
+ChunckJob2D = NONE
+TimeSeriesVars3D=()
+ChunckJob3D = NONE
+Seasonal=ON
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,116 @@
+#!/bin/ksh
+
+#D- Driver du script pour STOMATE
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    RESOL_SBG=ALL
+    
+    typeset frequency
+    for frequency in ${config_SBG_WriteFrequency} ; do
+        case ${frequency} in
+            HF|hf) SBG_ok_hf=y ;;
+        esac
+    done
+    
+    IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_PeriodStart
+{
+    IGCM_debug_PushStack "SBG_PeriodStart"
+
+    IGCM_debug_PopStack "SBG_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    typeset STOMATE_WRITE_STEP
+
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+	    (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;;
+	1M|1m) 
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		STOMATE_WRITE_STEP=-1.
+		;;
+	    *M|*m)
+		STOMATE_WRITE_STEP=-1.
+		;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	*M|*m) 
+	    WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = 30 )) ;;
+	    *M|*m)
+		PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	5D|5d) 
+	    (( STOMATE_WRITE_STEP = 5 )) ;;
+	1D|1d) 
+	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*s)
+	    WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' )
+	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*) 
+	    IGCM_debug_Exit "SBG_Update " ${config_SBG_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
+	    IGCM_debug_Verif_Exit ;;
+    esac
+
+    ORCHIDEE_def STOMATE_OK_STOMATE y
+
+    ORCHIDEE_def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    ORCHIDEE_def STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL}
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "STOMATE : without restart"
+    else
+	ORCHIDEE_def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+    fi
+
+    if [ X${SBG_ok_hf} = Xy ] ; then 
+	ORCHIDEE_def STOMATE_IPCC_HIST_DT 1D
+    else
+	ORCHIDEE_def STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP}
+    fi
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+    typeset NbDaysDone NbYearsDone
+
+#     NbDaysDone=$( IGCM_date_DaysBetweenGregorianDate ${PeriodDateEnd} ${DateBegin} )
+#     NbYearsDone=$(( NbDaysDone / 360 ))
+    
+#     echo $NbDaysDone, $NbYearsDone, $(( NbYearsDone % 10 ))
+#    if [ $(( NbYearsDone % 10 )) = 0 ] ; then
+    if [ $( IGCM_date_DaysBetweenGregorianDate ${PeriodDateEnd} ${DateEnd} ) -ge 0 ] ; then
+	IGCM_sys_Put_Out stomate_Cforcing.nc ${R_OUT_SBG_R}/${config_UserChoices_JobName}_${PeriodDateEnd}_stomate_Cforcing.nc
+	rm -f stomate_Cforcing.nc
+    fi
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/PARAM/orchidee.default
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/PARAM/orchidee.default	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/PARAM/orchidee.default	(revision 5631)
@@ -0,0 +1,1514 @@
+#
+#
+#  WARNING !!! 
+#  DO NOT MODIFY THIS FILE.
+#  THIS FILE IS ONLY PROVIDING INFORMATION ABOUT DEFAULT PARAMETER SETTINGS IN ORCHIDEE. 
+#
+#*******************************************************************************************
+#                    Namelist for ORCHIDEE (trunk revision 2135) 
+#*******************************************************************************************
+#
+#  For more details, see : http://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/OrchideeParameters 
+#
+#  Note : [m] : meters; [K] : Kelvin degrees; [C] : Celsius degrees
+#
+
+#*******************************************************************************************
+#          ORCHIDEE driver parameters (read in Off-line mode only) 
+#*******************************************************************************************
+
+# DEBUG_INFO ([FLAG] ) :  Flag for debug information 	{[-]}
+DEBUG_INFO =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# SPLIT_DT ([-]) :  splits the timestep imposed by the forcing 	{NOT(WEATHERGEN)}
+SPLIT_DT =  12 
+
+# RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions 	{[-]}
+RESTART_FILEIN =  NONE 
+
+# RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by the driver 	{[-]}
+RESTART_FILEOUT =  driver_rest_out.nc 
+
+# DRIVER_reset_time ([FLAG]) :  Overwrite time values from the driver restart file 	{[-]}
+DRIVER_reset_time =  n 
+
+# TIME_SKIP ([seconds, days, months, years]) :  Time in the forcing file at which the model is started. 	{[-]}
+TIME_SKIP =  0 
+
+# TIME_LENGTH ([seconds, days, months, years]) :  Length of the integration in time. 	{[-]}
+TIME_LENGTH =  DEF 
+
+# RELAXATION ([FLAG]) :  method of forcing 	{[-]}
+RELAXATION =  n 
+
+# RELAX_A ([days?]) :  Time constant of the relaxation layer 	{RELAXATION}
+RELAX_A =  1.0 
+
+# NO_INTER  ([FLAG]) :  No interpolation IF split is larger than 1 	{[-]}
+NO_INTER  =  y 
+
+# INTER_LIN ([FLAG]) :  Interpolation IF split is larger than 1 	{[-]}
+INTER_LIN =  n 
+
+# SPRED_PREC ([-]) :  Spread the precipitation. 	{[-]}
+SPRED_PREC =  1 
+
+# NETRAD_CONS ([FLAG]) :  Conserve net radiation in the forcing 	{INTER_LIN}
+NETRAD_CONS =  y 
+
+# ATM_CO2 ([ppm]) :  Value for atm CO2 	{[-]}
+ATM_CO2 =  350. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{[-]}
+ALLOW_WEATHERGEN =  n 
+
+# DT_WEATHGEN ([seconds]) :  Calling frequency of weather generator 	{ALLOW_WEATHERGEN}
+DT_WEATHGEN =  1800. 
+
+# LIMIT_WEST ([Degrees] ) :  Western limit of region 	{[-]}
+LIMIT_WEST =  -180. 
+
+# LIMIT_EAST ([Degrees] ) :  Eastern limit of region 	{[-]}
+LIMIT_EAST =  180. 
+
+# LIMIT_NORTH ([Degrees]) :  Northern limit of region 	{[-]}
+LIMIT_NORTH =  90. 
+
+# LIMIT_SOUTH ([Degrees]) :  Southern limit of region 	{[-]}
+LIMIT_SOUTH =  -90. 
+
+# MERID_RES ([Degrees]) :  North-South Resolution 	{ALLOW_WEATHERGEN}
+MERID_RES =  2. 
+
+# ZONAL_RES ([Degrees] ) :  East-West Resolution 	{ALLOW_WEATHERGEN}
+ZONAL_RES =  2. 
+
+# IPPREC ([-] ) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+IPPREC =  0 
+
+# WEATHGEN_PRECIP_EXACT ([FLAG]) :  Exact monthly precipitation 	{ALLOW_WEATHERGEN}
+WEATHGEN_PRECIP_EXACT =  n 
+
+# DUMP_WEATHER ([FLAG]) :  Write weather from generator into a forcing file 	{ALLOW_WEATHERGEN  }
+DUMP_WEATHER =  n 
+
+# DUMP_WEATHER_FILE ([FILE]) :  Name of the file that contains the weather from generator 	{DUMP_WEATHER}
+DUMP_WEATHER_FILE =  weather_dump.nc 
+
+# DUMP_WEATHER_GATHERED ([FLAG]) :  Dump weather data on gathered grid 	{DUMP_WEATHER}
+DUMP_WEATHER_GATHERED =  y 
+
+# HEIGHT_LEV1 ([m]) :   	{DUMP_WEATHER}
+HEIGHT_LEV1 =  10. 
+
+#*******************************************************************************************
+#          ORCHIDEE parameters  
+#*******************************************************************************************
+
+# LONGPRINT ([FLAG]) :  ORCHIDEE will print more messages 	{OK_SECHIBA}
+LONGPRINT =  n 
+
+# CHECKTIME ([FLAG]) :  ORCHIDEE will print messages on time 	{OK_SECHIBA}
+CHECKTIME =  n 
+
+# SOILTYPE_CLASSIF ([-]) :  Type of classification used for the map of soil types  	{!IMPOSE_VEG}
+SOILTYPE_CLASSIF =  zobler 
+
+# ORCHIDEE_WATCHOUT ([FLAG]) :  ORCHIDEE will write out its forcing to a file 	{}
+ORCHIDEE_WATCHOUT =  n 
+
+# DT_WATCHOUT ([seconds]) :  ORCHIDEE will write out with this frequency 	{ORCHIDEE_WATCHOUT}
+DT_WATCHOUT =  dt 
+
+# WATCHOUT_FILE ([FILE]) :  Filenane for the ORCHIDEE forcing file 	{ORCHIDEE_WATCHOUT}
+WATCHOUT_FILE =  orchidee_watchout.nc 
+
+# RIVER_ROUTING ([FLAG]) :  Decides if we route the water or not 	{OK_SECHIBA}
+RIVER_ROUTING =  n 
+
+# HYDROL_CWRR ([FLAG]) :  Allows to switch on the multilayer hydrology of CWRR 	{OK_SECHIBA}
+HYDROL_CWRR =  n 
+
+# HYDROL_SOIL_DEPTH ([m]) :  Total depth of soil reservoir 	{OK_SECHIBA }
+HYDROL_SOIL_DEPTH =  4./ 2. (if HYDROL_CWRR) 
+
+# DO_IRRIGATION ([FLAG]) :  Should we compute an irrigation flux  	{RIVER_ROUTING }
+DO_IRRIGATION =  n 
+
+# DO_FLOODPLAINS ([FLAG]  ) :  Should we include floodplains  	{RIVER_ROUTING }
+DO_FLOODPLAINS =  n 
+
+# CHECK_WATERBAL ([FLAG]  ) :  Should we check the global water balance  	{OK_SECHIBA}
+CHECK_WATERBAL =  n 
+
+# STOMATE_OK_CO2 ([FLAG]) :  Activate CO2? 	{OK_SECHIBA }
+STOMATE_OK_CO2 =  n 
+
+# STOMATE_OK_STOMATE ([FLAG]) :  Activate STOMATE? 	{OK_SECHIBA and OK_CO2}
+STOMATE_OK_STOMATE =  n 
+
+# STOMATE_OK_DGVM ([FLAG]) :  Activate DGVM? 	{OK_STOMATE}
+STOMATE_OK_DGVM =  n 
+
+# DIFFUCO_OK_INCA ([FLAG]) :  Activate DIFFUCO_INCA? 	{OK_SECHIBA}
+DIFFUCO_OK_INCA =  n 
+
+# LEAFAGE_OK_INCA ([FLAG]) :  Activate LEAFAGE? 	{DIFFUCO_OK_INCA}
+LEAFAGE_OK_INCA =  n 
+
+# CANOPY_EXTINCTION  ([FLAG]) :  Use canopy radiative transfer model? 	{DIFFUCO_OK_INCA }
+CANOPY_EXTINCTION  =  n 
+
+# CANOPY_MULTILAYER ([FLAG]) :  Use canopy radiative transfer model with multi-layers 	{CANOPY_EXTINCTION }
+CANOPY_MULTILAYER =  n 
+
+# NOx_RAIN_PULSE ([FLAG]) :  Calculate NOx emissions with pulse? 	{DIFFUCO_OK_INCA }
+NOx_RAIN_PULSE =  n 
+
+# NOx_BBG_FERTIL ([FLAG]) :  Calculate NOx emissions with bbg fertilizing effect? 	{DIFFUCO_OK_INCA }
+NOx_BBG_FERTIL =  n 
+
+# NOx_FERTILIZERS_USE ([FLAG] ) :  Calculate NOx emissions with fertilizers use? 	{DIFFUCO_OK_INCA }
+NOx_FERTILIZERS_USE =  n 
+
+# STOMATE_WATCHOUT ([FLAG]) :  STOMATE does minimum service 	{OK_SECHIBA }
+STOMATE_WATCHOUT =  n 
+
+# NVM ([-]) :  number of PFTs   	{OK_SECHIBA or OK_STOMATE}
+NVM =  13 
+
+# IMPOSE_PARAM ([FLAG]) :  Do you impose the values of the parameters? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_PARAM =  y 
+
+# SECHIBA_restart_in ([FILE]) :  Name of restart to READ for initial conditions 	{OK_SECHIBA }
+SECHIBA_restart_in =  NONE 
+
+# SECHIBA_rest_out ([FILE]) :  Name of restart files to be created by SECHIBA 	{OK_SECHIBA}
+SECHIBA_rest_out =  sechiba_rest_out.nc 
+
+# SECHIBA_reset_time ([FLAG]) :  Override the time from the restart files for SECHIBA and STOMATE 	{OK_SECHIBA}
+SECHIBA_reset_time =  y 
+
+# STOMATE_RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions of STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEIN =  NONE 
+
+# STOMATE_RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEOUT =  stomate_restart.nc 
+
+# ALMA_OUTPUT ([FLAG]) :  Should the output follow the ALMA convention 	{OK_SECHIBA}
+ALMA_OUTPUT =  n 
+
+# OUTPUT_FILE ([FILE]) :  Name of file in which the output is going to be written 	{OK_SECHIBA}
+OUTPUT_FILE =  sechiba_history.nc 
+
+# WRITE_STEP ([seconds]) :  Frequency in seconds at which to WRITE output 	{OK_SECHIBA}
+WRITE_STEP =  86400. 
+
+# SECHIBA_HISTLEVEL ([-]) :  SECHIBA history output level (0..10) 	{OK_SECHIBA and HF}
+SECHIBA_HISTLEVEL =  5 
+
+# SECHIBA_HISTFILE2 ([FLAG]) :  Flag to switch on histfile 2 for SECHIBA (hi-frequency ?) 	{OK_SECHIBA}
+SECHIBA_HISTFILE2 =  n 
+
+# WRITE_STEP2 ([seconds]) :  Frequency in seconds at which to WRITE output 	{SECHIBA_HISTFILE2}
+WRITE_STEP2 =  1800.0 
+
+# SECHIBA_OUTPUT_FILE2 ([FILE]) :  Name of file in which the output number 2 is going to be written 	{SECHIBA_HISTFILE2}
+SECHIBA_OUTPUT_FILE2 =  sechiba_out_2.nc 
+
+# SECHIBA_HISTLEVEL2 ([-] ) :  SECHIBA history 2 output level (0..10) 	{SECHIBA_HISTFILE2}
+SECHIBA_HISTLEVEL2 =  1 
+
+# STOMATE_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_OUTPUT_FILE =  stomate_history.nc 
+
+# STOMATE_HIST_DT ([days]) :  STOMATE history time step 	{OK_STOMATE}
+STOMATE_HIST_DT =  10. 
+
+# STOMATE_IPCC_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_IPCC_OUTPUT_FILE =  stomate_ipcc_history.nc 
+
+# STOMATE_IPCC_HIST_DT ([days]) :  STOMATE IPCC history time step 	{OK_STOMATE}
+STOMATE_IPCC_HIST_DT =  0. 
+
+# STOMATE_HISTLEVEL ([-]) :  STOMATE history output level (0..10) 	{OK_STOMATE}
+STOMATE_HISTLEVEL =  10 
+
+# ECCENTRICITY ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+ECCENTRICITY =  0.016724 
+
+# PERIHELIE ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+PERIHELIE =  102.04 
+
+# OBLIQUITY ([Degrees]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+OBLIQUITY =  23.446 
+
+# OK_THROUGHFALL_PFT ([FLAG]) :  Activate use of PERCENT_THROUGHFALL_PFT 	{HYDROL_CWRR}
+OK_THROUGHFALL_PFT =  FALSE 
+
+# PFT_TO_MTC ([-]) :  correspondance array linking a PFT to MTC 	{OK_SECHIBA or OK_STOMATE}
+PFT_TO_MTC =  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 
+
+# PFT_NAME ([-]) :  Name of a PFT 	{OK_SECHIBA or OK_STOMATE}
+PFT_NAME =  bare ground, tropical broad-leaved evergreen, tropical broad-leaved raingreen, temperate needleleaf evergreen, temperate broad-leaved evergreen, temperate broad-leaved summergreen,  boreal needleleaf evergreen, boreal broad-leaved summergreen, boreal needleleaf summergreen,  C3 grass, C4 grass, C3 agriculture, C4 agriculture  
+
+# LEAF_TAB ([-] ) :  leaf type : 1 	{OK_STOMATE}
+LEAF_TAB =  4, 1, 1, 2, 1, 1, 2, 1, 2, 3, 3, 3, 3  
+
+# PHENO_MODEL ([-] ) :  which phenology model is used? (tabulated)  	{OK_STOMATE}
+PHENO_MODEL =  none, none, moi, none, none, ncdgdd, none, ncdgdd, ngd, moigdd, moigdd, moigdd, moigdd 
+
+# SECHIBA_LAI ([m^2/m^2]) :  laimax for maximum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# LLAIMIN ([m^2/m^2]) :  laimin for minimum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+LLAIMIN =  0., 8., 0., 4., 4.5, 0., 4., 0., 0., 0., 0., 0., 0. 
+
+# SLOWPROC_HEIGHT ([m] ) :  prescribed height of vegetation  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1., 1. 
+
+# TYPE_OF_LAI ([-]) :  Type of behaviour of the LAI evolution algorithm  	{OK_SECHIBA}
+TYPE_OF_LAI =  inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter 
+
+# NATURAL ([BOOLEAN]) :  natural?  	{OK_SECHIBA, OK_STOMATE}
+NATURAL =  y, y, y, y, y, y, y, y, y, y, y, n, n  
+
+# IS_C4 ([BOOLEAN]) :  flag for C4 vegetation types 	{OK_SECHIBA or OK_STOMATE}
+IS_C4 =  n, n, n, n, n, n, n, n, n, n, n, y, n, y 
+
+# VCMAX_FIX ([micromol/m^2/s] ) :  values used for vcmax when STOMATE is not activated 	{OK_SECHIBA and NOT(OK_STOMATE)}
+VCMAX_FIX =  0., 40., 50., 30., 35., 40.,30., 40., 35., 60., 60., 70., 70. 
+
+# DOWNREGULATION_CO2_COEFF ([-]) :  coefficient for CO2 downregulation (unitless) 	{OK_CO2}
+DOWNREGULATION_CO2_COEFF =  0., 0.38, 0.38, 0.28, 0.28, 0.28, 0.22, 0.22, 0.22, 0.26, 0.26, 0.26, 0.26 
+
+# E_KmC ([J mol-1]) :  Energy of activation for KmC 	{OK_CO2}
+E_KmC =  -9999.,  79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430. 
+
+# E_KmO ([J mol-1]) :  Energy of activation for KmO 	{OK_CO2}
+E_KmO =  -9999., 36380.,  36380.,  36380.,  36380.,  36380., 36380., 36380., 36380., 36380., 36380., 36380., 36380. 
+
+# E_gamma_star ([J mol-1]) :  Energy of activation for gamma_star 	{OK_CO2}
+E_gamma_star =  -9999., 37830.,  37830.,  37830.,  37830.,  37830., 37830., 37830., 37830., 37830., 37830., 37830., 37830. 
+
+# E_Vcmax ([J mol-1]) :  Energy of activation for Vcmax 	{OK_CO2}
+E_Vcmax =  -9999., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 67300., 71513., 67300. 
+
+# E_Jmax ([J mol-1]) :  Energy of activation for Jmax 	{OK_CO2}
+E_Jmax =  -9999., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 77900., 49884., 77900.  
+
+# aSV ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+aSV =  -9999., 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 641.64, 668.39, 641.64  
+
+# bSV ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+bSV =  -9999., -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, 0., -1.07, 0.  
+
+# TPHOTO_MIN ([-]) :  minimum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MIN =  -9999.,  -4., -4., -4., -4.,-4.,-4., -4., -4., -4., -4., -4., -4. 
+
+# TPHOTO_MAX ([-]) :  maximum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MAX =  -9999., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55. 
+
+# aSJ ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+aSJ =  -9999., 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 630., 659.70, 630.  
+
+# bSJ ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+bSJ =  -9999., -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, 0., -0.75, 0.  
+
+# D_Vcmax ([J mol-1]) :  Energy of deactivation for Vcmax 	{OK_CO2}
+D_Vcmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# D_Jmax ([J mol-1]) :  Energy of deactivation for Jmax 	{OK_CO2}
+D_Jmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# E_Rd ([J mol-1]) :  Energy of activation for Rd 	{OK_CO2}
+E_Rd =  -9999., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390. 
+
+# VCMAX25 ([micromol/m^2/s]) :  Maximum rate of Rubisco activity-limited carboxylation at 25Â°C 	{OK_STOMATE}
+VCMAX25 =  -9999., 65., 65., 35., 45., 55., 35., 45., 35., 70., 70., 70., 70. 
+
+# ARJV ([mu mol e- (mu mol CO2)-1]) :  a coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+ARJV =  -9999., 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 1.715, 2.59, 1.715 
+
+# BRJV ([(mu mol e- (mu mol CO2)-1) (Â°C)-1]) :  b coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+BRJV =  -9999., -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, 0., -0.035, 0. 
+
+# KmC25 ([ubar]) :  MichaelisâMenten constant of Rubisco for CO2 at 25Â°C 	{OK_CO2}
+KmC25 =  -9999., 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 650., 404.9, 650. 
+
+# KmO25 ([ubar]) :  MichaelisâMenten constant of Rubisco for O2 at 25Â°C 	{OK_CO2}
+KmO25 =  -9999., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 450000., 278400., 450000. 
+
+# gamma_star25 ([ubar]) :  Ci-based CO2 compensation point in the absence of Rd at 25Â°C (ubar) 	{OK_CO2}
+gamma_star25 =  -9999., 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75 
+
+# a1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+a1 =  -9999., 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85 
+
+# b1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+b1 =  -9999., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.20, 0.14, 0.20 
+
+# g0 ([mol mâ2 sâ1 barâ1]) :  Residual stomatal conductance when irradiance approaches zero  	{OK_CO2}
+g0 =  -9999., 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.01875, 0.00625, 0.01875  
+
+# h_protons ([mol mol-1]) :  Number of protons required to produce one ATP 	{OK_CO2}
+h_protons =  -9999., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4.  
+
+# fpsir ([-]) :  Fraction of PSII eâ transport rate partitioned to the C4 cycle 	{OK_CO2}
+fpsir =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.4, -9999., 0.4  
+
+# fQ ([-]) :  Fraction of electrons at reduced plastoquinone that follow the Q-cycle 	{OK_CO2}
+fQ =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 1., -9999., 1. 
+
+# fpseudo ([-]) :  Fraction of electrons at PSI that follow pseudocyclic transport  	{OK_CO2}
+fpseudo =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# kp ([mol mâ2 sâ1 barâ1]) :  Initial carboxylation efficiency of the PEP carboxylase 	{OK_CO2}
+kp =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.7, -9999., 0.7 
+
+# alpha ([-]) :  Fraction of PSII activity in the bundle sheath 	{OK_CO2}
+alpha =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# gbs ([mol mâ2 sâ1 barâ1]) :  Bundle-sheath conductance 	{OK_CO2}
+gbs =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.003, -9999., 0.003 
+
+# theta ([â]) :  Convexity factor for response of J to irradiance 	{OK_CO2}
+theta =  -9999., 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7 
+
+# alpha_LL ([mol eâ (mol photon)â1]) :  Conversion efficiency of absorbed light into J at strictly limiting light 	{OK_CO2}
+alpha_LL =  -9999., 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372 
+
+# EXT_COEFF ([-]) :  extinction coefficient of the Monsi&Seaki relationship (1953) 	{OK_SECHIBA or OK_STOMATE}
+EXT_COEFF =  .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5 
+
+# HYDROL_HUMCSTE ([m]) :  Root profile 	{OK_SECHIBA}
+HYDROL_HUMCSTE =  humcste_cwrr or humcste_mct depending on flag HYDROL_CWRR 
+
+# PREF_SOIL_VEG ([-]        ) :  The soil tile number for each vegetation 	{OK_SECHIBA or OK_STOMATE}
+PREF_SOIL_VEG =  1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 
+
+# RSTRUCT_CONST ([s/m]) :  Structural resistance  	{OK_SECHIBA}
+RSTRUCT_CONST =  0.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0,  2.5,  2.0,  2.0,  2.0 
+
+# KZERO ([kg/m^2/s]) :  A vegetation dependent constant used in the calculation of the surface resistance. 	{OK_SECHIBA}
+KZERO =  0.0, 12.E-5, 12.E-5, 12.e-5, 12.e-5, 25.e-5, 12.e-5,25.e-5, 25.e-5, 30.e-5, 30.e-5, 30.e-5, 30.e-5  
+
+# RVEG_PFT ([-]) :  Artificial parameter to increase or decrease canopy resistance. 	{OK_SECHIBA}
+RVEG_PFT =  1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1. 
+
+# WMAX_VEG ([kg/m^3]) :  Maximum field capacity for each of the vegetations (Temporary): max quantity of water 	{OK_SECHIBA}
+WMAX_VEG =  150., 150., 150., 150., 150., 150., 150.,150., 150., 150., 150., 150., 150. 
+
+# PERCENT_THROUGHFALL_PFT ([%]) :  Percent by PFT of precip that is not intercepted by the canopy 	{OK_SECHIBA OR HYDROL_CWRR}
+PERCENT_THROUGHFALL_PFT =  30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 
+
+# SNOWA_AGED ([-]) :  Minimum snow albedo value for each vegetation type after aging (dirty old snow) 	{OK_SECHIBA}
+SNOWA_AGED =  0.35, 0., 0., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.18, 0.18, 0.18, 0.18 
+
+# SNOWA_DEC ([-]) :  Decay rate of snow albedo value for each vegetation type as it will be used in condveg_snow 	{OK_SECHIBA}
+SNOWA_DEC =  0.45, 0.,  0., 0.06, 0.06, 0.11, 0.06, 0.11, 0.11, 0.52,0.52, 0.52, 0.52 
+
+# ALB_LEAF_VIS ([-]) :  leaf albedo of vegetation type, visible albedo 	{OK_SECHIBA}
+ALB_LEAF_VIS =  .00, .04, .06, .06, .06,.06, .06, .06, .06, .10, .10, .10, .10 
+
+# ALB_LEAF_NIR ([-]) :  leaf albedo of vegetation type, near infrared albedo 	{OK_SECHIBA}
+ALB_LEAF_NIR =  .00, .20, .22, .22, .22,.22, .22, .22, .22, .30, .30, .30, .30  
+
+# ISO_ACTIVITY ([-]) :  Biogenic activity for each age class : isoprene 	{DIFFUCO_OK_INCA}
+ISO_ACTIVITY =  0.5, 1.5, 1.5, 0.5 
+
+# METHANOL_ACTIVITY ([-]) :  Isoprene emission factor for each age class : methanol 	{DIFFUCO_OK_INCA}
+METHANOL_ACTIVITY =  1., 1., 0.5, 0.5 
+
+# EM_FACTOR_ISOPRENE ([ugC/g/h] ) :  Isoprene emission factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_ISOPRENE =  0., 24., 24., 8., 16., 45., 8., 8., 8., 16., 24., 5., 5. 
+
+# EM_FACTOR_MONOTERPENE ([ugC/g/h] ) :  Monoterpene emission factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MONOTERPENE =  0., 0.8, 0.8, 2.4, 1.2, 0.8, 2.4, 2.4, 2.4, 0.8, 1.2, 0.2, 0.2 
+
+# EM_FACTOR_ORVOC ([ugC/g/h]  ) :  ORVOC emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_ORVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_OVOC ([ugC/g/h]        ) :  OVOC emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_OVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_MBO ([ugC/g/h]  ) :  MBO emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MBO =  0., 0., 0., 20.0, 0., 0., 0., 0., 0., 0., 0., 0., 0. 
+
+# EM_FACTOR_METHANOL ([ugC/g/h]  ) :  Methanol emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_METHANOL =  0., 0.6, 0.6, 1.8, 0.9, 0.6, 1.8, 1.8, 1.8, 0.6, 0.9, 2., 2. 
+
+# EM_FACTOR_ACETONE ([ugC/g/h]     ) :  Acetone emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETONE =  0., 0.29, 0.29, 0.87, 0.43, 0.29, 0.87, 0.87, 0.87, 0.29, 0.43, 0.07, 0.07  
+
+# EM_FACTOR_ACETAL ([ugC/g/h]  ) :  Acetaldehyde emissions factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_ACETAL =  0., 0.1, 0.1, 0.3, 0.15, 0.1, 0.3, 0.3, 0.3, 0.1, 0.15, 0.025, 0.025 
+
+# EM_FACTOR_FORMAL ([ugC/g/h]  ) :  Formaldehyde emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_FORMAL =  0., 0.07, 0.07, 0.2, 0.1, 0.07, 0.2, 0.2, 0.2, 0.07, 0.1, 0.017, 0.017 
+
+# EM_FACTOR_ACETIC ([ugC/g/h]  ) :  Acetic Acid emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETIC =  0., 0.002, 0.002, 0.006, 0.003, 0.002, 0.006, 0.006, 0.006, 0.002, 0.003, 0.0005, 0.0005 
+
+# EM_FACTOR_FORMIC ([ugC/g/h]  ) :  Formic Acid emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_FORMIC =  0., 0.01, 0.01, 0.03, 0.015, 0.01, 0.03, 0.03, 0.03, 0.01, 0.015, 0.0025, 0.0025  
+
+# EM_FACTOR_NO_WET ([ngN/m^2/s]) :  NOx emissions factor wet soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_WET =  0., 2.6, 0.06, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.36, 0.36, 0.36, 0.36 
+
+# EM_FACTOR_NO_DRY ([ngN/m^2/s] ) :  NOx emissions factor dry soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_DRY =  0., 8.60, 0.40, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 2.65, 2.65, 2.65, 2.65 
+
+# LARCH ([-]  ) :  Larcher 1991 SAI/LAI ratio 	{DIFFUCO_OK_INCA }
+LARCH =  0., 0.015, 0.015, 0.003, 0.005, 0.005, 0.003, 0.005, 0.003, 0.005, 0.005, 0.008, 0.008 
+
+# SLA ([m^2/gC]) :  specif leaf area  	{OK_STOMATE}
+SLA =  1.5E-2, 1.53E-2, 2.6E-2, 9.26E-3, 2E-2, 2.6E-2, 9.26E-3, 2.6E-2, 1.9E-2, 2.6E-2, 2.6E-2, 2.6E-2, 2.6E-2 
+
+# S0  ([-]    ) :  Standard sapwood allocation  	{OK_STOMATE }
+S0  =  -9999., .25, .25, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30 
+
+# MAINT_RESP_SLOPE_C ([-]) :  slope of maintenance respiration coefficient (1/K), constant c of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_C =  -9999., .20, .20, .16, .16, .16, .16, .16, .16, .16, .12, .16, .12  
+
+# MAINT_RESP_SLOPE_B ([-]) :  slope of maintenance respiration coefficient (1/K), constant b of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_B =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, -.00133, .0, -.00133, .0  
+
+# MAINT_RESP_SLOPE_A ([-]) :  slope of maintenance respiration coefficient (1/K), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_A =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0     
+
+# CM_ZERO_LEAF ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for leaves, tabulated 	{OK_STOMATE}
+CM_ZERO_LEAF =  -9999., 2.35E-3, 2.62E-3, 1.01E-3, 2.35E-3, 2.62E-3, 1.01E-3,2.62E-3, 2.05E-3, 2.62E-3, 2.62E-3, 2.62E-3, 2.62E-3 
+
+# CM_ZERO_SAPABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C,for sapwood above, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPABOVE =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# CM_ZERO_SAPBELOW ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for sapwood below, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPBELOW =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4  
+
+# CM_ZERO_HEARTABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for heartwood above, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTABOVE =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_HEARTBELOW ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C,for heartwood below, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTBELOW =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_ROOT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for roots, tabulated 	{OK_STOMATE}
+CM_ZERO_ROOT =  -9999.,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3 
+
+# CM_ZERO_FRUIT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for fruits, tabulated 	{OK_STOMATE}
+CM_ZERO_FRUIT =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4     
+
+# CM_ZERO_CARBRES ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for carbohydrate reserve, tabulated 	{OK_STOMATE}
+CM_ZERO_CARBRES =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# FLAM ([-]) :  flamability: critical fraction of water holding capacity 	{OK_STOMATE}
+FLAM =  -9999., .15, .25, .25, .25, .25, .25, .25, .25, .25, .25, .35, .35 
+
+# RESIST ([-]) :  fire resistance 	{OK_STOMATE}
+RESIST =  -9999., .95, .90, .12, .50, .12, .12, .12, .12, .0, .0, .0, .0  
+
+# COEFF_LCCHANGE_1 ([-]) :  Coeff of biomass export for the year 	{OK_STOMATE}
+COEFF_LCCHANGE_1 =  -9999., 0.897, 0.897, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597  
+
+# COEFF_LCCHANGE_10 ([-]) :  Coeff of biomass export for the decade 	{OK_STOMATE}
+COEFF_LCCHANGE_10 =  -9999., 0.103, 0.103, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.403, 0.299, 0.403 
+
+# COEFF_LCCHANGE_100 ([-]) :  Coeff of biomass export for the century 	{OK_STOMATE}
+COEFF_LCCHANGE_100 =  -9999., 0., 0., 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0., 0.104, 0. 
+
+# LAI_MAX ([m^2/m^2]) :  maximum LAI, PFT-specific 	{OK_STOMATE}
+LAI_MAX =  -9999., 7., 7., 5., 5., 5., 4.5, 4.5, 3.0, 2.5, 2.5, 5.,5.  
+
+# PHENO_TYPE ([-]) :  type of phenology, 0 	{OK_STOMATE}
+PHENO_TYPE =  0, 1, 3, 1, 1, 2, 1, 2, 2, 4, 4, 2, 3 
+
+# PHENO_GDD_CRIT_C ([-]) :  critical gdd, tabulated (C), constant c of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_C =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 270., 400., 125., 400. 
+
+# PHENO_GDD_CRIT_B ([-]) :  critical gdd, tabulated (C), constant b of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_B =  -9999., -9999., -9999., -9999., -9999., -9999., -9999.,-9999., -9999., 6.25, 0., 0., 0. 
+
+# PHENO_GDD_CRIT_A ([-]) :  critical gdd, tabulated (C), constant a of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_A =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.03125,  0., 0., 0. 
+
+# NGD_CRIT ([days]) :  critical ngd, tabulated. Threshold -5 degrees 	{OK_STOMATE}
+NGD_CRIT =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# NCDGDD_TEMP ([C] ) :  critical temperature for the ncd vs. gdd function in phenology 	{OK_STOMATE}
+NCDGDD_TEMP =  -9999., -9999., -9999., -9999., -9999., 5., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# HUM_FRAC ([%]) :  critical humidity (relative to min/max) for phenology 	{OK_STOMATE}
+HUM_FRAC =  -9999., -9999., .5, -9999., -9999., -9999., -9999., -9999.,  -9999., .5, .5, .5,.5      
+
+# HUM_MIN_TIME ([days]) :  minimum time elapsed since moisture minimum 	{OK_STOMATE}
+HUM_MIN_TIME =  -9999., -9999., 50., -9999., -9999., -9999., -9999., -9999., -9999., 35., 35., 75., 75. 
+
+# TAU_SAP ([days]) :  sapwood -> heartwood conversion time 	{OK_STOMATE}
+TAU_SAP =  -9999., 730., 730., 730., 730., 730., 730., 730., 730., -9999., -9999., -9999., -9999. 
+
+# TAU_FRUIT ([days]) :  fruit lifetime 	{OK_STOMATE}
+TAU_FRUIT =  -9999., 90., 90., 90., 90., 90., 90., 90., 90., -9999., -9999., -9999., -9999. 
+
+# ECUREUIL ([-]) :  fraction of primary leaf and root allocation put into reserve 	{OK_STOMATE}
+ECUREUIL =  -9999., .0, 1., .0, .0, 1., .0, 1., 1., 1., 1., 1., 1. 
+
+# ALLOC_MIN ([-]) :  minimum allocation above/below  	{OK_STOMATE}
+ALLOC_MIN =  -9999., 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, -9999., -9999., -9999., -9999.  
+
+# ALLOC_MAX ([-]) :  maximum allocation above/below  	{OK_STOMATE}
+ALLOC_MAX =  -9999., 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, -9999., -9999., -9999., -9999. 
+
+# DEMI_ALLOC  ([-]) :  mean allocation above/below  	{OK_STOMATE}
+DEMI_ALLOC  =  -9999., 5., 5., 5., 5., 5., 5., 5., 5., -9999., -9999., -9999., -9999. 
+
+# LEAFLIFE_TAB ([years]) :  leaf longevity 	{OK_STOMATE}
+LEAFLIFE_TAB =  -9999., .5, 2., .33, 1., 2., .33, 2., 2., 2., 2., 2., 2.  
+
+# LEAFFALL ([days]) :  length of death of leaves, tabulated  	{OK_STOMATE}
+LEAFFALL =  -9999., -9999., 10., -9999., -9999., 10., -9999., 10., 10., 10., 10., 10., 10.  
+
+# LEAFAGECRIT ([days]) :  critical leaf age, tabulated 	{OK_STOMATE}
+LEAFAGECRIT =  -9999., 730., 180., 910., 730., 180., 910., 180., 180., 120., 120., 90., 90.   
+
+# SENESCENCE_TYPE ([-]) :  type of senescence, tabulated 	{OK_STOMATE}
+SENESCENCE_TYPE =  none, none, dry, none, none, cold, none, cold, cold, mixed, mixed, mixed, mixed  
+
+# SENESCENCE_HUM ([-] ) :  critical relative moisture availability for senescence 	{OK_STOMATE}
+SENESCENCE_HUM =  -9999., -9999., .3, -9999., -9999., -9999., -9999., -9999., -9999., .2, .2, .3, .2  
+
+# NOSENESCENCE_HUM ([-]) :  relative moisture availability above which there is no humidity-related senescence 	{OK_STOMATE}
+NOSENESCENCE_HUM =  -9999., -9999., .8, -9999., -9999., -9999., -9999., -9999., -9999., .3, .3, .3, .3  
+
+# MAX_TURNOVER_TIME ([days]) :  maximum turnover time for grasse 	{OK_STOMATE}
+MAX_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999.,  80.,  80., 80., 80.  
+
+# MIN_TURNOVER_TIME ([days]) :  minimum turnover time for grasse  	{OK_STOMATE}
+MIN_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 10., 10., 10., 10.  
+
+# MIN_LEAF_AGE_FOR_SENESCENCE ([days] ) :  minimum leaf age to allow senescence g 	{OK_STOMATE}
+MIN_LEAF_AGE_FOR_SENESCENCE =  -9999., -9999., 90., -9999., -9999., 90., -9999., 60., 60., 30., 30., 30., 30. 
+
+# SENESCENCE_TEMP_C ([-]) :  critical temperature for senescence (C), constant c of aT^2+bT+c, tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_C =  -9999., -9999., -9999., -9999., -9999., 12., -9999., 7., 2., -1.375, 5., 5., 10. 
+
+# SENESCENCE_TEMP_B ([-]) :  critical temperature for senescence (C), constant b of aT^2+bT+c ,tabulated 	{OK_STOMATE }
+SENESCENCE_TEMP_B =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0., .1, 0., 0., 0. 
+
+# SENESCENCE_TEMP_A ([-] ) :  critical temperature for senescence (C), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_A =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0.,.00375, 0., 0., 0.  
+
+# GDD_SENESCENCE ([days] ) :  minimum gdd to allow senescence of crops   	{OK_STOMATE}
+GDD_SENESCENCE =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 950., 4000. 
+
+# RESIDENCE_TIME ([years]) :  residence time of trees 	{OK_DGVM and NOT(LPJ_GAP_CONST_MORT)}
+RESIDENCE_TIME =  -9999., 30.0, 30.0, 40.0, 40.0, 40.0, 80.0, 80.0, 80.0, 0.0, 0.0, 0.0, 0.0  
+
+# TMIN_CRIT ([C]) :  critical tmin, tabulated 	{OK_STOMATE}
+TMIN_CRIT =  -9999.,  0.0, 0.0, -30.0, -14.0, -30.0, -45.0, -45.0, -9999., -9999., -9999., -9999., -9999. 
+
+# TCM_CRIT ([C]) :  critical tcm, tabulated  	{OK_STOMATE}
+TCM_CRIT =  -9999., -9999., -9999., 5.0, 15.5, 15.5, -8.0, -8.0, -8.0, -9999., -9999., -9999., -9999. 
+
+# HERBIVORES ([FLAG]) :  herbivores allowed? 	{OK_STOMATE }
+HERBIVORES =  n 
+
+# TREAT_EXPANSION ([FLAG]) :  treat expansion of PFTs across a grid cell? 	{OK_STOMATE }
+TREAT_EXPANSION =  n 
+
+# LPJ_GAP_CONST_MORT ([FLAG]) :  prescribe mortality if not using DGVM? 	{OK_STOMATE}
+LPJ_GAP_CONST_MORT =  y 
+
+# HARVEST_AGRI ([FLAG]) :  Harvest model for agricultural PFTs. 	{OK_STOMATE }
+HARVEST_AGRI =  y 
+
+# FIRE_DISABLE ([FLAG]) :  no fire allowed 	{OK_STOMATE }
+FIRE_DISABLE =  n 
+
+# SPINUP_ANALYTIC (BOOLEAN    ) :  Activation of the analytic resolution of the spinup. 	{OK_STOMATE}
+SPINUP_ANALYTIC =  n 
+
+# AGRICULTURE ([FLAG]) :  agriculture allowed? 	{OK_SECHIBA or OK_STOMATE}
+AGRICULTURE =  y 
+
+# IMPOSE_VEG ([FLAG]) :  Should the vegetation be prescribed ? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_VEG =  n 
+
+# IMPOSE_SOILT ([FLAG]) :  Should the soil type be prescribed ? 	{IMPOSE_VEG}
+IMPOSE_SOILT =  n 
+
+# LAI_MAP ([FLAG]) :  Read the LAI map 	{OK_SECHIBA or OK_STOMATE}
+LAI_MAP =  n 
+
+# SLOWPROC_LAI_OLD_INTERPOL ([FLAG]) :  Flag to use old "interpolation" of LAI 	{LAI_MAP}
+SLOWPROC_LAI_OLD_INTERPOL =  n 
+
+# LAND_USE ([FLAG]) :  Read a land_use vegetation map 	{OK_SECHIBA or OK_STOMATE}
+LAND_USE =  y 
+
+# VEGET_REINIT ([FLAG] ) :  booleen to indicate that a new LAND USE file will be used. 	{LAND_USE}
+VEGET_REINIT =  y 
+
+# LAND_COVER_CHANGE ([FLAG] ) :  treat land use modifications 	{LAND_USE}
+LAND_COVER_CHANGE =  n 
+
+# VEGET_YEAR ([FLAG] ) :  Year of the land_use vegetation map to be read 	{LAND_USE}
+VEGET_YEAR =  1 
+
+# SLOWPROC_VEGET_OLD_INTERPOL ([FLAG] ) :  Flag to use old "interpolation" of vegetation map. 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+SLOWPROC_VEGET_OLD_INTERPOL =  n 
+
+# MAXMASS_SNOW ([kg/m^2]  ) :  The maximum mass of a snow 	{OK_SECHIBA or HYDROL_CWRR}
+MAXMASS_SNOW =  3000. 
+
+# SNOWCRI ([kg/m^2]  ) :  Sets the amount above which only sublimation occures  	{OK_SECHIBA or HYDROL_CWRR}
+SNOWCRI =  1.5 
+
+# MIN_WIND ([m/s]) :  Minimum wind speed 	{OK_SECHIBA}
+MIN_WIND =  0.1 
+
+# MAX_SNOW_AGE ([days?]) :  Maximum period of snow aging  	{OK_SECHIBA}
+MAX_SNOW_AGE =  50. 
+
+# SNOW_TRANS ([m]   ) :  Transformation time constant for snow 	{OK_SECHIBA}
+SNOW_TRANS =  0.3 
+
+# Z0_OVER_HEIGHT ([-]   ) :  to get z0 from height  	{OK_SECHIBA }
+Z0_OVER_HEIGHT =  1/16. 
+
+# HEIGHT_DISPLACEMENT ([m]  ) :  Magic number which relates the height to the displacement height. 	{OK_SECHIBA }
+HEIGHT_DISPLACEMENT =  0.75 
+
+# Z0_BARE ([m]   ) :  bare soil roughness length 	{OK_SECHIBA }
+Z0_BARE =  0.01  
+
+# Z0_ICE ([m]   ) :  ice roughness length 	{OK_SECHIBA }
+Z0_ICE =  0.001 
+
+# TCST_SNOWA ([days]) :  Time constant of the albedo decay of snow 	{OK_SECHIBA }
+TCST_SNOWA =  5.0  
+
+# SNOWCRI_ALB ([cm]  ) :  Critical value for computation of snow albedo 	{OK_SECHIBA}
+SNOWCRI_ALB =  10.  
+
+# VIS_DRY ([-]  ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+VIS_DRY =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.27 
+
+# NIR_DRY ([-]   ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_DRY =  0.48, 0.44, 0.40, 0.36, 0.32, 0.28, 0.24, 0.20, 0.55 
+
+# VIS_WET  ([-]   ) :  The correspondance table for the soil color numbers and their albedo 	{OK_SECHIBA  }
+VIS_WET  =  0.12, 0.11, 0.10, 0.09, 0.08, 0.07, 0.06, 0.05, 0.15 
+
+# NIR_WET ([-]    ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_WET =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.31 
+
+# ALBSOIL_VIS ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_VIS =  0.18, 0.16, 0.16, 0.15, 0.12, 0.105, 0.09, 0.075, 0.25 
+
+# ALBSOIL_NIR  ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_NIR  =  0.36, 0.34, 0.34, 0.33, 0.30, 0.25, 0.20, 0.15, 0.45 
+
+# ALB_DEADLEAF  ([-]     ) :  albedo of dead leaves, VIS+NIR  	{OK_SECHIBA }
+ALB_DEADLEAF  =  0.12, 0.35 
+
+# ALB_ICE ([-]  ) :  albedo of ice, VIS+NIR 	{OK_SECHIBA}
+ALB_ICE =  0.60, 0.20 
+
+# CONDVEG_SNOWA ([-]) :  The snow albedo used by SECHIBA 	{OK_SECHIBA}
+CONDVEG_SNOWA =  1.E+20 
+
+# ALB_BARE_MODEL ([FLAG]) :  Switch bare soil albedo dependent (if TRUE) on soil wetness 	{OK_SECHIBA}
+ALB_BARE_MODEL =  n 
+
+# Z0CDRAG_AVE ([FLAG]) :  Average method for z0 	{OK_SECHIBA}
+Z0CDRAG_AVE =  y 
+
+# IMPOSE_AZE ([FLAG]) :  Should the surface parameters be prescribed 	{OK_SECHIBA}
+IMPOSE_AZE =  n 
+
+# CONDVEG_Z0 ([m]) :  Surface roughness 	{IMPOSE_AZE}
+CONDVEG_Z0 =  0.15 
+
+# ROUGHHEIGHT ([m] ) :  Height to be added to the height of the first level 	{IMPOSE_AZE}
+ROUGHHEIGHT =  0.0 
+
+# CONDVEG_ALBVIS ([-]) :  SW visible albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBVIS =  0.25 
+
+# CONDVEG_ALBNIR ([-]  ) :  SW near infrared albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBNIR =  0.25 
+
+# CONDVEG_EMIS ([-] ) :  Emissivity of the surface for LW radiation 	{IMPOSE_AZE}
+CONDVEG_EMIS =  1.0 
+
+# NLAI ([-]  ) :  Number of LAI levels 	{OK_SECHIBA}
+NLAI =  20 
+
+# LAIMAX ([m^2/m^2]   ) :  Maximum LAI 	{OK_SECHIBA}
+LAIMAX =   
+
+# DEW_VEG_POLY_COEFF ([-]   ) :  coefficients of the polynome of degree 5 for the dew 	{OK_SECHIBA}
+DEW_VEG_POLY_COEFF =  0.887773, 0.205673, 0.110112, 0.014843, 0.000824, 0.000017  
+
+# DOWNREGULATION_CO2 ([FLAG]   ) :  Activation of CO2 downregulation 	{OK_SECHIBA}
+DOWNREGULATION_CO2 =  n  
+
+# DOWNREGULATION_CO2_BASELEVEL ([ppm]   ) :  CO2 base level 	{OK_SECHIBA }
+DOWNREGULATION_CO2_BASELEVEL =  280. 
+
+# CLAYFRACTION_DEFAULT ([-]   ) :  default fraction of clay 	{OK_SECHIBA }
+CLAYFRACTION_DEFAULT =  0.2  
+
+# MIN_VEGFRAC  ([-]  ) :  Minimal fraction of mesh a vegetation type can occupy  	{OK_SECHIBA }
+MIN_VEGFRAC  =  0.001  
+
+# STEMPDIAG_BID  ([K]) :  only needed for an initial LAI if there is no restart file 	{OK_SECHIBA }
+STEMPDIAG_BID  =  280. 
+
+# LAI_LEVEL_DEPTH ([-]  ) :   	{OK_CO2}
+LAI_LEVEL_DEPTH =  0.15 
+
+# Oi ([ubar]  ) :  Intercellular oxygen partial pressure 	{OK_CO2}
+Oi =  210000. 
+
+# TOO_LONG  ([days]   ) :  longest sustainable time without regeneration (vernalization) 	{OK_STOMATE}
+TOO_LONG  =  5. 
+
+# TAU_FIRE  ([days]    ) :  Time scale for memory of the fire index (days). Validated for one year in the DGVM.  	{OK_STOMATE }
+TAU_FIRE  =  30. 
+
+# LITTER_CRIT ([gC/m^2]  ) :  Critical litter quantity for fire 	{OK_STOMATE }
+LITTER_CRIT =  200. 
+
+# FIRE_RESIST_STRUCT ([-]  ) :   	{OK_STOMATE }
+FIRE_RESIST_STRUCT =  0.5 
+
+# CO2FRAC ([-]  ) :  What fraction of a burned plant compartment goes into the atmosphere 	{OK_STOMATE }
+CO2FRAC =  0.95, 0.95, 0., 0.3, 0., 0., 0.95, 0.95 
+
+# BCFRAC_COEFF ([-]  ) :   	{OK_STOMATE }
+BCFRAC_COEFF =  0.3, 1.3, 88.2  
+
+# FIREFRAC_COEFF  ([-]   ) :   	{OK_STOMATE }
+FIREFRAC_COEFF  =  0.45, 0.8, 0.6, 0.13 
+
+# AVAILABILITY_FACT  ([-]   ) :   	{OK_STOMATE }
+AVAILABILITY_FACT  =  0.1 
+
+# REF_GREFF ([1/year]  ) :  Asymptotic maximum mortality rate 	{OK_STOMATE }
+REF_GREFF =  0.035 
+
+# OK_MINRES ([FLAG]) :  Do we try to reach a minimum reservoir even if we are severely stressed? 	{OK_STOMATE }
+OK_MINRES =  y 
+
+# TAU_LEAFINIT ([days]  ) :  time to attain the initial foliage using the carbohydrate reserve  	{OK_STOMATE }
+TAU_LEAFINIT =  10. 
+
+# RESERVE_TIME_TREE  ([days]    ) :  maximum time during which reserve is used (trees)  	{OK_STOMATE }
+RESERVE_TIME_TREE  =  30. 
+
+# RESERVE_TIME_GRASS  ([days]   ) :  maximum time during which reserve is used (grasses)  	{OK_STOMATE }
+RESERVE_TIME_GRASS  =  20.  
+
+# R0 ([-]  ) :  Standard root allocation  	{OK_STOMATE }
+R0 =  0.3  
+
+# F_FRUIT ([-]    ) :  Standard fruit allocation 	{OK_STOMATE }
+F_FRUIT =  0.1  
+
+# ALLOC_SAP_ABOVE_GRASS  ([-]   ) :  fraction of sapwood allocation above ground  	{OK_STOMATE }
+ALLOC_SAP_ABOVE_GRASS  =  1.0  
+
+# MIN_LTOLSR  ([-]   ) :  extrema of leaf allocation fraction  	{OK_STOMATE }
+MIN_LTOLSR  =  0.2 
+
+# MAX_LTOLSR ([-]   ) :  extrema of leaf allocation fraction 	{OK_STOMATE }
+MAX_LTOLSR =  0.5 
+
+# Z_NITROGEN ([m]  ) :  scaling depth for nitrogen limitation  	{OK_STOMATE}
+Z_NITROGEN =  0.2  
+
+# LAI_MAX_TO_HAPPY ([-]  ) :   	{OK_STOMATE }
+LAI_MAX_TO_HAPPY =  0.5  
+
+# NLIM_TREF  ([C]  ) :   	{OK_STOMATE }
+NLIM_TREF  =  25.  
+
+# PIPE_TUNE1 ([-]    ) :  crown area  	{OK_STOMATE }
+PIPE_TUNE1 =  100.0 
+
+# PIPE_TUNE2  ([-]      ) :  height 	{OK_STOMATE }
+PIPE_TUNE2  =  40.0  
+
+# PIPE_TUNE3 ([-]    ) :  height 	{OK_STOMATE }
+PIPE_TUNE3 =  0.5  
+
+# PIPE_TUNE4 ([-]  ) :  needed for stem diameter 	{OK_STOMATE }
+PIPE_TUNE4 =  0.3  
+
+# PIPE_DENSITY  ([-]  ) :  Density 	{OK_STOMATE }
+PIPE_DENSITY  =  2.e5  
+
+# PIPE_K1  ([-]   ) :   	{OK_STOMATE }
+PIPE_K1  =  8.e3  
+
+# PIPE_TUNE_EXP_COEFF  ([-]   ) :  pipe tune exponential coeff  	{OK_STOMATE }
+PIPE_TUNE_EXP_COEFF  =  1.6  
+
+# PRECIP_CRIT  ([mm/year]  ) :  minimum precip 	{OK_STOMATE }
+PRECIP_CRIT  =  100. 
+
+# GDD_CRIT_ESTAB ([-]  ) :  minimum gdd for establishment of saplings 	{OK_STOMATE }
+GDD_CRIT_ESTAB =  150.  
+
+# FPC_CRIT ([-]  ) :  critical fpc, needed for light competition and establishment 	{OK_STOMATE }
+FPC_CRIT =  0.95 
+
+# ALPHA_GRASS ([-]   ) :  sapling characteristics : alpha's 	{OK_STOMATE }
+ALPHA_GRASS =  0.5 
+
+# ALPHA_TREE ([-]   ) :  sapling characteristics : alpha's  	{OK_STOMATE }
+ALPHA_TREE =  1. 
+
+# MASS_RATIO_HEART_SAP ([-]   ) :  mass ratio (heartwood+sapwood)/sapwood 	{OK_STOMATE }
+MASS_RATIO_HEART_SAP =  3. 
+
+# FRAC_GROWTHRESP ([-]) :  fraction of GPP which is lost as growth respiration 	{OK_STOMATE }
+FRAC_GROWTHRESP =  0.28 
+
+# TAU_HUM_MONTH ([days]  ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_MONTH =  20.  
+
+# TAU_HUM_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_WEEK =  7. 
+
+# TAU_T2M_MONTH ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_MONTH =  20. 
+
+# TAU_T2M_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_WEEK =  7. 
+
+# TAU_TSOIL_MONTH  ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_TSOIL_MONTH  =  20.  
+
+# TAU_SOILHUM_MONTH ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_SOILHUM_MONTH =  20.  
+
+# TAU_GPP_WEEK  ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GPP_WEEK  =  7.  
+
+# TAU_GDD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GDD =  40.  
+
+# TAU_NGD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_NGD =  50. 
+
+# COEFF_TAU_LONGTERM ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+COEFF_TAU_LONGTERM =  3.  
+
+# BM_SAPL_CARBRES  ([-]   ) :   	{OK_STOMATE }
+BM_SAPL_CARBRES  =  5.  
+
+# BM_SAPL_SAPABOVE ([-]    ) :   	{OK_STOMATE}
+BM_SAPL_SAPABOVE =  0.5  
+
+# BM_SAPL_HEARTABOVE  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTABOVE  =  2. 
+
+# BM_SAPL_HEARTBELOW  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTBELOW  =  2.  
+
+# INIT_SAPL_MASS_LEAF_NAT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_NAT =  0.1  
+
+# INIT_SAPL_MASS_LEAF_AGRI ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_AGRI =  1.  
+
+# INIT_SAPL_MASS_CARBRES ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_CARBRES =  5.  
+
+# INIT_SAPL_MASS_ROOT ([-]   ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_ROOT =  0.1  
+
+# INIT_SAPL_MASS_FRUIT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_FRUIT =  0.3  
+
+# CN_SAPL_INIT  ([-]   ) :   	{OK_STOMATE }
+CN_SAPL_INIT  =  0.5  
+
+# MIGRATE_TREE  ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_TREE  =  10000. 
+
+# MIGRATE_GRASS ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_GRASS =  10000. 
+
+# LAI_INITMIN_TREE ([m^2/m^2]  ) :   	{OK_STOMATE }
+LAI_INITMIN_TREE =  0.3 
+
+# LAI_INITMIN_GRASS  ([m^2/m^2]    ) :   	{OK_STOMATE }
+LAI_INITMIN_GRASS  =  0.1 
+
+# DIA_COEFF ([-]   ) :   	{OK_STOMATE }
+DIA_COEFF =  4., 0.5 
+
+# MAXDIA_COEFF ([-]   ) :   	{OK_STOMATE }
+MAXDIA_COEFF =  100., 0.01  
+
+# BM_SAPL_LEAF ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_LEAF =  4., 4., 0.8, 5.  
+
+# METABOLIC_REF_FRAC ([-]) :  	{OK_STOMATE }
+METABOLIC_REF_FRAC =  0.85   
+
+# Z_DECOMP ([m]   ) :  scaling depth for soil activity 	{OK_STOMATE }
+Z_DECOMP =  0.2 
+
+# CN ([-]  ) :  C/N ratio 	{OK_STOMATE }
+CN =  40., 40., 40., 40., 40., 40., 40., 40. 
+
+# LC  ([-]   ) :  Lignine/C ratio of the different plant parts 	{OK_STOMATE }
+LC  =  0.22, 0.35, 0.35, 0.35, 0.35, 0.22, 0.22, 0.22 
+
+# FRAC_SOIL_STRUCT_AA ([-]) :  frac_soil(istructural,iactive,iabove) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_AA =  0.55 
+
+# FRAC_SOIL_STRUCT_A  ([-]) :  frac_soil(istructural,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_A  =  0.45 
+
+# FRAC_SOIL_STRUCT_SA ([-]   ) :  frac_soil(istructural,islow,iabove) 	{OK_STOMATE}
+FRAC_SOIL_STRUCT_SA =  0.7   
+
+# FRAC_SOIL_STRUCT_SB ([-]   ) :  frac_soil(istructural,islow,ibelow)  	{OK_STOMATE }
+FRAC_SOIL_STRUCT_SB =  0.7   
+
+# FRAC_SOIL_METAB_AA  ([-]   ) :  frac_soil(imetabolic,iactive,iabove)  	{OK_STOMATE }
+FRAC_SOIL_METAB_AA  =  0.45  
+
+# FRAC_SOIL_METAB_AB  ([-]   ) :  frac_soil(imetabolic,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_METAB_AB  =  0.45   
+
+# METABOLIC_LN_RATIO ([-]   ) :   	{OK_STOMATE }
+METABOLIC_LN_RATIO =  0.018   
+
+# TAU_METABOLIC ([days] ) :   	{OK_STOMATE }
+TAU_METABOLIC =  0.066 
+
+# TAU_STRUCT  ([days]) :   	{OK_STOMATE }
+TAU_STRUCT  =  0.245  
+
+# SOIL_Q10 ([-]) :   	{OK_STOMATE }
+SOIL_Q10 =  0.69 ( 
+
+# TSOIL_REF ([C]   ) :   	{OK_STOMATE }
+TSOIL_REF =  30.  
+
+# LITTER_STRUCT_COEF  ([-]   ) :   	{OK_STOMATE }
+LITTER_STRUCT_COEF  =  3.  
+
+# MOIST_COEFF ([-]   ) :   	{OK_STOMATE }
+MOIST_COEFF =  1.1, 2.4, 0.29 
+
+# FRAC_TURNOVER_DAILY  ([-]) :   	{OK_STOMATE }
+FRAC_TURNOVER_DAILY  =  0.55 
+
+# TAX_MAX ([-]   ) :  maximum fraction of allocatable biomass used for maintenance respiration 	{OK_STOMATE }
+TAX_MAX =  0.8 
+
+# ALWAYS_INIT ([-]   ) :  take carbon from atmosphere if carbohydrate reserve too small?  	{OK_STOMATE }
+ALWAYS_INIT =  n  
+
+# MIN_GROWTHINIT_TIME  ([days]  ) :  minimum time since last beginning of a growing season 	{OK_STOMATE }
+MIN_GROWTHINIT_TIME  =  300.  
+
+# MOIAVAIL_ALWAYS_TREE ([-]   ) :  moisture availability above which moisture tendency doesn't matter  	{OK_STOMATE }
+MOIAVAIL_ALWAYS_TREE =  1.0  
+
+# MOIAVAIL_ALWAYS_GRASS  ([-]   ) :  moisture availability above which moisture tendency doesn't matter 	{OK_STOMATE }
+MOIAVAIL_ALWAYS_GRASS  =  0.6  
+
+# T_ALWAYS_ADD ([C]    ) :  monthly temp. above which temp. tendency doesn't matter  	{OK_STOMATE }
+T_ALWAYS_ADD =  10. 
+
+# GDDNCD_REF  ([-]   ) :   	{OK_STOMATE }
+GDDNCD_REF  =  603.  
+
+# GDDNCD_CURVE ([-]  ) :   	{OK_STOMATE }
+GDDNCD_CURVE =  0.0091  
+
+# GDDNCD_OFFSET ([-]  ) :   	{OK_STOMATE }
+GDDNCD_OFFSET =  64.  
+
+# BM_SAPL_RESCALE  ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_RESCALE  =  40.  
+
+# MAINT_RESP_MIN_VMAX ([-]  ) :   	{OK_STOMATE }
+MAINT_RESP_MIN_VMAX =  0.3 
+
+# MAINT_RESP_COEFF  ([-] ) :   	{OK_STOMATE }
+MAINT_RESP_COEFF  =  1.4  
+
+# FRAC_CARB_AP ([-]) :  frac carb coefficients from active pool: depends on clay content 	{OK_STOMATE }
+FRAC_CARB_AP =  0.004 
+
+# FRAC_CARB_SA ([-]) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SA =  0.42 
+
+# FRAC_CARB_SP ([-] ) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SP =  0.03 
+
+# FRAC_CARB_PA ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PA =  0.45 
+
+# FRAC_CARB_PS ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PS =  0.0 
+
+# ACTIVE_TO_PASS_CLAY_FRAC ([-] ) :   	{OK_STOMATE }
+ACTIVE_TO_PASS_CLAY_FRAC =  0.68   
+
+# CARBON_TAU_IACTIVE ( [days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IACTIVE =  0.149 
+
+# CARBON_TAU_ISLOW ([days]) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_ISLOW =  5.48 
+
+# CARBON_TAU_IPASSIVE ([days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IPASSIVE =  241. 
+
+# FLUX_TOT_COEFF ([days] ) :  	{OK_STOMATE }
+FLUX_TOT_COEFF =  1.2, 1.4,.75 
+
+# NEW_TURNOVER_TIME_REF ([days]  ) :   	{OK_STOMATE }
+NEW_TURNOVER_TIME_REF =  20.  
+
+# DT_TURNOVER_TIME  ([days]  ) :   	{OK_STOMATE }
+DT_TURNOVER_TIME  =  10. 
+
+# LEAF_AGE_CRIT_TREF ([days]  ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_TREF =  20.  
+
+# LEAF_AGE_CRIT_COEFF  ([-] ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_COEFF  =  1.5, 0.75, 10.  
+
+# VMAX_OFFSET  ([-]  ) :  offset (minimum relative vcmax) 	{OK_STOMATE }
+VMAX_OFFSET  =  0.3 
+
+# LEAFAGE_FIRSTMAX ([-] ) :  leaf age at which vmax attains vcmax_opt (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_FIRSTMAX =  0.03  
+
+# LEAFAGE_LASTMAX  ([-]  ) :  leaf age at which vmax falls below vcmax_opt (in fraction of critical leaf age)  	{OK_STOMATE }
+LEAFAGE_LASTMAX  =  0.5  
+
+# LEAFAGE_OLD  ([-]  ) :  leaf age at which vmax attains its minimum (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_OLD  =  1. 
+
+# GPPFRAC_DORMANCE  ([-]) :  rapport maximal GPP/GGP_max pour dormance 	{OK_STOMATE }
+GPPFRAC_DORMANCE  =  0.2  
+
+# TAU_CLIMATOLOGY ([days]) :  tau for "climatologic variables  	{OK_STOMATE }
+TAU_CLIMATOLOGY =  20 
+
+# HVC1  ([-]  ) :  parameters for herbivore activity 	{OK_STOMATE }
+HVC1  =  0.019 
+
+# HVC2  ([-]  ) :  parameters for herbivore activity  	{OK_STOMATE }
+HVC2  =  1.38 
+
+# LEAF_FRAC_HVC ([-] ) :  parameters for herbivore activity  	{OK_STOMATE }
+LEAF_FRAC_HVC =  0.33 
+
+# TLONG_REF_MAX ([K]  ) :  maximum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MAX =  303.1 
+
+# TLONG_REF_MIN  ([K]  ) :  minimum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MIN  =  253.1 
+
+# NCD_MAX_YEAR ([days]) :   	{OK_STOMATE }
+NCD_MAX_YEAR =  3.  
+
+# GDD_THRESHOLD  ([days] ) :   	{OK_STOMATE }
+GDD_THRESHOLD  =  5.  
+
+# GREEN_AGE_EVER  ([-]  ) :   	{OK_STOMATE }
+GREEN_AGE_EVER  =  2.  
+
+# GREEN_AGE_DEC ([-] ) :   	{OK_STOMATE }
+GREEN_AGE_DEC =  0.5  
+
+# ESTAB_MAX_TREE ([-]   ) :  Maximum tree establishment rate  	{OK_DGVM}
+ESTAB_MAX_TREE =  0.12  
+
+# ESTAB_MAX_GRASS ([-]  ) :  Maximum grass establishment rate 	{OK_DGVM}
+ESTAB_MAX_GRASS =  0.12  
+
+# ESTABLISH_SCAL_FACT ([-] ) :   	{OK_DGVM }
+ESTABLISH_SCAL_FACT =  5. 
+
+# MAX_TREE_COVERAGE  ([-] ) :   	{OK_DGVM }
+MAX_TREE_COVERAGE  =  0.98 
+
+# IND_0_ESTAB ([-]  ) :   	{OK_DGVM }
+IND_0_ESTAB =  0.2 
+
+# ANNUAL_INCREASE ([FLAG]) :  for diagnosis of fpc increase, compare today's fpc to last year's maximum (T) or to fpc of last time step (F)? 	{OK_DGVM}
+ANNUAL_INCREASE =  y 
+
+# MIN_COVER  ([-]  ) :  For trees, minimum fraction of crown area occupied  	{OK_DGVM}
+MIN_COVER  =  0.05  
+
+# IND_0  ([-]  ) :  initial density of individuals 	{OK_DGVM}
+IND_0  =  0.02  
+
+# MIN_AVAIL ([-]  ) :  minimum availability 	{OK_DGVM}
+MIN_AVAIL =  0.01 
+
+# RIP_TIME_MIN ([year]  ) :   	{OK_DGVM}
+RIP_TIME_MIN =  1.25  
+
+# NPP_LONGTERM_INIT ([gC/m^2/year]) :   	{OK_DGVM}
+NPP_LONGTERM_INIT =  10. 
+
+# EVERYWHERE_INIT ([-] ) :   	{OK_DGVM}
+EVERYWHERE_INIT =  0.05  
+
+# THERMOSOIL_NBLEV ((-)) :  Number of soil level 	{}
+THERMOSOIL_NBLEV =  7 
+
+# DRY_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}] ) :  Dry soil Heat capacity of soils 	{OK_SECHIBA }
+DRY_SOIL_HEAT_CAPACITY =  1.80e+6 
+
+# DRY_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}] ) :  Dry soil Thermal Conductivity of soils 	{OK_SECHIBA}
+DRY_SOIL_HEAT_COND =  0.40  
+
+# WET_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}]) :  Wet soil Heat capacity of soils  	{OK_SECHIBA}
+WET_SOIL_HEAT_CAPACITY =  3.03e+6 
+
+# WET_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Wet soil Thermal Conductivity of soils 	{OK_SECHIBA }
+WET_SOIL_HEAT_COND =  1.89  
+
+# SNOW_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Thermal Conductivity of snow 	{OK_SECHIBA  }
+SNOW_HEAT_COND =  0.3 
+
+# SNOW_DENSITY ([-] ) :  Snow density for the soil thermodynamics  	{OK_SECHIBA }
+SNOW_DENSITY =  330.0 
+
+# NOBIO_WATER_CAPAC_VOLUMETRI ([s/m^2]) :   	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+NOBIO_WATER_CAPAC_VOLUMETRI =  150. 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# CHOISNEL_DIFF_MIN ([kg/m^2/dt]) :  Diffusion constant for the slow regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MIN =  0.001 
+
+# CHOISNEL_DIFF_MAX ([kg/m^2/dt]) :  Diffusion constant for the fast regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MAX =  0.1 
+
+# CHOISNEL_DIFF_EXP ([-]) :  The exponential in the diffusion law 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_EXP =  1.5 
+
+# CHOISNEL_RSOL_CSTE ([s/m^2]) :  Constant in the computation of resistance for bare  soil evaporation  	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_RSOL_CSTE =  33.E3 
+
+# HCRIT_LITTER ([m]) :  Scaling depth for litter humidity 	{OK_SECHIBA and .NOT.(HYDROL_CWRR) }
+HCRIT_LITTER =  0.08  
+
+# SECHIBA_DAY ([days]) :  Time within the day simulated 	{OK_SECHIBA}
+SECHIBA_DAY =  0.0 
+
+# VEGET_UPDATE ([years]) :  Update vegetation frequency 	{LAND_USE}
+VEGET_UPDATE =  0Y 
+
+# SECHIBA_ZCANOP ([m]) :  Soil level used for canopy development (if STOMATE disactivated) 	{OK_SECHIBA and .NOT. OK_STOMATE  }
+SECHIBA_ZCANOP =  0.5 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# DT_SLOW ([seconds]) :  Time step of STOMATE and other slow processes 	{OK_STOMATE}
+DT_SLOW =  86400. 
+
+# SECHIBA_VEGMAX ([-]) :  Maximum vegetation distribution within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_VEGMAX =  0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0 
+
+# SECHIBA_FRAC_NOBIO ([-]) :  Fraction of other surface types within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_FRAC_NOBIO =  0.0 
+
+# SECHIBA_LAI ([-]) :  LAI for all vegetation types (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# SOIL_FRACTIONS ([-]) :  Fraction of the 3 soil types (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOILT}
+SOIL_FRACTIONS =  -9999._sechiba 
+
+# CLAY_FRACTION ([-] ) :  Fraction of the clay fraction (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOIL}
+CLAY_FRACTION =  0.2 
+
+# REINF_SLOPE ([-]) :  Slope coef for reinfiltration  	{IMPOSE_VEG}
+REINF_SLOPE =  0.1 
+
+# SLOWPROC_HEIGHT ([m]) :  Height for all vegetation types  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1.0, 1.0 
+
+# GET_SLOPE ([FLAG]) :  Read slopes from file and do the interpolation 	{}
+GET_SLOPE =  n 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(LAI_MAP)}
+LAI_FILE =  lai2D.nc 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAI_MAP}
+LAI_FILE =  lai2D.nc 
+
+# RENORM_LAI ([FLAG]) :  flag to force LAI renormelization 	{LAI_MAP}
+RENORM_LAI =  n 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAND_USE}
+VEGETATION_FILE =  PFTmap.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# SOILCLASS_FILE ([FILE]) :  Name of file from which soil types are read 	{NOT(IMPOSE_VEG)}
+SOILCLASS_FILE =  soils_param.nc 
+
+# SLOPE_NOREINF ([-]) :  See slope_noreinf above 	{}
+SLOPE_NOREINF =  0.5 
+
+# TOPOGRAPHY_FILE ([FILE]) :  Name of file from which the topography map is to be read 	{}
+TOPOGRAPHY_FILE =  cartepente2d_15min.nc 
+
+# SOILALB_FILE ([FILE]) :  Name of file from which the bare soil albedo 	{NOT(IMPOSE_AZE)}
+SOILALB_FILE =  soils_param.nc 
+
+# CDRAG_FROM_GCM ([FLAG]) :  Keep cdrag coefficient from gcm. 	{OK_SECHIBA}
+CDRAG_FROM_GCM =  y 
+
+# DIFFUCO_LEAFCI ([ppm]) :  Initial leaf CO2 level if not found in restart 	{OK_SECHIBA}
+DIFFUCO_LEAFCI =  233. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{}
+ALLOW_WEATHERGEN =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# HYDROL_OK_HDIFF ([FLAG]) :  do horizontal diffusion? 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)  }
+HYDROL_OK_HDIFF =  n 
+
+# HYDROL_SNOW ([kg/m^2]) :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE ([days]) :  Initial snow age if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO ([m]) :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE ([days]) :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_HUMR ([-]) :  Initial soil moisture stress if not found in restart 	{OK_SECHIBA }
+HYDROL_HUMR =  1.0 
+
+# HYDROL_BQSB ([kg/m^2]) :  Initial restart deep soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_BQSB =  999999.  
+
+# HYDROL_GQSB ([kg/m^2]) :  Initial upper soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_GQSB =  0.0 
+
+# HYDROL_DSG ([m]) :  Initial upper reservoir depth if not found in restart 	{OK_SECHIBA }
+HYDROL_DSG =  0.0 
+
+# HYDROL_QSV ([kg/m^2]) :  Initial water on canopy if not found in restart 	{OK_SECHIBA }
+HYDROL_QSV =  0.0 
+
+# HYDROL_DSP ([m]) :  Initial dry soil above upper reservoir if not found in restart 	{OK_SECHIBA }
+HYDROL_DSP =  999999. 
+
+# HYDROL_TAU_HDIFF ([seconds]) :  time scale (s) for horizontal diffusion of water 	{HYDROL_OK_HDIFF}
+HYDROL_TAU_HDIFF =  86400. 
+
+# CHECK_CWRR ([FLAG]) :  Should we check detailed CWRR water balance ? 	{HYDROL_CWRR}
+CHECK_CWRR =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{HYDROL_CWRR}
+DO_PONDS =  n 
+
+# CWRR_N_VANGENUCHTEN ([-]) :  Van genuchten coefficient n 	{HYDROL_CWRR}
+CWRR_N_VANGENUCHTEN =  1.89, 1.56, 1.31 
+
+# CWRR_A_VANGENUCHTEN ([1/mm]  ) :  Van genuchten coefficient a 	{HYDROL_CWRR}
+CWRR_A_VANGENUCHTEN =  0.0075, 0.0036, 0.0019 
+
+# VWC_RESIDUAL ([mm]  ) :  Residual soil water content 	{HYDROL_CWRR}
+VWC_RESIDUAL =  0.065, 0.078, 0.095 
+
+# VWC_SAT ([-]  ) :  Saturated soil water content 	{HYDROL_CWRR}
+VWC_SAT =  0.41, 0.43, 0.41 
+
+# CWRR_KS  ([mm/d]   ) :  Hydraulic conductivity Saturation 	{HYDROL_CWRR }
+CWRR_KS  =  1060.8, 249.6, 62.4 
+
+# WETNESS_TRANSPIR_MAX ([-]    ) :  Soil moisture above which transpir is max 	{HYDROL_CWRR}
+WETNESS_TRANSPIR_MAX =  0.5, 0.5, 0.5 
+
+# DRAINAGE_FACTOR_F ([-]   ) :  Max value of the permeability coeff at the bottom of the soil  	{HYDROL_CWRR}
+DRAINAGE_FACTOR_F =  1.0, 1.0, 1.0  
+
+# VWC_FC  ([-]   ) :  Volumetric water content field capacity 	{HYDROL_CWRR}
+VWC_FC  =  0.32, 0.32, 0.32 
+
+# VWC_WP ([-]   ) :  Volumetric water content Wilting pt 	{HYDROL_CWRR}
+VWC_WP =  0.10, 0.10, 0.10  
+
+# VWC_MIN_FOR_WET_ALB ([-]  ) :  Vol. wat. cont. above which albedo is cst 	{HYDROL_CWRR}
+VWC_MIN_FOR_WET_ALB =  0.25, 0.25, 0.25 
+
+# VWC_MAX_FOR_DRY_ALB ([-]   ) :  Vol. wat. cont. below which albedo is cst 	{HYDROL_CWRR}
+VWC_MAX_FOR_DRY_ALB =  0.1, 0.1, 0.1 
+
+# HYDROL_MOISTURE_CONTENT () :  Soil moisture on each soil tile and levels 	{HYDROL_CWRR       }
+HYDROL_MOISTURE_CONTENT =  0.3 
+
+# US_INIT () :  US_NVM_NSTM_NSLM 	{HYDROL_CWRR       }
+US_INIT =  0.0 
+
+# FREE_DRAIN_COEF () :  Coefficient for free drainage at bottom 	{HYDROL_CWRR       }
+FREE_DRAIN_COEF =  1.0, 1.0, 1.0 
+
+# WATER_TO_INFILT () :  Water to be infiltrated on top of the soil 	{HYDROL_CWRR    }
+WATER_TO_INFILT =  0.0 
+
+# EVAPNU_SOIL () :  Bare soil evap on each soil if not found in restart 	{HYDROL_CWRR  }
+EVAPNU_SOIL =  0.0 
+
+# HYDROL_SNOW () :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE () :  Initial snow age if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO () :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE () :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_QSV () :  Initial water on canopy if not found in restart 	{OK_SECHIBA}
+HYDROL_QSV =  0.0 
+
+# CWRR_NKS_N0  ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_N0  =  0.95 
+
+# CWRR_NKS_POWER ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_POWER =  0.34 
+
+# CWRR_AKS_A0  ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_A0  =  0.00012 
+
+# CWRR_AKS_POWER ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_POWER =  0.53 
+
+# KFACT_DECAY_RATE ([-]) :  Factor for Ks decay with depth 	{HYDROL_CWRR }
+KFACT_DECAY_RATE =  2.0 
+
+# KFACT_STARTING_DEPTH ([-]) :  Depth for compacted value of Ks  	{HYDROL_CWRR }
+KFACT_STARTING_DEPTH =  0.3 
+
+# KFACT_MAX ([-]) :  Maximum Factor for Ks increase due to vegetation 	{HYDROL_CWRR }
+KFACT_MAX =  10.0 
+
+# ROUTING_TIMESTEP ([seconds]) :  Time step of the routing scheme 	{RIVER_ROUTING}
+ROUTING_TIMESTEP =  86400. 
+
+# ROUTING_RIVERS ([-]) :  Number of rivers  	{RIVER_ROUTING}
+ROUTING_RIVERS =  50 
+
+# DO_FLOODINFILT ([FLAG]) :  Should floodplains reinfiltrate into the soil  	{RIVER_ROUTING}
+DO_FLOODINFILT =  n 
+
+# DO_SWAMPS ([FLAG]) :  Should we include swamp parameterization  	{RIVER_ROUTING}
+DO_SWAMPS =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{RIVER_ROUTING}
+DO_PONDS =  n 
+
+# SLOW_TCST ([days]) :  Time constant for the slow reservoir  	{RIVER_ROUTING }
+SLOW_TCST =  n 
+
+# FAST_TCST ([days]) :  Time constant for the fast reservoir  	{RIVER_ROUTING }
+FAST_TCST =  fast_tcst_cwrr or fast_tcst_chois depending on flag HYDROL_CWRR 
+
+# STREAM_TCST ([days]) :  Time constant for the stream reservoir  	{RIVER_ROUTING}
+STREAM_TCST =  stream_tcst_cwrr or stream_tcst_chois depending on flag HYDROL_CWRR 
+
+# FLOOD_TCST ([days]) :  Time constant for the flood reservoir  	{RIVER_ROUTING}
+FLOOD_TCST =  4.0 
+
+# SWAMP_CST ([-]) :  Fraction of the river that flows back to swamps  	{RIVER_ROUTING}
+SWAMP_CST =  0.2 
+
+# FLOOD_BETA ([-] ) :  Parameter to fix the shape of the floodplain   	{RIVER_ROUTING}
+FLOOD_BETA =  2.0 
+
+# POND_BETAP ([-] ) :  Ratio of the basin surface intercepted by ponds and the maximum surface of ponds 	{RIVER_ROUTING}
+POND_BETAP =  0.5 
+
+# FLOOD_CRI ([mm] ) :  Potential height for which all the basin is flooded 	{DO_FLOODPLAINS or DO_PONDS}
+FLOOD_CRI =  2000. 
+
+# POND_CRI ([mm] ) :  Potential height for which all the basin is a pond 	{DO_FLOODPLAINS or DO_PONDS}
+POND_CRI =  2000. 
+
+# RIVER_DESC ([FLAG]) :  Writes out a description of the rivers 	{RIVER_ROUTING}
+RIVER_DESC =  n 
+
+# RIVER_DESC_FILE ([FILE]) :  Filename in which we write the description of the rivers. If suffix is ".nc" a netCDF file is created 	{RIVER_DESC}
+RIVER_DESC_FILE =  river_desc.txt 
+
+# ROUTING_FILE ([FILE]) :  Name of file which contains the routing information 	{RIVER_ROUTING}
+ROUTING_FILE =  routing.nc 
+
+# IRRIGATION_FILE ([FILE]) :  Name of file which contains the map of irrigated areas 	{DO_IRRIGATION OR DO_FLOODPLAINS}
+IRRIGATION_FILE =  floodplains.nc 
+
+# EPS_CARBON ([%]   ) :  Allowed error on carbon stock 	{SPINUP_ANALYTIC}
+EPS_CARBON =  0.01 
+
+# SPINUP_PERIOD ([years]   ) :  Period to calulcate equilibrium during spinup analytic 	{SPINUP_ANALYTIC}
+SPINUP_PERIOD =  -1 
+
+# STOMATE_FORCING_NAME ([FILE]) :  Name of STOMATE's forcing file 	{OK_STOMATE}
+STOMATE_FORCING_NAME =  NONE 
+
+# STOMATE_FORCING_MEMSIZE ([MegaBytes]) :  Size of STOMATE forcing data in memory  	{OK_STOMATE}
+STOMATE_FORCING_MEMSIZE =  50 
+
+# STOMATE_CFORCING_NAME ([FILE]) :  Name of STOMATE's carbon forcing file 	{OK_STOMATE}
+STOMATE_CFORCING_NAME =  NONE 
+
+# FORCESOIL_STEP_PER_YEAR ([days, months, year]) :  Number of time steps per year for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_STEP_PER_YEAR =  365 
+
+# FORCESOIL_NB_YEAR ([years]) :  Number of years saved for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_NB_YEAR =  1 
+
+# BAVARD ([-]) :  level of online diagnostics in STOMATE (0-4) 	{OK_STOMATE}
+BAVARD =  1 
+
+# REFTEMP_FILE ([FILE]) :  Name of file from which the reference temperature is read 	{OK_STOMATE}
+REFTEMP_FILE =  reftemp.nc 
+
+# XIOS_ORCHIDEE_OK ([FLAG]) :  Use XIOS for writing diagnostics file 	{}
+XIOS_ORCHIDEE_OK =  n 
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/PARAM/run.def	(revision 5631)
@@ -0,0 +1,3 @@
+# $Id: run.def,v 1.1 2010/10/11 14:36:12 ssipsl Exp $
+#
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,67 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+# lai2_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2]*maxvegetfrac[d=2,K=2])" | "lai (LANDS)"      | "1"      | "2"
+# lai3_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=3]*maxvegetfrac[d=2,K=3])" | "lai (LANDS)"      | "1"      | "2"
+# lai4_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=4]*maxvegetfrac[d=2,K=4])" | "lai (LANDS)"      | "1"      | "2"
+# lai5_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=5]*maxvegetfrac[d=2,K=5])" | "lai (LANDS)"      | "1"      | "2"
+# lai6_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=6]*maxvegetfrac[d=2,K=6])" | "lai (LANDS)"      | "1"      | "2"
+# lai7_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=7]*maxvegetfrac[d=2,K=7])" | "lai (LANDS)"      | "1"      | "2"
+# lai8_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=8]*maxvegetfrac[d=2,K=8])" | "lai (LANDS)"      | "1"      | "2"
+# lai9_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=9]*maxvegetfrac[d=2,K=9])" | "lai (LANDS)"      | "1"      | "2"
+# lai10_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=10]*maxvegetfrac[d=2,K=10])" | "lai (LANDS)"      | "1"      | "2"
+# lai11_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=11]*maxvegetfrac[d=2,K=11])" | "lai (LANDS)"      | "1"      | "2"
+# lai12_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=12]*maxvegetfrac[d=2,K=12])" | "lai (LANDS)"      | "1"      | "2"
+# lai13_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=13]*maxvegetfrac[d=2,K=13])" | "lai (LANDS)"      | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,79 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+lai2_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2]*maxvegetfrac[d=2,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai3_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=3]*maxvegetfrac[d=2,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai4_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=4]*maxvegetfrac[d=2,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai5_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=5]*maxvegetfrac[d=2,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai6_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=6]*maxvegetfrac[d=2,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai7_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=7]*maxvegetfrac[d=2,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai8_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=8]*maxvegetfrac[d=2,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai9_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=9]*maxvegetfrac[d=2,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=10]*maxvegetfrac[d=2,K=10])" | "lai (LANDS)"      | "1"      | "2"
+lai11_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=11]*maxvegetfrac[d=2,K=11])" | "lai (LANDS)"      | "1"      | "2"
+lai12_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=12]*maxvegetfrac[d=2,K=12])" | "lai (LANDS)"      | "1"      | "2"
+lai13_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=13]*maxvegetfrac[d=2,K=13])" | "lai (LANDS)"      | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+# lai2_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=2]*maxvegetfrac[d=2,K=2]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai3_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=3]*maxvegetfrac[d=2,K=3]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai4_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=4]*maxvegetfrac[d=2,K=4]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai5_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=5]*maxvegetfrac[d=2,K=5]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai6_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=6]*maxvegetfrac[d=2,K=6]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai7_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=7]*maxvegetfrac[d=2,K=7]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai8_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=8]*maxvegetfrac[d=2,K=8]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai9_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=9]*maxvegetfrac[d=2,K=9]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai10_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=10]*maxvegetfrac[d=2,K=10]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai11_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=11]*maxvegetfrac[d=2,K=11]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai12_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=12]*maxvegetfrac[d=2,K=12]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai13_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=13]*maxvegetfrac[d=2,K=13]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/POST/monitoring01_stomate.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/POST/monitoring01_stomate.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/POST/monitoring01_stomate.cfg	(revision 5631)
@@ -0,0 +1,91 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+CONVFLUX_lands      | "CONVFLUX CONTFRAC"                  | "" | "(CONVFLUX[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                           | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands  | "CFLUX_PROD10 CONTFRAC"              | "" | "(CFLUX_PROD10[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                       | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands | "CFLUX_PROD100 CONTFRAC"             | "" | "(CFLUX_PROD100[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+HARVEST_ABOVE_lands | "HARVEST_ABOVE CONTFRAC"             | "" | "(HARVEST_ABOVE[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release product after harvest (LANDS)"                | "PgC/yr" | "2"
+SOIL_CARB_lands     | "TOTAL_SOIL_CARB VEGET_MAX CONTFRAC" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Total Soil Carbon (LANDS)"                                   | "PgC"    | "2"
+BIOMASS_lands       | "TOTAL_M VEGET_MAX CONTFRAC"         | "" | "(TOTAL_M[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Total Biomass (LANDS)"                                       | "PgC"    | "2"
+LITTER_lands        | "TOTAL_BM_LITTER VEGET_MAX CONTFRAC" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)" | "Total Litter (LANDS)"                                        | "PgC/yr" | "2"
+CO2FLUX_lands       | "CO2FLUX VEGET_MAX CONTFRAC"         | "" | "(CO2FLUX[d=1]*12*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"          | "NEE (LANDS)"                                                 | "PgC/yr" | "2"
+CO2FLUX_MONTHLY_SUM_lands | "CO2FLUX_MONTHLY_SUM VEGET_MAX CONTFRAC" | "" | "(CO2FLUX_MONTHLY_SUM[d=1]*12)"                                 | "NEE Sum (LANDS)"                                             | "PgC/yr" | "Areas[d=1]"
+NPP_lands           | "NPP VEGET_MAX CONTFRAC"             | "" | "(NPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Net Primary Produc (LANDS)"                                  | "PgC/yr" | "2"
+GPP_lands           | "GPP VEGET_MAX CONTFRAC"             | "" | "(GPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Gross Primary Produc (LANDS)"                                | "PgC/yr" | "2"
+HET_RESP_lands      | "HET_RESP VEGET_MAX CONTFRAC"        | "" | "(HET_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"        | "Heterotr. Resp. (LANDS)"                                     | "PgC/yr" | "2"
+MAINT_RESP_lands    | "MAINT_RESP VEGET_MAX CONTFRAC"      | "" | "(MAINT_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"      | "Maintenance Resp. (LANDS)"                                   | "PgC/yr" | "2"
+GROWTH_RESP_lands   | "GROWTH_RESP VEGET_MAX CONTFRAC"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Growth Resp. (LANDS)"                                        | "PgC/yr" | "2"
+cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"			    | "kg C m-2" | "Areas[d=1]"
+cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])" 	    | "Carbon in Litter Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])" 	    | "Carbon in Soil Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])" 	    | "Carbon in Products of Land Use Change" 	    | "kg C m-2" | "Areas[d=1]"
+lai_lands              | "lai"              | "" | "(lai[d=1])" 	    | "Leaf Area Fraction"   	     		    | "1"   	 | "Areas[d=1]"
+gpp_lands              | "gpp"              | "" | "(gpp[d=1])" 	    | "Gross Primary Production" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+ra_lands               | "ra"               | "" | "(ra[d=1])" 		    | "Autotrophic Respiration"			    | "kg C m-2 s-1" | "Areas[d=1]"
+npp_lands              | "npp"              | "" | "(npp[d=1])" 	    | "Net Primary Production" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+rh_lands               | "rh"               | "" | "(rh[d=1])" 		    | "Heterotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+fFire_lands            | "fFire"            | "" | "(fFire[d=1])" 	    | "CO2 Emission from Fire" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])" 	    | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]"
+fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])" 	    | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]"
+nbp_lands              | "nbp"              | "" | "(nbp[d=1])" 	    | "Net Biospheric Production"      	   	    | "kg C m-2 s-1" | "Areas[d=1]"
+fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])" 	    | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]"
+fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])" 	    | "Carbon in Leaves"      	       		    | "kg C m-2" | "Areas[d=1]"
+cWood_lands            | "cWood"            | "" | "(cWood[d=1])" 	    | "Carbon in Wood" 				    | "kg C m-2" | "Areas[d=1]"
+cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])" 	    | "Carbon in Roots" 			    | "kg C m-2" | "Areas[d=1]"
+cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])" 	    | "Carbon in Other Living Compartments" 	    | "kg C m-2" | "Areas[d=1]"
+cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])" 	    | "Carbon in Fast Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])" 	    | "Carbon in Slow Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"   	| "Areas[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%" 	| "Areas[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	    | "" | "(c3PftFrac[d=1])" 	    | "Total C3 PFT Cover Fraction" 	 	    | "%" 	| "Areas[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	    | "" | "(c4PftFrac[d=1])" 	    | "Total C4 PFT Cover Fraction" 		    | "%" 	| "Areas[d=1]"
+rGrowth_lands          | "rGrowth" 	    | "" | "(rGrowth[d=1])" 	    | "Growth Autotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+rMaint_lands           | "rMaint" 	    | "" | "(rMaint[d=1])" 	    | "Maintenance Autotrophic Respiration" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+nppLeaf_lands          | "nppLeaf" 	    | "" | "(nppLeaf[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]"
+nppWood_lands          | "nppWood" 	    | "" | "(nppWood[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]"
+nppRoot_lands          | "nppRoot" 	    | "" | "(nppRoot[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]"
+nep_lands              | "nep" 		    | "" | "(nep[d=1])" 	    | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "kg C m-2 s-1" | "Areas[d=1]"
+cMassVariation_lands     | "cMassVariation"     | "" | "(cMassVariation[d=1])"    | "Carbon Mass Variation"			    | "kg C m-2 s-1" | "Areas[d=1]"
+cBal_lands             | "cMassVariation nbp" | "" | "(cMassVariation[d=1,L=2:1000]-nbp[d=2,L=2:1000])" | "Total Carbon Balance"		    | "kg C m-2 s-1" | "Areas[d=1]"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/SUBJOB/TESTSTOMATE/config.card	(revision 5631)
@@ -0,0 +1,112 @@
+#
+# This is config.card file for restart with an NEW libIGCM simulation tree.
+#
+#====================================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=AUTO
+LongName="Please, explain here what is this simulation for"
+TagName=AUTO
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=AUTO
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=AUTO
+#============================
+#-- leap, noleap, 360d
+CalendarType=gregorian
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1980-01-01
+DateEnd=1980-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1Y
+#============================
+#-- Total Number of Processors (minimum is 2 for a coupled configuration)
+JobNumProcTot=_AUTO_
+#============================
+PeriodNb=10
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component, Name of component, Tag of component
+SRF= (sechiba, orchidee)
+SBG= (stomate, orchidee)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+Name=teststomate
+#D- For each component, Real name of executable, Name of executable for oasis
+SBG= ("", "")
+SRF= (teststomate, teststomate, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- If you want a GENERAL RULE FOR RESTARTS, put this flag to 'y'
+OverRule=n
+#D- Last day of the experience used as restart
+RestartDate=1979-12-31
+#D- Define restart simulation name (=> JOB_OS)
+RestartJobName=TESTFORCE
+#D- Path Server Group Login (=> PSGL)
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+# Attention login depend de la machine
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=_AUTO_
+#D- Do we rebuild parallel output, this flag determines
+#D- frequency of rebuild submission
+RebuildFrequency=NONE
+#D- Optimization of rebuid
+RebuildFromArchive=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=NONE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=NONE
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+
+#========================================================================
+#D-- SRF - SLOWPROC
+[SRF]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1979-12-31
+# Define restart simulation name
+RestartJobName=TESTFORCE
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+#-- Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
+#D-- SRF - STOMATE
+[SBG]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1979-12-31
+# Define restart simulation name
+RestartJobName=TESTFORCE
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+#-- Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/config.card	(revision 5631)
@@ -0,0 +1,145 @@
+#
+# This is config.card file for restart with an NEW libIGCM simulation tree.
+#
+#====================================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=SpinUp
+LongName="Spin Up for ORCHIDEE. See spinup.card for options."
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=PROD
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=spinup
+ARCHIVE=AUTO
+#============================
+#-- leap, noleap, 360d
+CalendarType= gregorian
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1950-01-01
+DateEnd=1950-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength= 1Y
+PeriodNb= 1
+#============================
+#-- Total Number of Processors (minimum is 2 for a coupled configuration)
+JobNumProcTot=2
+#========================================================================
+#========================================================================
+#D-- SRF options passed to SuRFace (SECHIBA) subjobs
+[SRF]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1997-12-31
+# Define restart simulation name
+RestartJobName=SPINUP
+RestartPath=${ARCHIVE}/${LOGIN}/IGCM_OUT/${config_UserChoices_TagName}
+# Old component name for restart (if empty, use new name)
+OldName=
+
+#D-- Surface BioGeochemistry ( STOMATE ) subjobs
+[SBG]
+WriteFrequency= 1M
+Restart= n
+#-- Last day of the experience used as restart
+RestartDate= 1900-12-31
+# Define restart simulation name
+RestartJobName= RESTART_SHILONG
+RestartPath= /dmnfs11/cont003/p86manci/SHILONG_FORCAGES
+# Old component name for restart (if empty, use new name)
+OldName=
+
+#D-- Post-treatment options passed to SubJobs
+[SubJobPost]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=NONE
+#D- Do we rebuild parallel output, this flag determines
+#D- frequency of rebuild submission
+RebuildFrequency=NONE
+#D- Do we rebuild parallel output from archive (use NONE to use SCRATCHDIR as buffer)
+RebuildFromArchive=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency= NONE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency= NONE
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset=0
+
+#========================================================================
+#========================================================================
+
+#========================================================================
+#D-- ListOfComponents - Don't modify this !
+[ListOfComponents]
+#D- For each component, Name of component, Tag of component
+SPIN= (spinup, HEAD)
+
+#========================================================================
+#D-- Executable - Don't modify this !
+[Executable]
+#D- For each component, Real name of executable, Name of executable for oasis
+SPIN= ("", SPIN, 1MPI)
+
+
+#========================================================================
+#D-- Post - Don't modify this !
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=NONE
+#D- Do we rebuild parallel output, this flag determines
+#D- frequency of rebuild submission
+RebuildFrequency=NONE
+#D- Do we rebuild parallel output from archive (use NONE to use SCRATCHDIR as buffer)
+RebuildFromArchive=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency= NONE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency= NONE
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset=0
+
+#========================================================================
+#D-- Restarts - Don't modify this !
+[Restarts]
+#D- If you want a GENERAL RULE FOR RESTARTS, put this flag to 'y'
+OverRule= n
+#D- Last day of the experience used as restart
+RestartDate=1979-12-31
+#D- Define restart simulation name (=> JOB_OS)
+RestartJobName=TESTFORCE
+#D- Path Server Group Login (=> PSGL)
+RestartPath=${ARCHIVE}/${LOGIN}/IGCM_OUT
+# Attention login depend de la machine
+
+#========================================================================
+#D-- SPIN options : Don't modify this !
+[SPIN]
+WriteFrequency="1Y"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=
+# Define restart simulation name
+RestartJobName=
+RestartPath=
+# Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/output.card_init
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/output.card_init	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP/output.card_init	(revision 5631)
@@ -0,0 +1,21 @@
+#  Output card for spinup
+
+[Global]
+Iteration=0
+Path=
+
+[Stage]
+# This Stage
+# StageName is the internal name for the interation for spinup
+StageName=start
+# ExtName is the short JobName of this stage
+ExtName=
+
+[PreviousStage]
+# Previous Stage
+LastStageName=
+LastExtName=
+LastRestartDate=
+
+[Actions]
+List = \
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/orchidee_ol.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/orchidee_ol.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/orchidee_ol.card	(revision 5631)
@@ -0,0 +1,32 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# Use XIOS as output library instead of IOIPSL
+XIOS=y
+
+[InitialStateFiles]
+List=()
+
+[BoundaryFiles]
+List=  (${R_IN}/SRF/METEO/CRU-NCEP/v5.3.2/twodeg/cruncep_twodeg_${CyclicYear}.nc, forcing_file.nc)
+ListNonDel= ()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .) ,\
+        (${SUBMIT_DIR}/PARAM/iodef.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_orchidee.xml, .)   ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/context_input_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/file_def_orchidee.xml, .)  ,\
+        (${MODIPSL}/modeles/ORCHIDEE/src_xml/field_def_orchidee.xml, .)
+
+
+[RestartFiles]
+List=	(driver_rest_out.nc,  driver_rest.nc,  driver_rest_in.nc)
+
+[OutputText]
+List=   (run.def, used_run.def, out_orchidee_ol, iodef.xml, context_orchidee.xml, context_input_orchidee.xml, field_def_orchidee.xml, file_def_orchidee.xml, xios_client_*)
+
+[OutputFiles]
+List= ()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/orchidee_ol.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/orchidee_ol.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/orchidee_ol.driver	(revision 5631)
@@ -0,0 +1,133 @@
+#!/bin/ksh
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    # Set TIME_LENGTH in run.def depending on PeriodLenght in config.card
+    case ${config_UserChoices_PeriodLength} in
+	*M|*m|*D|*d)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${PeriodLengthInDays}D
+	    ;;
+	*s|*Y)
+	    IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${config_UserChoices_PeriodLength}
+            ;;
+        *)
+            IGCM_debug_Exit "OOL_Update " ${config_UserChoices_PeriodLength} " invalid PeriodLength in config.card : choose between 1Y, 1M, 5D, 1D."
+            IGCM_debug_Verif_Exit
+    esac
+    
+
+    # Set TIME_SKIP only if starting without restart file
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Calculate the TIME_SKIP as difference between the start date and 1th of January the same year
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D
+    else
+	# Here using restart file, set TIME_SKIP=0
+	IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP 0D
+    fi
+
+    # Set RESTART_FILEIN in run.def
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Set RESTART_FILEIN=NONE in run.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN NONE
+    else
+        # Default option using restart file, set RESTART_FILEIN=driver_rest_in.nc in orchidee.def
+	IGCM_comp_modifyDefFile blocker run.def RESTART_FILEIN driver_rest_in.nc
+    fi
+
+    # Reset the simulation date as ORCHIDEE understands it for some special cases
+    # DRIVER_reset_time=y : take the date from the first time step of the forcing file 
+    # DRIVER_reset_time=n : default, take the date from the restart file if existing, else take it from the forcing file
+    if ( ${FirstInitialize} &&  [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+	# Starting a new simulation: take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    elif ( [ X${CyclicYear} = X${config_UserChoices_CyclicBegin} ] && [ ${month} = 01 ] && [ ${day} = 01 ] ) ; then
+        # Start a new cycle, take the date from the forcing file instead of from restart file
+        IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time y
+    else
+	# Default option, take the date from the restart file
+	IGCM_comp_modifyDefFile nonblocker run.def DRIVER_reset_time n
+    fi
+
+
+    if [ -f CO2.txt ] ; then
+        # If this file exist, then read CO2 value and set ATM_CO2 in run.def
+        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`
+	if [ X"${IPCC_CO2}" = X ] ; then
+            # The grep returned empty variable: stop execution
+            IGCM_debug_Exit "The file CO2.txt do not contain the current year."
+            IGCM_debug_Verif_Exit
+        fi
+        IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 ${IPCC_CO2}
+    else
+	# The file is not available: take the default value from run.def. 
+	# The syntax in run.def must be respected, for example:
+        # ATM_CO2 = _AUTO_: DEFAULT = 350.
+	IGCM_comp_modifyDefFile nonblocker run.def ATM_CO2 DEFAULT
+    fi
+
+
+    # Activation of XIOS
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Add include of orchidee context in iodef.xml
+      # In iodef.xml add on next line after "COMPONENT CONTEXT"
+      #  <context id="orchidee" src="./context_orchidee.xml"/>
+      echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp
+
+      # Add inclusion of file context_input_orchidee.xml if this file exists
+      if [ -f context_input_orchidee.xml ] ; then
+          echo '<context id="orchidee" src="./context_input_orchidee.xml"/>' >> add.tmp
+      fi
+ 
+      cp iodef.xml iodef.xml.tmp
+      sed -e "/COMPONENT CONTEXT/r add.tmp" \
+        iodef.xml.tmp > iodef.xml
+      rm iodef.xml.tmp add.tmp
+
+
+      # Special case if SBG component is not activated: deactivate stomate output files from file_def_orchidee.xml
+      # If SBG is activated, then the stomate.driver will take care of these variables
+      if [ X${config_ListOfComponents_SBG} = X ] ; then
+          # Stomate is not activated
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo      
+      fi
+    fi
+
+
+    # Add LongName as global attribute in all files produced by XIOS (if LongName is not empty)
+    # Remove file_def_input_orchidee.xml from the list. 
+    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then
+	listfile=$(ls file_def*orchidee.xml | grep -v input)
+	echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp
+	for file in ${listfile} ; do
+	    cp ${file} ${file}.tmp
+	    sed -e "/<file id/r add.tmp" \
+		${file}.tmp > ${file}
+	    rm ${file}.tmp 
+	done 
+	rm add.tmp
+    fi
+          
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+    
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,84 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# VEGET_UPDATE=0Y : no change in vegetation map. PFTmap.nc should be set only in InitialStateFiles/List. 
+# VEGET_UPDATE=1Y : change vegetation map every year. PFTmap.nc should be set only in BoundaryFiles/List.
+# Note that the model changed behaviour:
+# - since rev 2717 in the trunk, the map is read in January. In BoundaryFiles/List, copy the map for current year, use the variable ${year}.
+# - for older version, the map is read in December. In BoundaryFiles/List, copy the map for next coming year using the variable ${year_p1}.
+VEGET_UPDATE=0Y
+
+# Specify output level for output files
+# Only the files sechiba_history.nc, sechiba_out_2.nc and sechiba_history_4dim.nc can be set here.
+# output_level_filename=0     : lowest level writing only variables needed for the monitoring
+# output_level_filename=12    : highest level which will output all variables
+# output_level_filename=NONE  : deactivate the file
+output_level_sechiba_history = 11
+output_level_sechiba_out_2 = NONE
+output_level_sechiba_history_4dim = 11
+
+# Specify output frequency for each file [1y, 1mo, 1d, 10800s, 1ts]
+# Settings using WriteFrequency in config.card is not longer used
+output_freq_sechiba_history = 1y
+output_freq_sechiba_out_2 = 1d
+output_freq_sechiba_history_4dim = 1y
+
+
+[InitialStateFiles]
+List=       (${R_IN}/SRF/ROUTING/routing.nc, .),     \
+            (${R_IN}/SRF/SOIL/soils_param.nc, .), \
+            (${R_IN}/SRF/cartepente2d_15min.nc, .), \
+            (${R_IN}/SRF/ROUTING/floodplains.nc, .), \
+            (${R_IN}/SRF/reftemp.nc, .), \
+            (${R_IN}/SRF/albedo/alb_bg_modisopt_2D_ESA_v2.nc, alb_bg.nc) , \
+            (${R_IN}/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1/PFTmap_1860.nc, PFTmap.nc), \
+            (${R_IN}/SRF/WOODHARVEST/LUH2v2/historical/woodharvest_1860.nc, woodharvest.nc)
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   (used_run.def, out_orchidee, river_desc.nc)
+
+[OutputFiles]
+List= (sechiba_history.nc, ${R_OUT_SRF_O_Y}/${PREFIX}_1Y_sechiba_history.nc, Post_1Y_sechiba_history), \
+      (sechiba_history_4dim.nc, ${R_OUT_SRF_O_Y}/${PREFIX}_1Y_sechiba_history_4dim.nc, NONE)
+
+
+
+[Post_1Y_sechiba_history]
+Patches = ()
+GatherWithInternal = (lon, lat, veget, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (nobiofrac, alb_nir, alb_vis, evap, fluxlat, fluxsens, netrad, qair, rain, runoff, snow, snownobio, snowf, frac_snow, subli, tair, temp_sol, tsol_max, tsol_min, drainage,mrsos, mrso, mrros, mrro, prveg, evspsblveg, evspsblsoi, tran, treeFrac, grassFrac, cropFrac, baresoilFrac, residualFrac, TWBR, riverflow, coastalflow, DelSoilMoist_daily, DelIntercept_daily, DelSWE_daily, delstock_routing, snowmelt, LAImean, hydrographs, evapnu, Wind, lwdown, swdown)
+ChunckJob2D = NONE
+TimeSeriesVars3D = (lai, maxvegetfrac, vegetfrac, ptn, nee, transpir, inter)
+ChunckJob3D = NONE
+Seasonal = ON
+
+# ALMAOUTPUT
+#TimeSeriesVars2D = (nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, Qs, Qsb, Qsm, DelSoilMoist, DelSWE, DelIntercept, AvgSurfT, RadT, Albedo, SWE, SoilMoist, SoilWet, SoilTemp, PotEvap, ESoil, ECanop, TVeg, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP)
+#TimeSeriesVars3D = (ECanop, TVeg, GPP)
+
+
+[Post_HF_sechiba_out_2]
+Patches = ()
+GatherWithInternal = (lon, lat, time_counter, Areas, Contfrac, time_centered, time_centered_bounds)
+TimeSeriesVars2D = (mrsos, mrro)
+ChunckJob2D = 50Y
+TimeSeriesVars3D = (ptn)
+ChunckJob3D = 10Y
+Seasonal = OFF
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,214 @@
+#!/bin/ksh
+## Driver for the component SRF corresponding to the sechiba part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    ## 1. Modifications in run.def parameter file
+
+    # Activate STOMATE if the compontent SBG=stomate is set in config.card
+    if [ X${config_ListOfComponents_SBG} = Xstomate ] ; then
+	# Activate stomate in run.def
+        IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE y
+    else
+	# Deactivate stomate in run.def
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_OK_STOMATE n
+ 	# Deactivate output files for stomate
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+    fi
+
+    # Define in run.def if restart file should be used
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in NONE
+
+	# Check if running executable teststomate. In that case sechiba restart file is mandatory.
+	if [ -f teststomate ] ; then
+	    IGCM_debug_Print 1 "Error in launching teststomate !"
+	    IGCM_debug_Exit    "YOU MUST USE EXISTING RESTART FILE FOR SECHIBA WITH JOB TESTSTOMATE!" 
+	    IGCM_debug_Verif_Exit	    
+	fi
+    else
+	IGCM_comp_modifyDefFile blocker run.def SECHIBA_restart_in sechiba_rest_in.nc
+    fi
+
+
+    # Modify in run.def VEGET_UPDATE if it is set in sechiba.card section UserChoices
+    # VEGET_UPDATE inidcates if the vegetation map should be updated and at which frequency
+    if [ ! X${sechiba_UserChoices_VEGET_UPDATE} = X ] ; then
+	# Take the value from sechiba.card
+	IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE   ${sechiba_UserChoices_VEGET_UPDATE}
+    else
+        # Set default value 0Y
+        IGCM_comp_modifyDefFile nonblocker run.def VEGET_UPDATE 0Y
+    fi
+
+
+    # Activate the creation of river_desc.nc file only during the first execution in the simulation.
+    if [ ${CumulPeriod} -eq 1 ] ; then
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC y
+    else
+        IGCM_comp_modifyDefFile nonblocker run.def RIVER_DESC n
+    fi
+
+
+
+    ## 2. Mangement of output and modifications of related xml files
+
+    # Set default values for sechiba1_enabled and sechiba1_freq.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    sechiba1_enabled=.FALSE.
+    sechiba2_enabled=.FALSE.
+    sechiba1_freq=0s
+    sechiba2_freq=0s
+    # These variables are used if XIOS=n
+    SECHIBA_WRITE_STEP=0
+    SECHIBA_WRITE_STEP2=0
+
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Activate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK y
+      # Deactivate IOIPSL output
+      IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP 0
+    else
+      # Deactivate XIOS output
+      IGCM_comp_modifyDefFile blocker run.def XIOS_ORCHIDEE_OK n
+    fi
+
+    # Get WriteFrenquecy for SRF (SECHIBA) from config.card
+    # 1 or 2 frequencies can be set in WriteFrenquecy for SRF
+    # The first frequency will always be used for the sechiba_history file and the 
+    # second frequency will be used for the sechiba_out_2.nc file. 
+    # The files are activated only if its corresponding frequency is set in WriteFrequency
+    ifreq=0
+    for frequency in ${config_SRF_WriteFrequency} ; do
+	case ${frequency} in
+	    *Y|*y) 
+		NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' )
+		NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+		file_enabled=.TRUE.
+		file_freq=${NbYears}y
+		(( file_WRITE_STEP = NbYears * NbDaysYear * 86400 )) ;;
+	    *M|*m)
+		NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbMonths}mo
+		# Note only 1M possible with IOIPSL!
+		file_WRITE_STEP=-1. ;;
+	    *D|*d)
+		NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${NbDays}d
+ 		(( file_WRITE_STEP = NbDays * 86400 )) ;;
+	    *s)
+		WriteInSeconds=$( echo ${frequency} | awk -F '[s]' '{print $1}' )
+		file_enabled=.TRUE.
+		file_freq=${WriteInSeconds}s
+		(( file_WRITE_STEP = WriteInSeconds )) ;;
+            HF|hf) 
+		file_enabled=.TRUE. 
+		file_freq=10800s 
+		(( file_WRITE_STEP = 10800 )) ;;
+	    *) 
+		IGCM_debug_Exit "SRF_Update " ${frequency} " invalid WriteFrequency : choose in xY, xM, xD, xs and HF" 
+		IGCM_debug_Verif_Exit ;;
+	esac
+
+	(( ifreq = ifreq + 1 ))
+	case ${ifreq} in
+	    1)
+		sechiba1_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP=${file_WRITE_STEP} ;;
+	    2)
+                sechiba2_enabled=${file_enabled}
+		SECHIBA_WRITE_STEP2=${file_WRITE_STEP} ;;
+            *)
+		IGCM_debug_Exit "SRF_Update: It is not possible to set more than 2 output files for sechiba from config.card"
+		IGCM_debug_Exit "You must correct WriteFrequancy in SRF secion in config.card."
+		IGCM_debug_Exit "Adapt file_def_orchidee.xml directly if you want more output files"
+		IGCM_debug_Verif_Exit ;;
+	esac
+    done
+
+    # Modify file_def_orchidee.xml if XIOS is activated
+    # Settings in config.card WriteFrequency are not used any more. The section above is only used for IOIPSL.
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+	# Modify file_def_orchidee.xml file using settings from sechiba.card/orchidee.card
+	# We here suppose that for each file, in sechiba.card/orchidee.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_history} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history} = XNONE ] ; then
+	    # output_level_sechiba_history is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level ${sechiba_UserChoices_output_level_sechiba_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history}
+	fi
+
+	if [ X${sechiba_UserChoices_output_level_sechiba_out_2} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_out_2} = XNONE ] ; then
+	    # output_level_sechiba_out_2 is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level ${sechiba_UserChoices_output_level_sechiba_out_2}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq  ${sechiba_UserChoices_output_freq_sechiba_out_2}
+	fi
+
+  	if [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = X ] || [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = XNONE ] ; then
+	    # output_level_sechiba_history_4dim is not set in sechiba.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level ${sechiba_UserChoices_output_level_sechiba_history_4dim}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history_4dim}
+	fi
+    fi
+
+
+    # Set IOIPSL output in run.def. This is done for all cases only to avoid AUTO variables during run time. 
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP ${SECHIBA_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def WRITE_STEP2 ${SECHIBA_WRITE_STEP2}
+
+    # Outputs HF in HISTFILE2 if required
+    if [ ${sechiba2_enabled} = .TRUE. ] ; then
+ 	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 y
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SECHIBA_HISTFILE2 n
+    fi
+
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,63 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# SPINUP_ANALYTIC=y/n : Activate the spinup analytic option to solve the carbon in soil balance
+SPINUP_ANALYTIC=y
+
+# Specify output level for output files
+# Only the files stomate_history.nc and stomate_ipcc_history.nc can be set here.
+# output_level_filname=0     : lowest level writing only variables needed for the monitoring
+# output_level_filname=1     : highest level which will output all variables
+# output_level_filname=NONE  : deactivate the file
+output_level_stomate_history = 5
+output_level_stomate_ipcc_history = 1
+
+# Specify output frequency for each file [1y, 1mo, 1d]
+# Settings using WriteFrequency in config.card are not longer used
+output_freq_stomate_history = 1y
+output_freq_stomate_ipcc_history = 1y
+
+
+[InitialStateFiles]
+List=   ()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=   ()
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   (stomate_history.nc, ${R_OUT_SBG_O_Y}/${PREFIX}_1Y_stomate_history.nc, Post_1Y_stomate_history), \
+        (stomate_ipcc_history.nc, ${R_OUT_SBG_O_Y}/${PREFIX}_1Y_stomate_ipcc_history.nc, Post_1Y_stomate_ipcc_history)
+
+[Post_1Y_stomate_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D= (T2M_MONTH,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,HARVEST_ABOVE)
+ChunckJob2D = 200Y
+TimeSeriesVars3D= (LAI,VEGET_COV_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION,CARBON_ACTIVE,CARBON_SLOW,CARBON_PASSIVE,LITTER_STR_AB,LITTER_STR_BE,LITTER_MET_AB,LITTER_MET_BE,TOTAL_TURN,WOOD_HARVEST_PFT)
+ChunckJob3D = NONE
+Seasonal=ON
+
+[Post_1Y_stomate_ipcc_history]
+Patches= ()
+GatherWithInternal= (lon, lat, time_counter, Areas, CONTFRAC)
+TimeSeriesVars2D=(cVeg, cLitter, cSoil, cProduct, cMassVariation, lai, gpp, ra, npp, rh, fFire, fHarvest, fLuc, nbp, fVegLitter, fLitterSoil, cLeaf, cWood, cRoot, cMisc, cLitterAbove, cLitterBelow, cSoilFast, cSoilMedium, cSoilSlow, landCoverFrac, treeFracPrimDec, treeFracPrimEver, c3PftFrac, c4PftFrac, rGrowth, rMaint, nppLeaf, nppWood, nppRoot, nep, fWoodharvest)
+ChunckJob2D = 200Y
+TimeSeriesVars3D=()
+ChunckJob3D = NONE
+Seasonal=ON
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,147 @@
+#!/bin/ksh
+## Driver for the component SBG corresponding to the stomate part of ORCHIDEE
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    # For IOIPSL: get frequency from config.card
+    # Set default values for stomate output files.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    stomate_enabled=.FALSE.
+    stomate_freq=0s
+
+    # Read WriteFrequency set in config.card section SBG. 
+    # Only one choice can be set as WriteFrequency. The same choice will be used for 
+    # both stomate_history and stomate_ipcc_history files. 
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    NbYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    NbDaysYear=$( IGCM_date_DaysInYear ${year} )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbYears}y
+	    (( STOMATE_WRITE_STEP = NbYears * NbDaysYear )) 
+        ;;
+	*M|*m) 
+	    NbMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbMonths}mo
+	    # Note only 1M possible with IOIPSL!
+	    STOMATE_WRITE_STEP=-1. ;;
+	*D|*d)
+	    NbDays=$( echo ${config_SBG_WriteFrequency} | awk -F '[dD]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${NbDays}d
+	    STOMATE_WRITE_STEP=${NbDays} ;;
+    esac
+
+    # Modify file_def_orchidee.def if XIOS is activated using information in stomate.card
+    # Settings in config.card WriteFrequency are not used any more.
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+
+	# Modify file_def_orchidee.xml file using settings from stomate.card
+	# We here suppose that for each file, in stomate.card UserChoices section, if the parameter 
+	# output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked. 
+	# If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated.
+
+	if [ X${stomate_UserChoices_output_level_stomate_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_history} = XNONE ] ; then
+	    # output_level_stomate_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level ${stomate_UserChoices_output_level_stomate_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq  ${stomate_UserChoices_output_freq_stomate_history}
+	fi
+
+	if [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = XNONE ] ; then
+	    # output_level_stomate_ipcc_history is not set in stomate.card or it is set to NONE.
+	    # Deactivate the file.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo
+	else
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled      .TRUE.
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level ${stomate_UserChoices_output_level_stomate_ipcc_history}
+	    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq  ${stomate_UserChoices_output_freq_stomate_ipcc_history}
+	fi
+
+
+
+        # Deactivate stomate IOIPSL output
+	(( STOMATE_WRITE_STEP = 0 ))
+    fi
+
+
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC y
+      
+       # Test if CyclicBegin and CyclicEnd is set in config.card
+       if ( [ X${config_UserChoices_CyclicBegin} = X ] || [ X${config_UserChoices_CyclicEnd} = X ] ) ; then
+           IGCM_debug_Exit "CyclicBegin and CyclicEnd must be set in config.card to run option spinup_analytic."
+       fi
+       # Calculate and set number of years of forcing data
+       CycleNb=$(( ${config_UserChoices_CyclicEnd} - ${config_UserChoices_CyclicBegin} + 1 ))
+       IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD ${CycleNb}
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_ANALYTIC n
+	IGCM_comp_modifyDefFile nonblocker run.def SPINUP_PERIOD -1
+    fi
+
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    IGCM_comp_modifyDefFile nonblocker run.def STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP}
+
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "STOMATE : without restart"
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN NONE
+    else
+	IGCM_comp_modifyDefFile blocker run.def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+    fi
+
+
+    # Special case using forcesoil executable
+    if [ -f forcesoil ] ; then
+	# Set STOMATE_CFORCING_NAME
+        IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+
+	# Check if restart file is missing
+	if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+            IGCM_debug_Exit "YOU MUST USE OLD STOMATE RESTART FILE WITH THE JOB FORCESOIL."
+            IGCM_debug_Verif_Exit
+	fi
+    else
+	IGCM_comp_modifyDefFile nonblocker run.def STOMATE_CFORCING_NAME NONE
+    fi
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+#   Check if equilibrium is reached for spinup analytic
+#   and if true stop the simulation in the end of this period.
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+      CondSpinup=$(grep -a  "Equilibrium for carbon pools is reached"  out_*)
+      if [ X"${CondSpinup}" != X ] ; then
+	  IGCM_debug_Print 1 "SPINUP ANALYTIC :  your spinup is successful :"
+	  IGCM_debug_Print 1 ${CondSpinup}
+	  IGCM_debug_Print 1  "You can now stop the simulation if you want."
+      fi
+    fi
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/xios.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/xios.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/xios.card	(revision 5631)
@@ -0,0 +1,29 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+
+[InitialStateFiles]
+List=	()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+List=	(NONE)
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   ()
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/xios.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/xios.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/COMP/xios.driver	(revision 5631)
@@ -0,0 +1,40 @@
+#!/bin/ksh
+#-----------------------------------
+function IOS_Initialize
+{ 
+    IGCM_debug_PushStack "IOS_Initialize"
+
+    echo INITIALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Initialize"
+}
+
+#-----------------------------------
+function IOS_Update
+{
+    IGCM_debug_PushStack "IOS_Update"
+
+    echo UPDATE IOS !!!
+# Activate server mode
+    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true
+# If lmdz_UserChoices_XIOS=y add LMDZ as component id :
+    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then
+	IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx
+    fi 
+    if [ -f namcouple ] ; then
+	sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 
+	IGCM_sys_Mv namcouple.tmp namcouple
+    fi
+
+    IGCM_debug_PopStack "IOS_Update"
+}
+
+#-----------------------------------
+function IOS_Finalize
+{
+    IGCM_debug_PushStack "IOS_Finalize"
+
+    echo FINALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/iodef.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/iodef.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/iodef.xml	(revision 5631)
@@ -0,0 +1,1 @@
+link iodef_xios2.xml
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/iodef_xios1.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/iodef_xios1.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/iodef_xios1.xml	(revision 5631)
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 1.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) -->
+	  <variable id="buffer_size"               type="integer">15000000</variable>
+	  <variable id="buffer_server_factor_size" type="integer">2</variable>
+	  <variable id="info_level"                type="integer">1</variable>
+	  <variable id="using_server"              type="boolean">false</variable>
+	  <variable id="using_oasis"               type="boolean">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/iodef_xios2.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/iodef_xios2.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/iodef_xios2.xml	(revision 5631)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 2.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+	  <variable id="info_level"                type="int">1</variable>
+	  <variable id="using_server"              type="bool">false</variable>
+	  <variable id="using_oasis"               type="bool">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/PARAM/run.def	(revision 5631)
@@ -0,0 +1,150 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+
+#**************************************************************************
+#           Suggested parameter set up for ORCHIDEE 2.0
+# See all optional parameters in modipsl/modeles/ORCHIDEE/orchidee.default
+#
+# Note when running with libIGCM, variables set here to _AUTOBLOCKER_ can 
+# not be changed in run.def otherwwise the simulation will stop. Variables 
+# set to _AUTO_ can be changed from the comp.card but they can also be 
+# changed directly in the run.def. A value set in run.def can never be
+# changed again by libIGCM. 
+#**************************************************************************
+
+# Activate Stomate component (default y)
+STOMATE_OK_STOMATE = _AUTOBLOCKER_ 
+
+# Time length for one intergration (default full lenght of forcing file)
+TIME_LENGTH = _AUTO_
+
+# Parameters related to the restart file and the start date
+#**************************************************************************
+# Time in the forcing file at which the model start if start date is not set by the forcing file (default 0)
+TIME_SKIP = _AUTO_
+
+# If DRIVER_reset_time=y, read the year from forcing file instead of taking it from restart file (default n)
+DRIVER_reset_time = _AUTO_
+
+# Name of restart file for the driver (default NONE)
+RESTART_FILEIN = _AUTOBLOCKER_
+
+# Name of restart file for sechiba part of the model (default NONE)
+SECHIBA_restart_in = _AUTOBLOCKER_
+
+# Name of restart file for stomate part of the model (default NONE)
+STOMATE_RESTART_FILEIN = _AUTOBLOCKER_
+
+# Parameters related to the diagnostic output files
+#**************************************************************************
+# Use XIOS for writing diagnostics file (defulat y)
+XIOS_ORCHIDEE_OK = _AUTOBLOCKER_
+
+# Flag to activate sechiba_out_2.nc history file when using IOIPSL for SECHIBA (defulat n)
+SECHIBA_HISTFILE2 = _AUTO_
+
+# Writefrequency in seconds in sechiba_history.nc when using IOIPSL (default 86400)
+# If WRITE_STEP=0 then all IOIPSL output are deactivated
+WRITE_STEP = _AUTO_
+
+# Writefrequency in seconds sechiba_out_2.nc when using IOIPSL (default 1800)
+WRITE_STEP2 = _AUTO_ 
+
+# Writefrequency in days in stomate_history.nc when using IOIPSL (default 10)
+STOMATE_HIST_DT = _AUTO_
+
+# Writefrequency in days or -1 for monthly output in stomate_ipcc_history.nc when using IOIPSL (default 0)
+STOMATE_IPCC_HIST_DT = _AUTO_
+
+# Print level for text output in out_orchidee_*
+# PRINTLEV = 1 : some output in initialization phase
+# PRINTLEV = 2 : more output in initialization phase and printing of new date
+# PRINTLEV = 3, 4,.. : more output also at each timestep
+PRINTLEV=2
+
+# Hydrology parameters
+#**************************************************************************
+# Activate the multi-layer diffusion scheme adapted from CWRR (default y)
+HYDROL_CWRR = y
+
+# Activate river routing (default y)
+RIVER_ROUTING = y
+
+# Activate creation of river_desc.nc file
+# RIVER_DESC will be activated only the first execution in the simulation
+RIVER_DESC = _AUTO_
+
+# SOILTYPE_CLASSIF :  Type of classification used for the map of soil types (default zobler)
+SOILTYPE_CLASSIF = zobler 
+
+# Parameters related to vegetation map
+#**************************************************************************
+# Update vegetation frequency (default 0Y)
+VEGET_UPDATE = _AUTO_
+
+# Read lai map (default n)
+LAI_MAP = n
+
+# Prescribed vegetation (default n)
+IMPOSE_VEG = n
+
+# Parameters related to surface and thermal physical properties
+#************************************************************************
+# ROUGH_DYN : Account for a dynamic roughness height (activation of Su et al. parametrization) (default y)
+ROUGH_DYN=y
+
+# OK_FREEZE :  Activate the complet soil freezing scheme (default y)
+OK_FREEZE=y
+
+# OK_EXPLICITSNOW :  Activate explict snow scheme (default y)
+OK_EXPLICITSNOW=y
+
+# Carbon related parameters
+#**************************************************************************
+# Analytic spinup (default n)
+SPINUP_ANALYTIC = _AUTO_
+SPINUP_PERIOD = _AUTO_
+
+# Value for atmospheric CO2 (default=350)
+# ATM_CO2=287.14 : Year 1860 specified for TRENDY2 spinup
+ATM_CO2 = _AUTO_: DEFAULT = 287.14
+
+# Activate harvest of wood (default y)
+DO_WOOD_HARVEST=y
+
+# Deactivate fire (default FIRE_DISABLE=y)
+FIRE_DISABLE=y
+
+# Optimized parameters to be used with PFTmap with 15 pfts such as
+# files in IGCM/SRF/PFTMAPS/CMIP6/ESA-LUH2v2/historical/15PFT.v1
+#**************************************************************************
+# Use 15 PFTs. Note that PFTmap.nc must contains 15PFTs.
+# PFT=10, 14 and 15 share the same parametrization except for VCMAX25, LAI_MAX, FRAC_GROWTHRESP, 
+# MAINT_RESP_SLOPE_C and ALWAYS_INIT specified below.  
+# (default NVM=13)
+NVM=15
+PFT_TO_MTC=1,2,3,4,5,6,7,8,9,10,11,12,13,10,10
+PFT_NAME__10='temperate C3           grass      '
+PFT_NAME__14='tropical  C3           grass      '
+PFT_NAME__15='boreal    C3           grass      '
+
+VCMAX25__10 = 50.0 
+VCMAX25__14 = 50.0 
+VCMAX25__15 = 40.0
+
+LAI_MAX__10 = 2.5
+LAI_MAX__14 = 2.5
+LAI_MAX__15 = 2.0
+
+FRAC_GROWTHRESP__10 = 0.28
+FRAC_GROWTHRESP__14 = 0.35
+FRAC_GROWTHRESP__15 = 0.35
+
+MAINT_RESP_SLOPE_C__10 = 0.16
+MAINT_RESP_SLOPE_C__14 = 0.12
+MAINT_RESP_SLOPE_C__15 = 0.25
+
+ALWAYS_INIT__10 = y
+ALWAYS_INIT__14 = n
+ALWAYS_INIT__15 = y
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,64 @@
+##################################################################################################################
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=1
+
+# FreqTS=YE : time-series with yearly variables  	  	 
+FreqTS=YE
+
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+delta_water_stock | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily" |  "" | "((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] + delstock_routing_daily[d=5,l=2:100000])" | "Change in total water stock (LANDS) " | "kg/day/m2 of land" | "Areas[d=2]*Contfrac[d=2]"
+water_budget_closure | "nobiofrac DelSoilMoist_daily DelIntercept_daily DelSWE_daily delstock_routing_daily rain snowf evap riverflow coastalflow" | "" | "(((1-nobiofrac[d=1,l=2:100000])*DelSoilMoist_daily[d=2,l=2:100000] + DelIntercept_daily[d=3,l=2:100000] + DelSWE_daily[d=4,l=2:100000] +  delstock_routing_daily[d=5,l=2:100000])*Areas[d=1]*Contfrac[d=1] -  ((rain[d=6,l=2:100000] + snowf[d=7,l=2:100000] - evap[d=8,l=2:100000])*Areas[d=1]*Contfrac[d=1]  - (riverflow[d=9,l=2:100000] + coastalflow[d=10,l=2:100000])*1000*86400 ))/(4*3.14*6370000*6370000*0.26)" | "Water budget closure (LANDS) " | "kg/day/m2 of land" | "2"
+twbr_lands       | "TWBR"             |  "" | "twbr[d=1,l=2:100000]*86400"       | "Hydrol water buget residu (LANDS)" | "kg/m^2/d" | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands   | "temp_sol"         |  "" | "temp_sol[d=1]"                    | "TSOL (LANDS)"                      | "C"        | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands   | "fluxsens"         |  "" | "fluxsens[d=1]"                    | "Sensible Flux (LANDS)"             | "W/m^2"    | "Areas[d=1]*Contfrac[d=1]"
+evap_lands       | "evap"             |  "" | "evap[d=1]"                        | "Evaporation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+evapnu_lands     | "evapnu"           |  "" | "evapnu[d=1]"                      | "Soil evaporation (LANDS)"          | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+transpir_lands   | "transpir"         |  "" | "transpir[d=1,k=@sum]"             | "Transpiration (sum over all PFT, LANDS)" | "mm/d" | "Areas[d=1]*Contfrac[d=1]"
+subli_lands      | "subli"            |  "" | "subli[d=1]"                       | "Sublimation (LANDS)"               | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+snow_swe_lands   | "frac_snow snow"   |  "" | "snow[d=2]"                        | "Snow Mass (LANDS)"                 | "kg/m^2"   | "Areas[d=2]*Contfrac[d=2]"
+snownobio_lands  | "snownobio"        |  "" | "snownobio[d=1]"                   | "Snow Other Surfaces (LANDS)"       | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands      | "snowf"            |  "" | "snowf[d=1]"                       | "Snowfall (LANDS)"                  | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+precip_lands     | "rain snowf"       |  "" | "rain[d=1] + snowf[d=2]"           | "Total precipitaion (LANDS)"        | "mm/d"     | "Areas[d=1]*Contfrac[d=1]"
+runoff_lands     | "runoff"           |  "" | "runoff[d=1]"                      | "Surface runoff  (LANDS)"           | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+drainage_lands   | "drainage"         |  "" | "drainage[d=1]"                    | "Drainage  (LANDS)"                 | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands   | "mrso"             |  "" | "mrso[d=1]"                        | "Total Soil Moisture  (LANDS)"      | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+surface_humidity_lands | "mrsos"      |  "" | "mrsos[d=1]"                       | "Top 10cm soil moisture  (LANDS)"   | "kg/m^2"   | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands     | "alb_vis alb_nir"  |  "" | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"               | "1"        | "Areas[d=1]*Contfrac[d=1]"
+lai_lands        | "LAImean"          |  "" | "LAImean[d=1]"                     | "LAI (mean excluding PFT=1) (LANDS)"| "1"        | "Areas[d=1]*Contfrac[d=1]"
+nee_lands        | "nee maxvegetfrac" |  "" | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"   | "Net Ecosystem Exchange" | "PgC/yr" | "2"
+maxvegetagri_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=12:13@sum]"    | "veget_max fraction of agriculture [sum of pft=12,13] "| "1"  | "Areas[d=1]*Contfrac[d=1]"
+maxvegetbare_forcing | "maxvegetfrac" |  "" | "maxvegetfrac[d=1,K=1]"            | "veget_max fraction on bare soil [pft=1] "             | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=2:9@sum]"         | "veget trees[sum of pft=2:9] (LANDS)"                  | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegetg_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=10:11@sum]+vegetfrac[d=1,K=14:15@sum]"       | "veget natural grasses[sum of pft=10,11,14,15] (LANDS)"      | "1"  | "Areas[d=1]*Contfrac[d=1]"
+vegeta_lands     | "vegetfrac"        |  "" | "vegetfrac[d=1,K=12:13@sum]"       | "veget agriculture [sum of pft=12,13] (LANDS)"         | "1"  | "Areas[d=1]*Contfrac[d=1]"
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,69 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "vegetfrac"       |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+maxveget_forcing | "maxvegetfrac"   |  ""              | "((maxvegetfrac[d=1,K=12]+maxvegetfrac[d=1,K=13])*Areas[d=1]*Contfrac[d=1]/1e12)" | "maxveget surface[pft=12,13] "  | "Mkm^2"  | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+nee_lands      | "nee maxvegetfrac" |  ""              | "(nee[d=1]*365*86400*maxvegetfrac[d=2]*Areas[d=1]*Contfrac[d=1]/1e15)"  | "Net Ecosystem Exchange"    | "PgC/yr" | "2"
+lai02_lands    | "lai"              |  ""              | "(lai[d=1,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai03_lands    | "lai"              |  ""              | "(lai[d=1,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai04_lands    | "lai"              |  ""              | "(lai[d=1,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai05_lands    | "lai"              |  ""              | "(lai[d=1,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai06_lands    | "lai"              |  ""              | "(lai[d=1,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai07_lands    | "lai"              |  ""              | "(lai[d=1,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai08_lands    | "lai"              |  ""              | "(lai[d=1,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai09_lands    | "lai"              |  ""              | "(lai[d=1,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai"              |  ""              | "(lai[d=1,K=10])" | "lai (LANDS)"     | "1"      | "2"
+lai11_lands    | "lai"              |  ""              | "(lai[d=1,K=11])" | "lai (LANDS)"     | "1"      | "2"
+lai12_lands    | "lai"              |  ""              | "(lai[d=1,K=12])" | "lai (LANDS)"     | "1"      | "2"
+lai13_lands    | "lai"              |  ""              | "(lai[d=1,K=13])" | "lai (LANDS)"     | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_stomate.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_stomate.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_stomate.cfg	(revision 5631)
@@ -0,0 +1,83 @@
+##################################################################################################################
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=1
+
+# FreqTS=YE : time-series with yearly variables  	  	 
+FreqTS=YE
+
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+woodharvest_fromforcing| "WOOD_HARVEST_PFT VEGET_COV_MAX"| "" | "(WOOD_HARVEST_PFT[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"| "Wood harvest read from file and prepared to be used"      | "PgC/yr"    | "2"
+fwoodharvest_lands     | "fWoodharvest"                  | "" | "fWoodharvest[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15"              | "CO2 Flux from wood harvesting, positive from atm to land" | "PgC/yr"    | "2"
+fLuc_fHarvest_lands    | "CONVFLUX CFLUX_PROD10 CFLUX_PROD100 HARVEST_ABOVE"  | "" | "((CONVFLUX[d=1]+CFLUX_PROD10[d=2]+CFLUX_PROD100[d=3]+HARVEST_ABOVE[d=4])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)" | "CO2 flux from Land Use Change and Crop Harvesting" | "PgC/yr" | "2"
+fHarvest_lands         | "HARVEST_ABOVE"                 | "" | "((HARVEST_ABOVE[d=1])*AREAS[d=1]*CONTFRAC[d=1]*365/1e15)"                    | "CO2 flux from Land Use Change and Crop Harvesting"        | "PgC/yr" | "2"
+nbp_lands              | "nbp"                           | "" | "(nbp[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365/1e12)"                          | "Net Biospheric Production"                                | "PgC/yr" | "2"
+cSoil_lands            | "TOTAL_SOIL_CARB VEGET_COV_MAX" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Carbon Soil in Pool"                                      | "PgC"    | "2"
+cVeg_lands             | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Carbon in vegetation"                                     | "PgC"    | "2"
+npp_lands              | "NPP VEGET_COV_MAX"             | "" | "(NPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Net Primary Production"                                   | "PgC/yr" | "2"
+rh_lands               | "HET_RESP VEGET_COV_MAX"        | "" | "(HET_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"        | "Heterotrophic Respiration"                                | "PgC/yr" | "2"
+CONVFLUX_lands         | "CONVFLUX"                      | "" | "(CONVFLUX[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"                   | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands     | "CFLUX_PROD10"                  | "" | "(CFLUX_PROD10[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"               | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands    | "CFLUX_PROD100"                 | "" | "(CFLUX_PROD100[d=1]*365*AREAS[d=1]*CONTFRAC[d=1]/1e15)"              | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+BIOMASS_lands          | "TOTAL_M VEGET_COV_MAX"         | "" | "(TOTAL_M[d=1]*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Total Biomass (LANDS)"                               | "PgC"    | "2"
+LITTER_lands           | "TOTAL_BM_LITTER VEGET_COV_MAX" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)" | "Biomass to Litter flux (LANDS)"                      | "PgC/yr" | "2"
+GPP_lands              | "GPP VEGET_COV_MAX"             | "" | "(GPP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"             | "Gross Primary Produc (LANDS)"                        | "PgC/yr" | "2"
+MAINT_RESP_lands       | "MAINT_RESP VEGET_COV_MAX"      | "" | "(MAINT_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"      | "Maintenance Resp. (LANDS)"                           | "PgC/yr" | "2"
+GROWTH_RESP_lands      | "GROWTH_RESP VEGET_COV_MAX"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_COV_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=1]/1e15)"     | "Growth Resp. (LANDS)"                                | "PgC/yr" | "2"
+lai_lands              | "lai"                           | "" | "lai[d=1]" 	                                                              | "Leaf Area Fraction"   	                	      | "1"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"               | "" | "treeFracPrimDec[d=1]"                                                        | "Total Primary Deciduous Tree Cover Fraction"         | "%"   	 | "Areas[d=1]*CONTFRAC[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver"              | "" | "treeFracPrimEver[d=1]"                                                       | "Total Primary Evergreen Tree Cover Fraction"         | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	                 | "" | "c3PftFrac[d=1]" 	                                                      | "Total C3 PFT Cover Fraction" 	 	              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	                 | "" | "c4PftFrac[d=1]" 	                                                      | "Total C4 PFT Cover Fraction" 		              | "%" 	 | "Areas[d=1]*CONTFRAC[d=1]"
+cProduct_lands         | "cProduct"           | "" | "(cProduct[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	            | "Carbon in Products of Land Use Change" 	               | "PgC"    | "2"
+fLuc_lands             | "fLuc"               | "" | "(fLuc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux to Atmosphere from Land Use Change"            | "PgC/yr" | "2"
+ra_lands               | "ra"                 | "" | "(ra[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 		    | "Autotrophic Respiration"			               | "PgC/yr" | "2"
+fVegLitter_lands       | "fVegLitter"         | "" | "(fVegLitter[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Total Carbon Flux from Vegetation to Litter"            | "PgC/yr" | "2"
+fLitterSoil_lands      | "fLitterSoil"        | "" | "(fLitterSoil[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"      | "Total Carbon Flux from Litter to Soil" 	               | "PgC/yr" | "2"
+cLeaf_lands            | "cLeaf"              | "" | "(cLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                      | "Carbon in Leaves"                                       | "PgC"    | "2"
+cWood_lands            | "cWood"              | "" | "(cWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Wood" 			                       | "PgC"    | "2"
+cRoot_lands            | "cRoot"              | "" | "(cRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Roots" 			               | "PgC"    | "2"
+cMisc_lands            | "cMisc"              | "" | "(cMisc[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)" 	                    | "Carbon in Other Living Compartments" 	               | "PgC"    | "2"
+cLitterAbove_lands     | "cLitterAbove"       | "" | "(cLitterAbove[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Above-Ground Litter" 	                       | "PgC"    | "2"
+cLitterBelow_lands     | "cLitterBelow"       | "" | "(cLitterBelow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"               | "Carbon in Below-Ground Litter" 	                       | "PgC"    | "2"
+cSoilFast_lands        | "cSoilFast"          | "" | "(cSoilFast[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Fast Soil Pool" 		               | "PgC"    | "2"
+cSoilMedium_lands      | "cSoilMedium"        | "" | "(cSoilMedium[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                | "Carbon in Medium Soil Pool" 		               | "PgC"    | "2"
+cSoilSlow_lands        | "cSoilSlow"          | "" | "(cSoilSlow[d=1]*AREAS[d=1]*CONTFRAC[d=1]*1000/1e15)"                  | "Carbon in Slow Soil Pool" 	    	               | "PgC"    | "2"
+nppLeaf_lands          | "nppLeaf" 	      | "" | "(nppLeaf[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "PgC/yr" | "2"
+nppWood_lands          | "nppWood" 	      | "" | "(nppWood[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "PgC/yr" | "2"
+nppRoot_lands          | "nppRoot" 	      | "" | "(nppRoot[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "PgC/yr" | "2"
+nep_lands              | "nep" 		      | "" | "(nep[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	            | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "PgC/yr" | "2"
+cMassVariation_lands   | "cMassVariation"     | "" | "(cMassVariation[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)"   | "Carbon Mass Variation"	                               | "PgC/yr" | "2"
+cBal_lands             | "cMassVariation nbp" | "" | "((cMassVariation[d=1,L=2:100000]-nbp[d=2,L=2:100000])*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" | "Total Carbon Balance"    | "PgC/yr" | "2"
+rGrowth_lands          | "rGrowth" 	      | "" | "(rGrowth[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Growth Autotrophic Respiration" 		               | "PgC/yr" | "2"
+rMaint_lands           | "rMaint" 	      | "" | "(rMaint[d=1]*AREAS[d=1]*CONTFRAC[d=1]*86400*365*1000/1e15)" 	    | "Maintenance Autotrophic Respiration" 	               | "PgC/yr" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_stomate_DGVM.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/POST/monitoring01_stomate_DGVM.cfg	(revision 5631)
@@ -0,0 +1,115 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+CONVFLUX_lands      | "CONVFLUX CONTFRAC"                  | "" | "(CONVFLUX[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                           | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands  | "CFLUX_PROD10 CONTFRAC"              | "" | "(CFLUX_PROD10[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                       | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands | "CFLUX_PROD100 CONTFRAC"             | "" | "(CFLUX_PROD100[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+HARVEST_ABOVE_lands | "HARVEST_ABOVE CONTFRAC"             | "" | "(HARVEST_ABOVE[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release product after harvest (LANDS)"                | "PgC/yr" | "2"
+SOIL_CARB_lands     | "TOTAL_SOIL_CARB VEGET_MAX CONTFRAC" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Total Soil Carbon (LANDS)"                                   | "PgC"    | "2"
+BIOMASS_lands       | "TOTAL_M VEGET_MAX CONTFRAC"         | "" | "(TOTAL_M[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Total Biomass (LANDS)"                                       | "PgC"    | "2"
+LITTER_lands        | "TOTAL_BM_LITTER VEGET_MAX CONTFRAC" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)" | "Total Litter (LANDS)"                                        | "PgC/yr" | "2"
+NPP_lands           | "NPP VEGET_MAX CONTFRAC"             | "" | "(NPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Net Primary Produc (LANDS)"                                  | "PgC/yr" | "2"
+GPP_lands           | "GPP VEGET_MAX CONTFRAC"             | "" | "(GPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Gross Primary Produc (LANDS)"                                | "PgC/yr" | "2"
+HET_RESP_lands      | "HET_RESP VEGET_MAX CONTFRAC"        | "" | "(HET_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"        | "Heterotr. Resp. (LANDS)"                                     | "PgC/yr" | "2"
+MAINT_RESP_lands    | "MAINT_RESP VEGET_MAX CONTFRAC"      | "" | "(MAINT_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"      | "Maintenance Resp. (LANDS)"                                   | "PgC/yr" | "2"
+GROWTH_RESP_lands   | "GROWTH_RESP VEGET_MAX CONTFRAC"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Growth Resp. (LANDS)"                                        | "PgC/yr" | "2"
+cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"			    | "kg C m-2" | "Areas[d=1]"
+cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])" 	    | "Carbon in Litter Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])" 	    | "Carbon in Soil Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])" 	    | "Carbon in Products of Land Use Change" 	    | "kg C m-2" | "Areas[d=1]"
+lai_lands              | "lai"              | "" | "(lai[d=1])" 	    | "Leaf Area Fraction"   	     		    | "1"   	 | "Areas[d=1]"
+gpp_lands              | "gpp"              | "" | "(gpp[d=1])" 	    | "Gross Primary Production" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+ra_lands               | "ra"               | "" | "(ra[d=1])" 		    | "Autotrophic Respiration"			    | "kg C m-2 s-1" | "Areas[d=1]"
+npp_lands              | "npp"              | "" | "(npp[d=1])" 	    | "Net Primary Production" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+rh_lands               | "rh"               | "" | "(rh[d=1])" 		    | "Heterotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+fFire_lands            | "fFire"            | "" | "(fFire[d=1])" 	    | "CO2 Emission from Fire" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])" 	    | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]"
+fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])" 	    | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]"
+nbp_lands              | "nbp"              | "" | "(nbp[d=1])" 	    | "Net Biospheric Production"      	   	    | "kg C m-2 s-1" | "Areas[d=1]"
+fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])" 	    | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]"
+fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])" 	    | "Carbon in Leaves"      	       		    | "kg C m-2" | "Areas[d=1]"
+cWood_lands            | "cWood"            | "" | "(cWood[d=1])" 	    | "Carbon in Wood" 				    | "kg C m-2" | "Areas[d=1]"
+cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])" 	    | "Carbon in Roots" 			    | "kg C m-2" | "Areas[d=1]"
+cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])" 	    | "Carbon in Other Living Compartments" 	    | "kg C m-2" | "Areas[d=1]"
+cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])" 	    | "Carbon in Fast Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])" 	    | "Carbon in Slow Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"   	| "Areas[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%" 	| "Areas[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	    | "" | "(c3PftFrac[d=1])" 	    | "Total C3 PFT Cover Fraction" 	 	    | "%" 	| "Areas[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	    | "" | "(c4PftFrac[d=1])" 	    | "Total C4 PFT Cover Fraction" 		    | "%" 	| "Areas[d=1]"
+rGrowth_lands          | "rGrowth" 	    | "" | "(rGrowth[d=1])" 	    | "Growth Autotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+rMaint_lands           | "rMaint" 	    | "" | "(rMaint[d=1])" 	    | "Maintenance Autotrophic Respiration" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+nppLeaf_lands          | "nppLeaf" 	    | "" | "(nppLeaf[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]"
+nppWood_lands          | "nppWood" 	    | "" | "(nppWood[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]"
+nppRoot_lands          | "nppRoot" 	    | "" | "(nppRoot[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]"
+nep_lands              | "nep" 		    | "" | "(nep[d=1])" 	    | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "kg C m-2 s-1" | "Areas[d=1]"
+cMassVariation_lands     | "cMassVariation"     | "" | "(cMassVariation[d=1])"    | "Carbon Mass Variation"			    | "kg C m-2 s-1" | "Areas[d=1]"
+cBal_lands             | "cMassVariation nbp" | "" | "(cMassVariation[d=1,L=2:1000]-nbp[d=2,L=2:1000])" | "Total Carbon Balance"		    | "kg C m-2 s-1" | "Areas[d=1]"
+ADAPTATION01_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=1])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION02_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=2])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION03_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=3])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION04_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=4])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION05_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=5])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION06_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=6])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION07_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=7])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION08_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=8])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION09_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=9])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION10_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=10])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION11_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=11])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION12_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=12])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+ADAPTATION13_lands       | "ADAPTATION"       | "" | "(ADAPTATION[d=1,k=13])"      | "Adaptation to climate (DGVM)"                | "-" | "2"
+REGENERATION01_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=1])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION02_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=2])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION03_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=3])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION04_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=4])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION05_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=5])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION06_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=6])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION07_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=7])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION08_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=8])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION09_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=9])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION10_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=10])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION11_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=11])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION12_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=12])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+REGENERATION13_lands     | "REGENERATION"     | "" | "(REGENERATION[d=1,k=13])"    | "Probability from regenerative (DGVM)"        | "-" | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/config.card	(revision 5631)
@@ -0,0 +1,133 @@
+# $HeadURL$
+# $Date$
+# $Revision$
+#
+#========================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=test
+#----- LongName : Some words describing the experiment. LongName will be added in all output files produced by XIOS.
+LongName=""
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=TEST
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=spinup
+#============================
+#-- leap(gregorian), noleap, 360d
+CalendarType=noleap
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1901-01-01
+DateEnd=2240-12-31
+# Forcing data between 1901 and 1920
+CyclicBegin=1901
+CyclicEnd=1910
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1Y
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component: (Component name, tag/version name)
+SRF= (sechiba, orchidee)
+SBG= (stomate, orchidee)
+OOL= (orchidee_ol, orchidee)
+IOS= (xios, XIOS)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+#D- For each component: 
+#D  (Real executable name, temorary name during run, number of process MPI)
+SRF= ("", "")
+SBG= ("", "")
+OOL= (orchidee_ol, orchidee_ol, 31MPI)
+IOS= (xios_server.exe, xios.x, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- OverRule=y : All component will restart from the same simulation
+OverRule=n
+#D- Date of restart file to be used
+RestartDate=1981-12-31
+#D- JobName for the restart file
+RestartJobName=CD1
+#D- Path to directory where the RestartJobName directory is stored
+#D- NB! ${ARCHIVE} depend on login. The full path can also be set
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2/PROD/secsto
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=10Y
+#D- Frequency of rebuild submission. Only set NONE if running with 1 XIOS server
+RebuildFrequency=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=10Y
+#D- Activate IgnoreNonMonotonic because time axis is not monotonic with 
+#D- spinup experiment 
+IgnoreNonMonotonic=TRUE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=10Y
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+#D- If you want to produce compute PCMDI metrics from seasonal average
+#D- Set TRUE or FALSE to activate/deactivate the metrics computation.
+MetricsPCMDI=FALSE
+
+#========================================================================
+#D-- SRF - SECHIBA
+# Use this section to start from restart file for SRF if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in sechiba.card 
+[SRF]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- SBG - STOMATE
+# Use this section to start from restart file for SBG if OverRule=n
+# WriteFrequency is not used any more for ORCHIDEE 
+# Output files are now managed in stomate.card 
+[SBG]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- OOL - Offline driver
+# There is no need to change this section
+[OOL]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
+#D-- IOS - XIOS
+# There is no need to change this section
+[IOS]
+WriteFrequency=""
+Restart=n
+RestartDate=...
+RestartJobName=...
+RestartPath=...
+#========================================================================
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/readme
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/readme	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1/readme	(revision 5631)
@@ -0,0 +1,10 @@
+This experience is set up according to the protocol for spinup 
+in the TRENDY2 project. 
+
+Note that
+- The parmeters set in run.def is specific to TRENDY2 protocol 
+- 20 years of CRUNCEP forcing data is used. The simulation loops 12
+  times over this period. This is done using the CyclicBegin and CyclicEnd 
+  in config.card.
+- Only yearly output is set
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/orchidee_ol.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/orchidee_ol.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/orchidee_ol.card	(revision 5631)
@@ -0,0 +1,29 @@
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+# No driver restart file for teststomate
+NORESTART=y
+# If you want use config.card PeriodLength for TIME_LENGTH
+TIMELENGTH=y
+
+[InitialStateFiles]
+List= ()	
+
+[BoundaryFiles]
+List= ()
+ListNonDel= ()
+
+[ParametersFiles]
+List= ()
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List= ( NONE )
+
+[OutputText]
+List= ()
+
+[OutputFiles]
+List= ()	
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/orchidee_ol.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/orchidee_ol.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/orchidee_ol.driver	(revision 5631)
@@ -0,0 +1,134 @@
+#!/bin/ksh
+
+#D- Driver du script pour ORCHIDEE_OL (off-line)
+
+function ORCHIDEE_def
+{
+    IGCM_debug_PushStack "ORCHIDEE_def"
+    
+    typeset ORCHIDEE_def_KEY ORCHIDEE_default_KEY
+    
+    ORCHIDEE_def_KEY=$( grep -e "^${1}\ *=" run.def | gawk -- 'BEGIN {FS="="} {print $2}')
+    ORCHIDEE_default_KEY=$( grep -e "^${1}\ *=" ${SUBMIT_DIR}/PARAM/orchidee.default | gawk -- 'BEGIN {FS="="} {print $2}')
+
+    if [ X"${ORCHIDEE_def_KEY}" != X ] ; then
+	IGCM_debug_Print 2 "ORCHIDEE : ${1} has already been set in def file."
+	IGCM_debug_Print 2 " default value : ${ORCHIDEE_default_KEY}"
+	IGCM_debug_Print 2 " script value : ${2}"
+	IGCM_debug_Print 2 " USER value : ${ORCHIDEE_def_KEY}"
+	IGCM_debug_Print 2 "               We will not set in again !"
+    else
+	echo "${1}= ${2}" >> run.def
+	echo ""  >> run.def
+	echo "ORCHIDEE_def : ${1} ${2}"
+    fi
+    
+    IGCM_debug_PopStack "ORCHIDEE_def"
+    return $RET
+}
+
+#-----------------------------------------------------------------
+function OOL_Initialize
+{
+    IGCM_debug_PushStack "OOL_Initialize"
+
+    NUM_PROC=1
+#D- Number of processors used for lmdz and oasis coupler computed from PBS variable
+    if [ X"${BATCH_NUM_PROC_TOT}" != X ] ; then
+	NUM_PROC=${BATCH_NUM_PROC_TOT}
+    fi
+    echo BATCH_NUM_PROC_TOT=${BATCH_NUM_PROC_TOT}
+    echo NUM_PROC=${NUM_PROC}
+
+    if ( [ X${BATCH_NUM_PROC_TOT} != X ] && [ "${BATCH_NUM_PROC_TOT}" -gt 1 ] ) ; then
+	MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND}
+    fi
+
+    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/COMP/orchidee_ol.card UserChoices
+    RESOL=${orchidee_ol_UserChoices_RESOL}
+
+    IGCM_debug_PopStack "OOL_Initialize"
+}
+
+#-----------------------------------------------------------------
+function OOL_Update
+{
+    IGCM_debug_PushStack "OOL_Update"
+
+    if [ X"${orchidee_ol_UserChoices_TIMELENGTH}" = Xy ] ; then
+	case ${config_UserChoices_PeriodLength} in
+	    *M|*m|*D|*d)
+		ORCHIDEE_def TIME_LENGTH ${PeriodLengthInDays}D
+		;;
+	    *s|*Y)
+		ORCHIDEE_def TIME_LENGTH ${config_UserChoices_PeriodLength}
+        ;;
+        *)
+        IGCM_debug_Exit "OOL_Update " ${config_UserChoices_PeriodLength} " invalid PeriodLength in config.card : choose between 1Y, 1M, 5D, 1D."
+        IGCM_debug_Verif_Exit
+	esac
+    fi
+
+
+    # Set TIME_SKIP only if starting without restart file
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	ORCHIDEE_def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D
+    fi
+
+    # Set RESTART_FILEIN in run.def
+    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then
+	# Set RESTART_FILEIN=NONE in run.def
+	ORCHIDEE_def RESTART_FILEIN NONE
+    elif [ X${orchidee_ol_UserChoices_NORESTART} = Xy ] ; then
+	# Delete restart file if it exists in run directory and set RESTART_FILEIN=NONE in run.def
+	if [ -f driver_rest_in.nc ] ; then
+	    IGCM_sys_Rm driver_rest_in.nc
+	fi
+	ORCHIDEE_def RESTART_FILEIN NONE
+    else
+        # Default option using restart file, set RESTART_FILEIN=driver_rest_in.nc in orchidee.def
+	ORCHIDEE_def RESTART_FILEIN driver_rest_in.nc
+    fi
+
+    # Reset the year for the case using CyclicBegin and CyclicEnd in config.card
+    if [ X${CyclicYear} = X${config_UserChoices_CyclicBegin} ] ; then
+        # Reset the year when coming back to the first year in the cycle. This means that the 
+        # year will be read from the forcing file instead of coming from the restart file. 
+        ORCHIDEE_def DRIVER_reset_time y
+    fi
+
+
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Add include of orchidee context in iodef.xml
+      # In iodef.xml add on next line after "COMPONENT CONTEXT"
+      #  <context id="orchidee" src="./context_orchidee.xml"/>
+      echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp
+
+      # Add inclusion of file context_input_orchidee.xml if this file exists
+      if [ -f context_input_orchidee.xml ] ; then
+          echo '<context id="orchidee" src="./context_input_orchidee.xml"/>' >> add.tmp
+      fi
+
+      cp iodef.xml iodef.xml.tmp
+      sed -e "/COMPONENT CONTEXT/r add.tmp" \
+        iodef.xml.tmp > iodef.xml
+      rm iodef.xml.tmp add.tmp
+
+      # Test if SBG component is activated. If not, deactivate stomate output files from file_def_orchidee.xml
+      if [ X${config_ListOfComponents_SBG} = X ] ; then
+          # Stomate is not activated
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE.
+          IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE.
+      fi
+    fi
+          
+    IGCM_debug_PopStack "OOL_Update"
+}
+
+#-----------------------------------------------------------------
+function OOL_Finalize
+{
+    IGCM_debug_PushStack "OOL_Finalize"
+    
+    IGCM_debug_PopStack "OOL_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/sechiba.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/sechiba.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/sechiba.card	(revision 5631)
@@ -0,0 +1,42 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+LAIMAP=n
+
+# IMPOSE_VEG=y/n
+IMPOSE_VEG=n
+
+# VEGET_UPDATE=0Y no change in PFTmap. PFTmap should be set only in InitialStateFiles/List. 
+# VEGET_UPDATE=1Y change PFTmap every year in december : PFTmap should be added in BoundaryFiles/List and removed from InitialStateFiles/List.
+# This parameter is only used if IMPOSE_VEG=n.
+VEGET_UPDATE=0Y
+
+
+[InitialStateFiles]
+List=	(${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_${year}.nc, PFTmap.nc)
+	
+
+[BoundaryFiles]
+List=	()
+# If VEGET_UPDATE=1Y:
+#List=	(${R_IN}/SRF/PFTMAPS/CMIP5/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_${year_p1}.nc, PFTmap.nc)
+
+ListNonDel= (${config_SBG_RestartPath}/${config_SBG_RestartJobName}/SBG/Restart/${config_SBG_RestartJobName}_${Date_Restarts}_stomate_forcing.nc, stomate_forcing.nc)
+
+
+[SmoothFiles]
+List=()
+
+[ParametersFiles]
+List=	(${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(sechiba_rest_out.nc, sechiba_rest.nc, sechiba_rest_in.nc)
+
+[OutputText]
+List=   (run.def, used_run.def, out_teststomate, out_orchidee)
+
+[OutputFiles]
+List=	()
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/sechiba.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/sechiba.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/sechiba.driver	(revision 5631)
@@ -0,0 +1,204 @@
+#!/bin/ksh
+
+#D- Driver du script pour SECHIBA
+
+#-----------------------------------------------------------------
+function SRF_Initialize
+{
+    IGCM_debug_PushStack "SRF_Initialize"
+
+    echo "ORCHIDEE Tag : " ${config_UserChoices_TagName}
+
+    RESOL_SRF=ALL
+    
+    typeset frequency
+    for frequency in ${config_SRF_WriteFrequency} ; do
+        case ${frequency} in
+            HF|hf) SRF_ok_hf=y ;;
+        esac
+    done
+
+    IGCM_debug_PopStack "SRF_Initialize"
+}
+
+#-----------------------------------------------------------------
+# Optionnal function executed at the beginning of the main loop, 
+# after IGCM_config_PeriodStart see libIGCM/AA_job. 
+# It may be used to set special variables used in forward lists
+function SRF_PeriodStart
+{
+    IGCM_debug_PushStack "SRF_PeriodStart"
+    IGCM_debug_PopStack "SRF_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+function SRF_Update
+{
+    IGCM_debug_PushStack "SRF_Update"
+
+    typeset SECHIBA_WRITE_STEP
+
+    # Set default values for sechiba1_enabled and sechiba1_freq.
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    sechiba1_enabled=.FALSE.
+    sechiba1_freq=0s
+
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      IGCM_comp_modifyDefFile nonblocker run.def XIOS_ORCHIDEE_OK y
+    else
+      IGCM_comp_modifyDefFile nonblocker run.def XIOS_ORCHIDEE_OK n
+    fi
+
+    # Get WriteFrenquecies from config.card for SECHIBA
+    SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' ) 
+    case ${SRF_WriteFrequency} in
+	*Y|*y) 
+	    WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+	    (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 ))
+
+	    sechiba1_enabled=.TRUE.
+	    sechiba1_freq=${WriteInYears}y
+        ;;
+	1M)
+            sechiba1_enabled=.TRUE.
+            sechiba1_freq=1mo
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		SECHIBA_WRITE_STEP=-1.
+		;;
+	    *M|*m)
+		SECHIBA_WRITE_STEP=-1.
+		;;
+	    *)
+		(( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 ))
+		;;
+	    esac
+	    ;;
+	*M|*m) 
+	    WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+            sechiba1_enabled=.TRUE.
+            sechiba1_freq=${WriteInMonths}mo
+        
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+		(( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12 ))
+		;;
+	    *M|*m)
+		PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )
+		(( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths  * 86400 / PeriodLengthInMonths  ))
+		;;
+	    *)
+		(( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 ))
+		;;
+	    esac
+	    ;;
+	5D|5d)
+            sechiba1_enabled=.TRUE.
+            sechiba1_freq=5d
+        
+ 	    (( SECHIBA_WRITE_STEP = 5 * 86400 )) ;;
+	1D|1d) 
+            sechiba1_enabled=.TRUE.
+            sechiba1_freq=1d
+        
+	    (( SECHIBA_WRITE_STEP = 86400 )) ;;
+	*s)
+	    WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' )
+            sechiba1_enabled=.TRUE.
+            sechiba1_freq=${WriteInSeconds}s
+        
+ 	    (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;;
+	*) 
+	    IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
+	    IGCM_debug_Verif_Exit ;;
+    esac
+
+    # Deactivate IOIPSL output if XIOS=y
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Deactivate sechiba IOIPSL ouput
+      (( SECHIBA_WRITE_STEP = 0 ))
+    fi
+
+    ORCHIDEE_def WRITE_STEP ${SECHIBA_WRITE_STEP}
+    ORCHIDEE_def SECHIBA_HISTLEVEL ${sechiba_UserChoices_sechiba_LEVEL}
+    # Outputs HF in HISTFILE2 if required
+    if [ X${SRF_ok_hf} = Xy ] ; then
+ 	  ORCHIDEE_def SECHIBA_HISTFILE2 y
+	  ORCHIDEE_def SECHIBA_HISTLEVEL2 1
+	  ORCHIDEE_def WRITE_STEP2 10800.0
+    fi
+
+    # Modify file_def_orchidee.def if XIOS is activated
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+      # Modify file_def_orchidee.xml file
+      IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled ${sechiba1_enabled}
+      IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq ${sechiba1_freq}
+      if [ X${SRF_ok_hf} = Xy ] ; then
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled .TRUE.
+      else
+	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled .FALSE.
+      fi	  
+    fi
+
+    # Activate other processes
+    ORCHIDEE_def STOMATE_OK_CO2 ${sechiba_UserChoices_OKCO2}
+
+    ORCHIDEE_def LAI_MAP ${sechiba_UserChoices_LAIMAP}
+    ORCHIDEE_def RIVER_ROUTING ${sechiba_UserChoices_ROUTING}
+    ORCHIDEE_def HYDROL_CWRR ${sechiba_UserChoices_NEWHYDROL}
+
+    if [ X${sechiba_UserChoices_IMPOSE_VEG} = Xn ] ; then
+	# No impose_veg
+	ORCHIDEE_def IMPOSE_VEG n
+
+        # Modify in run.def VEGET_UPDATE and LAND_COVER_CHANGE if they are set in sechiba.card section UserChoices
+	if [ ! X${sechiba_UserChoices_VEGET_UPDATE} = X ] ; then
+	    ORCHIDEE_def VEGET_UPDATE   ${sechiba_UserChoices_VEGET_UPDATE}
+	else
+	    ORCHIDEE_def VEGET_UPDATE 0Y
+	fi
+	if [ ! X${sechiba_UserChoices_LAND_COVER_CHANGE} = X ] ; then
+	    ORCHIDEE_def LAND_COVER_CHANGE ${sechiba_UserChoices_LAND_COVER_CHANGE}
+	else
+	    ORCHIDEE_def LAND_COVER_CHANGE n
+	fi
+
+        # VEGET_YEAR is set to be used with anual PFTmap files. 
+	# What is done here is not adapted to run with multiple year file of PFTmap. 
+	if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	    ORCHIDEE_def VEGET_YEAR 1
+	else
+	    ORCHIDEE_def VEGET_YEAR 0
+	fi
+    else
+	ORCHIDEE_def IMPOSE_VEG y
+    fi
+
+
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then
+	ORCHIDEE_def SECHIBA_restart_in NONE
+	ORCHIDEE_def SECHIBA_reset_time y
+
+	# Check if running executable teststomate. In that case sechiba restart file is mandatory.
+	if [ -f teststomate ] ; then
+	    IGCM_debug_Print 1 "Error in launching teststomate !"
+	    IGCM_debug_Exit    "YOU MUST USE EXISTING RESTART FILE FOR SECHIBA WITH JOB TESTSTOMATE!" 
+	    IGCM_debug_Verif_Exit	    
+	fi
+    else
+	ORCHIDEE_def SECHIBA_restart_in sechiba_rest_in.nc
+	ORCHIDEE_def SECHIBA_reset_time y
+    fi
+
+    IGCM_debug_PopStack "SRF_Update"
+}
+
+#-----------------------------------------------------------------
+function SRF_Finalize
+{
+    IGCM_debug_PushStack "SRF_Finalize"
+
+    IGCM_debug_PopStack "SRF_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/stomate.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/stomate.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/stomate.card	(revision 5631)
@@ -0,0 +1,48 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+stomate_LEVEL=10
+
+[InitialStateFiles]
+List=   ()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= (${R_IN}/SRF/reftemp.nc, .)
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=   (${SUBMIT_DIR}/PARAM/run.def, .)
+
+[RestartFiles]
+# List restart that have to be saved/restored each loop (file out, saved, and in) :
+List=	(stomate_rest_out.nc, stomate_rest.nc, stomate_rest_in.nc)
+
+
+[OutputText]
+List=   (run.def, used_run.def)
+
+[OutputFiles]
+List=	(stomate_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_history.nc, Post_1M_stomate_history) \
+    (stomate_ipcc_history.nc, ${R_OUT_SBG_O_M}/${PREFIX}_1M_stomate_ipcc_history.nc, Post_1M_stomate_ipcc_history)
+
+[Post_1M_stomate_history]
+Patches= ()
+GatherWithInternal= (lon, lat, PFT, time_counter, Areas)
+TimeSeriesVars2D= (T2M_MONTH,CONTFRAC,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,HARVEST_ABOVE)
+ChunckJob2D = NONE
+TimeSeriesVars3D= (CO2FLUX,LAI,VEGET_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB,ADAPTATION,REGENERATION)
+ChunckJob3D = NONE
+Seasonal=ON
+
+[Post_1M_stomate_ipcc_history]
+Patches= ()
+GatherWithInternal= (lon, lat, PFT, time_counter, Areas)
+TimeSeriesVars2D=(cVeg, cLitter, cSoil, cProduct, cMassVariation, lai, gpp, ra, npp, rh, fFire, fHarvest, fLuc, nbp, fVegLitter, fLitterSoil, cLeaf, cWood, cRoot, cMisc, cLitterAbove, cLitterBelow, cSoilFast, cSoilMedium, cSoilSlow, landCoverFrac, treeFracPrimDec, treeFracPrimEver, c3PftFrac, c4PftFrac, rGrowth, rMaint, nppLeaf, nppWood, nppRoot, nep)
+ChunckJob2D = NONE
+TimeSeriesVars3D=()
+ChunckJob3D = NONE
+Seasonal=ON
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/stomate.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/stomate.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/stomate.driver	(revision 5631)
@@ -0,0 +1,180 @@
+#!/bin/ksh
+
+#D- Driver du script pour STOMATE
+
+#-----------------------------------------------------------------
+function SBG_Initialize
+{
+    IGCM_debug_PushStack "SBG_Initialize"
+
+    RESOL_SBG=ALL
+
+    typeset frequency
+    for frequency in ${config_SBG_WriteFrequency} ; do
+        case ${frequency} in
+            HF|hf) SBG_ok_hf=y ;;
+        esac
+    done
+    
+    IGCM_debug_PopStack "SBG_Initialize"
+}
+
+#-----------------------------------------------------------------
+function SBG_PeriodStart
+{
+    IGCM_debug_PushStack "SBG_PeriodStart"
+
+    IGCM_debug_PopStack "SBG_PeriodStart"
+}
+
+#-----------------------------------------------------------------
+function SBG_Update
+{
+    IGCM_debug_PushStack "SBG_Update"
+
+    typeset STOMATE_WRITE_STEP
+
+    # Set default values for stomate output files
+    # These variables are used only to modify file_def_orchidee.xml if XIOS=y
+    stomate_enabled=.FALSE.
+    stomate_freq=0s
+
+    case ${config_SBG_WriteFrequency} in
+	*Y|*y) 
+	    WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' )
+	    PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+	    (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) 
+
+            stomate_enabled=.TRUE.
+            stomate_freq=${WriteInYears}y
+        ;;
+	1M|1m) 
+            stomate_enabled=.TRUE.
+            stomate_freq=1mo
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		STOMATE_WRITE_STEP=-1.
+		;;
+	    *M|*m)
+		STOMATE_WRITE_STEP=-1.
+		;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	*M|*m) 
+	    WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' )
+            stomate_enabled=.TRUE.
+            stomate_freq=${WriteInMonths}mo
+	    case ${config_UserChoices_PeriodLength} in
+	    *Y|*y)
+		PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = 30 )) ;;
+	    *M|*m)
+		PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )
+		(( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;;
+	    *)
+		(( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
+	    esac
+	    ;;
+	5D|5d)
+            stomate_enabled=.TRUE.
+            stomate_freq=5d
+	    (( STOMATE_WRITE_STEP = 5 )) ;;
+	1D|1d)
+	    stomate_enabled=.TRUE.
+            stomate_freq=1d
+ 	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*s)
+	    WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' )
+	    stomate_enabled=.TRUE.
+            stomate_freq=${WriteInSeconds}s
+	    (( STOMATE_WRITE_STEP = 1 )) ;;
+	*) 
+	    IGCM_debug_Exit "SBG_Update " ${config_SBG_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
+	    IGCM_debug_Verif_Exit ;;
+    esac
+
+    # Modify file_def_orchidee.def if XIOS is activated
+    if [ X${orchidee_ol_UserChoices_XIOS} = Xy ] ; then
+	# Modify file_def_orchidee.xml
+	IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled ${stomate_enabled}
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq ${stomate_freq}
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled ${stomate_enabled}
+        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq ${stomate_freq}
+
+        # Deactivate stomate IOIPSL output
+	(( STOMATE_WRITE_STEP = 0 ))
+    fi
+
+    ORCHIDEE_def STOMATE_OK_STOMATE y
+
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+       ORCHIDEE_def SPINUP_ANALYTIC y
+      
+       # Test if CyclicBegin and CyclicEnd is set in config.card
+       if ( [ X${config_UserChoices_CyclicBegin} = X ] || [ X${config_UserChoices_CyclicEnd} = X ] ) ; then
+           IGCM_debug_Exit "CyclicBegin and CyclicEnd must be set in config.card to run option spinup_analytic."
+       fi
+       # Calculate and set number of years of forcing data
+       CycleNb=$(( ${config_UserChoices_CyclicEnd} - ${config_UserChoices_CyclicBegin} + 1 ))
+       ORCHIDEE_def SPINUP_PERIOD ${CycleNb}
+
+    fi
+
+    ORCHIDEE_def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}
+    ORCHIDEE_def STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL}
+    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+	echo "STOMATE : without restart"
+    else
+	ORCHIDEE_def STOMATE_RESTART_FILEIN stomate_rest_in.nc
+    fi
+
+    if [ X${SBG_ok_hf} = Xy ] ; then 
+	ORCHIDEE_def STOMATE_IPCC_HIST_DT 1D
+    else
+	ORCHIDEE_def STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP}
+    fi
+
+
+    if [ -f CO2.txt ] ; then
+        # If this file exist, then read CO2 value and set ATM_CO2 in run.def
+        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`
+        ORCHIDEE_def ATM_CO2 ${IPCC_CO2}
+    fi
+
+
+    # Special case using forcesoil executable
+    if [ -f forcesoil ] ; then
+	# Set STOMATE_CFORCING_NAME
+        ORCHIDEE_def STOMATE_CFORCING_NAME stomate_Cforcing.nc
+
+	# Check if restart file is missing
+	if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then
+            IGCM_debug_Exit "YOU MUST USE OLD STOMATE RESTART FILE WITH THE JOB FORCESOIL."
+            IGCM_debug_Verif_Exit
+	fi
+    fi
+
+    IGCM_debug_PopStack "SBG_Update"
+}
+
+#-----------------------------------------------------------------
+function SBG_Finalize
+{
+    IGCM_debug_PushStack "SBG_Finalize"
+
+#   Check if equilibrium is reached for spinup analytic
+#   and if true stop the simulation in the end of this period.
+    if [ X${stomate_UserChoices_SPINUP_ANALYTIC} = Xy ] ; then
+      CondSpinup=$(grep -a  "Equilibrium for carbon pools is reached"  out_*)
+      if [ X"${CondSpinup}" != X ] ; then
+        echo "SPINUP ANALYTIC :  your spinup is successful :"
+        echo ${CondSpinup}
+        echo "We stop the simulation now. PeriodDateEnd is set to DateEnd."
+        PeriodDateEnd=${DateEnd}
+      fi
+    fi
+
+    IGCM_debug_PopStack "SBG_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/xios.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/xios.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/xios.card	(revision 5631)
@@ -0,0 +1,29 @@
+[Compatibility]
+libIGCM=1.0
+
+[UserChoices]
+
+[InitialStateFiles]
+List=	()
+
+[BoundaryFiles]
+List=	()
+ListNonDel= ()
+
+[SmoothFiles]
+List=	()
+
+[ParametersFiles]
+List=	()
+
+[RestartFiles]
+List=	(NONE)
+
+[OutputText]
+List=   ()
+
+[OutputFiles]
+List=   ()
+
+
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/xios.driver
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/xios.driver	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/COMP/xios.driver	(revision 5631)
@@ -0,0 +1,40 @@
+#!/bin/ksh
+#-----------------------------------
+function IOS_Initialize
+{ 
+    IGCM_debug_PushStack "IOS_Initialize"
+
+    echo INITIALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Initialize"
+}
+
+#-----------------------------------
+function IOS_Update
+{
+    IGCM_debug_PushStack "IOS_Update"
+
+    echo UPDATE IOS !!!
+# Activate server mode
+    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true
+# If lmdz_UserChoices_XIOS=y add LMDZ as component id :
+    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then
+	IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx
+    fi 
+    if [ -f namcouple ] ; then
+	sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 
+	IGCM_sys_Mv namcouple.tmp namcouple
+    fi
+
+    IGCM_debug_PopStack "IOS_Update"
+}
+
+#-----------------------------------
+function IOS_Finalize
+{
+    IGCM_debug_PushStack "IOS_Finalize"
+
+    echo FINALIZE IOS !!!
+
+    IGCM_debug_PopStack "IOS_Finalize"
+}
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/iodef.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/iodef.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/iodef.xml	(revision 5631)
@@ -0,0 +1,1 @@
+link iodef_xios2.xml
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/iodef_xios1.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/iodef_xios1.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/iodef_xios1.xml	(revision 5631)
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 1.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) -->
+	  <variable id="buffer_size"               type="integer">15000000</variable>
+	  <variable id="buffer_server_factor_size" type="integer">2</variable>
+	  <variable id="info_level"                type="integer">1</variable>
+	  <variable id="using_server"              type="boolean">false</variable>
+	  <variable id="using_oasis"               type="boolean">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/iodef_xios2.xml
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/iodef_xios2.xml	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/iodef_xios2.xml	(revision 5631)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- =========================================================================================================== -->
+<!-- iodef.xml : Configuration file for production of output files using XIOS 2.0                                    -->
+<!--             This file contains the context XIOS.                                                            -->
+<!--             The model components context will be add automatically by the comp.driver                       -->
+<!-- =========================================================================================================== -->
+
+<simulation>
+
+  <!-- =========================================================================================================== -->
+  <!-- XIOS context                                                                                                -->
+  <!-- =========================================================================================================== -->
+  <context id="xios">
+
+    <variable_definition>
+	
+	  <variable id="info_level"                type="int">1</variable>
+	  <variable id="using_server"              type="bool">false</variable>
+	  <variable id="using_oasis"               type="bool">false</variable>
+	  <variable id="oasis_codes_id"            type="string" >oceanx</variable>
+	
+      </variable_definition>
+               
+  </context>
+
+  <!-- =========================================================================================================== -->
+  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               -->
+  
+</simulation>
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/orchidee.default
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/orchidee.default	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/orchidee.default	(revision 5631)
@@ -0,0 +1,1514 @@
+#
+#
+#  WARNING !!! 
+#  DO NOT MODIFY THIS FILE.
+#  THIS FILE IS ONLY PROVIDING INFORMATION ABOUT DEFAULT PARAMETER SETTINGS IN ORCHIDEE. 
+#
+#*******************************************************************************************
+#                    Namelist for ORCHIDEE (trunk revision 2135) 
+#*******************************************************************************************
+#
+#  For more details, see : http://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/OrchideeParameters 
+#
+#  Note : [m] : meters; [K] : Kelvin degrees; [C] : Celsius degrees
+#
+
+#*******************************************************************************************
+#          ORCHIDEE driver parameters (read in Off-line mode only) 
+#*******************************************************************************************
+
+# DEBUG_INFO ([FLAG] ) :  Flag for debug information 	{[-]}
+DEBUG_INFO =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# SPLIT_DT ([-]) :  splits the timestep imposed by the forcing 	{NOT(WEATHERGEN)}
+SPLIT_DT =  12 
+
+# RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions 	{[-]}
+RESTART_FILEIN =  NONE 
+
+# RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by the driver 	{[-]}
+RESTART_FILEOUT =  driver_rest_out.nc 
+
+# DRIVER_reset_time ([FLAG]) :  Overwrite time values from the driver restart file 	{[-]}
+DRIVER_reset_time =  n 
+
+# TIME_SKIP ([seconds, days, months, years]) :  Time in the forcing file at which the model is started. 	{[-]}
+TIME_SKIP =  0 
+
+# TIME_LENGTH ([seconds, days, months, years]) :  Length of the integration in time. 	{[-]}
+TIME_LENGTH =  DEF 
+
+# RELAXATION ([FLAG]) :  method of forcing 	{[-]}
+RELAXATION =  n 
+
+# RELAX_A ([days?]) :  Time constant of the relaxation layer 	{RELAXATION}
+RELAX_A =  1.0 
+
+# NO_INTER  ([FLAG]) :  No interpolation IF split is larger than 1 	{[-]}
+NO_INTER  =  y 
+
+# INTER_LIN ([FLAG]) :  Interpolation IF split is larger than 1 	{[-]}
+INTER_LIN =  n 
+
+# SPRED_PREC ([-]) :  Spread the precipitation. 	{[-]}
+SPRED_PREC =  1 
+
+# NETRAD_CONS ([FLAG]) :  Conserve net radiation in the forcing 	{INTER_LIN}
+NETRAD_CONS =  y 
+
+# ATM_CO2 ([ppm]) :  Value for atm CO2 	{[-]}
+ATM_CO2 =  350. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{[-]}
+ALLOW_WEATHERGEN =  n 
+
+# DT_WEATHGEN ([seconds]) :  Calling frequency of weather generator 	{ALLOW_WEATHERGEN}
+DT_WEATHGEN =  1800. 
+
+# LIMIT_WEST ([Degrees] ) :  Western limit of region 	{[-]}
+LIMIT_WEST =  -180. 
+
+# LIMIT_EAST ([Degrees] ) :  Eastern limit of region 	{[-]}
+LIMIT_EAST =  180. 
+
+# LIMIT_NORTH ([Degrees]) :  Northern limit of region 	{[-]}
+LIMIT_NORTH =  90. 
+
+# LIMIT_SOUTH ([Degrees]) :  Southern limit of region 	{[-]}
+LIMIT_SOUTH =  -90. 
+
+# MERID_RES ([Degrees]) :  North-South Resolution 	{ALLOW_WEATHERGEN}
+MERID_RES =  2. 
+
+# ZONAL_RES ([Degrees] ) :  East-West Resolution 	{ALLOW_WEATHERGEN}
+ZONAL_RES =  2. 
+
+# IPPREC ([-] ) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+IPPREC =  0 
+
+# WEATHGEN_PRECIP_EXACT ([FLAG]) :  Exact monthly precipitation 	{ALLOW_WEATHERGEN}
+WEATHGEN_PRECIP_EXACT =  n 
+
+# DUMP_WEATHER ([FLAG]) :  Write weather from generator into a forcing file 	{ALLOW_WEATHERGEN  }
+DUMP_WEATHER =  n 
+
+# DUMP_WEATHER_FILE ([FILE]) :  Name of the file that contains the weather from generator 	{DUMP_WEATHER}
+DUMP_WEATHER_FILE =  weather_dump.nc 
+
+# DUMP_WEATHER_GATHERED ([FLAG]) :  Dump weather data on gathered grid 	{DUMP_WEATHER}
+DUMP_WEATHER_GATHERED =  y 
+
+# HEIGHT_LEV1 ([m]) :   	{DUMP_WEATHER}
+HEIGHT_LEV1 =  10. 
+
+#*******************************************************************************************
+#          ORCHIDEE parameters  
+#*******************************************************************************************
+
+# LONGPRINT ([FLAG]) :  ORCHIDEE will print more messages 	{OK_SECHIBA}
+LONGPRINT =  n 
+
+# CHECKTIME ([FLAG]) :  ORCHIDEE will print messages on time 	{OK_SECHIBA}
+CHECKTIME =  n 
+
+# SOILTYPE_CLASSIF ([-]) :  Type of classification used for the map of soil types  	{!IMPOSE_VEG}
+SOILTYPE_CLASSIF =  zobler 
+
+# ORCHIDEE_WATCHOUT ([FLAG]) :  ORCHIDEE will write out its forcing to a file 	{}
+ORCHIDEE_WATCHOUT =  n 
+
+# DT_WATCHOUT ([seconds]) :  ORCHIDEE will write out with this frequency 	{ORCHIDEE_WATCHOUT}
+DT_WATCHOUT =  dt 
+
+# WATCHOUT_FILE ([FILE]) :  Filenane for the ORCHIDEE forcing file 	{ORCHIDEE_WATCHOUT}
+WATCHOUT_FILE =  orchidee_watchout.nc 
+
+# RIVER_ROUTING ([FLAG]) :  Decides if we route the water or not 	{OK_SECHIBA}
+RIVER_ROUTING =  n 
+
+# HYDROL_CWRR ([FLAG]) :  Allows to switch on the multilayer hydrology of CWRR 	{OK_SECHIBA}
+HYDROL_CWRR =  n 
+
+# HYDROL_SOIL_DEPTH ([m]) :  Total depth of soil reservoir 	{OK_SECHIBA }
+HYDROL_SOIL_DEPTH =  4./ 2. (if HYDROL_CWRR) 
+
+# DO_IRRIGATION ([FLAG]) :  Should we compute an irrigation flux  	{RIVER_ROUTING }
+DO_IRRIGATION =  n 
+
+# DO_FLOODPLAINS ([FLAG]  ) :  Should we include floodplains  	{RIVER_ROUTING }
+DO_FLOODPLAINS =  n 
+
+# CHECK_WATERBAL ([FLAG]  ) :  Should we check the global water balance  	{OK_SECHIBA}
+CHECK_WATERBAL =  n 
+
+# STOMATE_OK_CO2 ([FLAG]) :  Activate CO2? 	{OK_SECHIBA }
+STOMATE_OK_CO2 =  n 
+
+# STOMATE_OK_STOMATE ([FLAG]) :  Activate STOMATE? 	{OK_SECHIBA and OK_CO2}
+STOMATE_OK_STOMATE =  n 
+
+# STOMATE_OK_DGVM ([FLAG]) :  Activate DGVM? 	{OK_STOMATE}
+STOMATE_OK_DGVM =  n 
+
+# DIFFUCO_OK_INCA ([FLAG]) :  Activate DIFFUCO_INCA? 	{OK_SECHIBA}
+DIFFUCO_OK_INCA =  n 
+
+# LEAFAGE_OK_INCA ([FLAG]) :  Activate LEAFAGE? 	{DIFFUCO_OK_INCA}
+LEAFAGE_OK_INCA =  n 
+
+# CANOPY_EXTINCTION  ([FLAG]) :  Use canopy radiative transfer model? 	{DIFFUCO_OK_INCA }
+CANOPY_EXTINCTION  =  n 
+
+# CANOPY_MULTILAYER ([FLAG]) :  Use canopy radiative transfer model with multi-layers 	{CANOPY_EXTINCTION }
+CANOPY_MULTILAYER =  n 
+
+# NOx_RAIN_PULSE ([FLAG]) :  Calculate NOx emissions with pulse? 	{DIFFUCO_OK_INCA }
+NOx_RAIN_PULSE =  n 
+
+# NOx_BBG_FERTIL ([FLAG]) :  Calculate NOx emissions with bbg fertilizing effect? 	{DIFFUCO_OK_INCA }
+NOx_BBG_FERTIL =  n 
+
+# NOx_FERTILIZERS_USE ([FLAG] ) :  Calculate NOx emissions with fertilizers use? 	{DIFFUCO_OK_INCA }
+NOx_FERTILIZERS_USE =  n 
+
+# STOMATE_WATCHOUT ([FLAG]) :  STOMATE does minimum service 	{OK_SECHIBA }
+STOMATE_WATCHOUT =  n 
+
+# NVM ([-]) :  number of PFTs   	{OK_SECHIBA or OK_STOMATE}
+NVM =  13 
+
+# IMPOSE_PARAM ([FLAG]) :  Do you impose the values of the parameters? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_PARAM =  y 
+
+# SECHIBA_restart_in ([FILE]) :  Name of restart to READ for initial conditions 	{OK_SECHIBA }
+SECHIBA_restart_in =  NONE 
+
+# SECHIBA_rest_out ([FILE]) :  Name of restart files to be created by SECHIBA 	{OK_SECHIBA}
+SECHIBA_rest_out =  sechiba_rest_out.nc 
+
+# SECHIBA_reset_time ([FLAG]) :  Override the time from the restart files for SECHIBA and STOMATE 	{OK_SECHIBA}
+SECHIBA_reset_time =  y 
+
+# STOMATE_RESTART_FILEIN ([FILE]) :  Name of restart to READ for initial conditions of STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEIN =  NONE 
+
+# STOMATE_RESTART_FILEOUT ([FILE]) :  Name of restart files to be created by STOMATE 	{STOMATE_OK_STOMATE or STOMATE_WATCHOUT}
+STOMATE_RESTART_FILEOUT =  stomate_restart.nc 
+
+# ALMA_OUTPUT ([FLAG]) :  Should the output follow the ALMA convention 	{OK_SECHIBA}
+ALMA_OUTPUT =  n 
+
+# OUTPUT_FILE ([FILE]) :  Name of file in which the output is going to be written 	{OK_SECHIBA}
+OUTPUT_FILE =  sechiba_history.nc 
+
+# WRITE_STEP ([seconds]) :  Frequency in seconds at which to WRITE output 	{OK_SECHIBA}
+WRITE_STEP =  86400. 
+
+# SECHIBA_HISTLEVEL ([-]) :  SECHIBA history output level (0..10) 	{OK_SECHIBA and HF}
+SECHIBA_HISTLEVEL =  5 
+
+# SECHIBA_HISTFILE2 ([FLAG]) :  Flag to switch on histfile 2 for SECHIBA (hi-frequency ?) 	{OK_SECHIBA}
+SECHIBA_HISTFILE2 =  n 
+
+# WRITE_STEP2 ([seconds]) :  Frequency in seconds at which to WRITE output 	{SECHIBA_HISTFILE2}
+WRITE_STEP2 =  1800.0 
+
+# SECHIBA_OUTPUT_FILE2 ([FILE]) :  Name of file in which the output number 2 is going to be written 	{SECHIBA_HISTFILE2}
+SECHIBA_OUTPUT_FILE2 =  sechiba_out_2.nc 
+
+# SECHIBA_HISTLEVEL2 ([-] ) :  SECHIBA history 2 output level (0..10) 	{SECHIBA_HISTFILE2}
+SECHIBA_HISTLEVEL2 =  1 
+
+# STOMATE_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_OUTPUT_FILE =  stomate_history.nc 
+
+# STOMATE_HIST_DT ([days]) :  STOMATE history time step 	{OK_STOMATE}
+STOMATE_HIST_DT =  10. 
+
+# STOMATE_IPCC_OUTPUT_FILE ([FILE]) :  Name of file in which STOMATE's output is going to be written 	{OK_STOMATE}
+STOMATE_IPCC_OUTPUT_FILE =  stomate_ipcc_history.nc 
+
+# STOMATE_IPCC_HIST_DT ([days]) :  STOMATE IPCC history time step 	{OK_STOMATE}
+STOMATE_IPCC_HIST_DT =  0. 
+
+# STOMATE_HISTLEVEL ([-]) :  STOMATE history output level (0..10) 	{OK_STOMATE}
+STOMATE_HISTLEVEL =  10 
+
+# ECCENTRICITY ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+ECCENTRICITY =  0.016724 
+
+# PERIHELIE ([-]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+PERIHELIE =  102.04 
+
+# OBLIQUITY ([Degrees]) :  Use prescribed values 	{ALLOW_WEATHERGEN}
+OBLIQUITY =  23.446 
+
+# OK_THROUGHFALL_PFT ([FLAG]) :  Activate use of PERCENT_THROUGHFALL_PFT 	{HYDROL_CWRR}
+OK_THROUGHFALL_PFT =  FALSE 
+
+# PFT_TO_MTC ([-]) :  correspondance array linking a PFT to MTC 	{OK_SECHIBA or OK_STOMATE}
+PFT_TO_MTC =  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 
+
+# PFT_NAME ([-]) :  Name of a PFT 	{OK_SECHIBA or OK_STOMATE}
+PFT_NAME =  bare ground, tropical broad-leaved evergreen, tropical broad-leaved raingreen, temperate needleleaf evergreen, temperate broad-leaved evergreen, temperate broad-leaved summergreen,  boreal needleleaf evergreen, boreal broad-leaved summergreen, boreal needleleaf summergreen,  C3 grass, C4 grass, C3 agriculture, C4 agriculture  
+
+# LEAF_TAB ([-] ) :  leaf type : 1 	{OK_STOMATE}
+LEAF_TAB =  4, 1, 1, 2, 1, 1, 2, 1, 2, 3, 3, 3, 3  
+
+# PHENO_MODEL ([-] ) :  which phenology model is used? (tabulated)  	{OK_STOMATE}
+PHENO_MODEL =  none, none, moi, none, none, ncdgdd, none, ncdgdd, ngd, moigdd, moigdd, moigdd, moigdd 
+
+# SECHIBA_LAI ([m^2/m^2]) :  laimax for maximum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# LLAIMIN ([m^2/m^2]) :  laimin for minimum lai(see also type of lai interpolation) 	{OK_SECHIBA or IMPOSE_VEG}
+LLAIMIN =  0., 8., 0., 4., 4.5, 0., 4., 0., 0., 0., 0., 0., 0. 
+
+# SLOWPROC_HEIGHT ([m] ) :  prescribed height of vegetation  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1., 1. 
+
+# TYPE_OF_LAI ([-]) :  Type of behaviour of the LAI evolution algorithm  	{OK_SECHIBA}
+TYPE_OF_LAI =  inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter, inter 
+
+# NATURAL ([BOOLEAN]) :  natural?  	{OK_SECHIBA, OK_STOMATE}
+NATURAL =  y, y, y, y, y, y, y, y, y, y, y, n, n  
+
+# IS_C4 ([BOOLEAN]) :  flag for C4 vegetation types 	{OK_SECHIBA or OK_STOMATE}
+IS_C4 =  n, n, n, n, n, n, n, n, n, n, n, y, n, y 
+
+# VCMAX_FIX ([micromol/m^2/s] ) :  values used for vcmax when STOMATE is not activated 	{OK_SECHIBA and NOT(OK_STOMATE)}
+VCMAX_FIX =  0., 40., 50., 30., 35., 40.,30., 40., 35., 60., 60., 70., 70. 
+
+# DOWNREGULATION_CO2_COEFF ([-]) :  coefficient for CO2 downregulation (unitless) 	{OK_CO2}
+DOWNREGULATION_CO2_COEFF =  0., 0.38, 0.38, 0.28, 0.28, 0.28, 0.22, 0.22, 0.22, 0.26, 0.26, 0.26, 0.26 
+
+# E_KmC ([J mol-1]) :  Energy of activation for KmC 	{OK_CO2}
+E_KmC =  -9999.,  79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430., 79430. 
+
+# E_KmO ([J mol-1]) :  Energy of activation for KmO 	{OK_CO2}
+E_KmO =  -9999., 36380.,  36380.,  36380.,  36380.,  36380., 36380., 36380., 36380., 36380., 36380., 36380., 36380. 
+
+# E_gamma_star ([J mol-1]) :  Energy of activation for gamma_star 	{OK_CO2}
+E_gamma_star =  -9999., 37830.,  37830.,  37830.,  37830.,  37830., 37830., 37830., 37830., 37830., 37830., 37830., 37830. 
+
+# E_Vcmax ([J mol-1]) :  Energy of activation for Vcmax 	{OK_CO2}
+E_Vcmax =  -9999., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 71513., 67300., 71513., 67300. 
+
+# E_Jmax ([J mol-1]) :  Energy of activation for Jmax 	{OK_CO2}
+E_Jmax =  -9999., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 49884., 77900., 49884., 77900.  
+
+# aSV ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+aSV =  -9999., 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 668.39, 641.64, 668.39, 641.64  
+
+# bSV ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Vcmax 	{OK_CO2}
+bSV =  -9999., -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, -1.07, 0., -1.07, 0.  
+
+# TPHOTO_MIN ([-]) :  minimum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MIN =  -9999.,  -4., -4., -4., -4.,-4.,-4., -4., -4., -4., -4., -4., -4. 
+
+# TPHOTO_MAX ([-]) :  maximum photosynthesis temperature (deg C) 	{OK_STOMATE}
+TPHOTO_MAX =  -9999., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55., 55. 
+
+# aSJ ([J K-1 mol-1]) :  a coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+aSJ =  -9999., 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 659.70, 630., 659.70, 630.  
+
+# bSJ ([J K-1 mol-1 Â°C-1]) :  b coefficient of the linear regression (a+bT) defining the Entropy term for Jmax 	{OK_CO2}
+bSJ =  -9999., -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, -0.75, 0., -0.75, 0.  
+
+# D_Vcmax ([J mol-1]) :  Energy of deactivation for Vcmax 	{OK_CO2}
+D_Vcmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# D_Jmax ([J mol-1]) :  Energy of deactivation for Jmax 	{OK_CO2}
+D_Jmax =  -9999., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 200000., 192000., 200000., 192000. 
+
+# E_Rd ([J mol-1]) :  Energy of activation for Rd 	{OK_CO2}
+E_Rd =  -9999., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390., 46390. 
+
+# VCMAX25 ([micromol/m^2/s]) :  Maximum rate of Rubisco activity-limited carboxylation at 25Â°C 	{OK_STOMATE}
+VCMAX25 =  -9999., 65., 65., 35., 45., 55., 35., 45., 35., 70., 70., 70., 70. 
+
+# ARJV ([mu mol e- (mu mol CO2)-1]) :  a coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+ARJV =  -9999., 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 2.59, 1.715, 2.59, 1.715 
+
+# BRJV ([(mu mol e- (mu mol CO2)-1) (Â°C)-1]) :  b coefficient of the linear regression (a+bT) defining the Jmax25/Vcmax25 ratio  	{OK_STOMATE}
+BRJV =  -9999., -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, -0.035, 0., -0.035, 0. 
+
+# KmC25 ([ubar]) :  MichaelisâMenten constant of Rubisco for CO2 at 25Â°C 	{OK_CO2}
+KmC25 =  -9999., 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 404.9, 650., 404.9, 650. 
+
+# KmO25 ([ubar]) :  MichaelisâMenten constant of Rubisco for O2 at 25Â°C 	{OK_CO2}
+KmO25 =  -9999., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 278400., 450000., 278400., 450000. 
+
+# gamma_star25 ([ubar]) :  Ci-based CO2 compensation point in the absence of Rd at 25Â°C (ubar) 	{OK_CO2}
+gamma_star25 =  -9999., 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75, 42.75 
+
+# a1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+a1 =  -9999., 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85 
+
+# b1 ([-]) :  Empirical factor involved in the calculation of fvpd 	{OK_CO2}
+b1 =  -9999., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.20, 0.14, 0.20 
+
+# g0 ([mol mâ2 sâ1 barâ1]) :  Residual stomatal conductance when irradiance approaches zero  	{OK_CO2}
+g0 =  -9999., 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.00625, 0.01875, 0.00625, 0.01875  
+
+# h_protons ([mol mol-1]) :  Number of protons required to produce one ATP 	{OK_CO2}
+h_protons =  -9999., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4., 4.  
+
+# fpsir ([-]) :  Fraction of PSII eâ transport rate partitioned to the C4 cycle 	{OK_CO2}
+fpsir =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.4, -9999., 0.4  
+
+# fQ ([-]) :  Fraction of electrons at reduced plastoquinone that follow the Q-cycle 	{OK_CO2}
+fQ =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 1., -9999., 1. 
+
+# fpseudo ([-]) :  Fraction of electrons at PSI that follow pseudocyclic transport  	{OK_CO2}
+fpseudo =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# kp ([mol mâ2 sâ1 barâ1]) :  Initial carboxylation efficiency of the PEP carboxylase 	{OK_CO2}
+kp =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.7, -9999., 0.7 
+
+# alpha ([-]) :  Fraction of PSII activity in the bundle sheath 	{OK_CO2}
+alpha =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.1, -9999., 0.1 
+
+# gbs ([mol mâ2 sâ1 barâ1]) :  Bundle-sheath conductance 	{OK_CO2}
+gbs =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.003, -9999., 0.003 
+
+# theta ([â]) :  Convexity factor for response of J to irradiance 	{OK_CO2}
+theta =  -9999., 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7 
+
+# alpha_LL ([mol eâ (mol photon)â1]) :  Conversion efficiency of absorbed light into J at strictly limiting light 	{OK_CO2}
+alpha_LL =  -9999., 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372, 0.372 
+
+# EXT_COEFF ([-]) :  extinction coefficient of the Monsi&Seaki relationship (1953) 	{OK_SECHIBA or OK_STOMATE}
+EXT_COEFF =  .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5, .5 
+
+# HYDROL_HUMCSTE ([m]) :  Root profile 	{OK_SECHIBA}
+HYDROL_HUMCSTE =  humcste_cwrr or humcste_mct depending on flag HYDROL_CWRR 
+
+# PREF_SOIL_VEG ([-]        ) :  The soil tile number for each vegetation 	{OK_SECHIBA or OK_STOMATE}
+PREF_SOIL_VEG =  1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 
+
+# RSTRUCT_CONST ([s/m]) :  Structural resistance  	{OK_SECHIBA}
+RSTRUCT_CONST =  0.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0, 25.0,  2.5,  2.0,  2.0,  2.0 
+
+# KZERO ([kg/m^2/s]) :  A vegetation dependent constant used in the calculation of the surface resistance. 	{OK_SECHIBA}
+KZERO =  0.0, 12.E-5, 12.E-5, 12.e-5, 12.e-5, 25.e-5, 12.e-5,25.e-5, 25.e-5, 30.e-5, 30.e-5, 30.e-5, 30.e-5  
+
+# RVEG_PFT ([-]) :  Artificial parameter to increase or decrease canopy resistance. 	{OK_SECHIBA}
+RVEG_PFT =  1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1. 
+
+# WMAX_VEG ([kg/m^3]) :  Maximum field capacity for each of the vegetations (Temporary): max quantity of water 	{OK_SECHIBA}
+WMAX_VEG =  150., 150., 150., 150., 150., 150., 150.,150., 150., 150., 150., 150., 150. 
+
+# PERCENT_THROUGHFALL_PFT ([%]) :  Percent by PFT of precip that is not intercepted by the canopy 	{OK_SECHIBA OR HYDROL_CWRR}
+PERCENT_THROUGHFALL_PFT =  30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 30. 
+
+# SNOWA_AGED ([-]) :  Minimum snow albedo value for each vegetation type after aging (dirty old snow) 	{OK_SECHIBA}
+SNOWA_AGED =  0.35, 0., 0., 0.14, 0.14, 0.14, 0.14, 0.14, 0.14, 0.18, 0.18, 0.18, 0.18 
+
+# SNOWA_DEC ([-]) :  Decay rate of snow albedo value for each vegetation type as it will be used in condveg_snow 	{OK_SECHIBA}
+SNOWA_DEC =  0.45, 0.,  0., 0.06, 0.06, 0.11, 0.06, 0.11, 0.11, 0.52,0.52, 0.52, 0.52 
+
+# ALB_LEAF_VIS ([-]) :  leaf albedo of vegetation type, visible albedo 	{OK_SECHIBA}
+ALB_LEAF_VIS =  .00, .04, .06, .06, .06,.06, .06, .06, .06, .10, .10, .10, .10 
+
+# ALB_LEAF_NIR ([-]) :  leaf albedo of vegetation type, near infrared albedo 	{OK_SECHIBA}
+ALB_LEAF_NIR =  .00, .20, .22, .22, .22,.22, .22, .22, .22, .30, .30, .30, .30  
+
+# ISO_ACTIVITY ([-]) :  Biogenic activity for each age class : isoprene 	{DIFFUCO_OK_INCA}
+ISO_ACTIVITY =  0.5, 1.5, 1.5, 0.5 
+
+# METHANOL_ACTIVITY ([-]) :  Isoprene emission factor for each age class : methanol 	{DIFFUCO_OK_INCA}
+METHANOL_ACTIVITY =  1., 1., 0.5, 0.5 
+
+# EM_FACTOR_ISOPRENE ([ugC/g/h] ) :  Isoprene emission factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_ISOPRENE =  0., 24., 24., 8., 16., 45., 8., 8., 8., 16., 24., 5., 5. 
+
+# EM_FACTOR_MONOTERPENE ([ugC/g/h] ) :  Monoterpene emission factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MONOTERPENE =  0., 0.8, 0.8, 2.4, 1.2, 0.8, 2.4, 2.4, 2.4, 0.8, 1.2, 0.2, 0.2 
+
+# EM_FACTOR_ORVOC ([ugC/g/h]  ) :  ORVOC emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_ORVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_OVOC ([ugC/g/h]        ) :  OVOC emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_OVOC =  0., 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5 
+
+# EM_FACTOR_MBO ([ugC/g/h]  ) :  MBO emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_MBO =  0., 0., 0., 20.0, 0., 0., 0., 0., 0., 0., 0., 0., 0. 
+
+# EM_FACTOR_METHANOL ([ugC/g/h]  ) :  Methanol emissions factor  	{DIFFUCO_OK_INCA }
+EM_FACTOR_METHANOL =  0., 0.6, 0.6, 1.8, 0.9, 0.6, 1.8, 1.8, 1.8, 0.6, 0.9, 2., 2. 
+
+# EM_FACTOR_ACETONE ([ugC/g/h]     ) :  Acetone emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETONE =  0., 0.29, 0.29, 0.87, 0.43, 0.29, 0.87, 0.87, 0.87, 0.29, 0.43, 0.07, 0.07  
+
+# EM_FACTOR_ACETAL ([ugC/g/h]  ) :  Acetaldehyde emissions factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_ACETAL =  0., 0.1, 0.1, 0.3, 0.15, 0.1, 0.3, 0.3, 0.3, 0.1, 0.15, 0.025, 0.025 
+
+# EM_FACTOR_FORMAL ([ugC/g/h]  ) :  Formaldehyde emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_FORMAL =  0., 0.07, 0.07, 0.2, 0.1, 0.07, 0.2, 0.2, 0.2, 0.07, 0.1, 0.017, 0.017 
+
+# EM_FACTOR_ACETIC ([ugC/g/h]  ) :  Acetic Acid emissions factor 	{DIFFUCO_OK_INCA }
+EM_FACTOR_ACETIC =  0., 0.002, 0.002, 0.006, 0.003, 0.002, 0.006, 0.006, 0.006, 0.002, 0.003, 0.0005, 0.0005 
+
+# EM_FACTOR_FORMIC ([ugC/g/h]  ) :  Formic Acid emissions factor 	{DIFFUCO_OK_INCA}
+EM_FACTOR_FORMIC =  0., 0.01, 0.01, 0.03, 0.015, 0.01, 0.03, 0.03, 0.03, 0.01, 0.015, 0.0025, 0.0025  
+
+# EM_FACTOR_NO_WET ([ngN/m^2/s]) :  NOx emissions factor wet soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_WET =  0., 2.6, 0.06, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.36, 0.36, 0.36, 0.36 
+
+# EM_FACTOR_NO_DRY ([ngN/m^2/s] ) :  NOx emissions factor dry soil emissions and exponential dependancy factor  	{DIFFUCO_OK_INCA}
+EM_FACTOR_NO_DRY =  0., 8.60, 0.40, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 2.65, 2.65, 2.65, 2.65 
+
+# LARCH ([-]  ) :  Larcher 1991 SAI/LAI ratio 	{DIFFUCO_OK_INCA }
+LARCH =  0., 0.015, 0.015, 0.003, 0.005, 0.005, 0.003, 0.005, 0.003, 0.005, 0.005, 0.008, 0.008 
+
+# SLA ([m^2/gC]) :  specif leaf area  	{OK_STOMATE}
+SLA =  1.5E-2, 1.53E-2, 2.6E-2, 9.26E-3, 2E-2, 2.6E-2, 9.26E-3, 2.6E-2, 1.9E-2, 2.6E-2, 2.6E-2, 2.6E-2, 2.6E-2 
+
+# S0  ([-]    ) :  Standard sapwood allocation  	{OK_STOMATE }
+S0  =  -9999., .25, .25, .30, .30, .30, .30, .30, .30, .30, .30, .30, .30 
+
+# MAINT_RESP_SLOPE_C ([-]) :  slope of maintenance respiration coefficient (1/K), constant c of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_C =  -9999., .20, .20, .16, .16, .16, .16, .16, .16, .16, .12, .16, .12  
+
+# MAINT_RESP_SLOPE_B ([-]) :  slope of maintenance respiration coefficient (1/K), constant b of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_B =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, -.00133, .0, -.00133, .0  
+
+# MAINT_RESP_SLOPE_A ([-]) :  slope of maintenance respiration coefficient (1/K), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+MAINT_RESP_SLOPE_A =  -9999., .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0, .0     
+
+# CM_ZERO_LEAF ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for leaves, tabulated 	{OK_STOMATE}
+CM_ZERO_LEAF =  -9999., 2.35E-3, 2.62E-3, 1.01E-3, 2.35E-3, 2.62E-3, 1.01E-3,2.62E-3, 2.05E-3, 2.62E-3, 2.62E-3, 2.62E-3, 2.62E-3 
+
+# CM_ZERO_SAPABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C,for sapwood above, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPABOVE =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# CM_ZERO_SAPBELOW ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for sapwood below, tabulated 	{OK_STOMATE}
+CM_ZERO_SAPBELOW =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4  
+
+# CM_ZERO_HEARTABOVE ([g/g/day]) :  maintenance respiration coefficient at 0 deg C, for heartwood above, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTABOVE =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_HEARTBELOW ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C,for heartwood below, tabulated 	{OK_STOMATE }
+CM_ZERO_HEARTBELOW =  -9999., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.  
+
+# CM_ZERO_ROOT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for roots, tabulated 	{OK_STOMATE}
+CM_ZERO_ROOT =  -9999.,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3,1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3, 1.67E-3 
+
+# CM_ZERO_FRUIT ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for fruits, tabulated 	{OK_STOMATE}
+CM_ZERO_FRUIT =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4     
+
+# CM_ZERO_CARBRES ([g/g/day] ) :  maintenance respiration coefficient at 0 deg C, for carbohydrate reserve, tabulated 	{OK_STOMATE}
+CM_ZERO_CARBRES =  -9999., 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4,1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4, 1.19E-4 
+
+# FLAM ([-]) :  flamability: critical fraction of water holding capacity 	{OK_STOMATE}
+FLAM =  -9999., .15, .25, .25, .25, .25, .25, .25, .25, .25, .25, .35, .35 
+
+# RESIST ([-]) :  fire resistance 	{OK_STOMATE}
+RESIST =  -9999., .95, .90, .12, .50, .12, .12, .12, .12, .0, .0, .0, .0  
+
+# COEFF_LCCHANGE_1 ([-]) :  Coeff of biomass export for the year 	{OK_STOMATE}
+COEFF_LCCHANGE_1 =  -9999., 0.897, 0.897, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597, 0.597  
+
+# COEFF_LCCHANGE_10 ([-]) :  Coeff of biomass export for the decade 	{OK_STOMATE}
+COEFF_LCCHANGE_10 =  -9999., 0.103, 0.103, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.299, 0.403, 0.299, 0.403 
+
+# COEFF_LCCHANGE_100 ([-]) :  Coeff of biomass export for the century 	{OK_STOMATE}
+COEFF_LCCHANGE_100 =  -9999., 0., 0., 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0.104, 0., 0.104, 0. 
+
+# LAI_MAX ([m^2/m^2]) :  maximum LAI, PFT-specific 	{OK_STOMATE}
+LAI_MAX =  -9999., 7., 7., 5., 5., 5., 4.5, 4.5, 3.0, 2.5, 2.5, 5.,5.  
+
+# PHENO_TYPE ([-]) :  type of phenology, 0 	{OK_STOMATE}
+PHENO_TYPE =  0, 1, 3, 1, 1, 2, 1, 2, 2, 4, 4, 2, 3 
+
+# PHENO_GDD_CRIT_C ([-]) :  critical gdd, tabulated (C), constant c of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_C =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 270., 400., 125., 400. 
+
+# PHENO_GDD_CRIT_B ([-]) :  critical gdd, tabulated (C), constant b of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_B =  -9999., -9999., -9999., -9999., -9999., -9999., -9999.,-9999., -9999., 6.25, 0., 0., 0. 
+
+# PHENO_GDD_CRIT_A ([-]) :  critical gdd, tabulated (C), constant a of aT^2+bT+c 	{OK_STOMATE}
+PHENO_GDD_CRIT_A =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0.03125,  0., 0., 0. 
+
+# NGD_CRIT ([days]) :  critical ngd, tabulated. Threshold -5 degrees 	{OK_STOMATE}
+NGD_CRIT =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# NCDGDD_TEMP ([C] ) :  critical temperature for the ncd vs. gdd function in phenology 	{OK_STOMATE}
+NCDGDD_TEMP =  -9999., -9999., -9999., -9999., -9999., 5., -9999., 0., -9999., -9999., -9999., -9999., -9999. 
+
+# HUM_FRAC ([%]) :  critical humidity (relative to min/max) for phenology 	{OK_STOMATE}
+HUM_FRAC =  -9999., -9999., .5, -9999., -9999., -9999., -9999., -9999.,  -9999., .5, .5, .5,.5      
+
+# HUM_MIN_TIME ([days]) :  minimum time elapsed since moisture minimum 	{OK_STOMATE}
+HUM_MIN_TIME =  -9999., -9999., 50., -9999., -9999., -9999., -9999., -9999., -9999., 35., 35., 75., 75. 
+
+# TAU_SAP ([days]) :  sapwood -> heartwood conversion time 	{OK_STOMATE}
+TAU_SAP =  -9999., 730., 730., 730., 730., 730., 730., 730., 730., -9999., -9999., -9999., -9999. 
+
+# TAU_FRUIT ([days]) :  fruit lifetime 	{OK_STOMATE}
+TAU_FRUIT =  -9999., 90., 90., 90., 90., 90., 90., 90., 90., -9999., -9999., -9999., -9999. 
+
+# ECUREUIL ([-]) :  fraction of primary leaf and root allocation put into reserve 	{OK_STOMATE}
+ECUREUIL =  -9999., .0, 1., .0, .0, 1., .0, 1., 1., 1., 1., 1., 1. 
+
+# ALLOC_MIN ([-]) :  minimum allocation above/below  	{OK_STOMATE}
+ALLOC_MIN =  -9999., 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, -9999., -9999., -9999., -9999.  
+
+# ALLOC_MAX ([-]) :  maximum allocation above/below  	{OK_STOMATE}
+ALLOC_MAX =  -9999., 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, -9999., -9999., -9999., -9999. 
+
+# DEMI_ALLOC  ([-]) :  mean allocation above/below  	{OK_STOMATE}
+DEMI_ALLOC  =  -9999., 5., 5., 5., 5., 5., 5., 5., 5., -9999., -9999., -9999., -9999. 
+
+# LEAFLIFE_TAB ([years]) :  leaf longevity 	{OK_STOMATE}
+LEAFLIFE_TAB =  -9999., .5, 2., .33, 1., 2., .33, 2., 2., 2., 2., 2., 2.  
+
+# LEAFFALL ([days]) :  length of death of leaves, tabulated  	{OK_STOMATE}
+LEAFFALL =  -9999., -9999., 10., -9999., -9999., 10., -9999., 10., 10., 10., 10., 10., 10.  
+
+# LEAFAGECRIT ([days]) :  critical leaf age, tabulated 	{OK_STOMATE}
+LEAFAGECRIT =  -9999., 730., 180., 910., 730., 180., 910., 180., 180., 120., 120., 90., 90.   
+
+# SENESCENCE_TYPE ([-]) :  type of senescence, tabulated 	{OK_STOMATE}
+SENESCENCE_TYPE =  none, none, dry, none, none, cold, none, cold, cold, mixed, mixed, mixed, mixed  
+
+# SENESCENCE_HUM ([-] ) :  critical relative moisture availability for senescence 	{OK_STOMATE}
+SENESCENCE_HUM =  -9999., -9999., .3, -9999., -9999., -9999., -9999., -9999., -9999., .2, .2, .3, .2  
+
+# NOSENESCENCE_HUM ([-]) :  relative moisture availability above which there is no humidity-related senescence 	{OK_STOMATE}
+NOSENESCENCE_HUM =  -9999., -9999., .8, -9999., -9999., -9999., -9999., -9999., -9999., .3, .3, .3, .3  
+
+# MAX_TURNOVER_TIME ([days]) :  maximum turnover time for grasse 	{OK_STOMATE}
+MAX_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999.,  80.,  80., 80., 80.  
+
+# MIN_TURNOVER_TIME ([days]) :  minimum turnover time for grasse  	{OK_STOMATE}
+MIN_TURNOVER_TIME =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 10., 10., 10., 10.  
+
+# MIN_LEAF_AGE_FOR_SENESCENCE ([days] ) :  minimum leaf age to allow senescence g 	{OK_STOMATE}
+MIN_LEAF_AGE_FOR_SENESCENCE =  -9999., -9999., 90., -9999., -9999., 90., -9999., 60., 60., 30., 30., 30., 30. 
+
+# SENESCENCE_TEMP_C ([-]) :  critical temperature for senescence (C), constant c of aT^2+bT+c, tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_C =  -9999., -9999., -9999., -9999., -9999., 12., -9999., 7., 2., -1.375, 5., 5., 10. 
+
+# SENESCENCE_TEMP_B ([-]) :  critical temperature for senescence (C), constant b of aT^2+bT+c ,tabulated 	{OK_STOMATE }
+SENESCENCE_TEMP_B =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0., .1, 0., 0., 0. 
+
+# SENESCENCE_TEMP_A ([-] ) :  critical temperature for senescence (C), constant a of aT^2+bT+c , tabulated 	{OK_STOMATE}
+SENESCENCE_TEMP_A =  -9999., -9999., -9999., -9999., -9999., 0., -9999., 0., 0.,.00375, 0., 0., 0.  
+
+# GDD_SENESCENCE ([days] ) :  minimum gdd to allow senescence of crops   	{OK_STOMATE}
+GDD_SENESCENCE =  -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., -9999., 950., 4000. 
+
+# RESIDENCE_TIME ([years]) :  residence time of trees 	{OK_DGVM and NOT(LPJ_GAP_CONST_MORT)}
+RESIDENCE_TIME =  -9999., 30.0, 30.0, 40.0, 40.0, 40.0, 80.0, 80.0, 80.0, 0.0, 0.0, 0.0, 0.0  
+
+# TMIN_CRIT ([C]) :  critical tmin, tabulated 	{OK_STOMATE}
+TMIN_CRIT =  -9999.,  0.0, 0.0, -30.0, -14.0, -30.0, -45.0, -45.0, -9999., -9999., -9999., -9999., -9999. 
+
+# TCM_CRIT ([C]) :  critical tcm, tabulated  	{OK_STOMATE}
+TCM_CRIT =  -9999., -9999., -9999., 5.0, 15.5, 15.5, -8.0, -8.0, -8.0, -9999., -9999., -9999., -9999. 
+
+# HERBIVORES ([FLAG]) :  herbivores allowed? 	{OK_STOMATE }
+HERBIVORES =  n 
+
+# TREAT_EXPANSION ([FLAG]) :  treat expansion of PFTs across a grid cell? 	{OK_STOMATE }
+TREAT_EXPANSION =  n 
+
+# LPJ_GAP_CONST_MORT ([FLAG]) :  prescribe mortality if not using DGVM? 	{OK_STOMATE}
+LPJ_GAP_CONST_MORT =  y 
+
+# HARVEST_AGRI ([FLAG]) :  Harvest model for agricultural PFTs. 	{OK_STOMATE }
+HARVEST_AGRI =  y 
+
+# FIRE_DISABLE ([FLAG]) :  no fire allowed 	{OK_STOMATE }
+FIRE_DISABLE =  n 
+
+# SPINUP_ANALYTIC (BOOLEAN    ) :  Activation of the analytic resolution of the spinup. 	{OK_STOMATE}
+SPINUP_ANALYTIC =  n 
+
+# AGRICULTURE ([FLAG]) :  agriculture allowed? 	{OK_SECHIBA or OK_STOMATE}
+AGRICULTURE =  y 
+
+# IMPOSE_VEG ([FLAG]) :  Should the vegetation be prescribed ? 	{OK_SECHIBA or OK_STOMATE}
+IMPOSE_VEG =  n 
+
+# IMPOSE_SOILT ([FLAG]) :  Should the soil type be prescribed ? 	{IMPOSE_VEG}
+IMPOSE_SOILT =  n 
+
+# LAI_MAP ([FLAG]) :  Read the LAI map 	{OK_SECHIBA or OK_STOMATE}
+LAI_MAP =  n 
+
+# SLOWPROC_LAI_OLD_INTERPOL ([FLAG]) :  Flag to use old "interpolation" of LAI 	{LAI_MAP}
+SLOWPROC_LAI_OLD_INTERPOL =  n 
+
+# LAND_USE ([FLAG]) :  Read a land_use vegetation map 	{OK_SECHIBA or OK_STOMATE}
+LAND_USE =  y 
+
+# VEGET_REINIT ([FLAG] ) :  booleen to indicate that a new LAND USE file will be used. 	{LAND_USE}
+VEGET_REINIT =  y 
+
+# LAND_COVER_CHANGE ([FLAG] ) :  treat land use modifications 	{LAND_USE}
+LAND_COVER_CHANGE =  n 
+
+# VEGET_YEAR ([FLAG] ) :  Year of the land_use vegetation map to be read 	{LAND_USE}
+VEGET_YEAR =  1 
+
+# SLOWPROC_VEGET_OLD_INTERPOL ([FLAG] ) :  Flag to use old "interpolation" of vegetation map. 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+SLOWPROC_VEGET_OLD_INTERPOL =  n 
+
+# MAXMASS_SNOW ([kg/m^2]  ) :  The maximum mass of a snow 	{OK_SECHIBA or HYDROL_CWRR}
+MAXMASS_SNOW =  3000. 
+
+# SNOWCRI ([kg/m^2]  ) :  Sets the amount above which only sublimation occures  	{OK_SECHIBA or HYDROL_CWRR}
+SNOWCRI =  1.5 
+
+# MIN_WIND ([m/s]) :  Minimum wind speed 	{OK_SECHIBA}
+MIN_WIND =  0.1 
+
+# MAX_SNOW_AGE ([days?]) :  Maximum period of snow aging  	{OK_SECHIBA}
+MAX_SNOW_AGE =  50. 
+
+# SNOW_TRANS ([m]   ) :  Transformation time constant for snow 	{OK_SECHIBA}
+SNOW_TRANS =  0.3 
+
+# Z0_OVER_HEIGHT ([-]   ) :  to get z0 from height  	{OK_SECHIBA }
+Z0_OVER_HEIGHT =  1/16. 
+
+# HEIGHT_DISPLACEMENT ([m]  ) :  Magic number which relates the height to the displacement height. 	{OK_SECHIBA }
+HEIGHT_DISPLACEMENT =  0.75 
+
+# Z0_BARE ([m]   ) :  bare soil roughness length 	{OK_SECHIBA }
+Z0_BARE =  0.01  
+
+# Z0_ICE ([m]   ) :  ice roughness length 	{OK_SECHIBA }
+Z0_ICE =  0.001 
+
+# TCST_SNOWA ([days]) :  Time constant of the albedo decay of snow 	{OK_SECHIBA }
+TCST_SNOWA =  5.0  
+
+# SNOWCRI_ALB ([cm]  ) :  Critical value for computation of snow albedo 	{OK_SECHIBA}
+SNOWCRI_ALB =  10.  
+
+# VIS_DRY ([-]  ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+VIS_DRY =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.27 
+
+# NIR_DRY ([-]   ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_DRY =  0.48, 0.44, 0.40, 0.36, 0.32, 0.28, 0.24, 0.20, 0.55 
+
+# VIS_WET  ([-]   ) :  The correspondance table for the soil color numbers and their albedo 	{OK_SECHIBA  }
+VIS_WET  =  0.12, 0.11, 0.10, 0.09, 0.08, 0.07, 0.06, 0.05, 0.15 
+
+# NIR_WET ([-]    ) :  The correspondance table for the soil color numbers and their albedo  	{OK_SECHIBA }
+NIR_WET =  0.24, 0.22, 0.20, 0.18, 0.16, 0.14, 0.12, 0.10, 0.31 
+
+# ALBSOIL_VIS ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_VIS =  0.18, 0.16, 0.16, 0.15, 0.12, 0.105, 0.09, 0.075, 0.25 
+
+# ALBSOIL_NIR  ([-]  ) :   	{OK_SECHIBA }
+ALBSOIL_NIR  =  0.36, 0.34, 0.34, 0.33, 0.30, 0.25, 0.20, 0.15, 0.45 
+
+# ALB_DEADLEAF  ([-]     ) :  albedo of dead leaves, VIS+NIR  	{OK_SECHIBA }
+ALB_DEADLEAF  =  0.12, 0.35 
+
+# ALB_ICE ([-]  ) :  albedo of ice, VIS+NIR 	{OK_SECHIBA}
+ALB_ICE =  0.60, 0.20 
+
+# CONDVEG_SNOWA ([-]) :  The snow albedo used by SECHIBA 	{OK_SECHIBA}
+CONDVEG_SNOWA =  1.E+20 
+
+# ALB_BARE_MODEL ([FLAG]) :  Switch bare soil albedo dependent (if TRUE) on soil wetness 	{OK_SECHIBA}
+ALB_BARE_MODEL =  n 
+
+# Z0CDRAG_AVE ([FLAG]) :  Average method for z0 	{OK_SECHIBA}
+Z0CDRAG_AVE =  y 
+
+# IMPOSE_AZE ([FLAG]) :  Should the surface parameters be prescribed 	{OK_SECHIBA}
+IMPOSE_AZE =  n 
+
+# CONDVEG_Z0 ([m]) :  Surface roughness 	{IMPOSE_AZE}
+CONDVEG_Z0 =  0.15 
+
+# ROUGHHEIGHT ([m] ) :  Height to be added to the height of the first level 	{IMPOSE_AZE}
+ROUGHHEIGHT =  0.0 
+
+# CONDVEG_ALBVIS ([-]) :  SW visible albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBVIS =  0.25 
+
+# CONDVEG_ALBNIR ([-]  ) :  SW near infrared albedo for the surface 	{IMPOSE_AZE}
+CONDVEG_ALBNIR =  0.25 
+
+# CONDVEG_EMIS ([-] ) :  Emissivity of the surface for LW radiation 	{IMPOSE_AZE}
+CONDVEG_EMIS =  1.0 
+
+# NLAI ([-]  ) :  Number of LAI levels 	{OK_SECHIBA}
+NLAI =  20 
+
+# LAIMAX ([m^2/m^2]   ) :  Maximum LAI 	{OK_SECHIBA}
+LAIMAX =   
+
+# DEW_VEG_POLY_COEFF ([-]   ) :  coefficients of the polynome of degree 5 for the dew 	{OK_SECHIBA}
+DEW_VEG_POLY_COEFF =  0.887773, 0.205673, 0.110112, 0.014843, 0.000824, 0.000017  
+
+# DOWNREGULATION_CO2 ([FLAG]   ) :  Activation of CO2 downregulation 	{OK_SECHIBA}
+DOWNREGULATION_CO2 =  n  
+
+# DOWNREGULATION_CO2_BASELEVEL ([ppm]   ) :  CO2 base level 	{OK_SECHIBA }
+DOWNREGULATION_CO2_BASELEVEL =  280. 
+
+# CLAYFRACTION_DEFAULT ([-]   ) :  default fraction of clay 	{OK_SECHIBA }
+CLAYFRACTION_DEFAULT =  0.2  
+
+# MIN_VEGFRAC  ([-]  ) :  Minimal fraction of mesh a vegetation type can occupy  	{OK_SECHIBA }
+MIN_VEGFRAC  =  0.001  
+
+# STEMPDIAG_BID  ([K]) :  only needed for an initial LAI if there is no restart file 	{OK_SECHIBA }
+STEMPDIAG_BID  =  280. 
+
+# LAI_LEVEL_DEPTH ([-]  ) :   	{OK_CO2}
+LAI_LEVEL_DEPTH =  0.15 
+
+# Oi ([ubar]  ) :  Intercellular oxygen partial pressure 	{OK_CO2}
+Oi =  210000. 
+
+# TOO_LONG  ([days]   ) :  longest sustainable time without regeneration (vernalization) 	{OK_STOMATE}
+TOO_LONG  =  5. 
+
+# TAU_FIRE  ([days]    ) :  Time scale for memory of the fire index (days). Validated for one year in the DGVM.  	{OK_STOMATE }
+TAU_FIRE  =  30. 
+
+# LITTER_CRIT ([gC/m^2]  ) :  Critical litter quantity for fire 	{OK_STOMATE }
+LITTER_CRIT =  200. 
+
+# FIRE_RESIST_STRUCT ([-]  ) :   	{OK_STOMATE }
+FIRE_RESIST_STRUCT =  0.5 
+
+# CO2FRAC ([-]  ) :  What fraction of a burned plant compartment goes into the atmosphere 	{OK_STOMATE }
+CO2FRAC =  0.95, 0.95, 0., 0.3, 0., 0., 0.95, 0.95 
+
+# BCFRAC_COEFF ([-]  ) :   	{OK_STOMATE }
+BCFRAC_COEFF =  0.3, 1.3, 88.2  
+
+# FIREFRAC_COEFF  ([-]   ) :   	{OK_STOMATE }
+FIREFRAC_COEFF  =  0.45, 0.8, 0.6, 0.13 
+
+# AVAILABILITY_FACT  ([-]   ) :   	{OK_STOMATE }
+AVAILABILITY_FACT  =  0.1 
+
+# REF_GREFF ([1/year]  ) :  Asymptotic maximum mortality rate 	{OK_STOMATE }
+REF_GREFF =  0.035 
+
+# OK_MINRES ([FLAG]) :  Do we try to reach a minimum reservoir even if we are severely stressed? 	{OK_STOMATE }
+OK_MINRES =  y 
+
+# TAU_LEAFINIT ([days]  ) :  time to attain the initial foliage using the carbohydrate reserve  	{OK_STOMATE }
+TAU_LEAFINIT =  10. 
+
+# RESERVE_TIME_TREE  ([days]    ) :  maximum time during which reserve is used (trees)  	{OK_STOMATE }
+RESERVE_TIME_TREE  =  30. 
+
+# RESERVE_TIME_GRASS  ([days]   ) :  maximum time during which reserve is used (grasses)  	{OK_STOMATE }
+RESERVE_TIME_GRASS  =  20.  
+
+# R0 ([-]  ) :  Standard root allocation  	{OK_STOMATE }
+R0 =  0.3  
+
+# F_FRUIT ([-]    ) :  Standard fruit allocation 	{OK_STOMATE }
+F_FRUIT =  0.1  
+
+# ALLOC_SAP_ABOVE_GRASS  ([-]   ) :  fraction of sapwood allocation above ground  	{OK_STOMATE }
+ALLOC_SAP_ABOVE_GRASS  =  1.0  
+
+# MIN_LTOLSR  ([-]   ) :  extrema of leaf allocation fraction  	{OK_STOMATE }
+MIN_LTOLSR  =  0.2 
+
+# MAX_LTOLSR ([-]   ) :  extrema of leaf allocation fraction 	{OK_STOMATE }
+MAX_LTOLSR =  0.5 
+
+# Z_NITROGEN ([m]  ) :  scaling depth for nitrogen limitation  	{OK_STOMATE}
+Z_NITROGEN =  0.2  
+
+# LAI_MAX_TO_HAPPY ([-]  ) :   	{OK_STOMATE }
+LAI_MAX_TO_HAPPY =  0.5  
+
+# NLIM_TREF  ([C]  ) :   	{OK_STOMATE }
+NLIM_TREF  =  25.  
+
+# PIPE_TUNE1 ([-]    ) :  crown area  	{OK_STOMATE }
+PIPE_TUNE1 =  100.0 
+
+# PIPE_TUNE2  ([-]      ) :  height 	{OK_STOMATE }
+PIPE_TUNE2  =  40.0  
+
+# PIPE_TUNE3 ([-]    ) :  height 	{OK_STOMATE }
+PIPE_TUNE3 =  0.5  
+
+# PIPE_TUNE4 ([-]  ) :  needed for stem diameter 	{OK_STOMATE }
+PIPE_TUNE4 =  0.3  
+
+# PIPE_DENSITY  ([-]  ) :  Density 	{OK_STOMATE }
+PIPE_DENSITY  =  2.e5  
+
+# PIPE_K1  ([-]   ) :   	{OK_STOMATE }
+PIPE_K1  =  8.e3  
+
+# PIPE_TUNE_EXP_COEFF  ([-]   ) :  pipe tune exponential coeff  	{OK_STOMATE }
+PIPE_TUNE_EXP_COEFF  =  1.6  
+
+# PRECIP_CRIT  ([mm/year]  ) :  minimum precip 	{OK_STOMATE }
+PRECIP_CRIT  =  100. 
+
+# GDD_CRIT_ESTAB ([-]  ) :  minimum gdd for establishment of saplings 	{OK_STOMATE }
+GDD_CRIT_ESTAB =  150.  
+
+# FPC_CRIT ([-]  ) :  critical fpc, needed for light competition and establishment 	{OK_STOMATE }
+FPC_CRIT =  0.95 
+
+# ALPHA_GRASS ([-]   ) :  sapling characteristics : alpha's 	{OK_STOMATE }
+ALPHA_GRASS =  0.5 
+
+# ALPHA_TREE ([-]   ) :  sapling characteristics : alpha's  	{OK_STOMATE }
+ALPHA_TREE =  1. 
+
+# MASS_RATIO_HEART_SAP ([-]   ) :  mass ratio (heartwood+sapwood)/sapwood 	{OK_STOMATE }
+MASS_RATIO_HEART_SAP =  3. 
+
+# FRAC_GROWTHRESP ([-]) :  fraction of GPP which is lost as growth respiration 	{OK_STOMATE }
+FRAC_GROWTHRESP =  0.28 
+
+# TAU_HUM_MONTH ([days]  ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_MONTH =  20.  
+
+# TAU_HUM_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_HUM_WEEK =  7. 
+
+# TAU_T2M_MONTH ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_MONTH =  20. 
+
+# TAU_T2M_WEEK ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_T2M_WEEK =  7. 
+
+# TAU_TSOIL_MONTH  ([days]     ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_TSOIL_MONTH  =  20.  
+
+# TAU_SOILHUM_MONTH ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_SOILHUM_MONTH =  20.  
+
+# TAU_GPP_WEEK  ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GPP_WEEK  =  7.  
+
+# TAU_GDD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_GDD =  40.  
+
+# TAU_NGD ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+TAU_NGD =  50. 
+
+# COEFF_TAU_LONGTERM ([days]   ) :  time scales for phenology and other processes 	{OK_STOMATE }
+COEFF_TAU_LONGTERM =  3.  
+
+# BM_SAPL_CARBRES  ([-]   ) :   	{OK_STOMATE }
+BM_SAPL_CARBRES  =  5.  
+
+# BM_SAPL_SAPABOVE ([-]    ) :   	{OK_STOMATE}
+BM_SAPL_SAPABOVE =  0.5  
+
+# BM_SAPL_HEARTABOVE  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTABOVE  =  2. 
+
+# BM_SAPL_HEARTBELOW  ([-]    ) :   	{OK_STOMATE }
+BM_SAPL_HEARTBELOW  =  2.  
+
+# INIT_SAPL_MASS_LEAF_NAT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_NAT =  0.1  
+
+# INIT_SAPL_MASS_LEAF_AGRI ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_LEAF_AGRI =  1.  
+
+# INIT_SAPL_MASS_CARBRES ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_CARBRES =  5.  
+
+# INIT_SAPL_MASS_ROOT ([-]   ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_ROOT =  0.1  
+
+# INIT_SAPL_MASS_FRUIT ([-]    ) :   	{OK_STOMATE }
+INIT_SAPL_MASS_FRUIT =  0.3  
+
+# CN_SAPL_INIT  ([-]   ) :   	{OK_STOMATE }
+CN_SAPL_INIT  =  0.5  
+
+# MIGRATE_TREE  ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_TREE  =  10000. 
+
+# MIGRATE_GRASS ([m/year]   ) :   	{OK_STOMATE }
+MIGRATE_GRASS =  10000. 
+
+# LAI_INITMIN_TREE ([m^2/m^2]  ) :   	{OK_STOMATE }
+LAI_INITMIN_TREE =  0.3 
+
+# LAI_INITMIN_GRASS  ([m^2/m^2]    ) :   	{OK_STOMATE }
+LAI_INITMIN_GRASS  =  0.1 
+
+# DIA_COEFF ([-]   ) :   	{OK_STOMATE }
+DIA_COEFF =  4., 0.5 
+
+# MAXDIA_COEFF ([-]   ) :   	{OK_STOMATE }
+MAXDIA_COEFF =  100., 0.01  
+
+# BM_SAPL_LEAF ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_LEAF =  4., 4., 0.8, 5.  
+
+# METABOLIC_REF_FRAC ([-]) :  	{OK_STOMATE }
+METABOLIC_REF_FRAC =  0.85   
+
+# Z_DECOMP ([m]   ) :  scaling depth for soil activity 	{OK_STOMATE }
+Z_DECOMP =  0.2 
+
+# CN ([-]  ) :  C/N ratio 	{OK_STOMATE }
+CN =  40., 40., 40., 40., 40., 40., 40., 40. 
+
+# LC  ([-]   ) :  Lignine/C ratio of the different plant parts 	{OK_STOMATE }
+LC  =  0.22, 0.35, 0.35, 0.35, 0.35, 0.22, 0.22, 0.22 
+
+# FRAC_SOIL_STRUCT_AA ([-]) :  frac_soil(istructural,iactive,iabove) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_AA =  0.55 
+
+# FRAC_SOIL_STRUCT_A  ([-]) :  frac_soil(istructural,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_STRUCT_A  =  0.45 
+
+# FRAC_SOIL_STRUCT_SA ([-]   ) :  frac_soil(istructural,islow,iabove) 	{OK_STOMATE}
+FRAC_SOIL_STRUCT_SA =  0.7   
+
+# FRAC_SOIL_STRUCT_SB ([-]   ) :  frac_soil(istructural,islow,ibelow)  	{OK_STOMATE }
+FRAC_SOIL_STRUCT_SB =  0.7   
+
+# FRAC_SOIL_METAB_AA  ([-]   ) :  frac_soil(imetabolic,iactive,iabove)  	{OK_STOMATE }
+FRAC_SOIL_METAB_AA  =  0.45  
+
+# FRAC_SOIL_METAB_AB  ([-]   ) :  frac_soil(imetabolic,iactive,ibelow) 	{OK_STOMATE }
+FRAC_SOIL_METAB_AB  =  0.45   
+
+# METABOLIC_LN_RATIO ([-]   ) :   	{OK_STOMATE }
+METABOLIC_LN_RATIO =  0.018   
+
+# TAU_METABOLIC ([days] ) :   	{OK_STOMATE }
+TAU_METABOLIC =  0.066 
+
+# TAU_STRUCT  ([days]) :   	{OK_STOMATE }
+TAU_STRUCT  =  0.245  
+
+# SOIL_Q10 ([-]) :   	{OK_STOMATE }
+SOIL_Q10 =  0.69 ( 
+
+# TSOIL_REF ([C]   ) :   	{OK_STOMATE }
+TSOIL_REF =  30.  
+
+# LITTER_STRUCT_COEF  ([-]   ) :   	{OK_STOMATE }
+LITTER_STRUCT_COEF  =  3.  
+
+# MOIST_COEFF ([-]   ) :   	{OK_STOMATE }
+MOIST_COEFF =  1.1, 2.4, 0.29 
+
+# FRAC_TURNOVER_DAILY  ([-]) :   	{OK_STOMATE }
+FRAC_TURNOVER_DAILY  =  0.55 
+
+# TAX_MAX ([-]   ) :  maximum fraction of allocatable biomass used for maintenance respiration 	{OK_STOMATE }
+TAX_MAX =  0.8 
+
+# ALWAYS_INIT ([-]   ) :  take carbon from atmosphere if carbohydrate reserve too small?  	{OK_STOMATE }
+ALWAYS_INIT =  n  
+
+# MIN_GROWTHINIT_TIME  ([days]  ) :  minimum time since last beginning of a growing season 	{OK_STOMATE }
+MIN_GROWTHINIT_TIME  =  300.  
+
+# MOIAVAIL_ALWAYS_TREE ([-]   ) :  moisture availability above which moisture tendency doesn't matter  	{OK_STOMATE }
+MOIAVAIL_ALWAYS_TREE =  1.0  
+
+# MOIAVAIL_ALWAYS_GRASS  ([-]   ) :  moisture availability above which moisture tendency doesn't matter 	{OK_STOMATE }
+MOIAVAIL_ALWAYS_GRASS  =  0.6  
+
+# T_ALWAYS_ADD ([C]    ) :  monthly temp. above which temp. tendency doesn't matter  	{OK_STOMATE }
+T_ALWAYS_ADD =  10. 
+
+# GDDNCD_REF  ([-]   ) :   	{OK_STOMATE }
+GDDNCD_REF  =  603.  
+
+# GDDNCD_CURVE ([-]  ) :   	{OK_STOMATE }
+GDDNCD_CURVE =  0.0091  
+
+# GDDNCD_OFFSET ([-]  ) :   	{OK_STOMATE }
+GDDNCD_OFFSET =  64.  
+
+# BM_SAPL_RESCALE  ([-]  ) :   	{OK_STOMATE }
+BM_SAPL_RESCALE  =  40.  
+
+# MAINT_RESP_MIN_VMAX ([-]  ) :   	{OK_STOMATE }
+MAINT_RESP_MIN_VMAX =  0.3 
+
+# MAINT_RESP_COEFF  ([-] ) :   	{OK_STOMATE }
+MAINT_RESP_COEFF  =  1.4  
+
+# FRAC_CARB_AP ([-]) :  frac carb coefficients from active pool: depends on clay content 	{OK_STOMATE }
+FRAC_CARB_AP =  0.004 
+
+# FRAC_CARB_SA ([-]) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SA =  0.42 
+
+# FRAC_CARB_SP ([-] ) :  frac_carb_coefficients from slow pool 	{OK_STOMATE }
+FRAC_CARB_SP =  0.03 
+
+# FRAC_CARB_PA ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PA =  0.45 
+
+# FRAC_CARB_PS ([-]) :  frac_carb_coefficients from passive pool 	{OK_STOMATE }
+FRAC_CARB_PS =  0.0 
+
+# ACTIVE_TO_PASS_CLAY_FRAC ([-] ) :   	{OK_STOMATE }
+ACTIVE_TO_PASS_CLAY_FRAC =  0.68   
+
+# CARBON_TAU_IACTIVE ( [days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IACTIVE =  0.149 
+
+# CARBON_TAU_ISLOW ([days]) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_ISLOW =  5.48 
+
+# CARBON_TAU_IPASSIVE ([days] ) :  residence times in carbon pools 	{OK_STOMATE }
+CARBON_TAU_IPASSIVE =  241. 
+
+# FLUX_TOT_COEFF ([days] ) :  	{OK_STOMATE }
+FLUX_TOT_COEFF =  1.2, 1.4,.75 
+
+# NEW_TURNOVER_TIME_REF ([days]  ) :   	{OK_STOMATE }
+NEW_TURNOVER_TIME_REF =  20.  
+
+# DT_TURNOVER_TIME  ([days]  ) :   	{OK_STOMATE }
+DT_TURNOVER_TIME  =  10. 
+
+# LEAF_AGE_CRIT_TREF ([days]  ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_TREF =  20.  
+
+# LEAF_AGE_CRIT_COEFF  ([-] ) :   	{OK_STOMATE }
+LEAF_AGE_CRIT_COEFF  =  1.5, 0.75, 10.  
+
+# VMAX_OFFSET  ([-]  ) :  offset (minimum relative vcmax) 	{OK_STOMATE }
+VMAX_OFFSET  =  0.3 
+
+# LEAFAGE_FIRSTMAX ([-] ) :  leaf age at which vmax attains vcmax_opt (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_FIRSTMAX =  0.03  
+
+# LEAFAGE_LASTMAX  ([-]  ) :  leaf age at which vmax falls below vcmax_opt (in fraction of critical leaf age)  	{OK_STOMATE }
+LEAFAGE_LASTMAX  =  0.5  
+
+# LEAFAGE_OLD  ([-]  ) :  leaf age at which vmax attains its minimum (in fraction of critical leaf age) 	{OK_STOMATE }
+LEAFAGE_OLD  =  1. 
+
+# GPPFRAC_DORMANCE  ([-]) :  rapport maximal GPP/GGP_max pour dormance 	{OK_STOMATE }
+GPPFRAC_DORMANCE  =  0.2  
+
+# TAU_CLIMATOLOGY ([days]) :  tau for "climatologic variables  	{OK_STOMATE }
+TAU_CLIMATOLOGY =  20 
+
+# HVC1  ([-]  ) :  parameters for herbivore activity 	{OK_STOMATE }
+HVC1  =  0.019 
+
+# HVC2  ([-]  ) :  parameters for herbivore activity  	{OK_STOMATE }
+HVC2  =  1.38 
+
+# LEAF_FRAC_HVC ([-] ) :  parameters for herbivore activity  	{OK_STOMATE }
+LEAF_FRAC_HVC =  0.33 
+
+# TLONG_REF_MAX ([K]  ) :  maximum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MAX =  303.1 
+
+# TLONG_REF_MIN  ([K]  ) :  minimum reference long term temperature  	{OK_STOMATE }
+TLONG_REF_MIN  =  253.1 
+
+# NCD_MAX_YEAR ([days]) :   	{OK_STOMATE }
+NCD_MAX_YEAR =  3.  
+
+# GDD_THRESHOLD  ([days] ) :   	{OK_STOMATE }
+GDD_THRESHOLD  =  5.  
+
+# GREEN_AGE_EVER  ([-]  ) :   	{OK_STOMATE }
+GREEN_AGE_EVER  =  2.  
+
+# GREEN_AGE_DEC ([-] ) :   	{OK_STOMATE }
+GREEN_AGE_DEC =  0.5  
+
+# ESTAB_MAX_TREE ([-]   ) :  Maximum tree establishment rate  	{OK_DGVM}
+ESTAB_MAX_TREE =  0.12  
+
+# ESTAB_MAX_GRASS ([-]  ) :  Maximum grass establishment rate 	{OK_DGVM}
+ESTAB_MAX_GRASS =  0.12  
+
+# ESTABLISH_SCAL_FACT ([-] ) :   	{OK_DGVM }
+ESTABLISH_SCAL_FACT =  5. 
+
+# MAX_TREE_COVERAGE  ([-] ) :   	{OK_DGVM }
+MAX_TREE_COVERAGE  =  0.98 
+
+# IND_0_ESTAB ([-]  ) :   	{OK_DGVM }
+IND_0_ESTAB =  0.2 
+
+# ANNUAL_INCREASE ([FLAG]) :  for diagnosis of fpc increase, compare today's fpc to last year's maximum (T) or to fpc of last time step (F)? 	{OK_DGVM}
+ANNUAL_INCREASE =  y 
+
+# MIN_COVER  ([-]  ) :  For trees, minimum fraction of crown area occupied  	{OK_DGVM}
+MIN_COVER  =  0.05  
+
+# IND_0  ([-]  ) :  initial density of individuals 	{OK_DGVM}
+IND_0  =  0.02  
+
+# MIN_AVAIL ([-]  ) :  minimum availability 	{OK_DGVM}
+MIN_AVAIL =  0.01 
+
+# RIP_TIME_MIN ([year]  ) :   	{OK_DGVM}
+RIP_TIME_MIN =  1.25  
+
+# NPP_LONGTERM_INIT ([gC/m^2/year]) :   	{OK_DGVM}
+NPP_LONGTERM_INIT =  10. 
+
+# EVERYWHERE_INIT ([-] ) :   	{OK_DGVM}
+EVERYWHERE_INIT =  0.05  
+
+# THERMOSOIL_NBLEV ((-)) :  Number of soil level 	{}
+THERMOSOIL_NBLEV =  7 
+
+# DRY_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}] ) :  Dry soil Heat capacity of soils 	{OK_SECHIBA }
+DRY_SOIL_HEAT_CAPACITY =  1.80e+6 
+
+# DRY_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}] ) :  Dry soil Thermal Conductivity of soils 	{OK_SECHIBA}
+DRY_SOIL_HEAT_COND =  0.40  
+
+# WET_SOIL_HEAT_CAPACITY ([J.m^{-3}.K^{-1}]) :  Wet soil Heat capacity of soils  	{OK_SECHIBA}
+WET_SOIL_HEAT_CAPACITY =  3.03e+6 
+
+# WET_SOIL_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Wet soil Thermal Conductivity of soils 	{OK_SECHIBA }
+WET_SOIL_HEAT_COND =  1.89  
+
+# SNOW_HEAT_COND ([W.m^{-2}.K^{-1}]) :  Thermal Conductivity of snow 	{OK_SECHIBA  }
+SNOW_HEAT_COND =  0.3 
+
+# SNOW_DENSITY ([-] ) :  Snow density for the soil thermodynamics  	{OK_SECHIBA }
+SNOW_DENSITY =  330.0 
+
+# NOBIO_WATER_CAPAC_VOLUMETRI ([s/m^2]) :   	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+NOBIO_WATER_CAPAC_VOLUMETRI =  150. 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# CHOISNEL_DIFF_MIN ([kg/m^2/dt]) :  Diffusion constant for the slow regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MIN =  0.001 
+
+# CHOISNEL_DIFF_MAX ([kg/m^2/dt]) :  Diffusion constant for the fast regime 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_MAX =  0.1 
+
+# CHOISNEL_DIFF_EXP ([-]) :  The exponential in the diffusion law 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_DIFF_EXP =  1.5 
+
+# CHOISNEL_RSOL_CSTE ([s/m^2]) :  Constant in the computation of resistance for bare  soil evaporation  	{OK_SECHIBA and .NOT.(HYDROL_CWRR)}
+CHOISNEL_RSOL_CSTE =  33.E3 
+
+# HCRIT_LITTER ([m]) :  Scaling depth for litter humidity 	{OK_SECHIBA and .NOT.(HYDROL_CWRR) }
+HCRIT_LITTER =  0.08  
+
+# SECHIBA_DAY ([days]) :  Time within the day simulated 	{OK_SECHIBA}
+SECHIBA_DAY =  0.0 
+
+# VEGET_UPDATE ([years]) :  Update vegetation frequency 	{LAND_USE}
+VEGET_UPDATE =  0Y 
+
+# SECHIBA_ZCANOP ([m]) :  Soil level used for canopy development (if STOMATE disactivated) 	{OK_SECHIBA and .NOT. OK_STOMATE  }
+SECHIBA_ZCANOP =  0.5 
+
+# SECHIBA_QSINT  ([m]) :  Interception reservoir coefficient 	{OK_SECHIBA }
+SECHIBA_QSINT  =  0.1 
+
+# DT_SLOW ([seconds]) :  Time step of STOMATE and other slow processes 	{OK_STOMATE}
+DT_SLOW =  86400. 
+
+# SECHIBA_VEGMAX ([-]) :  Maximum vegetation distribution within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_VEGMAX =  0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0 
+
+# SECHIBA_FRAC_NOBIO ([-]) :  Fraction of other surface types within the mesh (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_FRAC_NOBIO =  0.0 
+
+# SECHIBA_LAI ([-]) :  LAI for all vegetation types (0-dim mode) 	{IMPOSE_VEG}
+SECHIBA_LAI =  0., 8., 8., 4., 4.5, 4.5, 4., 4.5, 4., 2., 2., 2., 2. 
+
+# SOIL_FRACTIONS ([-]) :  Fraction of the 3 soil types (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOILT}
+SOIL_FRACTIONS =  -9999._sechiba 
+
+# CLAY_FRACTION ([-] ) :  Fraction of the clay fraction (0-dim mode) 	{IMPOSE_VEG and IMPOSE_SOIL}
+CLAY_FRACTION =  0.2 
+
+# REINF_SLOPE ([-]) :  Slope coef for reinfiltration  	{IMPOSE_VEG}
+REINF_SLOPE =  0.1 
+
+# SLOWPROC_HEIGHT ([m]) :  Height for all vegetation types  	{OK_SECHIBA}
+SLOWPROC_HEIGHT =  0., 30., 30., 20., 20., 20., 15., 15., 15., .5, .6, 1.0, 1.0 
+
+# GET_SLOPE ([FLAG]) :  Read slopes from file and do the interpolation 	{}
+GET_SLOPE =  n 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(LAI_MAP)}
+LAI_FILE =  lai2D.nc 
+
+# LAI_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAI_MAP}
+LAI_FILE =  lai2D.nc 
+
+# RENORM_LAI ([FLAG]) :  flag to force LAI renormelization 	{LAI_MAP}
+RENORM_LAI =  n 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{LAND_USE}
+VEGETATION_FILE =  PFTmap.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# VEGETATION_FILE ([FILE]) :  Name of file from which the vegetation map is to be read 	{NOT(IMPOSE_VEG) and NOT(LAND_USE)}
+VEGETATION_FILE =  carteveg5km.nc 
+
+# SOILCLASS_FILE ([FILE]) :  Name of file from which soil types are read 	{NOT(IMPOSE_VEG)}
+SOILCLASS_FILE =  soils_param.nc 
+
+# SLOPE_NOREINF ([-]) :  See slope_noreinf above 	{}
+SLOPE_NOREINF =  0.5 
+
+# TOPOGRAPHY_FILE ([FILE]) :  Name of file from which the topography map is to be read 	{}
+TOPOGRAPHY_FILE =  cartepente2d_15min.nc 
+
+# SOILALB_FILE ([FILE]) :  Name of file from which the bare soil albedo 	{NOT(IMPOSE_AZE)}
+SOILALB_FILE =  soils_param.nc 
+
+# CDRAG_FROM_GCM ([FLAG]) :  Keep cdrag coefficient from gcm. 	{OK_SECHIBA}
+CDRAG_FROM_GCM =  y 
+
+# DIFFUCO_LEAFCI ([ppm]) :  Initial leaf CO2 level if not found in restart 	{OK_SECHIBA}
+DIFFUCO_LEAFCI =  233. 
+
+# ALLOW_WEATHERGEN ([FLAG]) :  Allow weather generator to create data 	{}
+ALLOW_WEATHERGEN =  n 
+
+# FORCING_FILE ([FILE] ) :  Name of file containing the forcing data 	{[-]}
+FORCING_FILE =  forcing_file.nc 
+
+# HYDROL_OK_HDIFF ([FLAG]) :  do horizontal diffusion? 	{OK_SECHIBA and .NOT.(HYDROL_CWRR)  }
+HYDROL_OK_HDIFF =  n 
+
+# HYDROL_SNOW ([kg/m^2]) :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE ([days]) :  Initial snow age if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO ([m]) :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE ([days]) :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA }
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_HUMR ([-]) :  Initial soil moisture stress if not found in restart 	{OK_SECHIBA }
+HYDROL_HUMR =  1.0 
+
+# HYDROL_BQSB ([kg/m^2]) :  Initial restart deep soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_BQSB =  999999.  
+
+# HYDROL_GQSB ([kg/m^2]) :  Initial upper soil moisture if not found in restart 	{OK_SECHIBA }
+HYDROL_GQSB =  0.0 
+
+# HYDROL_DSG ([m]) :  Initial upper reservoir depth if not found in restart 	{OK_SECHIBA }
+HYDROL_DSG =  0.0 
+
+# HYDROL_QSV ([kg/m^2]) :  Initial water on canopy if not found in restart 	{OK_SECHIBA }
+HYDROL_QSV =  0.0 
+
+# HYDROL_DSP ([m]) :  Initial dry soil above upper reservoir if not found in restart 	{OK_SECHIBA }
+HYDROL_DSP =  999999. 
+
+# HYDROL_TAU_HDIFF ([seconds]) :  time scale (s) for horizontal diffusion of water 	{HYDROL_OK_HDIFF}
+HYDROL_TAU_HDIFF =  86400. 
+
+# CHECK_CWRR ([FLAG]) :  Should we check detailed CWRR water balance ? 	{HYDROL_CWRR}
+CHECK_CWRR =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{HYDROL_CWRR}
+DO_PONDS =  n 
+
+# CWRR_N_VANGENUCHTEN ([-]) :  Van genuchten coefficient n 	{HYDROL_CWRR}
+CWRR_N_VANGENUCHTEN =  1.89, 1.56, 1.31 
+
+# CWRR_A_VANGENUCHTEN ([1/mm]  ) :  Van genuchten coefficient a 	{HYDROL_CWRR}
+CWRR_A_VANGENUCHTEN =  0.0075, 0.0036, 0.0019 
+
+# VWC_RESIDUAL ([mm]  ) :  Residual soil water content 	{HYDROL_CWRR}
+VWC_RESIDUAL =  0.065, 0.078, 0.095 
+
+# VWC_SAT ([-]  ) :  Saturated soil water content 	{HYDROL_CWRR}
+VWC_SAT =  0.41, 0.43, 0.41 
+
+# CWRR_KS  ([mm/d]   ) :  Hydraulic conductivity Saturation 	{HYDROL_CWRR }
+CWRR_KS  =  1060.8, 249.6, 62.4 
+
+# WETNESS_TRANSPIR_MAX ([-]    ) :  Soil moisture above which transpir is max 	{HYDROL_CWRR}
+WETNESS_TRANSPIR_MAX =  0.5, 0.5, 0.5 
+
+# DRAINAGE_FACTOR_F ([-]   ) :  Max value of the permeability coeff at the bottom of the soil  	{HYDROL_CWRR}
+DRAINAGE_FACTOR_F =  1.0, 1.0, 1.0  
+
+# VWC_FC  ([-]   ) :  Volumetric water content field capacity 	{HYDROL_CWRR}
+VWC_FC  =  0.32, 0.32, 0.32 
+
+# VWC_WP ([-]   ) :  Volumetric water content Wilting pt 	{HYDROL_CWRR}
+VWC_WP =  0.10, 0.10, 0.10  
+
+# VWC_MIN_FOR_WET_ALB ([-]  ) :  Vol. wat. cont. above which albedo is cst 	{HYDROL_CWRR}
+VWC_MIN_FOR_WET_ALB =  0.25, 0.25, 0.25 
+
+# VWC_MAX_FOR_DRY_ALB ([-]   ) :  Vol. wat. cont. below which albedo is cst 	{HYDROL_CWRR}
+VWC_MAX_FOR_DRY_ALB =  0.1, 0.1, 0.1 
+
+# HYDROL_MOISTURE_CONTENT () :  Soil moisture on each soil tile and levels 	{HYDROL_CWRR       }
+HYDROL_MOISTURE_CONTENT =  0.3 
+
+# US_INIT () :  US_NVM_NSTM_NSLM 	{HYDROL_CWRR       }
+US_INIT =  0.0 
+
+# FREE_DRAIN_COEF () :  Coefficient for free drainage at bottom 	{HYDROL_CWRR       }
+FREE_DRAIN_COEF =  1.0, 1.0, 1.0 
+
+# WATER_TO_INFILT () :  Water to be infiltrated on top of the soil 	{HYDROL_CWRR    }
+WATER_TO_INFILT =  0.0 
+
+# EVAPNU_SOIL () :  Bare soil evap on each soil if not found in restart 	{HYDROL_CWRR  }
+EVAPNU_SOIL =  0.0 
+
+# HYDROL_SNOW () :  Initial snow mass if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW =  0.0 
+
+# HYDROL_SNOWAGE () :  Initial snow age if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOWAGE =  0.0 
+
+# HYDROL_SNOW_NOBIO () :  Initial snow amount on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO =  0.0 
+
+# HYDROL_SNOW_NOBIO_AGE () :  Initial snow age on ice, lakes, etc. if not found in restart 	{OK_SECHIBA}
+HYDROL_SNOW_NOBIO_AGE =  0.0 
+
+# HYDROL_QSV () :  Initial water on canopy if not found in restart 	{OK_SECHIBA}
+HYDROL_QSV =  0.0 
+
+# CWRR_NKS_N0  ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_N0  =  0.95 
+
+# CWRR_NKS_POWER ([-]) :  fitted value for relation log((n-n0)/(n_ref-n0))  	{HYDROL_CWRR }
+CWRR_NKS_POWER =  0.34 
+
+# CWRR_AKS_A0  ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_A0  =  0.00012 
+
+# CWRR_AKS_POWER ([-]) :  fitted value for relation log((a-a0)/(a_ref-a0))  	{HYDROL_CWRR }
+CWRR_AKS_POWER =  0.53 
+
+# KFACT_DECAY_RATE ([-]) :  Factor for Ks decay with depth 	{HYDROL_CWRR }
+KFACT_DECAY_RATE =  2.0 
+
+# KFACT_STARTING_DEPTH ([-]) :  Depth for compacted value of Ks  	{HYDROL_CWRR }
+KFACT_STARTING_DEPTH =  0.3 
+
+# KFACT_MAX ([-]) :  Maximum Factor for Ks increase due to vegetation 	{HYDROL_CWRR }
+KFACT_MAX =  10.0 
+
+# ROUTING_TIMESTEP ([seconds]) :  Time step of the routing scheme 	{RIVER_ROUTING}
+ROUTING_TIMESTEP =  86400. 
+
+# ROUTING_RIVERS ([-]) :  Number of rivers  	{RIVER_ROUTING}
+ROUTING_RIVERS =  50 
+
+# DO_FLOODINFILT ([FLAG]) :  Should floodplains reinfiltrate into the soil  	{RIVER_ROUTING}
+DO_FLOODINFILT =  n 
+
+# DO_SWAMPS ([FLAG]) :  Should we include swamp parameterization  	{RIVER_ROUTING}
+DO_SWAMPS =  n 
+
+# DO_PONDS ([FLAG]) :  Should we include ponds  	{RIVER_ROUTING}
+DO_PONDS =  n 
+
+# SLOW_TCST ([days]) :  Time constant for the slow reservoir  	{RIVER_ROUTING }
+SLOW_TCST =  n 
+
+# FAST_TCST ([days]) :  Time constant for the fast reservoir  	{RIVER_ROUTING }
+FAST_TCST =  fast_tcst_cwrr or fast_tcst_chois depending on flag HYDROL_CWRR 
+
+# STREAM_TCST ([days]) :  Time constant for the stream reservoir  	{RIVER_ROUTING}
+STREAM_TCST =  stream_tcst_cwrr or stream_tcst_chois depending on flag HYDROL_CWRR 
+
+# FLOOD_TCST ([days]) :  Time constant for the flood reservoir  	{RIVER_ROUTING}
+FLOOD_TCST =  4.0 
+
+# SWAMP_CST ([-]) :  Fraction of the river that flows back to swamps  	{RIVER_ROUTING}
+SWAMP_CST =  0.2 
+
+# FLOOD_BETA ([-] ) :  Parameter to fix the shape of the floodplain   	{RIVER_ROUTING}
+FLOOD_BETA =  2.0 
+
+# POND_BETAP ([-] ) :  Ratio of the basin surface intercepted by ponds and the maximum surface of ponds 	{RIVER_ROUTING}
+POND_BETAP =  0.5 
+
+# FLOOD_CRI ([mm] ) :  Potential height for which all the basin is flooded 	{DO_FLOODPLAINS or DO_PONDS}
+FLOOD_CRI =  2000. 
+
+# POND_CRI ([mm] ) :  Potential height for which all the basin is a pond 	{DO_FLOODPLAINS or DO_PONDS}
+POND_CRI =  2000. 
+
+# RIVER_DESC ([FLAG]) :  Writes out a description of the rivers 	{RIVER_ROUTING}
+RIVER_DESC =  n 
+
+# RIVER_DESC_FILE ([FILE]) :  Filename in which we write the description of the rivers. If suffix is ".nc" a netCDF file is created 	{RIVER_DESC}
+RIVER_DESC_FILE =  river_desc.txt 
+
+# ROUTING_FILE ([FILE]) :  Name of file which contains the routing information 	{RIVER_ROUTING}
+ROUTING_FILE =  routing.nc 
+
+# IRRIGATION_FILE ([FILE]) :  Name of file which contains the map of irrigated areas 	{DO_IRRIGATION OR DO_FLOODPLAINS}
+IRRIGATION_FILE =  floodplains.nc 
+
+# EPS_CARBON ([%]   ) :  Allowed error on carbon stock 	{SPINUP_ANALYTIC}
+EPS_CARBON =  0.01 
+
+# SPINUP_PERIOD ([years]   ) :  Period to calulcate equilibrium during spinup analytic 	{SPINUP_ANALYTIC}
+SPINUP_PERIOD =  -1 
+
+# STOMATE_FORCING_NAME ([FILE]) :  Name of STOMATE's forcing file 	{OK_STOMATE}
+STOMATE_FORCING_NAME =  NONE 
+
+# STOMATE_FORCING_MEMSIZE ([MegaBytes]) :  Size of STOMATE forcing data in memory  	{OK_STOMATE}
+STOMATE_FORCING_MEMSIZE =  50 
+
+# STOMATE_CFORCING_NAME ([FILE]) :  Name of STOMATE's carbon forcing file 	{OK_STOMATE}
+STOMATE_CFORCING_NAME =  NONE 
+
+# FORCESOIL_STEP_PER_YEAR ([days, months, year]) :  Number of time steps per year for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_STEP_PER_YEAR =  365 
+
+# FORCESOIL_NB_YEAR ([years]) :  Number of years saved for carbon spinup. 	{OK_STOMATE}
+FORCESOIL_NB_YEAR =  1 
+
+# BAVARD ([-]) :  level of online diagnostics in STOMATE (0-4) 	{OK_STOMATE}
+BAVARD =  1 
+
+# REFTEMP_FILE ([FILE]) :  Name of file from which the reference temperature is read 	{OK_STOMATE}
+REFTEMP_FILE =  reftemp.nc 
+
+# XIOS_ORCHIDEE_OK ([FLAG]) :  Use XIOS for writing diagnostics file 	{}
+XIOS_ORCHIDEE_OK =  n 
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/run.def
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/run.def	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/PARAM/run.def	(revision 5631)
@@ -0,0 +1,6 @@
+# $Id: run.def,v 1.1 2010/10/06 15:09:33 ssipsl Exp $
+#
+# Use XIOS for writing diagnostics file
+# defulat = n
+XIOS_ORCHIDEE_OK = _AUTO_
+
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/POST/monitoring01_sechiba.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/POST/monitoring01_sechiba.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/POST/monitoring01_sechiba.cfg	(revision 5631)
@@ -0,0 +1,67 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+# lai2_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2]*maxvegetfrac[d=2,K=2])" | "lai (LANDS)"      | "1"      | "2"
+# lai3_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=3]*maxvegetfrac[d=2,K=3])" | "lai (LANDS)"      | "1"      | "2"
+# lai4_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=4]*maxvegetfrac[d=2,K=4])" | "lai (LANDS)"      | "1"      | "2"
+# lai5_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=5]*maxvegetfrac[d=2,K=5])" | "lai (LANDS)"      | "1"      | "2"
+# lai6_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=6]*maxvegetfrac[d=2,K=6])" | "lai (LANDS)"      | "1"      | "2"
+# lai7_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=7]*maxvegetfrac[d=2,K=7])" | "lai (LANDS)"      | "1"      | "2"
+# lai8_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=8]*maxvegetfrac[d=2,K=8])" | "lai (LANDS)"      | "1"      | "2"
+# lai9_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=9]*maxvegetfrac[d=2,K=9])" | "lai (LANDS)"      | "1"      | "2"
+# lai10_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=10]*maxvegetfrac[d=2,K=10])" | "lai (LANDS)"      | "1"      | "2"
+# lai11_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=11]*maxvegetfrac[d=2,K=11])" | "lai (LANDS)"      | "1"      | "2"
+# lai12_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=12]*maxvegetfrac[d=2,K=12])" | "lai (LANDS)"      | "1"      | "2"
+# lai13_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=13]*maxvegetfrac[d=2,K=13])" | "lai (LANDS)"      | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/POST/monitoring01_sechiba_LAND_USE_and_LAI_PFTs.cfg	(revision 5631)
@@ -0,0 +1,79 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=E7FFAB
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+evap_lands     | "evap"            |  ""               | "evap[d=1]"                      | "Evaporation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+temp_sol_lands | "temp_sol"        |  ""               | "temp_sol[d=1]"                  | "TSOL (LANDS)"                 | "K/d"    | "Areas[d=1]*Contfrac[d=1]"
+humidity_lands | "bqsb gqsb"       |  ""               | "(bqsb[d=1]+gqsb[d=2])"            | "Total Soil Moisture  (LANDS)" | "1"      | "Areas[d=1]*Contfrac[d=1]"
+fluxsens_lands | "fluxsens"        |  ""               | "fluxsens[d=1]"                  | "Sensible Flux (LANDS)"        | "W/m^2"  | "Areas[d=1]*Contfrac[d=1]"
+albedo_lands   | "alb_vis alb_nir" |  ""               | "((alb_vis[d=1]+alb_nir[d=2])*0.5)"| "Mean Albedo (LANDS)"          | "1"      | "Areas[d=1]*Contfrac[d=1]"
+subli_lands    | "subli"           |  ""               | "subli[d=1]"                     | "Sublimation (LANDS)"          | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+snow_lands     | "snow"            |  ""               | "snow[d=1]"                      | "Snow Mass (LANDS)"            | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snownobio_lands | "snownobio"      |  ""               | "snownobio[d=1]"                 | "Snow Other Surfaces (LANDS)"  | "kg/m^2" | "Areas[d=1]*Contfrac[d=1]"
+snowf_lands    | "snowf"           |  ""               | "snowf[d=1]"                     | "Snowfall (LANDS)"             | "mm/d"   | "Areas[d=1]*Contfrac[d=1]"
+vegetn_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=2:9]"           | "veget natural (LANDS)"        | "1"      | "2"
+vegetg_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=10:11]"         | "veget natural grass (LANDS)"  | "1"      | "2"
+vegeta_lands   | "_vegetfrac"      |  ""               | "vegetfrac[d=1,K=12:13]"         | "veget agriculture (LANDS)"    | "1"      | "2"
+maxveget_lands | "maxvegetfrac"    |  ""               | "maxvegetfrac[d=1,K=12:13]"      | "vegetmax[pft=12,13] (LANDS)"      | "1"      | "2"
+lai_lands      | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2:13]*maxvegetfrac[d=2,K=2:13])"  | "lai (LANDS)"      | "1"      | "2"
+lai2_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=2]*maxvegetfrac[d=2,K=2])" | "lai (LANDS)"      | "1"      | "2"
+lai3_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=3]*maxvegetfrac[d=2,K=3])" | "lai (LANDS)"      | "1"      | "2"
+lai4_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=4]*maxvegetfrac[d=2,K=4])" | "lai (LANDS)"      | "1"      | "2"
+lai5_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=5]*maxvegetfrac[d=2,K=5])" | "lai (LANDS)"      | "1"      | "2"
+lai6_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=6]*maxvegetfrac[d=2,K=6])" | "lai (LANDS)"      | "1"      | "2"
+lai7_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=7]*maxvegetfrac[d=2,K=7])" | "lai (LANDS)"      | "1"      | "2"
+lai8_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=8]*maxvegetfrac[d=2,K=8])" | "lai (LANDS)"      | "1"      | "2"
+lai9_lands     | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=9]*maxvegetfrac[d=2,K=9])" | "lai (LANDS)"      | "1"      | "2"
+lai10_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=10]*maxvegetfrac[d=2,K=10])" | "lai (LANDS)"      | "1"      | "2"
+lai11_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=11]*maxvegetfrac[d=2,K=11])" | "lai (LANDS)"      | "1"      | "2"
+lai12_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=12]*maxvegetfrac[d=2,K=12])" | "lai (LANDS)"      | "1"      | "2"
+lai13_lands    | "lai maxvegetfrac"|  ""               | "(lai[d=1,K=13]*maxvegetfrac[d=2,K=13])" | "lai (LANDS)"      | "1"      | "2"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+# lai2_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=2]*maxvegetfrac[d=2,K=2]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai3_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=3]*maxvegetfrac[d=2,K=3]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai4_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=4]*maxvegetfrac[d=2,K=4]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai5_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=5]*maxvegetfrac[d=2,K=5]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai6_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=6]*maxvegetfrac[d=2,K=6]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai7_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=7]*maxvegetfrac[d=2,K=7]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai8_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=8]*maxvegetfrac[d=2,K=8]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai9_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=9]*maxvegetfrac[d=2,K=9]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai10_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=10]*maxvegetfrac[d=2,K=10]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai11_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=11]*maxvegetfrac[d=2,K=11]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai12_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=12]*maxvegetfrac[d=2,K=12]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
+# lai13_lands      | "lai maxvegetfrac"             |  ""               | "lai[d=1,K=13]*maxvegetfrac[d=2,K=13]*Areas[d=1]*Contfrac[d=1]"          | "lai (LANDS)"      | "1"      | "2"
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/POST/monitoring01_stomate.cfg
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/POST/monitoring01_stomate.cfg	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/POST/monitoring01_stomate.cfg	(revision 5631)
@@ -0,0 +1,91 @@
+#**************************************************************
+# Author: Patrick Brockmann
+# Contact: Patrick.Brockmann@cea.fr
+# $Date$
+# $Name$
+# $Revision$
+# History:
+# Modification:
+#**************************************************************
+
+##################################################################################################################
+#-----------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#-----------------------------------------------------------------------------------------------------------------
+#
+#   field = name of the field to monitore 
+#   files patterns = pattern of the files used to monitore the field (must be discriminant) 
+#   files additionnal = additionnal files accessible by $FER_DATA
+#   operations = operations to calculate the field 
+#   title = variable title
+#   units = variable units
+#   calcul of area = expression to use for the weight average
+#
+# Notes:
+#   - Comment lines begin by # character.
+#   - Separator between fields is | character.
+#   - Operations must use the ferret syntax, if several files are used precise with the syntax d=x to refer to the x dataset.
+#     They must be enclosed by parenthesis if more than one variable is used.
+#   - files patterns,files additionnal,operations,title,units must be enclosed with character ". 
+#     Use "" if empty.
+#   - Fields will be presented through an html page with thumbnails global, north, south, land, ocean.
+#     Use a field name with one of these pattern to display it under the corresponding thumbnail.
+#
+##################################################################################################################
+
+color=EEE8AA
+smooth=12
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+#  field | files patterns | files additionnal | operations | title | units | calcul of area
+#------------------------------------------------------------------------------------------------------------------------------------------------------
+CONVFLUX_lands      | "CONVFLUX CONTFRAC"                  | "" | "(CONVFLUX[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                           | "Annual release right after deforestation (LANDS)"            | "PgC/yr" | "2"
+CFLUX_PROD10_lands  | "CFLUX_PROD10 CONTFRAC"              | "" | "(CFLUX_PROD10[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                       | "Annual release from all 10 year wood product pools (LANDS)"  | "PgC/yr" | "2"
+CFLUX_PROD100_lands | "CFLUX_PROD100 CONTFRAC"             | "" | "(CFLUX_PROD100[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release from all 100 year wood product pools (LANDS)" | "PgC/yr" | "2"
+HARVEST_ABOVE_lands | "HARVEST_ABOVE CONTFRAC"             | "" | "(HARVEST_ABOVE[d=1]*AREAS[d=1]*CONTFRAC[d=2]/1e15)"                      | "Annual release product after harvest (LANDS)"                | "PgC/yr" | "2"
+SOIL_CARB_lands     | "TOTAL_SOIL_CARB VEGET_MAX CONTFRAC" | "" | "(TOTAL_SOIL_CARB[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Total Soil Carbon (LANDS)"                                   | "PgC"    | "2"
+BIOMASS_lands       | "TOTAL_M VEGET_MAX CONTFRAC"         | "" | "(TOTAL_M[d=1]*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Total Biomass (LANDS)"                                       | "PgC"    | "2"
+LITTER_lands        | "TOTAL_BM_LITTER VEGET_MAX CONTFRAC" | "" | "(TOTAL_BM_LITTER[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)" | "Total Litter (LANDS)"                                        | "PgC/yr" | "2"
+CO2FLUX_lands       | "CO2FLUX VEGET_MAX CONTFRAC"         | "" | "(CO2FLUX[d=1]*12*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"          | "NEE (LANDS)"                                                 | "PgC/yr" | "2"
+CO2FLUX_MONTHLY_SUM_lands | "CO2FLUX_MONTHLY_SUM VEGET_MAX CONTFRAC" | "" | "(CO2FLUX_MONTHLY_SUM[d=1]*12)"                                 | "NEE Sum (LANDS)"                                             | "PgC/yr" | "Areas[d=1]"
+NPP_lands           | "NPP VEGET_MAX CONTFRAC"             | "" | "(NPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Net Primary Produc (LANDS)"                                  | "PgC/yr" | "2"
+GPP_lands           | "GPP VEGET_MAX CONTFRAC"             | "" | "(GPP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"             | "Gross Primary Produc (LANDS)"                                | "PgC/yr" | "2"
+HET_RESP_lands      | "HET_RESP VEGET_MAX CONTFRAC"        | "" | "(HET_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"        | "Heterotr. Resp. (LANDS)"                                     | "PgC/yr" | "2"
+MAINT_RESP_lands    | "MAINT_RESP VEGET_MAX CONTFRAC"      | "" | "(MAINT_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"      | "Maintenance Resp. (LANDS)"                                   | "PgC/yr" | "2"
+GROWTH_RESP_lands   | "GROWTH_RESP VEGET_MAX CONTFRAC"     | "" | "(GROWTH_RESP[d=1]*365*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"     | "Growth Resp. (LANDS)"                                        | "PgC/yr" | "2"
+cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"			    | "kg C m-2" | "Areas[d=1]"
+cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])" 	    | "Carbon in Litter Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])" 	    | "Carbon in Soil Pool" 			    | "kg C m-2" | "Areas[d=1]"
+cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])" 	    | "Carbon in Products of Land Use Change" 	    | "kg C m-2" | "Areas[d=1]"
+lai_lands              | "lai"              | "" | "(lai[d=1])" 	    | "Leaf Area Fraction"   	     		    | "1"   	 | "Areas[d=1]"
+gpp_lands              | "gpp"              | "" | "(gpp[d=1])" 	    | "Gross Primary Production" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+ra_lands               | "ra"               | "" | "(ra[d=1])" 		    | "Autotrophic Respiration"			    | "kg C m-2 s-1" | "Areas[d=1]"
+npp_lands              | "npp"              | "" | "(npp[d=1])" 	    | "Net Primary Production" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+rh_lands               | "rh"               | "" | "(rh[d=1])" 		    | "Heterotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+fFire_lands            | "fFire"            | "" | "(fFire[d=1])" 	    | "CO2 Emission from Fire" 			    | "kg C m-2 s-1" | "Areas[d=1]"
+fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])" 	    | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]"
+fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])" 	    | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]"
+nbp_lands              | "nbp"              | "" | "(nbp[d=1])" 	    | "Net Biospheric Production"      	   	    | "kg C m-2 s-1" | "Areas[d=1]"
+fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])" 	    | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]"
+fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])" 	    | "Carbon in Leaves"      	       		    | "kg C m-2" | "Areas[d=1]"
+cWood_lands            | "cWood"            | "" | "(cWood[d=1])" 	    | "Carbon in Wood" 				    | "kg C m-2" | "Areas[d=1]"
+cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])" 	    | "Carbon in Roots" 			    | "kg C m-2" | "Areas[d=1]"
+cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])" 	    | "Carbon in Other Living Compartments" 	    | "kg C m-2" | "Areas[d=1]"
+cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])" 	    | "Carbon in Fast Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])" 	    | "Carbon in Slow Soil Pool" 		    | "kg C m-2" | "Areas[d=1]"
+treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"   	| "Areas[d=1]"
+treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%" 	| "Areas[d=1]"
+c3PftFrac_lands        | "c3PftFrac" 	    | "" | "(c3PftFrac[d=1])" 	    | "Total C3 PFT Cover Fraction" 	 	    | "%" 	| "Areas[d=1]"
+c4PftFrac_lands        | "c4PftFrac" 	    | "" | "(c4PftFrac[d=1])" 	    | "Total C4 PFT Cover Fraction" 		    | "%" 	| "Areas[d=1]"
+rGrowth_lands          | "rGrowth" 	    | "" | "(rGrowth[d=1])" 	    | "Growth Autotrophic Respiration" 		    | "kg C m-2 s-1" | "Areas[d=1]"
+rMaint_lands           | "rMaint" 	    | "" | "(rMaint[d=1])" 	    | "Maintenance Autotrophic Respiration" 	    | "kg C m-2 s-1" | "Areas[d=1]"
+nppLeaf_lands          | "nppLeaf" 	    | "" | "(nppLeaf[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]"
+nppWood_lands          | "nppWood" 	    | "" | "(nppWood[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]"
+nppRoot_lands          | "nppRoot" 	    | "" | "(nppRoot[d=1])" 	    | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]"
+nep_lands              | "nep" 		    | "" | "(nep[d=1])" 	    | "Net Carbon Mass Flux out of Atmophere due to Net Ecosystem Productivity." | "kg C m-2 s-1" | "Areas[d=1]"
+cMassVariation_lands     | "cMassVariation"     | "" | "(cMassVariation[d=1])"    | "Carbon Mass Variation"			    | "kg C m-2 s-1" | "Areas[d=1]"
+cBal_lands             | "cMassVariation nbp" | "" | "(cMassVariation[d=1,L=2:1000]-nbp[d=2,L=2:1000])" | "Total Carbon Balance"		    | "kg C m-2 s-1" | "Areas[d=1]"
+#------------------------------------------------------------------------------------------------------------------------------------------------------
Index: /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/config.card
===================================================================
--- /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/config.card	(revision 5631)
+++ /tags/ORCHIDEE_2_1/ORCHIDEE_OL/TESTSTOMATE/config.card	(revision 5631)
@@ -0,0 +1,124 @@
+#
+# This is config.card file for restart with an NEW libIGCM simulation tree.
+#
+#====================================================================================
+#D-- Compatibility -
+[Compatibility]
+libIGCM=1.0
+
+#========================================================================
+#D-- UserChoices -
+[UserChoices]
+#============================
+#-- Output will be stored in IGCM_OUT/TagName/SpaceName/ExperimentName/JobName
+JobName=TestSTO
+LongName="Please, explain here what is this simulation for"
+TagName=OL2
+#------ SpaceName = DEVT/TEST/PROD
+SpaceName=PROD
+#----- ExperimentName : Short Name of Experiment
+ExperimentName=teststomate
+#============================
+#-- leap, noleap, 360d
+CalendarType=gregorian
+#-- Start and End of Job
+#-- "YYYY-MM-DD"
+DateBegin=1980-01-01
+DateEnd=1980-12-31
+#============================
+#-- 1Y, 1M, 5D, 1D
+PeriodLength=1Y
+#============================
+#-- Total Number of Processors
+JobNumProcTot= 1
+
+#========================================================================
+#D-- ListOfComponents -
+[ListOfComponents]
+#D- For each component, Name of component, Tag of component
+SRF= (sechiba, orchidee_1_9_5_1)
+SBG= (stomate, orchidee_1_9_5_1)
+OOL= (orchidee_ol, orchidee_ol_1_9_5_1)
+
+#========================================================================
+#D-- Executable -
+[Executable]
+Name=teststomate
+#D- For each component, Real name of executable, Name of executable for oasis
+OOL= ("","")
+SBG= ("", "")
+SRF= (teststomate, teststomate, 1MPI)
+
+#========================================================================
+#D-- Restarts -
+[Restarts]
+#D- If you want a GENERAL RULE FOR RESTARTS, put this flag to 'y'
+OverRule=y
+#D- Last day of the experience used as restart
+RestartDate=1985-12-31
+#D- Define restart simulation name (=> JOB_OS)
+RestartJobName=...
+#D- Path Server Group Login (=> PSGL)
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2/PROD/...
+# Attention login depend de la machine
+
+#========================================================================
+#D-- Post -
+[Post]
+#D- Do we archive the output text files and restart files?
+#D- frequency to create the archives (by default RebuildFrequency)
+PackFrequency=NONE
+#D- Do we rebuild parallel output, this flag determines
+#D- frequency of rebuild submission
+RebuildFrequency=NONE
+#D- Optimization of rebuid
+RebuildFromArchive=NONE
+#D- If you want to produce time series, this flag determines
+#D- frequency of post-processing submission
+TimeSeriesFrequency=NONE
+#D- If you want to produce seasonal average, this flag determines
+#D- the period of this average
+SeasonalFrequency=NONE
+#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency
+#D- Usefull if you do not want to consider the first X simulation's years
+SeasonalFrequencyOffset= 0
+
+#========================================================================
+#D-- SRF - SLOWPROC
+[SRF]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1979-12-31
+# Define restart simulation name
+RestartJobName=TESTFORCE
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+#-- Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
+#D-- SRF - STOMATE
+[SBG]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=1979-12-31
+# Define restart simulation name
+RestartJobName=TESTFORCE
+RestartPath=${ARCHIVE}/IGCM_OUT/OL2
+#-- Old component name for restart (if empty, use new name)
+OldName=
+
+#========================================================================
+#D-- OOL -
+[OOL]
+WriteFrequency="1M"
+Restart=n
+#-- Last day of the experience used as restart
+RestartDate=
+# Define restart simulation name
+RestartJobName=
+RestartPath=
+# Old component name for restart (if empty, use new name)
+
+#========================================================================
