Changeset 263


Ignore:
Timestamp:
2011-06-20T09:02:27+02:00 (13 years ago)
Author:
didier.solyga
Message:

Update the jobs FORCESOIL,OOL_SEC, OOL_SEC_STO, SPINUP and TESTSTOMATE. They match now with the corresponding ones from the trunk

Location:
branches/ORCHIDEE_EXT/ORCHIDEE_OL
Files:
32 added
18 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/FORCESOIL/COMP/stomate.card

    r65 r263  
    1515            (${R_BC}/SRF/${config_UserChoices_TagName}/reftemp.nc, .) 
    1616 
     17[SmoothFiles] 
     18List=   () 
     19 
    1720[ParametersFiles] 
    18 List=   (${SUBMIT_DIR}/PARAM/orchidee.def, .) 
     21List=   (${SUBMIT_DIR}/PARAM/stomate.def, .) \ 
     22        (${SUBMIT_DIR}/PARAM/driver.def, .) \ 
     23        (${SUBMIT_DIR}/PARAM/run.def, .) 
    1924 
    2025[RestartFiles] 
     
    2328 
    2429[OutputText] 
    25 List=   (run.def, used_run.def, out_forcesoil) 
     30List=   (stomate.def, driver.def, used_run.def, out_forcesoil) 
    2631 
    2732[OutputFiles] 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/FORCESOIL/COMP/stomate.driver

    r65 r263  
    11#!/bin/ksh 
    22 
    3 #D- Driver du script pour ORCHIDEE 
     3#D- Driver du script pour STOMATE FORCESOIL 
    44 
    5 function ORCHIDEE_sed 
     5function STOMATE_sed 
    66{ 
    7     IGCM_debug_PushStack "ORCHIDEE_sed" 
     7    IGCM_debug_PushStack "STOMATE_sed" 
    88     
    99    sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
    10         orchidee.def > orchidee.def.tmp 
     10        stomate.def > stomate.def.tmp 
    1111    RET=$? 
    12     echo "ORCHIDEE_sed : ${1} ${2}" 
    13     \mv orchidee.def.tmp orchidee.def 
     12    echo "STOMATE_sed : ${1} ${2}" 
     13    \mv stomate.def.tmp stomate.def 
    1414     
    15     IGCM_debug_PopStack "ORCHIDEE_sed" 
     15    IGCM_debug_PopStack "STOMATE_sed" 
     16    return $RET 
     17} 
     18 
     19function DRIVER_sed 
     20{ 
     21    IGCM_debug_PushStack "DRIVER_sed" 
     22     
     23    sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
     24        driver.def > driver.def.tmp 
     25    RET=$? 
     26    echo "DRIVER_sed : ${1} ${2}" 
     27    \mv driver.def.tmp driver.def 
     28     
     29    IGCM_debug_PopStack "DRIVER_sed" 
    1630    return $RET 
    1731} 
     
    5165    IGCM_debug_PushStack "SBG_Update" 
    5266 
    53     typeset SECHIBA_WRITE_STEP STOMATE_WRITE_STEP 
     67    typeset STOMATE_WRITE_STEP 
    5468 
    5569    case ${config_SBG_WriteFrequency} in 
    5670        *Y|*y)  
    57             WriteInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_SBG_WriteFrequency}}" ) 
    58             PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     71            WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 
     72            PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    5973            (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;; 
    60         *M|*m)  
    61             WriteInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_SBG_WriteFrequency}}" ) 
     74        1M|1m)  
    6275            case ${config_UserChoices_PeriodLength} in 
    6376            *Y|*y) 
    64                 PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     77                STOMATE_WRITE_STEP=-1. 
     78                ;; 
     79        *M|*m)  
     80                STOMATE_WRITE_STEP=-1. 
     81                ;; 
     82            *) 
     83                (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 
     84            esac 
     85            ;; 
     86        *M|*m)  
     87            WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
     88            case ${config_UserChoices_PeriodLength} in 
     89            *Y|*y) 
     90                PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    6591                (( STOMATE_WRITE_STEP = 30 )) ;; 
    6692            *M|*m) 
    67                 PeriodLengthInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_UserChoices_PeriodLength}}" ) 
     93                PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 
    6894                (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;; 
    6995            *) 
     
    76102            (( STOMATE_WRITE_STEP = 1 )) ;; 
    77103        *s) 
    78             WriteInSeconds=$( echo ${1} | awk -F '[s]' "{print ${config_SBG_WriteFrequency}}" ) 
     104            WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' ) 
    79105            (( STOMATE_WRITE_STEP = 1 )) ;; 
    80106        *)  
     
    83109    esac 
    84110 
    85     ORCHIDEE_sed STOMATE_HIST_DT ${STOMATE_WRITE_STEP} 
    86     ORCHIDEE_sed STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL} 
     111    STOMATE_sed STOMATE_OK_STOMATE y 
     112    STOMATE_sed STOMATE_OK_CO2 y 
     113 
     114    STOMATE_sed STOMATE_HIST_DT ${STOMATE_WRITE_STEP} 
     115    STOMATE_sed STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL} 
    87116    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then 
    88117        echo "Error in forcesoil !" 
     
    92121        IGCM_debug_Verif_Exit 
    93122    else 
    94         ORCHIDEE_sed STOMATE_RESTART_FILEIN stomate_rest_in.nc 
    95         ORCHIDEE_sed STOMATE_CFORCING_NAME stomate_Cforcing.nc 
    96         ORCHIDEE_sed STOMATE_HIST_DT ${STOMATE_WRITE_STEP} 
    97         ORCHIDEE_sed STOMATE_HISTLEVEL 6 
     123        STOMATE_sed STOMATE_RESTART_FILEIN stomate_rest_in.nc 
     124        STOMATE_sed STOMATE_CFORCING_NAME stomate_Cforcing.nc 
    98125    fi 
    99126 
    100     ORCHIDEE_sed TIME_LENGTH ${PeriodLengthInDays}D 
    101 #    ORCHIDEE_sed TIME_SKIP ${OldSimulationLengthInDays}D 
    102  
    103     IGCM_sys_Mv orchidee.def run.def 
    104 #     IGCM_sys_Put_Out run.def ${R_OUT_FOR}/${PREFIX}_run.def 
    105 #     FileToBeDeleted[${#FileToBeDeleted[@]}]=run.def 
     127    DRIVER_sed TIME_LENGTH ${PeriodLengthInDays}D 
     128#    DRIVER_sed TIME_SKIP ${OldSimulationLengthInDays}D 
    106129 
    107130    IGCM_debug_PopStack "SBG_Update" 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/FORCESOIL/config.card

    r65 r263  
    1313#-- (<8 chars MAX for JobName) 
    1414JobName=ForceSo 
    15 LongName="forcesoil" 
     15LongName="Please, explain here what is this simulation for" 
    1616TagName=OL2 
    1717#============================ 
     
    2727#============================ 
    2828#-- PBS Class (required on brodie mono/multi) 
    29 JobClass=mono 
     29#JobClass=mono 
     30JobClass=multi 
    3031#============================ 
    3132#-- Total Number of Processors (minimum is 2 for a coupled configuration) 
    32 JobNumProcTot=1 
     33#JobNumProcTot=2 
     34JobNumProcTot=4 
    3335#============================ 
    3436#-- Run Options : here for oasis coupling 
     
    4244[ListOfComponents] 
    4345#D- For each component, Name of component, Tag of component 
    44 SBG= (stomate, orchidee_1_9_5) 
     46SBG= (stomate, orchidee_1_9_5_1) 
    4547 
    4648#======================================================================== 
     
    6163RestartJobName=TESTFORCE 
    6264#D- Path Server Group Login (=> PSGL) 
    63 RestartPath=${ARCHIVE}/${LOGIN}/IGCM_OUT 
     65RestartPath=${ARCHIVE}/IGCM_OUT 
    6466# Attention login depend de la machine 
    6567 
     
    7880#D- the period of this average 
    7981SeasonalFrequency=NONE 
     82#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency 
     83#D- Usefull if you do not want to consider the first X simulation's years 
     84SeasonalFrequencyOffset= 0 
    8085 
    8186#======================================================================== 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/OOL_SEC/COMP/orchidee_ol.card

    r65 r263  
    1717 
    1818[ParametersFiles] 
    19 List=   () 
     19List=   (${SUBMIT_DIR}/PARAM/driver.def, .) \ 
     20    (${SUBMIT_DIR}/PARAM/run.def, .) 
    2021 
    2122[RestartFiles] 
     
    2728 
    2829[OutputText] 
    29 List=   (run.def, used_run.def, out_orchidee_ol) 
     30List=   (used_driver.def, out_orchidee_ol) 
    3031# avec la // : out_orchidee_* 
    3132 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/OOL_SEC/COMP/orchidee_ol.driver

    r65 r263  
    22 
    33#D- Driver du script pour ORCHIDEE_OL (off-line) 
     4 
     5function DRIVER_sed 
     6{ 
     7    IGCM_debug_PushStack "DRIVER_sed" 
     8     
     9    sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
     10        driver.def > driver.def.tmp 
     11    RET=$? 
     12    echo "DRIVER_sed : ${1} ${2}" 
     13    \mv driver.def.tmp driver.def 
     14     
     15    IGCM_debug_PopStack "DRIVER_sed" 
     16    return $RET 
     17} 
    418 
    519#----------------------------------------------------------------- 
     
    3347    case ${config_UserChoices_PeriodLength} in 
    3448        *Y|*y|*M|*m|*D|*d) 
    35             ORCHIDEE_sed TIME_LENGTH ${PeriodLengthInDays}D 
     49            DRIVER_sed TIME_LENGTH ${PeriodLengthInDays}D 
    3650            ;; 
    3751        *s) 
    38             ORCHIDEE_sed TIME_LENGTH ${config_UserChoices_PeriodLength} 
     52            DRIVER_sed TIME_LENGTH ${config_UserChoices_PeriodLength} 
    3953    esac 
    4054 
    4155    if ( ${FirstInitialize} ) ; then 
    4256        if ( [ "${config_OOL_Restart}" = "y" ] ) ; then 
    43             ORCHIDEE_sed RESTART_FILEIN driver_rest_in.nc 
     57            DRIVER_sed RESTART_FILEIN driver_rest_in.nc 
    4458        else 
    45             ORCHIDEE_sed TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D 
     59            DRIVER_sed TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D 
    4660        fi 
    4761    else 
    4862        if [ X${orchidee_ol_UserChoices_NORESTART} = Xn ] ; then 
    49             ORCHIDEE_sed RESTART_FILEIN driver_rest_in.nc 
     63            DRIVER_sed RESTART_FILEIN driver_rest_in.nc 
    5064        else 
    51             rm driver_rest_in.nc 
    52             ORCHIDEE_sed RESTART_FILEIN NONE 
     65            if [ ${DRYRUN} -le 2 ] ; then 
     66                IGCM_sys_Rm driver_rest_in.nc 
     67            fi 
     68            DRIVER_sed RESTART_FILEIN NONE 
    5369        fi 
    5470    fi 
    5571 
    56     IGCM_sys_Mv orchidee.def run.def 
    5772#    IGCM_sys_Put_Out run.def ${R_OUT_OOL}/${PREFIX}_run.def 
    5873    FileToBeDeleted[${#FileToBeDeleted[@]}]=run.def 
     74    FileToBeDeleted[${#FileToBeDeleted[@]}]=driver.def 
    5975 
    6076    IGCM_debug_PopStack "OOL_Update" 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/OOL_SEC/config.card

    r65 r263  
    1313#-- (<8 chars MAX for JobName) 
    1414JobName=SECHIBA 
    15 LongName=ORCHIDEE_OL_HEAD 
     15LongName="Please, explain here what is this simulation for" 
    1616TagName=OL2 
    1717#============================ 
     
    4444[ListOfComponents] 
    4545#D- For each component, Name of component, Tag of component 
    46 SRF= (orchidee, orchidee_1_9_5) 
    47 OOL= (orchidee_ol, OOL_1_9_5) 
     46SRF= (sechiba, orchidee_1_9_5_1) 
     47OOL= (orchidee_ol, OOL_1_9_5_1) 
    4848 
    4949#======================================================================== 
     
    8282#D- the period of this average 
    8383SeasonalFrequency=10Y 
     84#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency 
     85#D- Usefull if you do not want to consider the first X simulation's years 
     86SeasonalFrequencyOffset= 0 
    8487 
    8588#======================================================================== 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/OOL_SEC_STO/COMP/orchidee_ol.card

    r65 r263  
    88# If you want to use the same forcing file 
    99NORESTART=n 
     10# If you want use config.card PeriodLength for TIME_LENGTH 
     11TIMELENGTH=y 
    1012 
    1113[InitialStateFiles] 
     
    1719 
    1820[ParametersFiles] 
    19 List=   () 
     21List=   (${SUBMIT_DIR}/PARAM/driver.def, .) \ 
     22    (${SUBMIT_DIR}/PARAM/run.def, .) 
    2023 
    2124[RestartFiles] 
     
    2730 
    2831[OutputText] 
    29 List=   (run.def, used_run.def, out_orchidee_ol) 
     32List=   (used_driver.def, out_orchidee_ol) 
    3033# avec la // : out_orchidee_* 
    3134 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/OOL_SEC_STO/COMP/orchidee_ol.driver

    r65 r263  
    22 
    33#D- Driver du script pour ORCHIDEE_OL (off-line) 
     4 
     5function DRIVER_sed 
     6{ 
     7    IGCM_debug_PushStack "DRIVER_sed" 
     8     
     9    sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
     10        driver.def > driver.def.tmp 
     11    RET=$? 
     12    echo "DRIVER_sed : ${1} ${2}" 
     13    \mv driver.def.tmp driver.def 
     14     
     15    IGCM_debug_PopStack "DRIVER_sed" 
     16    return $RET 
     17} 
    418 
    519#----------------------------------------------------------------- 
     
    3145    IGCM_debug_PushStack "OOL_Update" 
    3246 
    33     case ${config_UserChoices_PeriodLength} in 
    34         *Y|*y|*M|*m|*D|*d) 
    35             ORCHIDEE_sed TIME_LENGTH ${PeriodLengthInDays}D 
    36             ;; 
    37         *s) 
    38             ORCHIDEE_sed TIME_LENGTH ${config_UserChoices_PeriodLength} 
    39     esac 
     47    if [ X"${orchidee_ol_UserChoices_TIMELENGTH}" = Xy ] ; then 
     48        case ${config_UserChoices_PeriodLength} in 
     49            *Y|*y|*M|*m|*D|*d) 
     50                DRIVER_sed TIME_LENGTH ${PeriodLengthInDays}D 
     51                ;; 
     52            *s) 
     53                DRIVER_sed TIME_LENGTH ${config_UserChoices_PeriodLength} 
     54        esac 
     55    fi 
    4056 
    4157    if ( ${FirstInitialize} ) ; then 
    4258        if ( [ "${config_OOL_Restart}" = "y" ] ) ; then 
    43             ORCHIDEE_sed RESTART_FILEIN driver_rest_in.nc 
     59            DRIVER_sed RESTART_FILEIN driver_rest_in.nc 
    4460        else 
    45             ORCHIDEE_sed TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D 
     61            DRIVER_sed TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D 
    4662        fi 
    4763    else 
    4864        if [ X${orchidee_ol_UserChoices_NORESTART} = Xn ] ; then 
    49             ORCHIDEE_sed RESTART_FILEIN driver_rest_in.nc 
     65            DRIVER_sed RESTART_FILEIN driver_rest_in.nc 
    5066        else 
    51             rm driver_rest_in.nc 
    52             ORCHIDEE_sed RESTART_FILEIN NONE 
     67            if [ ${DRYRUN} -le 2 ] ; then 
     68                IGCM_sys_Rm driver_rest_in.nc 
     69            fi 
     70            DRIVER_sed RESTART_FILEIN NONE 
    5371        fi 
    5472    fi 
    5573 
    56     IGCM_sys_Mv orchidee.def run.def 
    5774#    IGCM_sys_Put_Out run.def ${R_OUT_OOL}/${PREFIX}_run.def 
    5875    FileToBeDeleted[${#FileToBeDeleted[@]}]=run.def 
     76    FileToBeDeleted[${#FileToBeDeleted[@]}]=driver.def 
    5977 
    6078    IGCM_debug_PopStack "OOL_Update" 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/OOL_SEC_STO/COMP/stomate.card

    r65 r263  
    1616 
    1717[ParametersFiles] 
    18 List=   () 
     18List=   (${SUBMIT_DIR}/PARAM/stomate.def, .) 
    1919 
    2020[RestartFiles] 
     
    2727 
    2828[OutputText] 
    29 List=   () 
     29List=   (used_stomate.def) 
    3030 
    3131[OutputFiles] 
     
    3636Patches= () 
    3737GatherWithInternal= (lon, lat, PFT, time_counter, Areas) 
    38 TimeSeriesVars2D= (T2M_MONTH,CONTFRAC,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,HARVEST_ABOVE) 
     38TimeSeriesVars2D= (T2M_MONTH,CONTFRAC,RESOLUTION_X,RESOLUTION_Y,CONVFLUX,CFLUX_PROD10,CFLUX_PROD100,CO2FLUX_MONTHLY_SUM,HARVEST_ABOVE) 
    3939ChunckJob2D = NONE 
    40 TimeSeriesVars3D = (CO2FLUX_MONTHLY,LAI,VEGET,VEGET_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB) 
     40TimeSeriesVars3D = (CO2FLUX,LAI,VEGET,VEGET_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB) 
    4141ChunckJob3D = NONE 
    4242Seasonal=ON 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/OOL_SEC_STO/COMP/stomate.driver

    r65 r263  
    11#!/bin/ksh 
    22 
    3 #D- Driver du script pour ORCHIDEE 
     3#D- Driver du script pour STOMATE 
     4 
     5function STOMATE_sed 
     6{ 
     7    IGCM_debug_PushStack "STOMATE_sed" 
     8     
     9    sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
     10        stomate.def > stomate.def.tmp 
     11    RET=$? 
     12    echo "STOMATE_sed : ${1} ${2}" 
     13    \mv stomate.def.tmp stomate.def 
     14     
     15    IGCM_debug_PopStack "STOMATE_sed" 
     16    return $RET 
     17} 
    418 
    519#----------------------------------------------------------------- 
     
    923 
    1024    RESOL_SBG=ALL 
     25 
     26    typeset frequency 
     27    for frequency in ${config_SBG_WriteFrequency} ; do 
     28        case ${frequency} in 
     29            HF|hf) SBG_ok_hf=y ;; 
     30        esac 
     31    done 
    1132     
    1233    IGCM_debug_PopStack "SBG_Initialize" 
     
    6283    esac 
    6384 
    64     ORCHIDEE_sed STOMATE_OK_STOMATE y 
    65     ORCHIDEE_sed STOMATE_OK_CO2 y 
     85    STOMATE_sed STOMATE_OK_STOMATE y 
    6686 
    67     ORCHIDEE_sed STOMATE_HIST_DT ${STOMATE_WRITE_STEP} 
    68     ORCHIDEE_sed STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL} 
     87    STOMATE_sed STOMATE_HIST_DT ${STOMATE_WRITE_STEP} 
     88    STOMATE_sed STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL} 
    6989    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then 
    7090        echo "STOMATE : without restart" 
    7191    else 
    72         ORCHIDEE_sed STOMATE_RESTART_FILEIN stomate_rest_in.nc 
     92        STOMATE_sed STOMATE_RESTART_FILEIN stomate_rest_in.nc 
     93    fi 
     94 
     95    if [ X${SBG_ok_hf} = Xy ] ; then  
     96        STOMATE_sed STOMATE_IPCC_HIST_DT 1D 
     97    else 
     98        STOMATE_sed STOMATE_IPCC_HIST_DT ${STOMATE_WRITE_STEP} 
    7399    fi 
    74100 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/OOL_SEC_STO/POST/monitoring01_stomate.cfg

    r65 r263  
    22# Author: Patrick Brockmann 
    33# Contact: Patrick.Brockmann@cea.fr 
    4 # $Date: 2010/05/17 16:19:33 $ 
    5 # $Name: OOL_1_9_5 $ 
    6 # $Revision: 1.3 $ 
     4# $Date: 2011-01-01 22:28:25 +0100 (Sat, 01 Jan 2011) $ 
     5# $Name$ 
     6# $Revision: 53 $ 
    77# History: 
    88# Modification: 
     
    4646BIOMASS_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" 
    4747LITTER_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" 
    48 CO2FLUX_lands       | "CO2FLUX_MONTHLY VEGET_MAX CONTFRAC" | "" | "(CO2FLUX_MONTHLY[d=1]*12*VEGET_MAX[d=2]*AREAS[d=1]*CONTFRAC[d=3]/1e15)"  | "NEE (LANDS)"                                                 | "PgC/yr" | "2" 
     48CO2FLUX_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" 
     49CO2FLUX_MONTHLY_SUM_lands | "CO2FLUX_MONTHLY_SUM VEGET_MAX CONTFRAC" | "" | "(CO2FLUX_MONTHLY_SUM[d=1]*12)"                                 | "NEE Sum (LANDS)"                                             | "PgC/yr" | "Areas[d=1]" 
    4950NPP_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" 
    5051GPP_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" 
     
    5253MAINT_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" 
    5354GROWTH_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" 
     55cVeg_lands             | "cVeg"             | "" | "(cVeg[d=1])"            | "Carbon in Vegetation"                        | "kg C m-2" | "Areas[d=1]" 
     56cLitter_lands          | "cLitter"          | "" | "(cLitter[d=1])"         | "Carbon in Litter Pool"                       | "kg C m-2" | "Areas[d=1]" 
     57cSoil_lands            | "cSoil"            | "" | "(cSoil[d=1])"           | "Carbon in Soil Pool"                         | "kg C m-2" | "Areas[d=1]" 
     58cProduct_lands         | "cProduct"         | "" | "(cProduct[d=1])"        | "Carbon in Products of Land Use Change"       | "kg C m-2" | "Areas[d=1]" 
     59lai_lands              | "lai"              | "" | "(lai[d=1])"             | "Leaf Area Fraction"                          | "1"        | "Areas[d=1]" 
     60gpp_lands              | "gpp"              | "" | "(gpp[d=1])"             | "Gross Primary Production"                    | "kg C m-2 s-1" | "Areas[d=1]" 
     61ra_lands               | "ra"               | "" | "(ra[d=1])"              | "Autotrophic Respiration"                     | "kg C m-2 s-1" | "Areas[d=1]" 
     62npp_lands              | "npp"              | "" | "(npp[d=1])"             | "Net Primary Production"                      | "kg C m-2 s-1" | "Areas[d=1]" 
     63rh_lands               | "rh"               | "" | "(rh[d=1])"              | "Heterotrophic Respiration"                   | "kg C m-2 s-1" | "Areas[d=1]" 
     64fFire_lands            | "fFire"            | "" | "(fFire[d=1])"           | "CO2 Emission from Fire"                      | "kg C m-2 s-1" | "Areas[d=1]" 
     65fHarvest_lands         | "fHarvest"         | "" | "(fHarvest[d=1])"        | "CO2 Flux to Atmosphere from Crop Harvesting" | "kg C m-2 s-1" | "Areas[d=1]" 
     66fLuc_lands             | "fLuc"             | "" | "(fLuc[d=1])"            | "CO2 Flux to Atmosphere from Land Use Change" | "kg C m-2 s-1" | "Areas[d=1]" 
     67nbp_lands              | "nbp"              | "" | "(nbp[d=1])"             | "Net Biospheric Production"                   | "kg C m-2 s-1" | "Areas[d=1]" 
     68fVegLitter_lands       | "fVegLitter"       | "" | "(fVegLitter[d=1])"      | "Total Carbon Flux from Vegetation to Litter" | "kg C m-2 s-1" | "Areas[d=1]" 
     69fLitterSoil_lands      | "fLitterSoil"      | "" | "(fLitterSoil[d=1])"     | "Total Carbon Flux from Litter to Soil"       | "kg C m-2 s-1" | "Areas[d=1]" 
     70cLeaf_lands            | "cLeaf"            | "" | "(cLeaf[d=1])"           | "Carbon in Leaves"                            | "kg C m-2" | "Areas[d=1]" 
     71cWood_lands            | "cWood"            | "" | "(cWood[d=1])"           | "Carbon in Wood"                              | "kg C m-2" | "Areas[d=1]" 
     72cRoot_lands            | "cRoot"            | "" | "(cRoot[d=1])"           | "Carbon in Roots"                             | "kg C m-2" | "Areas[d=1]" 
     73cMisc_lands            | "cMisc"            | "" | "(cMisc[d=1])"           | "Carbon in Other Living Compartments"         | "kg C m-2" | "Areas[d=1]" 
     74cLitterAbove_lands     | "cLitterAbove"     | "" | "(cLitterAbove[d=1])"    | "Carbon in Above-Ground Litter"               | "kg C m-2" | "Areas[d=1]" 
     75cLitterBelow_lands     | "cLitterBelow"     | "" | "(cLitterBelow[d=1])"    | "Carbon in Below-Ground Litter"               | "kg C m-2" | "Areas[d=1]" 
     76cSoilFast_lands        | "cSoilFast"        | "" | "(cSoilFast[d=1])"       | "Carbon in Fast Soil Pool"                    | "kg C m-2" | "Areas[d=1]" 
     77cSoilMedium_lands      | "cSoilMedium"      | "" | "(cSoilMedium[d=1])"     | "Carbon in Medium Soil Pool"                  | "kg C m-2" | "Areas[d=1]" 
     78cSoilSlow_lands        | "cSoilSlow"        | "" | "(cSoilSlow[d=1])"       | "Carbon in Slow Soil Pool"                    | "kg C m-2" | "Areas[d=1]" 
     79treeFracPrimDec_lands  | "treeFracPrimDec"  | "" | "(treeFracPrimDec[d=1])" | "Total Primary Deciduous Tree Cover Fraction" | "%"       | "Areas[d=1]" 
     80treeFracPrimEver_lands | "treeFracPrimEver" | "" | "(treeFracPrimEver[d=1])"| "Total Primary Evergreen Tree Cover Fraction" | "%"       | "Areas[d=1]" 
     81c3PftFrac_lands        | "c3PftFrac"        | "" | "(c3PftFrac[d=1])"       | "Total C3 PFT Cover Fraction"                 | "%"       | "Areas[d=1]" 
     82c4PftFrac_lands        | "c4PftFrac"        | "" | "(c4PftFrac[d=1])"       | "Total C4 PFT Cover Fraction"                 | "%"       | "Areas[d=1]" 
     83rGrowth_lands          | "rGrowth"          | "" | "(rGrowth[d=1])"         | "Growth Autotrophic Respiration"              | "kg C m-2 s-1" | "Areas[d=1]" 
     84rMaint_lands           | "rMaint"           | "" | "(rMaint[d=1])"          | "Maintenance Autotrophic Respiration"         | "kg C m-2 s-1" | "Areas[d=1]" 
     85nppLeaf_lands          | "nppLeaf"          | "" | "(nppLeaf[d=1])"         | "CO2 Flux from Atmosphere due to NPP Allocation to Leaf" | "kg C m-2 s-1" | "Areas[d=1]" 
     86nppWood_lands          | "nppWood"          | "" | "(nppWood[d=1])"         | "CO2 Flux from Atmosphere due to NPP Allocation to Wood" | "kg C m-2 s-1" | "Areas[d=1]" 
     87nppRoot_lands          | "nppRoot"          | "" | "(nppRoot[d=1])"         | "CO2 Flux from Atmosphere due to NPP Allocation to Root" | "kg C m-2 s-1" | "Areas[d=1]" 
     88nep_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]" 
    5489#------------------------------------------------------------------------------------------------------------------------------------------------------ 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/OOL_SEC_STO/config.card

    r65 r263  
    1313#-- (<8 chars MAX for JobName) 
    1414JobName=SECHSTOM 
    15 LongName=ORCHIDEE_OL_HEAD 
     15LongName="Please, explain here what is this simulation for" 
    1616TagName=OL2 
    1717#============================ 
     
    4444[ListOfComponents] 
    4545#D- For each component, Name of component, Tag of component 
    46 SRF= (orchidee, orchidee_1_9_5) 
    47 SBG= (stomate, orchidee_1_9_5) 
    48 OOL= (orchidee_ol, OOL_1_9_5) 
     46SRF= (sechiba, orchidee_1_9_5_1) 
     47SBG= (stomate, orchidee_1_9_5_1) 
     48OOL= (orchidee_ol, OOL_1_9_5_1) 
    4949 
    5050#======================================================================== 
     
    8484#D- the period of this average 
    8585SeasonalFrequency=10Y 
     86#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency 
     87#D- Usefull if you do not want to consider the first X simulation's years 
     88SeasonalFrequencyOffset= 0 
    8689 
    8790#======================================================================== 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/SPINUP/COMP/spinup.card

    r65 r263  
    1616# If you want to use the same forcing file 
    1717DRIVER_NORESTART=n 
     18# If you want use config.card PeriodLength for TIME_LENGTH 
     19DRIVER_TIMELENGTH=y 
    1820 
    1921# 
     
    3133# 
    3234lai_map=n 
     35 
     36# 
     37###-- fix végétation flag 
     38# 
     39impose_veg=n 
     40 
     41# 
     42###-- historical vegetation maps 
     43# 
     44land_use=n 
    3345 
    3446# 
     
    5163    # ---------------------- 
    5264# Initialisation for spin-up : 
    53 # orchidee with sechiba alone (!!! if ok_stomate == n !!!) 
     65# sechiba alone (!!! only if ok_stomate == n !!!) 
    5466duree_nostomate=1 
    55 # orchidee with stomate 
     67# sechiba and stomate 
    5668duree_inistomate=0 
    5769# teststomate (only if duree_nostomate or duree_inistomate > 0) 
     
    89101 
    90102[SubJobParams] 
    91 # You can specify here any parameters to be modified in run.def for SpinUp Subjobs. 
    92 DEBUG_INFO=n 
    93 LONGPRINT=n 
     103# You can specify here any parameters to be modified in sechiba.def, stomate.def or driver.def for SpinUp Subjobs. 
     104# NEW : due to split of orchidee.def in component specific parameter files, 
     105#       you must add here a prefix for the specific parameter file. 
     106driver_DEBUG_INFO=n 
     107sechiba_LONGPRINT=n 
    94108 
    95109[SubJobPost] 
     
    97111##-- TimeSeries 
    98112# 
    99 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) 
    100 sechiba_TimeSeriesVars3D=(lai, maxvegetfrac, vegetfrac, CO2FLUX) 
     113sechiba_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) 
     114sechiba_TimeSeriesVars3D=(lai, maxvegetfrac, vegetfrac, CO2FLUX, ptn, nee) 
    101115# ALMAOUTPUT 
    102116#sechiba_TimeSeriesVars2D = (vegetfrac, maxvegetfrac, nobiofrac, SWnet, LWnet, Qh, Qle, Qg, Qf, DelSurfHeat, DelColdCont, Snowf, Rainf, Evap, \ 
     
    104118#                          ECanop, TVeg, ESoil, RootMoist, SubSnow, ACond, SnowFrac, SAlbedo, SnowDepth, dis, GPP) 
    105119stomate_TimeSeriesVars2D=(T2M_MONTH, CONTFRAC, RESOLUTION_X, RESOLUTION_Y, CONVFLUX, CFLUX_PROD10, CFLUX_PROD100,HARVEST_ABOVE) 
    106 stomate_TimeSeriesVars3D=(CO2FLUX_MONTHLY, LAI, VEGET, VEGET_MAX, NPP, GPP, HET_RESP, MAINT_RESP, GROWTH_RESP, AGE, HEIGHT, TOTAL_SOIL_CARB, TOTAL_M, TOTAL_BM_LITTER) 
     120stomate_TimeSeriesVars3D=(CO2FLUX_MONTHLY,LAI,VEGET,VEGET_MAX,NPP,GPP,HET_RESP,MAINT_RESP,GROWTH_RESP,AGE,HEIGHT,TOTAL_M,TOTAL_BM_LITTER,TOTAL_SOIL_CARB) 
    107121 
    108122# !!! DO NOT MODIFY spinup.card AFTER THIS LINE !!!  
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/SPINUP/COMP/spinup.driver

    r65 r263  
    33#D- Driver du script pour SPINUP (off-line) 
    44 
    5 function ORCHIDEE_sed 
     5function SECHIBA_sed 
    66{ 
    7     IGCM_debug_PushStack "ORCHIDEE_sed" 
     7    IGCM_debug_PushStack "SECHIBA_sed" 
    88     
     9    if [ -f ${New_SUBMIT_DIR}/PARAM/sechiba.def ] ; then 
    910    sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
    10         ${New_SUBMIT_DIR}/PARAM/orchidee.def > ${New_SUBMIT_DIR}/PARAM/orchidee.def.tmp 
     11            ${New_SUBMIT_DIR}/PARAM/sechiba.def > ${New_SUBMIT_DIR}/PARAM/sechiba.def.tmp 
    1112    RET=$? 
    12     echo "ORCHIDEE_sed : ${1} ${2}" 
    13     \mv ${New_SUBMIT_DIR}/PARAM/orchidee.def.tmp ${New_SUBMIT_DIR}/PARAM/orchidee.def 
    14  
    15     IGCM_debug_PopStack "ORCHIDEE_sed" 
     13        echo "SECHIBA_sed : ${1} ${2}" 
     14        \mv ${New_SUBMIT_DIR}/PARAM/sechiba.def.tmp ${New_SUBMIT_DIR}/PARAM/sechiba.def 
     15    fi 
     16 
     17    IGCM_debug_PopStack "SECHIBA_sed" 
     18    return $RET 
     19} 
     20 
     21function STOMATE_sed 
     22{ 
     23    IGCM_debug_PushStack "STOMATE_sed" 
     24     
     25    if [ -f ${New_SUBMIT_DIR}/PARAM/stomate.def ] ; then 
     26        sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
     27            ${New_SUBMIT_DIR}/PARAM/stomate.def > ${New_SUBMIT_DIR}/PARAM/stomate.def.tmp 
     28        RET=$? 
     29        echo "STOMATE_sed : ${1} ${2}" 
     30        \mv ${New_SUBMIT_DIR}/PARAM/stomate.def.tmp ${New_SUBMIT_DIR}/PARAM/stomate.def 
     31    fi 
     32 
     33    IGCM_debug_PopStack "STOMATE_sed" 
     34    return $RET 
     35} 
     36 
     37function DRIVER_sed 
     38{ 
     39    IGCM_debug_PushStack "DRIVER_sed" 
     40     
     41    if [ -f ${New_SUBMIT_DIR}/PARAM/driver.def ] ; then 
     42        sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
     43            ${New_SUBMIT_DIR}/PARAM/driver.def > ${New_SUBMIT_DIR}/PARAM/driver.def.tmp 
     44        RET=$? 
     45        echo "DRIVER_sed : ${1} ${2}" 
     46        \mv ${New_SUBMIT_DIR}/PARAM/driver.def.tmp ${New_SUBMIT_DIR}/PARAM/driver.def 
     47    fi 
     48 
     49    IGCM_debug_PopStack "DRIVER_sed" 
    1650    return $RET 
    1751} 
     
    3064    if [ ! -f ${SUBMIT_DIR}/output.card ] ; then 
    3165        IGCM_sys_Cp ${SUBMIT_DIR}/output.card_init ${SUBMIT_DIR}/output.card 
    32         IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Global Path "${SUBMIT_DIR}" 
    3366        iter=0 
    3467    else 
     
    4073        StageName=${output_Stage_StageName} 
    4174    fi 
     75    IGCM_card_WriteOption ${SUBMIT_DIR}/output.card Global Path "${SUBMIT_DIR}" 
    4276 
    4377    # Compute DateEnd for ALL SPINUP 
     
    81115 
    82116    # 1) SRF section of config.card 
    83 # This section gives first restart file path, WriteFrequency and Post-treatment behaviour. 
     117# This section gives first restart file path and WriteFrequency. 
    84118    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card SRF 
    85119    set +A config_SRF -- ${config_SRF[*]} > /dev/null 2>&1 
     
    99133 
    100134 
    101     # 2) Subjob orchidee.def parametrisation : SubJobParams in spinup.card 
    102 # This section give flags to put in orchidee.def of Subjobs. 
     135    # 2) Subjob parametrization : SubJobParams in spinup.card 
     136# This section give flags to put in sechiba.def, stomate.def or driver.def of Subjobs. 
    103137    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/COMP/spinup.card SubJobParams 
    104138    set +A spinup_SubJobParams -- ${spinup_SubJobParams[*]} > /dev/null 2>&1 
     
    112146    fi 
    113147 
    114     # Get the forcing file name (structure with variables inside) for this Spinup 
     148    # 3) Post-treatment 
     149    IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card SubJobPost 
     150    typeset option 
     151    for option in ${config_SubJobPost[*]} ; do 
     152        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SubJobPost ${option} 
     153    done 
     154 
     155    # 4) Get the forcing file name (structure with variables inside) for this Spinup 
    115156    IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/COMP/spinup.card SubJobForcingFile List 
    116157    IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/COMP/spinup.card SubJobForcingFile ListNonDel 
     
    168209    chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName} 
    169210 
    170     IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/orchidee.def ${New_SUBMIT_DIR}/PARAM/orchidee.def 
     211    IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/sechiba.def ${New_SUBMIT_DIR}/PARAM/sechiba.def 
     212    IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/stomate.def ${New_SUBMIT_DIR}/PARAM/stomate.def 
     213    IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/driver.def ${New_SUBMIT_DIR}/PARAM/driver.def 
    171214 
    172215    eval first_option=${spinup_SubJobParams[0]} > /dev/null 2>&1 
    173216    if [ X${first_option} != X"Error:" ] ; then 
    174         typeset option 
     217        typeset option PARAM_FILE 
    175218        for option in ${spinup_SubJobParams[*]} ; do 
    176             eval echo "${option}="\${spinup_SubJobParams_${option}} 
    177             eval ORCHIDEE_sed ${option} \${spinup_SubJobParams_${option}} 
     219            PARAM_FILE=$( echo ${option} | awk -F_ '{print $1}' ) 
     220            echo "For parameter file ${PARAM_FILE}.def" 
     221            option_=$( echo ${option} | sed -e "s/${PARAM_FILE}_//" ) 
     222            eval echo "${option_}="\${spinup_SubJobParams_${option}} 
     223            case ${PARAM_FILE} in 
     224                sechiba) 
     225                    eval SECHIBA_sed ${option_} \${spinup_SubJobParams_${option}} 
     226                    ;; 
     227                stomate) 
     228                    eval STOMATE_sed ${option_} \${spinup_SubJobParams_${option}} 
     229                    ;; 
     230                driver) 
     231                    eval DRIVER_sed ${option_} \${spinup_SubJobParams_${option}} 
     232                    ;; 
     233            esac 
    178234        done 
    179235    fi 
     
    189245    IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card OOL Restart n 
    190246 
    191     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SRF TimeSeriesFrequency 
    192     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card SRF SeasonalFrequency 
    193     IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Post TimeSeriesFrequency ${config_SRF_TimeSeriesFrequency} 
    194     IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Post SeasonalFrequency ${config_SRF_SeasonalFrequency} 
     247    typeset option 
     248    for option in ${config_SubJobPost[*]} ; do 
     249        eval value=\${config_SubJobPost_${option}} 
     250        eval echo ${option} ${value} 
     251        if [ X${value} != X ] ; then 
     252            eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card Post ${option} \${config_SubJobPost_${option}} 
     253        fi 
     254    done 
    195255 
    196256    # For Subjob special flags 
    197     IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card UserChoices ROUTING ${spinup_UserChoices_ok_routing} 
    198     IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card UserChoices NEWHYDROL ${spinup_UserChoices_ok_newhydrol} 
    199     IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card UserChoices LAIMAP ${spinup_UserChoices_lai_map} 
    200     IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card UserChoices OKCO2 ${spinup_UserChoices_ok_co2} 
     257    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices ROUTING ${spinup_UserChoices_ok_routing} 
     258    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices NEWHYDROL ${spinup_UserChoices_ok_newhydrol} 
     259    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices LAIMAP ${spinup_UserChoices_lai_map} 
     260    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices IMPOSE_VEG ${spinup_UserChoices_impose_veg} 
     261    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices LAND_USE ${spinup_UserChoices_land_use} 
     262    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices OKCO2 ${spinup_UserChoices_ok_co2} 
    201263 
    202264    if [ X${spinup_UserChoices_BoundaryFilesListNonDel} = Xy ] ; then  
    203         IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card BoundaryFiles ListNonDel "()" 
     265        IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card BoundaryFiles ListNonDel "()" 
    204266    fi 
    205267 
    206268    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee_ol.card UserChoices NORESTART ${spinup_UserChoices_DRIVER_NORESTART} 
     269    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee_ol.card UserChoices TIMELENGTH ${spinup_UserChoices_DRIVER_TIMELENGTH} 
    207270 
    208271    spinup_SubJobForcingFile_List0=${spinup_SubJobForcingFile_List[0]} > /dev/null 2>&1 
     
    228291    IGCM_debug_PushStack "SPIN_OptionsSechiba" 
    229292 
    230     IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card UserChoices sechiba_LEVEL ${spinup_UserChoices_sechiba_LEVEL} 
     293    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices sechiba_LEVEL ${spinup_UserChoices_sechiba_LEVEL} 
    231294    spinup_SubJobPost_sechiba_TimeSeriesVars0=${spinup_SubJobPost_sechiba_TimeSeriesVars2D[0]} > /dev/null 2>&1 
    232295    if [ X${spinup_SubJobPost_sechiba_TimeSeriesVars0} != X${NULL_STR} ] ; then 
    233         IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card Post_1M_sechiba_history TimeSeriesVars2D "("$( echo ${spinup_SubJobPost_sechiba_TimeSeriesVars[@]} | sed -e "s/ /,/g" )")" 
    234     else 
    235         IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card Post_1M_sechiba_history TimeSeriesVars2D "()" 
     296        IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card Post_1M_sechiba_history TimeSeriesVars2D "("$( echo ${spinup_SubJobPost_sechiba_TimeSeriesVars[@]} | sed -e "s/ /,/g" )")" 
     297    else 
     298        IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card Post_1M_sechiba_history TimeSeriesVars2D "()" 
    236299    fi 
    237300    spinup_SubJobPost_sechiba_TimeSeriesVars0=${spinup_SubJobPost_sechiba_TimeSeriesVars3D[0]} > /dev/null 2>&1 
    238301    if [ X${spinup_SubJobPost_sechiba_TimeSeriesVars0} != X${NULL_STR} ] ; then 
    239         IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card Post_1M_sechiba_history TimeSeriesVars3D "("$( echo ${spinup_SubJobPost_sechiba_TimeSeriesVars[@]} | sed -e "s/ /,/g" )")" 
    240     else 
    241         IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card Post_1M_sechiba_history TimeSeriesVars3D "()" 
     302        IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card Post_1M_sechiba_history TimeSeriesVars3D "("$( echo ${spinup_SubJobPost_sechiba_TimeSeriesVars[@]} | sed -e "s/ /,/g" )")" 
     303    else 
     304        IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card Post_1M_sechiba_history TimeSeriesVars3D "()" 
    242305    fi 
    243306 
     
    265328 
    266329    # Nb years for forcing FORCESOIL 
    267     ORCHIDEE_sed FORCESOIL_NB_YEAR ${PeriodLengthInYears} 
     330    STOMATE_sed FORCESOIL_NB_YEAR ${PeriodLengthInYears} 
    268331     
    269332    IGCM_debug_PopStack "SPIN_OptionsStomate" 
     333} 
     334 
     335#----------------------------------------------------------------- 
     336function SPIN_PeriodStart 
     337{ 
     338    IGCM_debug_PushStack "SPIN_PeriodStart" 
     339    echo "" > stack 
     340    IGCM_debug_PopStack "SPIN_PeriodStart" 
    270341} 
    271342 
     
    507578            # For some jobs : 
    508579            if ( [ X${config_UserChoices_JobNumProcTot} != X ] && [ "${config_UserChoices_JobNumProcTot}" -gt 1 ] ) ; then 
    509                 IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot ${config_UserChoices_JobNumProcTot} 
    510580                gawk -- "{if (! match(\$0,/^# .Date.*/) ) { print \$0 } else { printf(\"BATCH_NUM_PROC_TOT=%d \\n\\n\",${config_UserChoices_JobNumProcTot}) ; print \$0 } }" \ 
    511581                    ${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_ 
    512582                IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName} 
    513583                chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName} 
    514                 if [ X"${config_UserChoices_JobRunOptions}" != X ] ; then 
    515                     sed -e "s/^JobRunOptions=.*/JobRunOptions=\'${config_UserChoices_JobRunOptions}\'/" ${New_SUBMIT_DIR}/config.card > temp.card 
    516                     IGCM_sys_Mv temp.card ${New_SUBMIT_DIR}/config.card  
    517                 fi 
    518584            fi 
    519585             
     
    536602            # For some jobs : 
    537603            if ( [ X${config_UserChoices_JobNumProcTot} != X ] && [ "${config_UserChoices_JobNumProcTot}" -gt 1 ] ) ; then 
    538                 IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot ${config_UserChoices_JobNumProcTot} 
    539604                gawk -- "{if (! match(\$0,/^# .Date.*/) ) { print \$0 } else { printf(\"BATCH_NUM_PROC_TOT=%d \\n\\n\",${config_UserChoices_JobNumProcTot}) ; print \$0 } }" \ 
    540605                    ${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_ 
    541606                IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName} 
    542607                chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName} 
    543                 if [ X"${config_UserChoices_JobRunOptions}" != X ] ; then 
    544                     sed -e "s/^JobRunOptions=.*/JobRunOptions=\'${config_UserChoices_JobRunOptions}\'/" ${New_SUBMIT_DIR}/config.card > temp.card 
    545                     IGCM_sys_Mv temp.card ${New_SUBMIT_DIR}/config.card  
    546                 fi 
    547608            fi 
    548609             
     
    570631            # !!! must not have been modified !!! 
    571632            SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/TESTSTOMATE ${ExtName} 
     633            IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot 1 
     634            gawk -- "{if (! match(\$0,/^# .Date.*/) ) { print \$0 } else { printf(\"BATCH_NUM_PROC_TOT=%d \\n\\n\",1) ; print \$0 } }" \ 
     635                ${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_ 
     636            IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName} 
     637            chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName} 
    572638 
    573639            # Always restart for teststomate 
     
    588654             
    589655            IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/output.card PreviousStage LastRestartDate 
    590             IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card BoundaryFiles ListNonDel \ 
    591         "(${config_SRF_RestartPath}/${LastJobName}/SBG/Restart/${LastJobName}_${output_PreviousStage_LastRestartDate}_stomate_forcing.nc, stomate_forcing.nc)" 
     656 
     657            # We Get the forcing file from the previous run of ORCHIDEE 
     658            ORCHIDEE_JobName=${LastJobName} 
     659            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}/${ORCHIDEE_JobName}/SBG/Restart/${ORCHIDEE_JobName}_${output_PreviousStage_LastRestartDate}_stomate_forcing.nc, stomate_forcing.nc)&" ${New_SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp 
     660            IGCM_sys_Mv sechiba.card.tmp ${New_SUBMIT_DIR}/COMP/sechiba.card 
     661 
     662            IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices IMPOSE_VEG ${spinup_UserChoices_impose_veg} 
     663            IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices LAND_USE ${spinup_UserChoices_land_use} 
    592664 
    593665            SPIN_OptionsStomate 
     
    610682            # For some jobs : 
    611683            if ( [ X${config_UserChoices_JobNumProcTot} != X ] && [ "${config_UserChoices_JobNumProcTot}" -gt 1 ] ) ; then 
    612                 IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot ${config_UserChoices_JobNumProcTot} 
    613684                gawk -- "{if (! match(\$0,/^# .Date.*/) ) { print \$0 } else { printf(\"BATCH_NUM_PROC_TOT=%d \\n\\n\",${config_UserChoices_JobNumProcTot}) ; print \$0 } }" \ 
    614685                    ${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_ 
    615686                IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName} 
    616687                chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName} 
    617                 if [ X"${config_UserChoices_JobRunOptions}" != X ] ; then 
    618                     sed -e "s/^JobRunOptions=.*/JobRunOptions=\'${config_UserChoices_JobRunOptions}\'/" ${New_SUBMIT_DIR}/config.card > temp.card 
    619                     IGCM_sys_Mv temp.card ${New_SUBMIT_DIR}/config.card  
    620                 fi 
    621688            fi 
    622689 
     
    694761            # !!! must not have been modified !!! 
    695762            SPIN_Cp_Job ${spinup_UserChoices_SubJobPath}/TESTSTOMATE ${ExtName} 
     763            IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot 1 
     764            gawk -- "{if (! match(\$0,/^# .Date.*/) ) { print \$0 } else { printf(\"BATCH_NUM_PROC_TOT=%d \\n\\n\",1) ; print \$0 } }" \ 
     765                ${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_ 
     766            IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName} 
     767            chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName} 
    696768 
    697769            # Always restart for teststomate 
     
    713785            # We Get the forcing file from the previous run of ORCHIDEE 
    714786            ORCHIDEE_JobName=${config_UserChoices_JobName}ORC_${iter} 
    715             IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/orchidee.card BoundaryFiles ListNonDel \ 
    716         "(${config_SBG_RestartPath}/${ORCHIDEE_JobName}/SBG/Restart/${ORCHIDEE_JobName}_${output_PreviousStage_LastRestartDate}_stomate_forcing.nc, stomate_forcing.nc), \\" 
    717  
     787            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}/${ORCHIDEE_JobName}/SBG/Restart/${ORCHIDEE_JobName}_${output_PreviousStage_LastRestartDate}_stomate_forcing.nc, stomate_forcing.nc)&" ${New_SUBMIT_DIR}/COMP/sechiba.card > sechiba.card.tmp 
     788            IGCM_sys_Mv sechiba.card.tmp ${New_SUBMIT_DIR}/COMP/sechiba.card 
     789 
     790            IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices IMPOSE_VEG ${spinup_UserChoices_impose_veg} 
     791            IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/sechiba.card UserChoices LAND_USE ${spinup_UserChoices_land_use} 
    718792            SPIN_OptionsStomate 
    719793 
     
    732806            # For some jobs : 
    733807            if ( [ X${config_UserChoices_JobNumProcTot} != X ] && [ "${config_UserChoices_JobNumProcTot}" -gt 1 ] ) ; then 
    734                 IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot ${config_UserChoices_JobNumProcTot} 
    735808                gawk -- "{if (! match(\$0,/^# .Date.*/) ) { print \$0 } else { printf(\"BATCH_NUM_PROC_TOT=%d \\n\\n\",${config_UserChoices_JobNumProcTot}) ; print \$0 } }" \ 
    736809                    ${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_ 
    737810                IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName} 
    738811                chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName} 
    739                 if [ X"${config_UserChoices_JobRunOptions}" != X ] ; then 
    740                     sed -e "s/^JobRunOptions=.*/JobRunOptions=\'${config_UserChoices_JobRunOptions}\'/" ${New_SUBMIT_DIR}/config.card > temp.card 
    741                     IGCM_sys_Mv temp.card ${New_SUBMIT_DIR}/config.card  
    742                 fi 
    743812            fi 
    744813 
     
    766835 
    767836            # Nb years for forcing FORCESOIL 
    768             ORCHIDEE_sed FORCESOIL_NB_YEAR ${PeriodLengthInYears} 
     837            STOMATE_sed FORCESOIL_NB_YEAR ${PeriodLengthInYears} 
    769838 
    770839            ;; 
     
    785854            # For some jobs : 
    786855            if ( [ X${config_UserChoices_JobNumProcTot} != X ] && [ "${config_UserChoices_JobNumProcTot}" -gt 1 ] ) ; then 
    787                 IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot ${config_UserChoices_JobNumProcTot} 
    788856                gawk -- "{if (! match(\$0,/^# .Date.*/) ) { print \$0 } else { printf(\"BATCH_NUM_PROC_TOT=%d \\n\\n\",${config_UserChoices_JobNumProcTot}) ; print \$0 } }" \ 
    789857                    ${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_ 
    790858                IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName} 
    791859                chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName} 
    792                 if [ X"${config_UserChoices_JobRunOptions}" != X ] ; then 
    793                     sed -e "s/^JobRunOptions=.*/JobRunOptions=\'${config_UserChoices_JobRunOptions}\'/" ${New_SUBMIT_DIR}/config.card > temp.card 
    794                     IGCM_sys_Mv temp.card ${New_SUBMIT_DIR}/config.card  
    795                 fi 
    796860            fi 
    797861 
     
    851915            # For some jobs : 
    852916            if ( [ X${config_UserChoices_JobNumProcTot} != X ] && [ "${config_UserChoices_JobNumProcTot}" -gt 1 ] ) ; then 
    853                 IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card UserChoices JobNumProcTot ${config_UserChoices_JobNumProcTot} 
    854917                gawk -- "{if (! match(\$0,/^# .Date.*/) ) { print \$0 } else { printf(\"BATCH_NUM_PROC_TOT=%d \\n\\n\",${config_UserChoices_JobNumProcTot}) ; print \$0 } }" \ 
    855918                    ${New_SUBMIT_DIR}/Job_${SubJobName} > ${New_SUBMIT_DIR}/Job_${SubJobName}_ 
    856919                IGCM_sys_Mv ${New_SUBMIT_DIR}/Job_${SubJobName}_ ${New_SUBMIT_DIR}/Job_${SubJobName} 
    857920                chmod u+x ${New_SUBMIT_DIR}/Job_${SubJobName} 
    858                 if [ X"${config_UserChoices_JobRunOptions}" != X ] ; then 
    859                     sed -e "s/^JobRunOptions=.*/JobRunOptions=\'${config_UserChoices_JobRunOptions}\'/" ${New_SUBMIT_DIR}/config.card > temp.card 
    860                     IGCM_sys_Mv temp.card ${New_SUBMIT_DIR}/config.card  
    861                 fi 
    862921            fi 
    863922 
     
    9411000    echo "cd ${New_SUBMIT_DIR}" >> ${RUN_DIR}/SubJob$$.ksh 
    9421001    echo "export SUBMIT_DIR=${New_SUBMIT_DIR}" >> ${RUN_DIR}/SubJob$$.ksh 
    943     echo "./Job_${SubJobName} > ${New_SUBMIT_DIR}/Script_${SubJobName}.1 </dev/null 2>&1" >> ${RUN_DIR}/SubJob$$.ksh 
     1002    echo "./Job_${SubJobName} > ${New_SUBMIT_DIR}/Script_${SubJobName}.000001 </dev/null 2>&1" >> ${RUN_DIR}/SubJob$$.ksh 
    9441003    echo "echo 'End of Subjob : ' \$( date )" >> ${RUN_DIR}/SubJob$$.ksh 
    9451004    echo "echo 'finish.'" >> ${RUN_DIR}/SubJob$$.ksh 
     
    10171076# we can move Previous Job in SPINUP save DIR. 
    10181077    if ( [ X${spinup_UserChoices_DEBUG_SPIN} = Xn ] && [ X${output_PreviousStage_LastStageName} != Xstart ] ) ; then 
    1019         IGCM_sys_RshPost <<-EOF 
    1020         \mv -f ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}${output_PreviousStage_LastExtName} ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}/SPIN/Output/ 
    1021 EOF 
    10221078        if ( [ X${spinup_UserChoices_CONSERVE} = Xn ] \ 
    10231079          && [ X${output_PreviousStage_LastStageName} != XSECINI ] \ 
    10241080          && [ X${output_PreviousStage_LastStageName} != XSECSTOINI ] ) ; then 
    1025             IGCM_sys_RshPost <<-EOF 
    1026         \rm -Rf ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}${output_PreviousStage_LastExtName}/*/Analyse/* 
    1027 EOF 
    1028 #        \rm -Rf ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}${output_PreviousStage_LastExtName}/*/Output/* 
     1081            IGCM_sys_RshArchive "rm -Rf ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}${output_PreviousStage_LastExtName}/*/Analyse/*" 
     1082            IGCM_sys_RshArchive "rm -Rf ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}${output_PreviousStage_LastExtName}/*/Output/*" 
    10291083        fi 
     1084 
     1085        IGCM_sys_RshArchive "mv -f ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}${output_PreviousStage_LastExtName} ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}/SPIN/Output/" 
    10301086    fi 
    10311087 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/SPINUP/config.card

    r65 r263  
    5151# Old component name for restart (if empty, use new name) 
    5252OldName= 
    53 #D- If you want to produce time series, this flag determines 
    54 #D- frequency of post-processing submission 
    55 TimeSeriesFrequency= NONE 
    56 #D- If you want to produce seasonal average, this flag determines 
    57 #D- the period of this average 
    58 SeasonalFrequency= NONE 
    5953 
    6054#D-- Surface BioGeochemistry ( STOMATE ) subjobs 
     
    6963# Old component name for restart (if empty, use new name) 
    7064OldName= 
     65 
     66#D-- Post-treatment options passed to SubJobs 
     67[SubJobPost] 
     68#D- Do we rebuild parallel output, this flag determines 
     69#D- frequency of rebuild submission 
     70RebuildFrequency=NONE 
     71#D- Do we rebuild parallel output from archive (use NONE to use SCRATCHDIR as buffer) 
     72RebuildFromArchive=NONE 
     73#D- If you want to produce time series, this flag determines 
     74#D- frequency of post-processing submission 
     75TimeSeriesFrequency= NONE 
     76#D- If you want to produce seasonal average, this flag determines 
     77#D- the period of this average 
     78SeasonalFrequency= NONE 
     79#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency 
     80#D- Usefull if you do not want to consider the first X simulation's years 
     81SeasonalFrequencyOffset=0 
     82 
    7183#======================================================================== 
    7284#======================================================================== 
     
    93105#D- frequency of rebuild submission 
    94106RebuildFrequency=NONE 
    95 #D- If you want to monitor variables, this flag determines 
    96 #D- frequency of post-processing submission 
    97 MonitoringFrequency=NONE 
     107#D- Do we rebuild parallel output from archive (use NONE to use SCRATCHDIR as buffer) 
     108RebuildFromArchive=NONE 
    98109#D- If you want to produce time series, this flag determines 
    99110#D- frequency of post-processing submission 
     
    102113#D- the period of this average 
    103114SeasonalFrequency= NONE 
    104 # 
    105 RebuildFromArchive=NONE 
     115#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency 
     116#D- Usefull if you do not want to consider the first X simulation's years 
     117SeasonalFrequencyOffset=0 
    106118 
    107119#======================================================================== 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/TESTSTOMATE/COMP/stomate.card

    r65 r263  
    1616 
    1717[ParametersFiles] 
    18 List=   () 
     18List=   (${SUBMIT_DIR}/PARAM/stomate.def, .) 
    1919 
    2020[RestartFiles] 
     
    2727 
    2828[OutputText] 
    29 List=   () 
     29List=   (used_stomate.def) 
    3030 
    3131[OutputFiles] 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/TESTSTOMATE/COMP/stomate.driver

    r65 r263  
    11#!/bin/ksh 
    22 
    3 #D- Driver du script pour ORCHIDEE 
     3#D- Driver du script pour STOMATE 
     4 
     5function STOMATE_sed 
     6{ 
     7    IGCM_debug_PushStack "STOMATE_sed" 
     8     
     9    sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
     10        stomate.def > stomate.def.tmp 
     11    RET=$? 
     12    echo "STOMATE_sed : ${1} ${2}" 
     13    \mv stomate.def.tmp stomate.def 
     14     
     15    IGCM_debug_PopStack "STOMATE_sed" 
     16    return $RET 
     17} 
    418 
    519#----------------------------------------------------------------- 
     
    6276    esac 
    6377 
    64     ORCHIDEE_sed STOMATE_OK_STOMATE y 
    65     ORCHIDEE_sed STOMATE_OK_CO2 y 
     78    STOMATE_sed STOMATE_OK_STOMATE y 
     79    STOMATE_sed STOMATE_OK_CO2 y 
    6680 
    67     ORCHIDEE_sed STOMATE_HIST_DT ${STOMATE_WRITE_STEP} 
    68     ORCHIDEE_sed STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL} 
     81    STOMATE_sed STOMATE_HIST_DT ${STOMATE_WRITE_STEP} 
     82    STOMATE_sed STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL} 
    6983    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then 
    7084        echo "STOMATE : without restart" 
    7185    else 
    72         ORCHIDEE_sed STOMATE_RESTART_FILEIN stomate_rest_in.nc 
     86        STOMATE_sed STOMATE_RESTART_FILEIN stomate_rest_in.nc 
    7387    fi 
    7488 
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/TESTSTOMATE/config.card

    r65 r263  
    1313#-- (<8 chars MAX for JobName) 
    1414JobName=TestSTO 
    15 LongName="teststomate" 
     15LongName="Please, explain here what is this simulation for" 
    1616TagName=OL2 
    1717#============================ 
     
    4444[ListOfComponents] 
    4545#D- For each component, Name of component, Tag of component 
    46 SRF= (orchidee, orchidee_1_9_5) 
    47 SBG= (stomate, orchidee_1_9_5) 
     46SRF= (sechiba, orchidee_1_9_5_1) 
     47SBG= (stomate, orchidee_1_9_5_1) 
    4848 
    4949#======================================================================== 
     
    8282#D- the period of this average 
    8383SeasonalFrequency=NONE 
     84#D- Offset for seasonal average first start dates ; same unit as SeasonalFrequency 
     85#D- Usefull if you do not want to consider the first X simulation's years 
     86SeasonalFrequencyOffset= 0 
    8487 
    8588#======================================================================== 
Note: See TracChangeset for help on using the changeset viewer.