Ignore:
Timestamp:
09/26/14 12:18:11 (10 years ago)
Author:
jgipsl
Message:

Update LMDZORINC_v6 config with modifications done on LMDZOR_6 et IPSLCM6.

Location:
CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/lmdz.driver

    r2330 r2346  
    11#!/bin/ksh 
    22#----------------------------------------------------------------- 
    3 function LMDZ_sed 
    4 { 
    5 # Usage : LMDZ_sed filedef var_name myvalue 
    6 #         In file filedef modify the line containing var_name=xxx into var_name=myvalue 
    7     IGCM_debug_PushStack "LMDZ_sed" 
    8      
    9     # Test if the fichier exist 
    10     if [ ! -f ${1} ] ; then 
    11         echo "WARNING : ${1} file does not exist. Following will not be done : LMDZ_sed : ${1} ${2} ${3}" 
    12         IGCM_debug_PopStack "LMDZ_sed" 
    13         return 
    14     fi 
    15  
    16     sed -e "s/^${2}\ *=.*/${2}= ${3}/" ${1} > ${1}.tmp 
    17     RET=$? 
    18     echo "LMDZ_sed : ${1} ${2} ${3}" 
    19     \mv ${1}.tmp ${1} 
    20  
    21     IGCM_debug_PopStack "LMDZ_sed" 
    22     return $RET 
    23 } 
    24 function LMDZ_sed_default 
    25 { 
    26 # Usage : LMDZ_sed_default filedef var_name 
    27 #         In file filedef modify the line  "var_name=xxx DEFAULT= myvalue" 
    28 #         into "var_name=myvalue" 
    29     IGCM_debug_PushStack "LMDZ_sed_default" 
    30  
    31     DefValue=$( grep ${2} ${1}  | awk -F"DEFAULT.=*" '{print $2}') 
    32  
    33     LMDZ_sed  ${1} ${2} $DefValue 
    34     IGCM_debug_PopStack "LMDZ_sed_default" 
    35     return $RET 
    36 } 
    37  
    38  
    393function ATM_Initialize 
    404{ 
     
    260224    ##   If forcing file exist in run directory, read values for the current year  
    261225    ##   and set in config.def. If not use the default value set in config.def 
     226 
     227    # Read value for solaire from file SOLARANDVOLCANOES.txt. If file not existing, take DEFAULT value from file.  
    262228    if [ -f SOLARANDVOLCANOES.txt ] ; then 
    263         IPCC_SOLAR=`grep Annee_${year} SOLARANDVOLCANOES.txt | awk -F= '{print $2}'` 
    264         if [ X"${IPCC_SOLAR}" = X ] ; then 
     229        value=`grep Annee_${year} SOLARANDVOLCANOES.txt | awk -F= '{print $2}'` 
     230        if [ X"${value}" = X ] ; then 
    265231            # The grep returned empty variable, stop execution 
    266232            IGCM_debug_Exit "The file SOLARANDVOLCANOES.txt do not contain the current year." 
    267233            IGCM_debug_Verif_Exit 
    268         else 
    269             # Set new variable in config.def file 
    270             LMDZ_sed config.def solaire     ${IPCC_SOLAR} 
    271         fi 
    272     else 
    273         LMDZ_sed_default config.def solaire 
    274     fi 
    275  
     234        fi 
     235    else 
     236        value=DEFAULT 
     237    fi 
     238    IGCM_comp_modifyDefFile nonblocker config.def solaire $value 
     239 
     240 
     241    # Read value for co2_ppm from file CO2.txt. If file not existing, take DEFAULT value from file.  
    276242    if [ -f CO2.txt ] ; then 
    277         IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 
    278         if [ X"${IPCC_CO2}" = X ] ; then 
     243        value=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 
     244        if [ X"${value}" = X ] ; then 
    279245            # The grep returned empty variable, stop execution 
    280246            IGCM_debug_Exit "The file CO2.txt do not contain the current year." 
    281247            IGCM_debug_Verif_Exit 
    282         else 
    283             # Set new variable in config.def file 
    284             LMDZ_sed config.def co2_ppm     ${IPCC_CO2} 
    285         fi 
    286     else 
    287         LMDZ_sed_default config.def co2_ppm 
    288     fi 
    289  
     248        fi 
     249    else 
     250        value=DEFAULT 
     251    fi 
     252    IGCM_comp_modifyDefFile nonblocker config.def co2_ppm $value 
     253 
     254 
     255    # Read value for CH4_ppb from file CH4.txt. If file not existing, take DEFAULT value from file.  
    290256    if [ -f CH4.txt ] ; then 
    291         IPCC_CH4=`grep Annee_${year} CH4.txt | awk -F= '{print $2}'` 
    292         if [ X"${IPCC_CH4}" = X ] ; then 
     257        value=`grep Annee_${year} CH4.txt | awk -F= '{print $2}'` 
     258        if [ X"${value}" = X ] ; then 
    293259            # The grep returned empty variable, stop execution 
    294260            IGCM_debug_Exit "The file CH4.txt do not contain the current year." 
    295261            IGCM_debug_Verif_Exit 
    296         else 
    297             # Set new variable in config.def file 
    298             LMDZ_sed config.def CH4_ppb     ${IPCC_CH4} 
    299         fi 
    300      else 
    301         LMDZ_sed_default config.def CH4_ppb 
    302     fi 
    303  
     262        fi 
     263    else 
     264        value=DEFAULT 
     265    fi 
     266    IGCM_comp_modifyDefFile nonblocker config.def CH4_ppb $value 
     267 
     268 
     269    # Read value for N2O_ppb from file N2O.txt. If file not existing, take DEFAULT value from file.  
    304270    if [ -f N2O.txt ] ; then 
    305         IPCC_N2O=`grep Annee_${year} N2O.txt | awk -F= '{print $2}'` 
    306         if [ X"${IPCC_N2O}" = X ] ; then 
     271        value=`grep Annee_${year} N2O.txt | awk -F= '{print $2}'` 
     272        if [ X"${value}" = X ] ; then 
    307273            # The grep returned empty variable, stop execution 
    308274            IGCM_debug_Exit "The file N2O.txt do not contain the current year." 
    309275            IGCM_debug_Verif_Exit 
    310         else 
    311             # Set new variable in config.def file 
    312             LMDZ_sed config.def N2O_ppb     ${IPCC_N2O} 
    313         fi 
    314     else 
    315         LMDZ_sed_default config.def N2O_ppb 
    316     fi 
    317  
     276        fi 
     277    else 
     278        value=DEFAULT 
     279    fi 
     280    IGCM_comp_modifyDefFile nonblocker config.def N2O_ppb $value 
     281 
     282    # Read value for CFC11_ppt from file CFC11.txt. If file not existing, take DEFAULT value from file.  
    318283    if [ -f CFC11.txt ] ; then 
    319         IPCC_CFC11=`grep Annee_${year} CFC11.txt | awk -F= '{print $2}'` 
    320         if [ X"${IPCC_CFC11}" = X ] ; then 
     284        value=`grep Annee_${year} CFC11.txt | awk -F= '{print $2}'` 
     285        if [ X"${value}" = X ] ; then 
    321286            # The grep returned empty variable, stop execution 
    322287            IGCM_debug_Exit "The file CFC11.txt do not contain the current year." 
    323288            IGCM_debug_Verif_Exit 
    324         else 
    325             # Set new variable in config.def file 
    326             LMDZ_sed config.def CFC11_ppt   ${IPCC_CFC11} 
    327         fi 
    328     else 
    329         LMDZ_sed_default config.def CFC11_ppt 
    330     fi 
    331  
     289        fi 
     290    else 
     291        value=DEFAULT 
     292    fi 
     293    IGCM_comp_modifyDefFile nonblocker config.def CFC11_ppt $value 
     294 
     295 
     296    # Read value for CFC12_ppt from file CFC12.txt. If file not existing, take DEFAULT value from file.  
    332297    if [ -f CFC12.txt ] ; then 
    333         IPCC_CFC12=`grep Annee_${year} CFC12.txt | awk -F= '{print $2}'` 
    334         if [ X"${IPCC_CFC12}" = X ] ; then 
     298        value=`grep Annee_${year} CFC12.txt | awk -F= '{print $2}'` 
     299        if [ X"${value}" = X ] ; then 
    335300            # The grep returned empty variable, stop execution 
    336301            IGCM_debug_Exit "The file CFC12.txt do not contain the current year." 
    337302            IGCM_debug_Verif_Exit 
    338         else 
    339             # Set new variable in config.def file 
    340             LMDZ_sed config.def CFC12_ppt   ${IPCC_CFC12} 
    341         fi 
    342     else 
    343         LMDZ_sed_default config.def CFC12_ppt 
    344     fi 
    345  
     303        fi 
     304    else 
     305        value=DEFAULT 
     306    fi 
     307    IGCM_comp_modifyDefFile nonblocker config.def CFC12_ppt $value 
     308 
     309 
     310    ## Coupling Time Step : Take value of FreqCoupling set in oasis.card or if it is not set, take default value 86400 
     311    LMDZ_t_coupl=${oasis_UserChoices_FreqCoupling:-86400} 
     312    IGCM_debug_Print 3 "LMDZ_t_coupl "   ${LMDZ_t_coupl} 
     313    IGCM_comp_modifyDefFile nonblocker config.def t_coupl   ${LMDZ_t_coupl}  
    346314 
    347315    ##-- Add special treatement for CARBON CYCLE 
     
    360328    ## output.def parameters 
    361329    #  columns in phys_output_filekeys refer to the filenames given in phys_out_filenames in output.def :   
    362     #                                            histmth       histday        histhf    histfh3h   histhf3hm   histstn 
    363     LMDZ_sed output.def phys_out_filekeys       "${ok_mensuel} ${ok_journe}   ${ok_hf}  ${ok_hf3h} ${ok_hf3hm} ${ok_stn}" 
    364     LMDZ_sed output.def ecrit_ISCCP ${LMDZ_ecrit_ISCCP} 
    365     LMDZ_sed output.def ok_cosp     ${LMDZ_COSP_OK} 
    366     LMDZ_sed output.def ok_mensuelCOSP  ${LMDZ_COSP_monthly} 
    367     LMDZ_sed output.def ok_journeCOSP   ${LMDZ_COSP_daily} 
    368     LMDZ_sed output.def ok_hfCOSP   ${LMDZ_COSP_hf} 
    369     LMDZ_sed output.def ok_histNMC  "${LMDZ_NMC_monthly} ${LMDZ_NMC_daily} ${LMDZ_NMC_hf}" 
     330    #                                            histmth       histday        histhf    histhf3h   histhf3hm   histstn 
     331    IGCM_comp_modifyDefFile nonblocker output.def phys_out_filekeys "${ok_mensuel} ${ok_journe}   ${ok_hf}  ${ok_hf3h} ${ok_hf3hm} ${ok_stn}" 
     332    IGCM_comp_modifyDefFile nonblocker output.def ecrit_ISCCP ${LMDZ_ecrit_ISCCP} 
     333    IGCM_comp_modifyDefFile nonblocker output.def ok_cosp     ${LMDZ_COSP_OK} 
     334    IGCM_comp_modifyDefFile nonblocker output.def ok_mensuelCOSP  ${LMDZ_COSP_monthly} 
     335    IGCM_comp_modifyDefFile nonblocker output.def ok_journeCOSP   ${LMDZ_COSP_daily} 
     336    IGCM_comp_modifyDefFile nonblocker output.def ok_hfCOSP   ${LMDZ_COSP_hf} 
     337    IGCM_comp_modifyDefFile nonblocker output.def ok_histNMC  "${LMDZ_NMC_monthly} ${LMDZ_NMC_daily} ${LMDZ_NMC_hf}" 
     338 
     339    # XIOS XML definition 
     340    # Default init : files are desactivated 
     341        IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .FALSE.  
     342        IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .FALSE.  
     343        IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .FALSE. 
     344#       IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .FALSE. 
     345#       IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .FALSE. 
     346        IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .FALSE. 
     347        IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .FALSE. 
     348        IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .FALSE. 
     349        IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .FALSE. 
     350        if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then 
     351    # Default output level : 5 
     352            IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_level 5  
     353            IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 5  
     354            IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 
     355#           IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_level 5 
     356#           IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_level 5 
     357            IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_level 5 
     358            IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_level 5 
     359            IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_level 5 
     360            IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_level 5 
     361     # Filling of XML files  
     362        if [ X${ok_mensuel} = Xy ] ; then 
     363            IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .TRUE.  
     364            IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_freq 1mo 
     365            IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth name histmth 
     366        fi 
     367        if [ X${ok_journe} = Xy ] ; then         
     368            IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .TRUE.  
     369            IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_freq 1d 
     370            IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday name histday 
     371            if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 
     372                IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 2 
     373            fi 
     374        fi 
     375        if [ X${ok_hf} = Xy ] ; then 
     376            IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .TRUE.  
     377            IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_freq 6h 
     378            IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf name histhf 
     379            if [ X${OutLevel} = Xlow ] ; then 
     380                IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 2 
     381            fi 
     382        fi       
     383#       if [ X${ok_hf3h} = Xy ] ; then 
     384#           IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .TRUE.  
     385#           IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_freq 3h 
     386#           IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h name histhf3h 
     387#       fi       
     388#       if [ X${ok_hf3hm} = Xy ] ; then 
     389#           IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .TRUE.  
     390#           IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_freq 3h 
     391#           IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm name histhf3hm 
     392#       fi 
     393        if [ X${ok_stn} = Xy ] ; then 
     394            IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .TRUE.  
     395            IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_freq 1800s 
     396            IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn name histstn 
     397        fi 
     398        if [ X${LMDZ_NMC_monthly} = Xy ] ; then 
     399            IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .TRUE.  
     400            IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_freq 1mo 
     401            IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC name histmthNMC 
     402        fi 
     403        if [ X${LMDZ_NMC_daily} = Xy ] ; then 
     404            IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .TRUE.  
     405            IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_freq 1d 
     406            IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC name histdayNMC 
     407        fi 
     408        if [ X${LMDZ_NMC_hf} = Xy ] ; then 
     409            IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .TRUE.  
     410            IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_freq 6h 
     411            IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC name histhfNMC 
     412        fi 
     413    fi 
    370414 
    371415    ## gcm.def parameters :  
    372     # Modification only for new physics 
    373     if [ X${LMDZ_Physics} = X"NPv3.1" ] ; then 
    374         LMDZ_sed gcm.def iphysiq     5 
    375     else 
    376         LMDZ_sed_default gcm.def iphysiq 
    377     fi 
     416    # Modification of variable iphysiq depending on the physics 
     417    if [ X${LMDZ_Physics} = X"AP" ] ; then 
     418        value=10 
     419    else 
     420        value=DEFAULT 
     421    fi 
     422    IGCM_comp_modifyDefFile nonblocker gcm.def iphysiq $value 
    378423 
    379424 
    380425    ## run.def parameters 
    381     LMDZ_sed run.def dayref   ${InitDay} 
    382     LMDZ_sed run.def nday     ${PeriodLengthInDays} 
    383     LMDZ_sed run.def raz_date ${RAZ_DATE} 
    384     LMDZ_sed run.def periodav ${LMDZ_periodav} 
    385     LMDZ_sed run.def adjust   ${LMDZ_adjust} 
     426    IGCM_comp_modifyDefFile blocker run.def dayref   ${InitDay} 
     427    IGCM_comp_modifyDefFile blocker run.def nday     ${PeriodLengthInDays} 
     428    IGCM_comp_modifyDefFile blocker run.def raz_date ${RAZ_DATE} 
     429    IGCM_comp_modifyDefFile blocker run.def periodav ${LMDZ_periodav} 
     430    IGCM_comp_modifyDefFile nonblocker run.def adjust   ${LMDZ_adjust} 
    386431 
    387432    # Set anneeref different for gcm and ce0l 
     
    390435    if [ -f create_etat0_limit* ] || [ -f ce0l* ] && [ ! -f lmdz.x ] ; then 
    391436        # for case ce0l : always take current year 
    392         LMDZ_sed run.def anneeref ${year} 
    393         LMDZ_sed run.def calend   ${CalendarTypeForCreate} 
     437        IGCM_comp_modifyDefFile blocker run.def anneeref ${year} 
     438        IGCM_comp_modifyDefFile blocker run.def calend   ${CalendarTypeForCreate} 
    394439    else 
    395440        # for case gcm : take first year of simulation 
    396         LMDZ_sed run.def anneeref ${InitYear} 
    397         LMDZ_sed run.def calend   ${CalendarTypeForLmdz} 
     441        IGCM_comp_modifyDefFile blocker run.def anneeref ${InitYear} 
     442        IGCM_comp_modifyDefFile blocker run.def calend   ${CalendarTypeForLmdz} 
    398443    fi 
    399444 
    400445    # Activate creation of file grilles_gcm.nc only at first period 
    401446    if [ ${CumulPeriod} -eq 1 ] ; then 
    402         LMDZ_sed run.def grilles_gcm_netcdf y 
    403     else 
    404         LMDZ_sed run.def grilles_gcm_netcdf n 
     447        IGCM_comp_modifyDefFile nonblocker run.def grilles_gcm_netcdf y 
     448    else 
     449        IGCM_comp_modifyDefFile nonblocker run.def grilles_gcm_netcdf n 
    405450    fi 
    406451 
     
    411456    if [ X${config_ListOfComponents_SRF} = Xorchidee ] ; then 
    412457        echo "Activate ORCHIDEE, set VEGET=y in run.def" 
    413         LMDZ_sed run.def VEGET y 
     458        IGCM_comp_modifyDefFile blocker run.def VEGET y 
    414459    else 
    415460        echo "No ORCHIDEE, set VEGET=n in run.def" 
    416         LMDZ_sed run.def VEGET n 
     461        IGCM_comp_modifyDefFile blocker run.def VEGET n 
    417462    fi 
    418463 
    419464    if [ X${config_ListOfComponents_CPL} = Xoasis ] ; then 
    420465        echo "Activate coupling to ocean, set type_ocean=couple in run.def" 
    421         LMDZ_sed run.def type_ocean couple 
     466        IGCM_comp_modifyDefFile blocker run.def type_ocean couple 
    422467    else 
    423468        echo "LMDZ is running in forced mode without ocean model, set type_ocean=force in run.def" 
    424         LMDZ_sed run.def type_ocean force 
     469        IGCM_comp_modifyDefFile blocker run.def type_ocean force 
    425470    fi 
    426471 
    427472    if [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
    428473        echo "Activate coupling to INCA, set type_trac=inca in run.def" 
    429         LMDZ_sed run.def type_trac inca 
     474        IGCM_comp_modifyDefFile blocker run.def type_trac inca 
    430475    elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 
    431476        echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 
    432         LMDZ_sed run.def type_trac repr 
    433         LMDZ_sed run.def config_inca none 
     477        IGCM_comp_modifyDefFile blocker run.def type_trac repr 
     478        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    434479    else 
    435480        echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 
    436         LMDZ_sed run.def type_trac lmdz 
    437         LMDZ_sed run.def config_inca none 
     481        IGCM_comp_modifyDefFile blocker run.def type_trac lmdz 
     482        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    438483    fi 
    439484 
     
    441486    # config.def : Activate direct radiative effect if ok_ade=y 
    442487    if [ ! X${lmdz_UserChoices_ok_ade} = X ]; then  
    443         LMDZ_sed config.def ok_ade ${lmdz_UserChoices_ok_ade} 
    444     else 
    445         LMDZ_sed config.def ok_ade n 
     488        IGCM_comp_modifyDefFile nonblocker config.def ok_ade ${lmdz_UserChoices_ok_ade} 
     489    else 
     490        IGCM_comp_modifyDefFile nonblocker config.def ok_ade n 
    446491    fi  
    447492 
    448493    # config.def : Activate indirect radiative effect if ok_aie=y 
    449494    if [ ! X${lmdz_UserChoices_ok_aie} = X ]; then  
    450         LMDZ_sed config.def ok_aie ${lmdz_UserChoices_ok_aie} 
    451     else 
    452         LMDZ_sed config.def ok_aie n 
     495        IGCM_comp_modifyDefFile nonblocker config.def ok_aie ${lmdz_UserChoices_ok_aie} 
     496    else 
     497        IGCM_comp_modifyDefFile nonblocker config.def ok_aie n 
    453498    fi  
    454499 
    455500    # config.def : Activate online aerosol coupled model if aerosol_couple=y 
    456501    if [ ! X${lmdz_UserChoices_aerosol_couple} = X ]; then  
    457         LMDZ_sed config.def aerosol_couple ${lmdz_UserChoices_aerosol_couple} 
    458     else 
    459         LMDZ_sed config.def aerosol_couple n 
     502        IGCM_comp_modifyDefFile nonblocker config.def aerosol_couple ${lmdz_UserChoices_aerosol_couple} 
     503    else 
     504        IGCM_comp_modifyDefFile nonblocker config.def aerosol_couple n 
    460505    fi  
    461506 
    462507    # config.def : Activate reading of ozone in climatology if read_climoz=2 
    463508    if [ ! X${lmdz_UserChoices_read_climoz} = X ]; then  
    464         LMDZ_sed config.def read_climoz ${lmdz_UserChoices_read_climoz} 
    465     else 
    466         LMDZ_sed config.def read_climoz 0        
     509        IGCM_comp_modifyDefFile nonblocker config.def read_climoz ${lmdz_UserChoices_read_climoz} 
     510    else 
     511        IGCM_comp_modifyDefFile nonblocker config.def read_climoz 0      
    467512    fi  
    468513 
     
    471516    # =5 => dust only =6 => all aerosol     
    472517    if [ ! X${lmdz_UserChoices_flag_aerosol} = X ]; then  
    473         LMDZ_sed config.def flag_aerosol ${lmdz_UserChoices_flag_aerosol} 
    474     else 
    475         LMDZ_sed config.def flag_aerosol 0 
     518        IGCM_comp_modifyDefFile nonblocker config.def flag_aerosol ${lmdz_UserChoices_flag_aerosol} 
     519    else 
     520        IGCM_comp_modifyDefFile nonblocker config.def flag_aerosol 0 
    476521    fi  
    477522 
    478523    # config.def : Activate calcul of Cloud droplet number concentration if ok_cdnc=y 
    479524    if [ ! X${lmdz_UserChoices_ok_cdnc} = X ]; then  
    480         LMDZ_sed config.def ok_cdnc ${lmdz_UserChoices_ok_cdnc} 
    481     else 
    482         LMDZ_sed config.def ok_cdnc n    
     525        IGCM_comp_modifyDefFile nonblocker config.def ok_cdnc ${lmdz_UserChoices_ok_cdnc} 
     526    else 
     527        IGCM_comp_modifyDefFile nonblocker config.def ok_cdnc n  
    483528    fi  
    484529 
    485530    # guide.def : Activate nudging if ok_guide=y set in lmdz.card 
    486531    if [ ! X${lmdz_UserChoices_ok_guide} = X ] ; then 
    487         LMDZ_sed guide.def ok_guide  ${lmdz_UserChoices_ok_guide} 
    488     else 
    489         LMDZ_sed guide.def ok_guide n 
     532        IGCM_comp_modifyDefFile nonblocker guide.def ok_guide  ${lmdz_UserChoices_ok_guide} 
     533    else 
     534        IGCM_comp_modifyDefFile nonblocker guide.def ok_guide n 
    490535    fi 
    491536 
     
    516561    fi 
    517562 
     563    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then 
    518564    # Add include of LMDZ context in iodef.xml 
    519565    # In iodef.xml add on next line after "COMPONENT CONTEXT" 
    520566    #  <context id="LMDZ" src="./context_lmdz.xml"/> 
    521     echo '<context id="LMDZ" src="./context_lmdz.xml"/>' > add.tmp 
    522     cp iodef.xml iodef.xml.tmp 
    523     sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
    524         iodef.xml.tmp > iodef.xml 
    525     rm iodef.xml.tmp add.tmp 
    526  
    527  
     567        echo '<context id="LMDZ" src="./context_lmdz.xml"/>' > add.tmp 
     568        cp iodef.xml iodef.xml.tmp 
     569        sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
     570            iodef.xml.tmp > iodef.xml 
     571        rm iodef.xml.tmp add.tmp 
     572    fi 
     573     
    528574    IGCM_debug_PopStack "ATM_Update" 
    529575} 
     
    638684    if [ ${lmdz_UserChoices_CARBON_CYCLE} = historical ] ; then 
    639685            # Modify co2_ppm in config.def only for historical run 
    640             # If not historical run, keep co2_ppm value set earlier by LMDZ_sed 
    641         LMDZ_sed config.def co2_ppm     ${CO2_ppm} 
     686            # If not historical run, keep co2_ppm value set earlier by IGCM_comp_modifyDefFile 
     687        IGCM_comp_modifyDefFile nonblocker config.def co2_ppm     ${CO2_ppm} 
    642688    fi 
    643689    IGCM_debug_PopStack "ATM_Carbon_Update" 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/orchidee.driver

    r2330 r2346  
    11#!/bin/ksh 
    2  
    32#D- Driver du script pour ORCHIDEE 
    4  
    5 function ORCHIDEE_sed 
    6 { 
    7     IGCM_debug_PushStack "ORCHIDEE_sed" 
    8      
    9     sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
    10         orchidee.def > orchidee.def.tmp 
    11     RET=$? 
    12     echo "ORCHIDEE_sed : ${1} ${2}" 
    13     \mv orchidee.def.tmp orchidee.def 
    14      
    15     IGCM_debug_PopStack "ORCHIDEE_sed" 
    16     return $RET 
    17 } 
    18  
    193#----------------------------------------------------------------- 
    204function SRF_Initialize 
     
    4731    IGCM_debug_PushStack "SRF_Update" 
    4832 
     33    # Activate STOMATE if the compontent SBG=stomate is set in config.card 
     34    if [ X${config_ListOfComponents_SBG} = Xstomate ] ; then 
     35        IGCM_comp_modifyDefFile blocker orchidee.def STOMATE_OK_STOMATE y 
     36    else 
     37        IGCM_comp_modifyDefFile blocker orchidee.def STOMATE_OK_STOMATE n 
     38    fi 
     39 
    4940    typeset SECHIBA_WRITE_STEP 
     41 
     42    if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     43        IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .FALSE.  
     44        IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 enabled .FALSE.  
     45        IGCM_comp_modifyDefFile nonblocker orchidee.def XIOS_ORCHIDEE_OK y 
     46    else 
     47        IGCM_comp_modifyDefFile nonblocker orchidee.def XIOS_ORCHIDEE_OK n 
     48    fi     
    5049 
    5150    SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' )  
     
    5453            WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 
    5554            PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    56             (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;; 
     55            (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 ))  
     56            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     57                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE.  
     58                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInYears}y 
     59                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history  
     60            fi 
     61            ;; 
    5762        1M) 
     63            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     64                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE.  
     65                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 1mo 
     66                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history  
     67            fi 
    5868            case ${config_UserChoices_PeriodLength} in 
    5969            *Y|*y) 
     
    7080        *M|*m)  
    7181            WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
     82            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     83                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE.  
     84                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInMonths}mo 
     85                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history  
     86            fi 
    7287            case ${config_UserChoices_PeriodLength} in 
    7388            *Y|*y) 
     
    8196            *) 
    8297                (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 
     98                if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     99                    IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE.  
     100                    IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${SECHIBA_WRITE_STEP}s 
     101                    IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 
     102                fi 
    83103                ;; 
    84104            esac 
    85105            ;; 
    86106        5D|5d)  
    87             (( SECHIBA_WRITE_STEP = 5 * 86400 )) ;; 
     107            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     108                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE.  
     109                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 5d 
     110                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history  
     111            fi 
     112            (( SECHIBA_WRITE_STEP = 5 * 86400 ))  
     113            ;; 
    88114        1D|1d)  
    89             (( SECHIBA_WRITE_STEP = 86400 )) ;; 
     115            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     116                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE.  
     117                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 1d 
     118                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history  
     119            fi 
     120            (( SECHIBA_WRITE_STEP = 86400 ))  
     121            ;; 
    90122        *s) 
    91123            WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 
     124            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     125                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE.  
     126                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s 
     127                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history  
     128            fi 
    92129            (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; 
    93130        *)  
     
    96133    esac 
    97134 
    98     ORCHIDEE_sed WRITE_STEP ${SECHIBA_WRITE_STEP} 
    99     ORCHIDEE_sed SECHIBA_HISTLEVEL ${orchidee_UserChoices_sechiba_LEVEL} 
     135#Use of XIOS ouputs only 
     136 
     137    if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     138        (( SECHIBA_WRITE_STEP = 0 )) 
     139    fi 
     140    IGCM_comp_modifyDefFile nonblocker orchidee.def WRITE_STEP ${SECHIBA_WRITE_STEP} 
     141    IGCM_comp_modifyDefFile nonblocker orchidee.def SECHIBA_HISTLEVEL ${orchidee_UserChoices_sechiba_LEVEL} 
    100142 
    101143    # Outputs HF in HISTFILE2 if required 
    102144    if [ X${SRF_ok_hf} = Xy ] ; then 
    103         ORCHIDEE_sed SECHIBA_HISTFILE2 y 
    104     else 
    105         ORCHIDEE_sed SECHIBA_HISTFILE2 n 
    106     fi 
    107     ORCHIDEE_sed SECHIBA_HISTLEVEL2 1 
    108     ORCHIDEE_sed WRITE_STEP2 10800.0 
     145        IGCM_comp_modifyDefFile nonblocker orchidee.def SECHIBA_HISTFILE2 y 
     146        if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     147            IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 enabled .TRUE.  
     148            IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 output_freq 10800s 
     149            IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 name sechiba_out_2 
     150        fi 
     151    else 
     152        IGCM_comp_modifyDefFile nonblocker orchidee.def SECHIBA_HISTFILE2 n 
     153    fi 
     154    IGCM_comp_modifyDefFile nonblocker orchidee.def SECHIBA_HISTLEVEL2 1 
     155    IGCM_comp_modifyDefFile nonblocker orchidee.def WRITE_STEP2 10800.0 
    109156 
    110157    if ( [ ${CumulPeriod} -ne 1 ] || [ "${config_SRF_Restart}" != "n" ] ) ; then 
    111         ORCHIDEE_sed SECHIBA_restart_in sechiba_rest_in.nc 
    112     else 
    113         ORCHIDEE_sed SECHIBA_restart_in NONE 
     158        IGCM_comp_modifyDefFile blocker orchidee.def SECHIBA_restart_in sechiba_rest_in.nc 
     159    else 
     160        IGCM_comp_modifyDefFile blocker orchidee.def SECHIBA_restart_in NONE 
    114161    fi 
    115162 
    116163# Modify in orchidee.def VEGET_UPDATE and LAND_COVER_CHANGE if they are set in orchidee.card section UserChoices 
    117164    if [ ! X${orchidee_UserChoices_VEGET_UPDATE} = X ] ; then 
    118         ORCHIDEE_sed VEGET_UPDATE   ${orchidee_UserChoices_VEGET_UPDATE} 
    119     else 
    120         ORCHIDEE_sed VEGET_UPDATE 0Y 
     165        IGCM_comp_modifyDefFile blocker orchidee.def VEGET_UPDATE   ${orchidee_UserChoices_VEGET_UPDATE} 
     166    else 
     167        IGCM_comp_modifyDefFile blocker orchidee.def VEGET_UPDATE 0Y 
    121168    fi 
    122169    if [ ! X${orchidee_UserChoices_LAND_COVER_CHANGE} = X ] ; then 
    123         ORCHIDEE_sed LAND_COVER_CHANGE ${orchidee_UserChoices_LAND_COVER_CHANGE} 
    124     else 
    125         ORCHIDEE_sed LAND_COVER_CHANGE n 
     170        IGCM_comp_modifyDefFile blocker orchidee.def LAND_COVER_CHANGE ${orchidee_UserChoices_LAND_COVER_CHANGE} 
     171    else 
     172        IGCM_comp_modifyDefFile blocker orchidee.def LAND_COVER_CHANGE n 
    126173    fi 
    127174 
     
    130177 
    131178 
     179    if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
    132180    # Add include of orchidee context in iodef.xml 
    133181    # In iodef.xml add on next line after "COMPONENT CONTEXT" 
    134182    #  <context id="orchidee" src="./context_orchidee.xml"/> 
    135     echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp 
    136     cp iodef.xml iodef.xml.tmp 
    137     sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
    138         iodef.xml.tmp > iodef.xml 
    139     rm iodef.xml.tmp add.tmp 
    140  
     183        echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp 
     184        cp iodef.xml iodef.xml.tmp 
     185        sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
     186            iodef.xml.tmp > iodef.xml 
     187        rm iodef.xml.tmp add.tmp 
     188    fi 
    141189 
    142190    IGCM_debug_PopStack "SRF_Update" 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/stomate.driver

    r2330 r2346  
    2020    typeset STOMATE_WRITE_STEP 
    2121 
     22    if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     23        IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .FALSE.  
     24        IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .FALSE.  
     25    fi    
    2226    case ${config_SBG_WriteFrequency} in 
    2327        *Y|*y)  
    2428            WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 
    2529            PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    26             (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;; 
     30            (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears ))  
     31            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     32                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE.  
     33                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInYears}y 
     34                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history  
     35                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE.  
     36                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInYears}y 
     37                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history  
     38 
     39            fi 
     40            ;; 
    2741        1M|1m)  
     42            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     43                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE.  
     44                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 1mo 
     45                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history  
     46                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE.  
     47                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 1mo 
     48                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history  
     49            fi 
    2850            case ${config_UserChoices_PeriodLength} in 
    2951            *Y|*y) 
     
    3961        *M|*m)  
    4062            WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
     63            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     64                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE.  
     65                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInMonths}mo 
     66                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history  
     67                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE.  
     68                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInMonths}mo 
     69                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history  
     70            fi 
    4171            case ${config_UserChoices_PeriodLength} in 
    4272            *Y|*y) 
     
    4979                ;; 
    5080            *) 
    51                 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 
     81                (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) ))  
     82                if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     83                    IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE.  
     84                    IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${STOMATE_WRITE_STEP}s 
     85                    IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 
     86                    IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE.  
     87                    IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${STOMATE_WRITE_STEP}s 
     88                    IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 
     89                fi 
     90                ;; 
    5291            esac 
    5392            ;; 
    5493        5D|5d)  
    55             (( STOMATE_WRITE_STEP = 5 )) ;; 
     94            (( STOMATE_WRITE_STEP = 5 )) 
     95            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     96                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE.  
     97                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 5d 
     98                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history  
     99                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE.  
     100                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 5d 
     101                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history  
     102            fi 
     103            ;; 
    56104        1D|1d)  
    57             (( STOMATE_WRITE_STEP = 1 )) ;; 
     105            (( STOMATE_WRITE_STEP = 1 ))  
     106            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     107                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE.  
     108                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 1d 
     109                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history  
     110                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE.  
     111                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 1d 
     112                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history  
     113            fi 
     114            ;; 
    58115        *s) 
    59116            WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' ) 
     117            if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     118                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE.  
     119                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s 
     120                IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history  
     121                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE.  
     122                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInSeconds}s 
     123                IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history  
     124            fi 
    60125            (( STOMATE_WRITE_STEP = 1 )) ;; 
    61126        *)  
     
    64129    esac 
    65130 
    66     ORCHIDEE_sed STOMATE_OK_STOMATE y 
    67131 
    68     ORCHIDEE_sed STOMATE_HIST_DT ${STOMATE_WRITE_STEP} 
    69     ORCHIDEE_sed STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL} 
     132#Use of XIOS library only 
     133 
     134    if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 
     135        (( STOMATE_WRITE_STEP = 0 )) 
     136    fi 
     137 
     138    IGCM_comp_modifyDefFile nonblocker orchidee.def STOMATE_HIST_DT ${STOMATE_WRITE_STEP} 
     139    IGCM_comp_modifyDefFile nonblocker orchidee.def STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL} 
    70140 
    71141    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then 
    72142        echo "STOMATE : without restart" 
    73         ORCHIDEE_sed STOMATE_RESTART_FILEIN NONE 
     143        IGCM_comp_modifyDefFile blocker orchidee.def STOMATE_RESTART_FILEIN NONE 
    74144    else 
    75         ORCHIDEE_sed STOMATE_RESTART_FILEIN stomate_rest_in.nc 
     145        IGCM_comp_modifyDefFile blocker orchidee.def STOMATE_RESTART_FILEIN stomate_rest_in.nc 
    76146    fi 
    77147 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/xios.driver

    r2330 r2346  
    11#!/bin/ksh 
    2  
    32#----------------------------------- 
    43function IOS_Initialize 
     
    1716 
    1817    echo UPDATE IOS !!! 
    19  
    20     sed -e 's/<variable id="using_server"              type="boolean">false/<variable id="using_server" type="boolean">true/' iodef.xml > iodef.xml.tmp 
    21     IGCM_sys_Mv iodef.xml.tmp iodef.xml 
     18# Activate server mode 
     19    IGCM_comp_modifyXmlfile force iodef.xml using_server NONE true 
     20# If lmdz_UserChoices_XIOS=y add LMDZ as component id : 
     21    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then 
     22        IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx 
     23    fi  
    2224    if [ -f namcouple ] ; then 
    23         sed -e "s/2  lmdz.x oceanx/3 lmdz.x oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp  
     25        sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp  
    2426        IGCM_sys_Mv namcouple.tmp namcouple 
    2527    fi 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/PARAM/config.def_L19

    r2330 r2346  
    33##  Soil Model  ou non                
    44soil_model=y 
    5  
     5## Pas de temps de couplage (s). 
     6t_coupl=_AUTO_ 
    67## Nombre  d'appels des routines de rayonnements ( par jour)                  
    78nbapp_rad=12 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/PARAM/config.def_actuel

    r2330 r2346  
    33##  Soil Model  ou non                
    44soil_model=y 
     5## Pas de temps de couplage (s). 
     6t_coupl=_AUTO_ 
    57 
    68## Nombre  d'appels des routines de rayonnements ( par jour)                  
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/PARAM/config.def_annuel

    r2330 r2346  
    33##  Soil Model  ou non                
    44soil_model=y 
     5## Pas de temps de couplage (s). 
     6t_coupl=_AUTO_ 
    57 
    68## Nombre  d'appels des routines de rayonnements ( par jour)                  
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/PARAM/config.def_preind

    r2330 r2346  
    11##  Cycle diurne  ou non                  
    22cycle_diurne=y 
     3 
     4## Pas de temps de couplage (s).  
     5t_coupl=_AUTO_ 
     6 
    37##  Soil Model  ou non                
    48soil_model=y 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/PARAM/iodef.xml

    r2330 r2346  
    1212  <!-- =========================================================================================================== --> 
    1313  <context id="xios"> 
     14 
    1415    <variable_definition> 
    15       <variable_group id="buffer"> 
    16             buffer_size = 80000000 
    17             buffer_server_factor_size = 2 
    18          </variable_group> 
    19       <variable_group id="parameters"> 
    20         <variable id="using_server" type="boolean">false</variable> 
    21         <variable id="info_level" type="int">0</variable> 
    22       </variable_group> 
    23     </variable_definition> 
     16         
     17     <!-- We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) --> 
     18          <variable id="buffer_size"               type="integer">50000000</variable> 
     19          <variable id="buffer_server_factor_size" type="integer">2</variable> 
     20          <variable id="info_level"                type="integer">1</variable> 
     21          <variable id="using_server"              type="boolean">false</variable> 
     22          <variable id="using_oasis"               type="boolean">false</variable> 
     23          <variable id="oasis_codes_id"            type="string" >oceanx</variable> 
     24         
     25      </variable_definition> 
     26                
    2427  </context> 
    25  
    2628 
    2729  <!-- =========================================================================================================== --> 
    2830  <!-- COMPONENT CONTEXT : the model components context will be add automatically by the comp.driver               --> 
    29  
    30  
     31   
    3132</simulation> 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/PARAM/orchidee.def_CWRR

    r2330 r2346  
    318318# Activate STOMATE? 
    319319# set to TRUE if STOMATE is to be activated 
    320 # STOMATE_OK_STOMATE=_AUTO_ : will be set to y if stomate component SBG is activated in config.card 
    321 STOMATE_OK_STOMATE = n 
     320# STOMATE_OK_STOMATE will be set to y or n by orchidee.driver depending on activation of stomate component SBG in config.card 
     321STOMATE_OK_STOMATE = _AUTO_  
    322322# default = n 
    323323 
     
    893893# Use XIOS for writing diagnostics file 
    894894# defulat = n 
    895 XIOS_ORCHIDEE_OK=y 
    896 #************************************************************************** 
     895XIOS_ORCHIDEE_OK = _AUTO_ 
     896#************************************************************************** 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/PARAM/orchidee.def_Choi

    r2330 r2346  
    318318# Activate STOMATE? 
    319319# set to TRUE if STOMATE is to be activated 
    320 # STOMATE_OK_STOMATE=_AUTO_ : will be set to y if stomate component SBG is activated in config.card 
    321 STOMATE_OK_STOMATE = n 
     320# STOMATE_OK_STOMATE will be set to y or n by orchidee.driver depending on activation of stomate component SBG in config.card 
     321STOMATE_OK_STOMATE = _AUTO_  
    322322# default = n 
    323323 
     
    893893# Use XIOS for writing diagnostics file 
    894894# defulat = n 
    895 XIOS_ORCHIDEE_OK=y 
    896 #************************************************************************** 
     895XIOS_ORCHIDEE_OK = _AUTO_ 
     896#************************************************************************** 
Note: See TracChangeset for help on using the changeset viewer.