Changeset 4934 for CONFIG


Ignore:
Timestamp:
02/13/20 15:22:03 (4 years ago)
Author:
acosce
Message:

merge with LMDZOR_v6.2 configuration rev [4861] and [4915] to [4918] in GENERAL/DRIVER GENERAL/PARAM EXPERIMENTS/LMDZOR EXPERIMENTS/LMDZ

Location:
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZ/CREATE_amip/config.card

    r4625 r4934  
    6969#D-- ATM - 
    7070[ATM] 
    71 # 
    72 WriteFrequency="1Y" 
    7371# If config_Restarts_OverRule == 'n' all params are read 
    7472Restart= n 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZ/CREATE_clim_360d/config.card

    r4625 r4934  
    6969#D-- ATM - 
    7070[ATM] 
    71 # 
    72 WriteFrequency="1Y" 
    7371# If config_Restarts_OverRule == 'n' all params are read 
    7472Restart= n 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZOR/amip/COMP/lmdz.card

    r4789 r4934  
    3737ByPass_hgardfou_mats=n 
    3838 
    39 # Set OutLevel to choose the level of output for LMDZ 
    40 # OutLevel=low/medium/high 
    41 OutLevel=low 
    42  
    43 # Set COSP activation and output frequency (monthly, daily, HF) = y/n 
    44 LMDZ_COSP_OK=y 
    45 LMDZ_COSP_monthly=n 
    46 LMDZ_COSP_daily=n 
    47 LMDZ_COSP_hf=n 
    48  
    49 # Set NMC output frequency (monthly, daily, HF) = y/n 
    50 LMDZ_NMC_monthly=n 
    51 LMDZ_NMC_daily=n 
    52 LMDZ_NMC_hf=n 
    53  
    5439# Nugding : ok_guide=y/n 
    5540# If ok_guide=y, add nudging files(u.nc, v.nc, hur.nc,...) in BoundaryFiles section below. 
    5641ok_guide=n 
     42 
     43# Specify which output file to activate and at which output_level 
     44# Use an integer to specify the output level or NONE if to deactivate the file 
     45# output_level_filename=1     : activate the corresponding file with low output level 
     46# output_level_filename=10    : activate the corresponding file with high output level 
     47# output_level_filename=NONE  : the file will not be written 
     48output_level_histmth = 5 
     49output_level_histday = NONE 
     50output_level_histhf  = NONE 
     51output_level_histmthNMC = NONE 
     52output_level_histdayNMC = NONE 
     53output_level_histhfNMC  = NONE 
     54output_level_histstrataer = NONE 
     55output_level_histdaystrataer = NONE 
     56output_level_histstn      = NONE 
     57 
     58# Activate COSP in config.def and set corresponding output files 
     59LMDZ_COSP_OK=y 
     60output_level_histmthCOSP = NONE 
     61output_level_histdayCOSP = NONE 
     62output_level_histhfCOSP  = NONE 
    5763 
    5864[InitialStateFiles] 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZOR/amip/config.card

    r4625 r4934  
    8080#D-- ATM - 
    8181[ATM] 
    82 WriteFrequency="1M" 
    8382# If config_Restarts_OverRule == 'n' next 4 params are read 
    8483Restart= n 
     
    9392#D-- SRF - 
    9493[SRF] 
    95 # WriteFrequency is not used any more for ORCHIDEE  
    96 # Output files are now managed in orchidee.card  
    97 WriteFrequency="" 
    9894# If config_Restarts_OverRule == 'n' next 4 params are read 
    9995Restart= n 
     
    108104#D-- SBG - STOMATE 
    109105[SBG] 
    110 # WriteFrequency is not used any more for ORCHIDEE  
    111 # Output files are now managed in stomate.card  
    112 WriteFrequency="" 
    113106# If config_Restarts_OverRule == 'n' next 4 params are read 
    114107Restart= n 
     
    123116#D-- IOS - 
    124117[IOS] 
    125 WriteFrequency="" 
    126118# If config_Restarts_OverRule == 'n' next 4 params are read 
    127119Restart= n 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZOR/clim_pdControl/COMP/lmdz.card

    r4789 r4934  
    3737ByPass_hgardfou_mats=n 
    3838 
    39 # Set OutLevel to choose the level of output for LMDZ 
    40 # OutLevel=low/medium/high 
    41 OutLevel=low 
    42  
    43 # Set COSP activation and output frequency (monthly, daily, HF) = y/n 
    44 LMDZ_COSP_OK=y 
    45 LMDZ_COSP_monthly=n 
    46 LMDZ_COSP_daily=n 
    47 LMDZ_COSP_hf=n 
    48  
    49 # Set NMC output frequency (monthly, daily, HF) = y/n 
    50 LMDZ_NMC_monthly=n 
    51 LMDZ_NMC_daily=n 
    52 LMDZ_NMC_hf=n 
    53  
    5439# Nugding : ok_guide=y/n 
    5540# If ok_guide=y, add nudging files(u.nc, v.nc, hur.nc,...) in BoundaryFiles section below. 
    5641ok_guide=n 
     42 
     43# Specify which output file to activate and at which output_level 
     44# Use an integer to specify the output level or NONE if to deactivate the file 
     45# output_level_filename=1     : activate the corresponding file with low output level 
     46# output_level_filename=10    : activate the corresponding file with high output level 
     47# output_level_filename=NONE  : the file will not be written 
     48output_level_histmth = 5 
     49output_level_histday = NONE 
     50output_level_histhf  = NONE 
     51output_level_histmthNMC = NONE 
     52output_level_histdayNMC = NONE 
     53output_level_histhfNMC  = NONE 
     54output_level_histstrataer = NONE 
     55output_level_histdaystrataer = NONE 
     56output_level_histstn      = NONE 
     57 
     58# Activate COSP in config.def and set corresponding output files 
     59LMDZ_COSP_OK=y 
     60output_level_histmthCOSP = NONE 
     61output_level_histdayCOSP = NONE 
     62output_level_histhfCOSP  = NONE 
    5763 
    5864[InitialStateFiles] 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZOR/clim_pdControl/config.card

    r4625 r4934  
    8080#D-- ATM - 
    8181[ATM] 
    82 WriteFrequency="1M" 
    8382# If config_Restarts_OverRule == 'n' next 4 params are read 
    8483Restart= n 
     
    9392#D-- SRF - 
    9493[SRF] 
    95 # WriteFrequency is not used any more for ORCHIDEE  
    96 # Output files are now managed in orchidee.card  
    97 WriteFrequency="" 
    9894# If config_Restarts_OverRule == 'n' next 4 params are read 
    9995Restart= n 
     
    108104#D-- SBG - STOMATE 
    109105[SBG] 
    110 # WriteFrequency is not used any more for ORCHIDEE  
    111 # Output files are now managed in stomate.card  
    112 WriteFrequency="" 
    113106# If config_Restarts_OverRule == 'n' next 4 params are read 
    114107Restart= n 
     
    123116#D-- IOS - 
    124117[IOS] 
    125 WriteFrequency="" 
    126118# If config_Restarts_OverRule == 'n' next 4 params are read 
    127119Restart= n 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/DRIVER/lmdz.driver

    r4789 r4934  
    4848    ConfType=${lmdz_UserChoices_ConfType} 
    4949 
    50     ##- LMDZ output level, to be set in lmdz.card 
    51     if [ X${lmdz_UserChoices_OutLevel} = X ] ; then 
    52         # OutLevel is not set. Take default value low. 
    53         OutLevel=low 
    54     else 
    55         OutLevel=${lmdz_UserChoices_OutLevel} 
    56     fi 
    57  
    58     ##-- Output frequency purpose .... 
    59     ##--  Initialisation  .... 
    60     ok_mensuel=.FALSE. 
    61     ok_journe=.FALSE. 
    62     ok_hf=.FALSE. 
    63     ok_hf3h=.FALSE. 
    64     ok_hf3hm=.FALSE. 
    65     ok_stn=.FALSE. 
    66  
    67  
    68     case ${config_UserChoices_PeriodLength} in 
    69         1Y|1y|1M|1m) ok_mensuel=.TRUE. ;; 
    70         5D|5d|1D|1d) ok_journe=.TRUE. ;; 
    71     esac 
    72  
    73     for frequency in ${config_ATM_WriteFrequency} ; do 
    74         case ${frequency} in 
    75             1M|1m) ok_mensuel=.TRUE. ;; 
    76         esac 
    77         case ${frequency} in 
    78             5D|5d|1D|1d) ok_journe=.TRUE. ;; 
    79         esac 
    80         case ${frequency} in 
    81             HF|hf) ok_hf=.TRUE. ;; 
    82         esac 
    83         case ${frequency} in  
    84             HF3h|hf3h) ok_hf3h=.TRUE. ;; 
    85         esac 
    86         case ${frequency} in  
    87             HF3hm|hf3hm) ok_hf3hm=.TRUE. ;; 
    88         esac 
    89         case ${frequency} in 
    90             STN|stn) ok_stn=.TRUE. ;; 
    91         esac 
    92     done 
    93  
    94  
    95 ##  Read LMDZ_COSP_OK in lmdz.card 
    96     if [ X${lmdz_UserChoices_LMDZ_COSP_OK} = Xy ] ; then 
    97         ##  LMDZ_COSP_OK=y, now read all other COSP variables 
    98         ##  Read LMDZ_COSP_monthly in lmdz.card 
    99         if [ X${lmdz_UserChoices_LMDZ_COSP_monthly} = Xy ] ; then 
    100             LMDZ_COSP_monthly=.TRUE. 
    101         else 
    102             LMDZ_COSP_monthly=.FALSE. 
    103         fi 
    104         ##  Read LMDZ_COSP_daily in lmdz.card 
    105         if [ X${lmdz_UserChoices_LMDZ_COSP_daily} = Xy ] ; then 
    106             LMDZ_COSP_daily=.TRUE. 
    107         else 
    108             LMDZ_COSP_daily=.FALSE. 
    109         fi 
    110         ##  Read LMDZ_COSP_hf in lmdz.card 
    111         if [ X${lmdz_UserChoices_LMDZ_COSP_hf} = Xy ] ; then 
    112             LMDZ_COSP_hf=.TRUE. 
    113         else 
    114             LMDZ_COSP_hf=.FALSE. 
    115         fi 
    116     else 
    117         # LMDZ_COSP_OK=n : All cosp output are deactivated 
    118         LMDZ_COSP_monthly=.FALSE. 
    119         LMDZ_COSP_daily=.FALSE. 
    120         LMDZ_COSP_hf=.FALSE. 
    121     fi   
    122  
    123     ##  Read LMDZ_NMC_monthly in lmdz.card 
    124     if [ X${lmdz_UserChoices_LMDZ_NMC_monthly} = Xy ] ; then 
    125         LMDZ_NMC_monthly=.TRUE. 
    126     else 
    127         LMDZ_NMC_monthly=.FALSE. 
    128     fi 
    129      
    130     ## Read LMDZ_NMC_daily in lmdz.card 
    131     if [ X${lmdz_UserChoices_LMDZ_NMC_daily} = Xy ] ; then 
    132         LMDZ_NMC_daily=.TRUE. 
    133     else 
    134         LMDZ_NMC_daily=.FALSE. 
    135     fi 
    136      
    137     ## Read LMDZ_NMC_hf in lmdz.card 
    138     if [ X${lmdz_UserChoices_LMDZ_NMC_hf} = Xy ] ; then 
    139         LMDZ_NMC_hf=.TRUE. 
    140     else 
    141         LMDZ_NMC_hf=.FALSE. 
    142     fi 
    143  
    14450    IGCM_debug_PopStack "ATM_Initialize" 
    14551} 
     
    286192    IGCM_comp_modifyDefFile nonblocker config.def t_coupl   ${LMDZ_t_coupl}  
    287193 
    288     ##-- Add special treatement for CARBON CYCLE 
    289     if [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"control" ] || [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"historical" ] ; then 
    290         ATM_Carbon_Update 
    291     fi 
    292  
    293  
    294     ##-- Set LMDZ_COSP_daily1979=y in section UserChoices in lmdz.card to activate  
    295     ##   COSP daily output for years 1979 and later (mandatory for historical CMIP5 run). 
    296     if ([ X"${lmdz_UserChoices_LMDZ_COSP_daily1979}" = X"y" ] &&  [ ${year} -ge 1979 ]) ; then 
    297         LMDZ_COSP_daily=.TRUE. 
    298     fi 
    299  
    300     ## Modifiy  
    301     IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled ${ok_mensuel} 
    302      
    303     IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled ${ok_journe} 
    304      
    305     if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 
    306         IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 2 
    307     else 
    308         IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 5 
    309     fi 
    310      
    311     IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled ${ok_hf} 
    312      
    313     if [ X${OutLevel} = Xlow ] ; then 
    314         IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 5 
    315     elif [ X${OutLevel} = Xmedium ] ; then 
    316         IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 6 
    317     elif [ X${OutLevel} = Xhigh ] ; then 
    318         IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 7 
    319     fi 
    320          
    321     IGCM_comp_modifyXmlFile nonblocker file_def_histhf3h_lmdz.xml histhf3h enabled ${ok_hf3h} 
    322     IGCM_comp_modifyXmlFile nonblocker file_def_histhf3hm_lmdz.xml histhf3hm enabled ${ok_hf3hm} 
    323  
    324     IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled ${ok_stn} 
    325  
    326     IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled ${LMDZ_NMC_monthly} 
    327     IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled ${LMDZ_NMC_daily} 
    328     IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled ${LMDZ_NMC_hf} 
    329      
    330     IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled ${LMDZ_COSP_monthly} 
    331     IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled ${LMDZ_COSP_daily} 
    332     IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled ${LMDZ_COSP_hf} 
    333  
    334     # Activate the histstrataer output file only for configuration with interactive stratospheric aersols  
    335     # done by setting the key word LMDZ_strataero=y in lmdz.card 
    336     if [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
    337         IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .TRUE. 
    338         IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .TRUE. 
    339     else 
    340         IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .FALSE. 
    341         IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .FALSE. 
     194 
     195 
     196    ## Activate diagnostic output files and set output_level for each file 
     197 
     198    # histmth 
     199    if [ X${lmdz_UserChoices_output_level_histmth} = X ] || [ X${lmdz_UserChoices_output_level_histmth} = XNONE ] ; then 
     200        IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled FALSE 
     201        IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 0 
     202    else 
     203        IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled TRUE 
     204        IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level ${lmdz_UserChoices_output_level_histmth}  
     205    fi 
     206 
     207    # histday 
     208    if [ X${lmdz_UserChoices_output_level_histday} = X ] || [ X${lmdz_UserChoices_output_level_histday} = XNONE ] ; then 
     209        IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled FALSE 
     210        IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 0 
     211    else 
     212        IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled TRUE 
     213        IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level ${lmdz_UserChoices_output_level_histday}  
     214    fi 
     215 
     216    # histhf 
     217    if [ X${lmdz_UserChoices_output_level_histhf} = X ] || [ X${lmdz_UserChoices_output_level_histhf} = XNONE ] ; then 
     218        IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled FALSE 
     219        IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 0 
     220    else 
     221        IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled TRUE 
     222        IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level ${lmdz_UserChoices_output_level_histhf}  
     223    fi 
     224 
     225    # histmthNMC 
     226    if [ X${lmdz_UserChoices_output_level_histmthNMC} = X ] || [ X${lmdz_UserChoices_output_level_histmthNMC} = XNONE ] ; then 
     227        IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled FALSE 
     228        IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC output_level 0 
     229    else 
     230        IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled TRUE 
     231        IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC output_level ${lmdz_UserChoices_output_level_histmthNMC}  
     232    fi 
     233 
     234    # histdayNMC 
     235    if [ X${lmdz_UserChoices_output_level_histdayNMC} = X ] || [ X${lmdz_UserChoices_output_level_histdayNMC} = XNONE ] ; then 
     236        IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled FALSE 
     237        IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC output_level 0 
     238    else 
     239        IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled TRUE 
     240        IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC output_level ${lmdz_UserChoices_output_level_histdayNMC}  
     241    fi 
     242 
     243    # histhfNMC 
     244    if [ X${lmdz_UserChoices_output_level_histhfNMC} = X ] || [ X${lmdz_UserChoices_output_level_histhfNMC} = XNONE ] ; then 
     245        IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled FALSE 
     246        IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC output_level 0 
     247    else 
     248        IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled TRUE 
     249        IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC output_level ${lmdz_UserChoices_output_level_histhfNMC}  
     250    fi 
     251 
     252    # histstrataer 
     253    if [ X${lmdz_UserChoices_output_level_histstrataer} = X ] || [ X${lmdz_UserChoices_output_level_histstrataer} = XNONE ] ; then 
     254        IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled FALSE 
     255        IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer output_level 0 
     256    else 
     257        IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled TRUE 
     258        IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer output_level ${lmdz_UserChoices_output_level_histstrataer}  
     259    fi 
     260 
     261    # histdaystrataer 
     262    if [ X${lmdz_UserChoices_output_level_histdaystrataer} = X ] || [ X${lmdz_UserChoices_output_level_histdaystrataer} = XNONE ] ; then 
     263        IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled FALSE 
     264        IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer output_level 0 
     265    else 
     266        IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled TRUE 
     267        IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer output_level ${lmdz_UserChoices_output_level_histstrataer} 
     268    fi 
     269 
     270    # histstn 
     271    if [ X${lmdz_UserChoices_output_level_histstn} = X ] || [ X${lmdz_UserChoices_output_level_histstn} = XNONE ] ; then 
     272        IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled FALSE 
     273        IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn output_level 0 
     274    else 
     275        IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled TRUE 
     276        IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn output_level ${lmdz_UserChoices_output_level_histstn}  
     277    fi 
     278 
     279 
     280    # histmthCOSP 
     281    if [ X${lmdz_UserChoices_output_level_histmthCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histmthCOSP} = XNONE ] ; then 
     282        IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled FALSE 
     283        IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP output_level 0 
     284    else 
     285        IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled TRUE 
     286        IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP output_level ${lmdz_UserChoices_output_level_histmthCOSP}  
     287    fi 
     288 
     289 
     290    # histdayCOSP 
     291    if [ X${lmdz_UserChoices_output_level_histdayCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histdayCOSP} = XNONE ] ; then 
     292        IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled FALSE 
     293        IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP output_level 0 
     294    else 
     295        IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled TRUE 
     296        IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP output_level ${lmdz_UserChoices_output_level_histdayCOSP}  
     297    fi 
     298 
     299 
     300    # histhfCOSP 
     301    if [ X${lmdz_UserChoices_output_level_histhfCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histhfCOSP} = XNONE ] ; then 
     302        IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled FALSE 
     303        IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP output_level 0 
     304    else 
     305        IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled TRUE 
     306        IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP output_level ${lmdz_UserChoices_output_level_histhfCOSP}  
    342307    fi 
    343308 
     
    405370        echo "Activate coupling to INCA, set type_trac=inca in run.def" 
    406371        IGCM_comp_modifyDefFile blocker run.def type_trac inca 
     372        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
    407373    elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 
    408374        echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 
    409375        IGCM_comp_modifyDefFile blocker run.def type_trac repr 
    410376        IGCM_comp_modifyDefFile blocker run.def config_inca none 
     377        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
    411378    elif [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then  
    412379        echo "ESM config, set type_trac=co2i in run.def" 
    413380        IGCM_comp_modifyDefFile blocker run.def type_trac co2i 
    414381        IGCM_comp_modifyDefFile blocker run.def config_inca none 
     382        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
     383    elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
     384        echo "No coupling to chemistry model but it is a LMDZ STRATAER configuration, set type_trac=coag in run.def" 
     385        IGCM_comp_modifyDefFile blocker run.def type_trac coag 
     386        IGCM_comp_modifyDefFile blocker run.def config_inca none 
     387        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
    415388    else 
    416389        echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 
    417390        IGCM_comp_modifyDefFile blocker run.def type_trac lmdz 
    418391        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    419     fi 
    420  
    421  
    422     # run.def : Activate the call to phytrac  
    423     if [ ! X${lmdz_UserChoices_iflag_phytrac} = X ]; then  
    424         IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac ${lmdz_UserChoices_iflag_phytrac} 
    425     elif [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then 
    426         IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
    427     else 
    428         IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac DEFAULT 
    429     fi  
     392        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 0 
     393    fi 
    430394 
    431395    # run.def : Activate the new calving  
     
    528492        IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_tr DEFAULT 
    529493        IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_rad DEFAULT 
     494    fi 
     495 
     496    # config.def : Modify parameter ok_volcan if ok_volcan=y or LMDZ_strataero=y in lmdz.card 
     497    # Note: ok_volcan is a flag allowing a double-call with/without natural forcing (instead of with/without anthro forcing). 
     498    if [ ! X${lmdz_UserChoices_ok_volcan} = X ] || [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
     499        IGCM_comp_modifyDefFile nonblocker config.def ok_volcan ${lmdz_UserChoices_ok_volcan} 
     500    else 
     501        # Take default value set in config.def 
     502        IGCM_comp_modifyDefFile nonblocker config.def ok_volcan DEFAULT 
    530503    fi 
    531504 
     
    603576    fi 
    604577 
    605     #Compression level (if CompressionLevel is not empty) 
     578    # Compression level (if CompressionLevel is not empty) 
    606579    if [ ! "X${config_UserChoices_CompressionLevel}" = "X" ] ; then 
    607580    echo "NetCDF output files compression level is " ${config_UserChoices_CompressionLevel} 
    608581    listfile=$(ls file_def*lmdz.xml) 
    609     for file in ${listfile} 
    610     do 
     582    for file in ${listfile} ; do 
    611583        sed -i -e "s/\(compression_level=\"\)[^\"]*\(\"\)/\1${config_UserChoices_CompressionLevel}\2/" ${file} 
    612584    done 
     
    622594    IGCM_debug_PushStack "ATM_Finalize" 
    623595 
    624     # Add special treatement for CARBON CYCLE 
    625     if [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"control" ] || [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"historical" ] ; then 
    626         ATM_Carbon_Finalize 
    627     fi 
    628  
    629     echo FINALIZE ATM ! 
     596    IGCM_debug_Print 1 "FINALIZE ATM !" 
    630597 
    631598    IGCM_debug_PopStack "ATM_Finalize" 
    632599} 
    633600 
    634  
    635  
    636 function ATM_Carbon_Update 
    637 { 
    638     # This fuction will be called only if CARBON_CYCLE is set to control or historical in lmdz.card 
    639  
    640     IGCM_debug_PushStack "ATM_Carbon_Update" 
    641  
    642     typeset InitPeriodCo2 InitDateBeginCo2 InitDateEndCo2 
    643     typeset CO2SBG CO2MBG CO2LU CO2_ppm CO2_ppm_prec fCO2_ff 
    644     typeset PathCO2log  
    645     typeset PreviousLinelog LastPeriodDateBegin LastPeriodDateEnd LastDatesPeriod LastPREFIX 
    646      
    647     if ( ${FirstInitialize} && [ X"${config_ATM_Restart}" = X"n" ] ) ; then 
    648         ##--Initialization of fluxes to an undefined value at the first run 
    649         UndefinedValueCo2=-9999 
    650         InitPeriodCo2=0 
    651         InitDateBeginCo2=${UndefinedValueCo2} 
    652         InitYearCo2=$(( ${year} - 1 ))  
    653         InitDateEndCo2=${InitYearCo2}1231 
    654         fCO2_ff=${UndefinedValueCo2}  
    655         CO2SBG=${UndefinedValueCo2} 
    656         CO2LU=${UndefinedValueCo2} 
    657         CO2MBG=${UndefinedValueCo2} 
    658         CO2_ppm_prec=${UndefinedValueCo2} 
    659         # Get the initial value of atmosp. pco2  
    660         CO2_ppm=${lmdz_UserChoices_co2_init} 
    661          
    662         IGCM_sys_Cp ${SUBMIT_DIR}/co2.log.init ${SUBMIT_DIR}/co2.log 
    663         IGCM_sys_Chmod u+w ${SUBMIT_DIR}/co2.log 
    664          
    665         # Save CO2 values in ExeCpuLog variable contents 5 fields 
    666         echo "${InitPeriodCo2} ${InitDateBeginCo2} ${InitDateEndCo2} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" |   \ 
    667             gawk '{printf("  %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \ 
    668                               $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log 
    669          
    670         # Get the path where the log file co2.log is 
    671         PathCO2log=${SUBMIT_DIR}  
    672         # Get Previous line in co2.log 
    673         PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log ) 
    674          
    675     else 
    676          
    677         # NEW parameter in config.card (even for Overule all restarts, you must modify the line after this comment ): 
    678         # !! NEW for Carbone cycle !! Path where to find old co2.log file for restart CO2. 
    679         #SubmitRestartPath= 
    680         if ( ${FirstInitialize} && [ X"${config_ATM_Restart}" = X"y" ] ) ; then 
    681             IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card ATM SubmitRestartPath 
    682             PathCO2log=${config_ATM_SubmitRestartPath} 
    683             Date_r=$( IGCM_date_ConvertFormatToGregorian ${config_ATM_RestartDate} ) 
    684             PreviousLinelog=$( grep ${Date_r} ${PathCO2log}/co2.log ) 
    685              
    686             IGCM_sys_Cp ${SUBMIT_DIR}/co2.log.init ${SUBMIT_DIR}/co2.log 
    687             IGCM_sys_Chmod u+w ${SUBMIT_DIR}/co2.log 
    688              
    689             # Save Last Line of control in new co2.log file 
    690             InitPeriodCo2=0    
    691             InitDateBeginCo2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $2}' ) 
    692             InitDateEndCo2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $3}' ) 
    693             fCO2_ff=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $6}' ) 
    694             CO2SBG=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $8}' ) 
    695             CO2LU=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $9}' ) 
    696             CO2MBG=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $7}' ) 
    697             CO2_ppm_prec=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $5}' ) 
    698             CO2_ppm=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' ) 
    699              
    700             echo "${InitPeriodCo2} ${InitDateBeginCo2} ${InitDateEndCo2} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" |   \ 
    701                 gawk '{printf("  %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \ 
    702                               $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log 
    703         else 
    704            # Get restart line in co2.log 
    705             PathCO2log=${SUBMIT_DIR} 
    706             PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log ) 
    707            # Get the value of atmosp. pco2 in co2.log 
    708             CO2_ppm=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' ) 
    709         fi 
    710          
    711     fi 
    712      
    713     if [ ${lmdz_UserChoices_CARBON_CYCLE} = historical ] ; then 
    714         # Modify co2_ppm in config.def only for historical run 
    715         # If not historical run, keep co2_ppm value set earlier by IGCM_comp_modifyDefFile 
    716         IGCM_comp_modifyDefFile force config.def co2_ppm     ${CO2_ppm} 
    717     fi 
    718     IGCM_debug_PopStack "ATM_Carbon_Update" 
    719 } 
    720  
    721  
    722 function ATM_Carbon_Finalize 
    723 { 
    724     # This fuction will be called only if CARBON_CYCLE is set to control or historical in lmdz.card 
    725  
    726     IGCM_debug_PushStack "ATM_Carbon_Finalize" 
    727  
    728     typeset CO2SBG_3V CO2SBG CO2MBG CO2SRF CO2LU CO2_ppm CO2_ppm_prec fCO2_ff 
    729      
    730         # Fossil fuel emission 
    731     if [ ${lmdz_UserChoices_CARBON_CYCLE} = control ] ; then 
    732             # For Control, no fossil fuel emission : 
    733         fCO2_ff=0 
    734         echo "Fossil Fuel for control run  :" ${fCO2_ff} 
    735     else 
    736             # For historical, get the fossile fuel file : 
    737         fCO2_ff=$( gawk "{if (match(\$0,\"${year}\ *${month}\")) {print \$3}}" ${SUBMIT_DIR}/PARAM/CMIP5_gridcar_CO2_emissions_fossil_fuel_Andres_1751-2007_monthly_SC.txt ) 
    738         echo "Fossil Fuel for historical run  :" ${fCO2_ff} 
    739     fi 
    740      
    741         # Get the value of ocean carbon flux 
    742     CO2MBG=$( ${SUBMIT_DIR}/COMP/lmdz_analyse_pisces_out.awk ocean.output ) 
    743     CO2MBG=$( echo ${CO2MBG} | sed -e "s/ *//" ) 
    744     echo "Ocean carbon flux  :" ${CO2MBG} 
    745      
    746         # Get the value of land fluxes 
    747     set +A CO2SBG_3V -- $( ${SUBMIT_DIR}/COMP/lmdz_analyse_stomate_out.awk out_orchidee_0000 ) 
    748     CO2SRF=$( echo ${CO2SBG_3V[0]} | sed -e "s/ *//" ) 
    749     CO2LU=$( echo ${CO2SBG_3V[1]} | sed -e "s/ *//" ) 
    750     CO2SBG=$( echo ${CO2SBG_3V[2]} | sed -e "s/ *//" ) 
    751     echo "Land carbon flux (NEP)         :" ${CO2SRF} 
    752     echo "LU flux          (FLUC)        :" ${CO2LU} 
    753     echo "Total Land carbon flux (NBP)   :" ${CO2SBG} 
    754      
    755         # Previous CO2 
    756     CO2_ppm_prec=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' ) 
    757     echo "Previous CO2  :" ${CO2_ppm_prec} 
    758      
    759         # Formula 
    760     CO2_ppm=$( echo "${CO2_ppm_prec} + (${fCO2_ff} + ${CO2MBG} + ${CO2SBG}) / 2.12" | bc -l ) 
    761     echo "New CO2  :" ${CO2_ppm} 
    762      
    763         # Save CO2 values in ExeCpuLog variable contents 5 fields 
    764     echo "${CumulPeriod} ${PeriodDateBegin} ${PeriodDateEnd} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" |   \ 
    765         gawk '{printf("  %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \ 
    766                            $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log 
    767      
    768     IGCM_debug_PopStack "ATM_Carbon_Finalize" 
    769 } 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/DRIVER/orchidee.driver

    r4625 r4934  
    169169    fi 
    170170 
    171     #Compression level (if CompressionLevel is not empty) 
     171    # Compression level (if CompressionLevel is not empty) 
    172172    if [ ! "X${config_UserChoices_CompressionLevel}" = "X" ] ; then 
    173173        echo "NetCDF output files compression level is " ${config_UserChoices_CompressionLevel} 
    174174        listfile=$(ls file_def*orchidee.xml) 
    175         for file in ${listfile} 
    176         do 
     175        for file in ${listfile} ; do 
    177176            sed -i -e "s/\(compression_level=\"\)[^\"]*\(\"\)/\1${config_UserChoices_CompressionLevel}\2/" ${file} 
    178177        done 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/config.def_actuel

    r4631 r4934  
     1## level_coupling_esm : 0(pas d'echange de carbone), 2 (change entre LMDZ/CPL/NEMO et LMDZ/ORCHIDEE) 
     2level_coupling_esm=  _AUTO_: DEFAULT = 0 
     3## carbon_cycle_cpl: couplage des flux de carbone ATM/OCE, ATM/SRF 
     4carbon_cycle_cpl=_AUTO_ : DEFAULT=n 
     5## carbon_cycle_tr: transport atmospherique de CO2 dans LMDZ 
     6carbon_cycle_tr=_AUTO_ : DEFAULT=n 
     7## carbon_cycle_rad: utilisation de traceur CO2 dans le code radiatif 
     8carbon_cycle_rad=_AUTO_ : DEFAULT=n 
     9 
    110##  Cycle diurne  ou non                  
    211iflag_cycle_diurne=1 
     
    7281#  
    7382# Aerosols stratospheriques utilises par defaut  
    74 flag_aerosol_strat= _AUTO_: DEFAULT = 2 
     83flag_aerosol_strat=_AUTO_ : DEFAULT=2 
    7584# Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones 
    7685ok_volcan=n 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/config.def_annuel

    r4631 r4934  
     1# level_coupling_esm : 0(pas d'echange de carbone), 2 (change entre LMDZ/CPL/NEMO et LMDZ/ORCHIDEE) 
     2level_coupling_esm=  _AUTO_: DEFAULT = 0 
     3## carbon_cycle_cpl: couplage des flux de carbone ATM/OCE, ATM/SRF 
     4carbon_cycle_cpl=_AUTO_ : DEFAULT=n 
     5## carbon_cycle_tr: transport atmospherique de CO2 dans LMDZ 
     6carbon_cycle_tr=_AUTO_ : DEFAULT=n 
     7## carbon_cycle_rad: utilisation de traceur CO2 dans le code radiatif 
     8carbon_cycle_rad=_AUTO_ : DEFAULT=n 
     9 
    110##  Cycle diurne  ou non                  
    211iflag_cycle_diurne=1 
     
    7382#  
    7483# Aerosols stratospheriques utilises par defaut  
    75 flag_aerosol_strat= _AUTO_: DEFAULT = 2 
     84flag_aerosol_strat=_AUTO_ : DEFAULT=2 
    7685# Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones 
    7786ok_volcan=n 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/config.def_preind

    r4631 r4934  
     1## level_coupling_esm : 0(pas d'echange de carbone), 2 (change entre LMDZ/CPL/NEMO et LMDZ/ORCHIDEE) 
     2level_coupling_esm=  _AUTO_: DEFAULT = 0 
     3## carbon_cycle_cpl: couplage des flux de carbone ATM/OCE, ATM/SRF 
     4carbon_cycle_cpl=_AUTO_ : DEFAULT=n 
     5## carbon_cycle_tr: transport atmospherique de CO2 dans LMDZ 
     6carbon_cycle_tr=_AUTO_ : DEFAULT=n 
     7## carbon_cycle_rad: utilisation de traceur CO2 dans le code radiatif 
     8carbon_cycle_rad=_AUTO_ : DEFAULT=n 
     9 
    110##  Cycle diurne  ou non                  
    211iflag_cycle_diurne=1 
     
    7382# Aerosols stratospheriques utilises par defaut  
    7483# 
    75 flag_aerosol_strat= _AUTO_: DEFAULT = 2 
     84flag_aerosol_strat=_AUTO_ : DEFAULT=2 
    7685# Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones 
    7786ok_volcan=n 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/orchidee.def_CWRR

    r4625 r4934  
    133133 
    134134# Activate downregulation for CO2 
    135 DOWNREGULATION_CO2=y 
     135# Set DOWNREGULATION_CO2_NEW=y to activate new revised version of  
     136# downregulation parametrization available in ORCHIDEE_2_0 for  
     137# configurations v6.1.11 or later or in ORCHIDEE_2_2 from revision 6393 and later.  
     138# When DOWNREGULATION_CO2_NEW=y,  
     139# DOWNREGULATION_CO2 will be forced to false by the model. 
     140DOWNREGULATION_CO2_NEW=y 
    136141DOWNREGULATION_CO2_BASELEVEL=380. 
    137142 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/run.def

    r4625 r4934  
    5555no_ter_antartique=y 
    5656### Do not call phytrac to speed things up 
    57 iflag_phytrac=_AUTO_: DEFAULT = 0 
     57iflag_phytrac=_AUTOBLOCKER_: DEFAULT = 0 
    5858### cpl_old_calving : use n for DYNAMICO and new coupling weight(MR025) 
    5959cpl_old_calving = _AUTO_ 
Note: See TracChangeset for help on using the changeset viewer.