Ignore:
Timestamp:
11/04/19 11:31:31 (5 years ago)
Author:
acosce
Message:

update lmdzorinca_v6.1.10 configuration :

  • to take in account histdaystrataer
  • add compression level
Location:
CONFIG/UNIFORM/v6/LMDZORINCA_v6.1.10/GENERAL
Files:
8 edited

Legend:

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

    r4395 r4788  
    322322    IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled ${LMDZ_COSP_hf} 
    323323 
    324     # Activate the histstrataer output file only for configuration with interactive stratospheric aersols  
     324    # Activate the histstrataer output files only for configuration with interactive stratospheric aerosols  
    325325    # done by setting the key word LMDZ_strataero=y in lmdz.card 
    326326    if [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
    327327        IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .TRUE. 
     328    IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .TRUE. 
    328329    else 
    329330        IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .FALSE. 
     331    IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .FALSE. 
    330332    fi 
    331333 
     
    391393 
    392394    if [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
    393         echo "Activate coupling to INCA, set type_trac=inca in run.def" 
    394         IGCM_comp_modifyDefFile blocker run.def type_trac inca 
     395    echo "Activate coupling to INCA, set type_trac=inca in run.def" 
     396    IGCM_comp_modifyDefFile blocker run.def type_trac inca 
    395397    elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 
    396         echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 
    397         IGCM_comp_modifyDefFile blocker run.def type_trac repr 
     398    echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 
     399    IGCM_comp_modifyDefFile blocker run.def type_trac repr 
    398400        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    399     else 
    400         echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 
    401         IGCM_comp_modifyDefFile blocker run.def type_trac lmdz 
     401    elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
     402        echo "No coupling to chemistry model but it is a LMDZ STRATAER configuration, set type_trac=coag in run.def" 
     403        IGCM_comp_modifyDefFile blocker run.def type_trac coag 
    402404        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    403     fi 
    404  
     405    else 
     406    echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 
     407    IGCM_comp_modifyDefFile blocker run.def type_trac lmdz 
     408        IGCM_comp_modifyDefFile blocker run.def config_inca none 
     409    fi 
    405410 
    406411    # run.def : Activate the call to phytrac  
    407412    if [ ! X${lmdz_UserChoices_iflag_phytrac} = X ]; then  
    408413        IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac ${lmdz_UserChoices_iflag_phytrac} 
     414    elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
     415    IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac 1 
    409416    else 
    410417        IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac 0 
     
    483490        IGCM_comp_modifyDefFile nonblocker config.def pmagic DEFAULT 
    484491    fi  
     492 
     493    # config.def : Modify parameter ok_volcan if it is set in lmdz.card 
     494    if [ ! X${lmdz_UserChoices_ok_volcan} = X ]; then 
     495    IGCM_comp_modifyDefFile nonblocker config.def ok_volcan ${lmdz_UserChoices_ok_volcan} 
     496    else 
     497    # Take default value set in config.def 
     498    IGCM_comp_modifyDefFile nonblocker config.def ok_volcan DEFAULT 
     499    fi 
     500 
     501    # config.def : set ok_volcan to y if we are in the strataero config 
     502    if [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
     503    IGCM_comp_modifyDefFile nonblocker config.def ok_volcan y 
     504    else 
     505    IGCM_comp_modifyDefFile nonblocker config.def ok_volcan DEFAULT 
     506    fi 
     507 
     508    # Note: ok_volcan is a flag allowing a double-call with/without natural forcing (instead of with/without anthro forcing). 
    485509 
    486510    # physiq.def : Modify parameter tau_gl if it is set in lmdz.card 
     
    556580        rm add.tmp 
    557581    fi 
     582 
     583    #Compression level (if CompressionLevel is not empty) 
     584    if [ ! "X${config_UserChoices_CompressionLevel}" = "X" ] ; then 
     585    echo "NetCDF output files compression level is " ${config_UserChoices_CompressionLevel} 
     586    listfile=$(ls file_def*lmdz.xml) 
     587    for file in ${listfile} 
     588    do 
     589        sed -i -e "s/\(compression_level=\"\)[^\"]*\(\"\)/\1${config_UserChoices_CompressionLevel}\2/" ${file} 
     590    done 
     591    fi 
     592 
    558593             
    559594    IGCM_debug_PopStack "ATM_Update" 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.1.10/GENERAL/DRIVER/orchidee.driver

    r4395 r4788  
    1212        DefSuffix=${orchidee_UserChoices_DefSuffix} 
    1313    else 
    14         DefSuffix=Choi 
     14        DefSuffix=CWRR 
    1515    fi 
    1616 
     
    3939        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0 
    4040        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo 
     41        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 enabled .FALSE. 
     42        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_level 0 
     43        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_freq 1mo 
    4144    fi 
    4245 
     
    8588    fi 
    8689 
     90    # Activate calcul of chemistry BVOC 
     91    if [ ! X${orchidee_UserChoices_CHEMISTRY_BVOC} = X ] ; then 
     92        IGCM_comp_modifyDefFile nonblocker orchidee.def CHEMISTRY_BVOC ${orchidee_UserChoices_CHEMISTRY_BVOC} 
     93    else 
     94        IGCM_comp_modifyDefFile nonblocker orchidee.def CHEMISTRY_BVOC n 
     95    fi 
    8796 
    8897    ## 2. Mangement of output and modifications of related xml files 
     
    160169    fi 
    161170 
     171    #Compression level (if CompressionLevel is not empty) 
     172    if [ ! "X${config_UserChoices_CompressionLevel}" = "X" ] ; then 
     173        echo "NetCDF output files compression level is " ${config_UserChoices_CompressionLevel} 
     174        listfile=$(ls file_def*orchidee.xml) 
     175        for file in ${listfile} 
     176        do 
     177            sed -i -e "s/\(compression_level=\"\)[^\"]*\(\"\)/\1${config_UserChoices_CompressionLevel}\2/" ${file} 
     178        done 
     179    fi 
     180 
     181 
    162182 
    163183    IGCM_debug_PopStack "SRF_Update" 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.1.10/GENERAL/DRIVER/stomate.driver

    r4395 r4788  
    4747 
    4848         
     49    if [ X${stomate_UserChoices_output_level_stomate_history_4dim} = X ] || [ X${stomate_UserChoices_output_level_stomate_history_4dim} = XNONE ] ; then 
     50        # output_level_stomate_history_4dim is not set in stomate.card or it is set to NONE. 
     51        # Deactivate the file. 
     52        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 enabled .FALSE. 
     53        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_level 0 
     54        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_freq 1mo 
     55    else 
     56        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 enabled      .TRUE. 
     57        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_level ${stomate_UserChoices_output_level_stomate_history_4dim} 
     58        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate3 output_freq  ${stomate_UserChoices_output_freq_stomate_history_4dim} 
     59    fi 
     60 
    4961 
    5062    # Define in orchidee.def if restart file should be used 
     
    5567        IGCM_comp_modifyDefFile blocker orchidee.def STOMATE_RESTART_FILEIN stomate_rest_in.nc 
    5668    fi 
     69 
     70 
     71    # Modify in orchidee.def NINPUT_UPDATE if it is set in stomate.card section UserChoices 
     72    # NINPUT_UPDATE inidcates if the nitrogen maps should be updated and at which frequency 
     73    if [ ! X${stomate_UserChoices_NINPUT_UPDATE} = X ] ; then 
     74        # Take the value from stomate.card 
     75        IGCM_comp_modifyDefFile nonblocker orchidee.def NINPUT_UPDATE   ${stomate_UserChoices_NINPUT_UPDATE} 
     76    else 
     77        # Set default value 0Y 
     78        IGCM_comp_modifyDefFile nonblocker orchidee.def NINPUT_UPDATE 0Y 
     79    fi 
     80 
     81    # Modify in orchidee.def STOMATE_IMPOSE_CN if it is set in stomate.card section UserChoices 
     82    # STOMATE_IMPOSE_CN inidcates if the nitrogen should be imposed or not.  
     83    if [ ! X${stomate_UserChoices_STOMATE_IMPOSE_CN} = X ] ; then 
     84        # Take the value from stomate.card 
     85        IGCM_comp_modifyDefFile nonblocker orchidee.def STOMATE_IMPOSE_CN   ${stomate_UserChoices_STOMATE_IMPOSE_CN} 
     86    else 
     87        # Set default value n (nitrogen is not imposed) 
     88        IGCM_comp_modifyDefFile nonblocker orchidee.def STOMATE_IMPOSE_CN n 
     89    fi 
     90 
    5791 
    5892    IGCM_debug_PopStack "SBG_Update" 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.1.10/GENERAL/PARAM/config.def_actuel

    r4395 r4788  
    7373# Aerosols stratospheriques utilises par defaut  
    7474flag_aerosol_strat=2 
    75 # Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones 
    76 ok_volcan=n 
     75# Flag to yield double call with/without natural forcing (instead of with/without anthropic) 
     76ok_volcan=_AUTO_: DEFAULT = n 
    7777# 
    7878# COSP 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.1.10/GENERAL/PARAM/config.def_annuel

    r4395 r4788  
    7474# Aerosols stratospheriques utilises par defaut  
    7575flag_aerosol_strat=2 
    76 # Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones 
    77 ok_volcan=n 
     76# Flag to yield double call with/without natural forcing (instead of with/without anthropic) 
     77ok_volcan=_AUTO_: DEFAULT = n 
    7878# 
    7979# COSP 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.1.10/GENERAL/PARAM/config.def_preind

    r4395 r4788  
    7474# 
    7575flag_aerosol_strat=2 
    76 # Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones 
    77 ok_volcan=n 
     76# Flag to yield double call with/without natural forcing (instead of with/without anthropic) 
     77ok_volcan=_AUTO_: DEFAULT = n 
     78# 
    7879# 
    7980# COSP 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.1.10/GENERAL/PARAM/orchidee.def_CWRR

    r4395 r4788  
    218218#************************************************************************ 
    219219# CHEMISTRY_OK_BVOC :  Activate chemistry 
    220 CHEMISTRY_BVOC =  n 
     220CHEMISTRY_BVOC = _AUTO_: DEFAULT=n 
    221221 
    222222# CO2 FOR BVOC - WILKINSON :  CO2 inhibition effect for isoprene based on Wilkinson approach? 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.1.10/GENERAL/PARAM/orchidee.def_Choi

    r4395 r4788  
    9494# CHEMISTRY_OK_BVOC ([FLAG]) :  Activate chemistry    {OK_SECHIBA} 
    9595# default =  n  
    96 CHEMISTRY_BVOC =  n 
     96CHEMISTRY_BVOC = _AUTO_: DEFAULT=n 
    9797 
    9898# CO2 FOR BVOC - WILKINSON ([FLAG]) :  CO2 inhibition effect for isoprene based on Wilkinson approach?    {CHEMISTRY_OK_BVOC } 
Note: See TracChangeset for help on using the changeset viewer.