Ignore:
Timestamp:
12/21/22 15:49:31 (19 months ago)
Author:
aclsce
Message:
  • Finalized merge in ICOLMDZOR configuration :
    • compilation : added rad option (with correct handling of svn test version)
    • experiments : merge with LMDZOR_v6.2 configuration, handling of remap frequency for ORCHIDEE xml file_def
    • cleaning and other small things
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/lmdz.driver

    r6100 r6290  
    382382    fi 
    383383 
    384     if [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
     384    if [ X${config_UserChoices_ConfigType} = XESMCO2AER ] ; then 
     385    echo "ESM config, with INCA and CO2i, set type_trac=inco in run.def" 
     386    IGCM_comp_modifyDefFile blocker run.def type_trac inco 
     387    IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
     388    elif [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
    385389        echo "Activate coupling to INCA, set type_trac=inca in run.def" 
    386390        IGCM_comp_modifyDefFile blocker run.def type_trac inca 
    387         IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
     391        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
    388392    elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 
    389393        echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 
    390394        IGCM_comp_modifyDefFile blocker run.def type_trac repr 
    391395        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    392         IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
     396        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
    393397    elif [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then  
    394398        echo "ESM config, set type_trac=co2i in run.def" 
    395399        IGCM_comp_modifyDefFile blocker run.def type_trac co2i 
    396400        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    397         IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1  
     401    IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1  
    398402    elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
    399403        echo "No coupling to chemistry model but it is a LMDZ STRATAER configuration, set type_trac=coag in run.def" 
     
    495499    fi  
    496500 
    497     if [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then 
     501    if ( [ X${config_UserChoices_ConfigType} = XESMCO2 ] || [ X${config_UserChoices_ConfigType} = XESMCO2AER ] ) ; then 
    498502        # Set carbon cycle parameters according to parmeters in lmdz.card  
    499503        IGCM_comp_modifyDefFile blocker config.def level_coupling_esm 2  
     
    501505        IGCM_comp_modifyDefFile blocker config.def carbon_cycle_tr ${lmdz_UserChoices_carbon_cycle_tr} 
    502506        IGCM_comp_modifyDefFile blocker config.def carbon_cycle_rad ${lmdz_UserChoices_carbon_cycle_rad} 
     507        IGCM_comp_modifyDefFile nonblocker config.def co2_ppm0 ${lmdz_UserChoices_co2_ppm0}  
    503508    else 
    504509        # Take default value set in config.def 
     
    507512        IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_tr DEFAULT 
    508513        IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_rad DEFAULT 
     514        IGCM_comp_modifyDefFile nonblocker config.def co2_ppm0 DEFAULT 
     515    fi 
     516 
     517    if ( [ X${config_UserChoices_ConfigType} = XESMCO2 ] ) ; then 
     518        # Set carbon cycle parameters according to parmeters in lmdz.card  
     519        IGCM_comp_modifyDefFile nonblocker config.def read_fco2_ocean_cor ${lmdz_UserChoices_read_fco2_ocean_cor} 
     520        IGCM_comp_modifyDefFile nonblocker config.def var_fco2_ocean_cor ${lmdz_UserChoices_var_fco2_ocean_cor} 
     521        IGCM_comp_modifyDefFile nonblocker config.def read_fco2_land_cor ${lmdz_UserChoices_read_fco2_land_cor} 
     522        IGCM_comp_modifyDefFile nonblocker config.def var_fco2_land_cor ${lmdz_UserChoices_var_fco2_land_cor} 
     523    else 
     524        IGCM_comp_modifyDefFile nonblocker config.def read_fco2_ocean_cor DEFAULT 
     525        IGCM_comp_modifyDefFile nonblocker config.def var_fco2_ocean_cor DEFAULT 
     526        IGCM_comp_modifyDefFile nonblocker config.def read_fco2_land_cor DEFAULT 
     527        IGCM_comp_modifyDefFile nonblocker config.def var_fco2_land_cor DEFAULT 
    509528    fi 
    510529 
     
    577596    fi 
    578597    # Include xml files for output configuration if running with workflow CMIP6 
    579     if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
     598    if ( [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] || [ X${config_Post_dr2xmlIPSL} = XTRUE ] ) ; then 
    580599        echo '<context id="LMDZ" src="./ping_lmdz.xml"/>' >> add.tmp 
    581600        echo '<context id="LMDZ" src="./dr2xml_lmdz.xml"/>' >> add.tmp 
Note: See TracChangeset for help on using the changeset viewer.