Ignore:
Timestamp:
2011-06-17T16:55:45+02:00 (13 years ago)
Author:
didier.solyga
Message:

Forget to add ENSEMBLE from the trunk version to the merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_EXT/ORCHIDEE_OL/FLUXNET/Job_FLUXNET_validation

    r65 r259  
    212212 
    213213    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices DRIVER_NORESTART y 
     214    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices DRIVER_TIMELENGTH n 
    214215 
    215216    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices duree_nostomate $( correct_duree ${fluxnet_SPINUP_duree_nostomate} ${TIME_YEAR} ) 
     
    225226 
    226227    # TimeSeries : ALMAOUTPUT for SECHIBA 
    227  
    228 # WARNING : You can use this first option if you set CONSERVE=y in fluxnet.card 
     228    typeset option 
     229    for option in ${config_SubJobPost[*]} ; do 
     230        eval value=\${config_SubJobPost_${option}} 
     231        eval echo ${option} ${value} 
     232        if [ X${value} != X ] ; then 
     233            eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SubJobPost ${option} \${config_SubJobPost_${option}} 
     234        fi 
     235    done 
    229236#    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF TimeSeriesFrequency ${TIME_YEAR}Y 
    230     eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF TimeSeriesFrequency NONE 
     237#    eval IGCM_card_WriteOption ${New_SUBMIT_DIR}/config.card SRF TimeSeriesFrequency NONE 
    231238    set -A sechiba_TimeSeriesVars2D -- nobiofrac SWnet LWnet Qh Qle Qg Qf DelSurfHeat DelColdCont Snowf Rainf Evap \ 
    232239                                     Qs Qsb Qsm DelSoilMoist DelSWE DelIntercept AvgSurfT RadT Albedo SWE SoilMoist SoilWet SoilTemp PotEvap \ 
     
    247254 
    248255 
    249     # modification on orchidee.def 
    250     IGCM_sys_Cp ${SUBMIT_DIR}/orchidee.def ${New_SUBMIT_DIR}/PARAM/orchidee.def 
     256    # modification on parameter files 
     257    IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/sechiba.def ${New_SUBMIT_DIR}/PARAM/sechiba.def 
     258    IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/stomate.def ${New_SUBMIT_DIR}/PARAM/stomate.def 
     259    IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/driver.def ${New_SUBMIT_DIR}/PARAM/driver.def 
    251260 
    252261    eval first_option=${fluxnet_SubJobParams[0]} > /dev/null 2>&1 
     
    255264        eval first_option=${spinup_SubJobParams[0]} > /dev/null 2>&1 
    256265             
    257         typeset option option_ 
     266        typeset option option_ PARAM_FILE 
    258267        for option in ${fluxnet_SubJobParams[*]} ; do 
    259             eval echo "${option}="\${fluxnet_SubJobParams_${option}} 
    260             eval ORCHIDEE_sed ${option} \${fluxnet_SubJobParams_${option}} 
     268            PARAM_FILE=$( echo ${option} | awk -F_ '{print $1}' ) 
     269            echo "For parameter file ${PARAM_FILE}.def" 
     270            option_=$( echo ${option} | sed -e "s/${PARAM_FILE}_//" ) 
     271            eval echo "${option_}="\${fluxnet_SubJobParams_${option}} 
     272            case ${PARAM_FILE} in 
     273                sechiba) 
     274                    eval SECHIBA_sed ${option_} \${fluxnet_SubJobParams_${option}} 
     275                    ;; 
     276                stomate) 
     277                    eval STOMATE_sed ${option_} \${fluxnet_SubJobParams_${option}} 
     278                    ;; 
     279                driver) 
     280                    eval DRIVER_sed ${option_} \${fluxnet_SubJobParams_${option}} 
     281                    ;; 
     282            esac 
    261283 
    262284            if [ X${first_option} != X"Error:" ] ; then 
     
    271293 
    272294    # Replace vegetation 
    273     eval ORCHIDEE_sed IMPOSE_VEG y 
    274  
    275     ipft=1 
    276     while [ $ipft -lt 14 ] ; do 
    277         if [ $ipft -lt 10 ] ; then 
    278             numpft=0${ipft} 
    279         else 
    280             numpft=${ipft} 
    281         fi 
    282         ORCHIDEE_sed SECHIBA_VEG__${numpft} ${fluxnet_FLUXNET_Sites[$(( index + ColumnPFT + ipft - 1 )) ]} 
    283         ORCHIDEE_sed SECHIBA_VEGMAX__${numpft} ${fluxnet_FLUXNET_Sites[$(( index + ColumnPFT + ipft - 1 )) ]} 
    284         ORCHIDEE_sed SECHIBA_LAI__${numpft} ${fluxnet_FLUXNET_Sites[$(( index + ColumnLAI + ipft - 1 )) ]} 
    285         let ipft=ipft+1 
     295    IGCM_card_WriteOption ${New_SUBMIT_DIR}/COMP/spinup.card UserChoices impose_veg y 
     296 
     297    (( iphys = 0 )) 
     298    while [ $iphys -lt ${fluxnet_FLUXNET_NbSitesParam} ] ; do 
     299         
     300        # Detect if physical parameter has  
     301        #  array description or line per PFT description in the parameter file 
     302        SearchParam="" 
     303        ${fluxnet_FLUXNET_CompSitesParam[${iphys}]}_grep ${fluxnet_FLUXNET_NameSitesParam[${iphys}]} 
     304 
     305        case ${SearchParam} in 
     306            undefined) 
     307                echo "ERROR : parameter ${fluxnet_FLUXNET_NameSitesParam[${iphys}]} doen't exist in ${fluxnet_FLUXNET_CompSitesParam[${iphys}]} parameter file !" 
     308                echo "You must correct NameSiteParam option in fluxnet.card file or add new parameter in component.def file" 
     309                echo "We must STOP here." 
     310                exit 1 
     311                ;; 
     312            line) 
     313                ipft=1 
     314                while [ $ipft -le ${NbPFTs} ] ; do 
     315                    if [ $ipft -lt 10 ] ; then 
     316                        numpft=0${ipft} 
     317                    else 
     318                        numpft=${ipft} 
     319                    fi 
     320             
     321                    ${fluxnet_FLUXNET_CompSitesParam[${iphys}]}_sed ${fluxnet_FLUXNET_NameSitesParam[${iphys}]}__${numpft} ${fluxnet_FLUXNET_Sites[$(( index + 4 + ( iphys * NbPFTs ) + ipft - 1 )) ]} 
     322                    (( ipft = ipft + 1 )) 
     323                done 
     324                ;; 
     325            vector) 
     326                unset ValueSiteParams 
     327                ipft=0 
     328                while [ $ipft -lt ${NbPFTs} ] ; do 
     329                    ValueSiteParams[${ipft}]=${fluxnet_FLUXNET_Sites[$(( index + 4 + ( iphys * NbPFTs ) + ipft - 1 )) ]} 
     330                    (( ipft = ipft + 1 )) 
     331                done 
     332                ${fluxnet_FLUXNET_CompSitesParam[${iphys}]}_sed ${fluxnet_FLUXNET_NameSitesParam[${iphys}]} "${ValueSiteParams[*]}" 
     333                ;; 
     334        esac 
     335 
     336        (( iphys = iphys + 1 )) 
    286337    done 
    287338 
Note: See TracChangeset for help on using the changeset viewer.