Ignore:
Timestamp:
11/21/22 15:45:39 (20 months ago)
Author:
jgipsl
Message:

Update needed for experiment IPSLESM/CO2:
Change following variables into AUTO in config.def_ : co2_ppm0, read_fco2_ocean_cor, var_fco2_ocean_cor, read_fco2_land_cor, var_fco2_land_cor
For IPSLESM/CO2, the value is set in lmdz.card. For all other experiments, the default value set in config.def_ is used.

Some cosmetic cleaning is also done between configurations/files.

Done by
Patrica, Josefine

File:
1 edited

Legend:

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

    r6119 r6268  
    367367    fi 
    368368 
    369     if [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
     369    if [ X${config_UserChoices_ConfigType} = XESMCO2AER ] ; then 
     370    echo "ESM config, with INCA and CO2i, set type_trac=inco in run.def" 
     371    IGCM_comp_modifyDefFile blocker run.def type_trac inco 
     372    IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
     373    elif [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
    370374        echo "Activate coupling to INCA, set type_trac=inca in run.def" 
    371375        IGCM_comp_modifyDefFile blocker run.def type_trac inca 
     
    380384        IGCM_comp_modifyDefFile blocker run.def type_trac co2i 
    381385        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    382         IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1  
     386    IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1  
    383387    elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
    384388        echo "No coupling to chemistry model but it is a LMDZ STRATAER configuration, set type_trac=coag in run.def" 
     
    480484    fi  
    481485 
    482     if [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then 
     486    if ( [ X${config_UserChoices_ConfigType} = XESMCO2 ] || [ X${config_UserChoices_ConfigType} = XESMCO2AER ] ) ; then 
    483487        # Set carbon cycle parameters according to parmeters in lmdz.card  
    484488        IGCM_comp_modifyDefFile blocker config.def level_coupling_esm 2  
     
    486490        IGCM_comp_modifyDefFile blocker config.def carbon_cycle_tr ${lmdz_UserChoices_carbon_cycle_tr} 
    487491        IGCM_comp_modifyDefFile blocker config.def carbon_cycle_rad ${lmdz_UserChoices_carbon_cycle_rad} 
     492        IGCM_comp_modifyDefFile nonblocker config.def co2_ppm0 ${lmdz_UserChoices_co2_ppm0}  
    488493    else 
    489494        # Take default value set in config.def 
     
    492497        IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_tr DEFAULT 
    493498        IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_rad DEFAULT 
     499        IGCM_comp_modifyDefFile nonblocker config.def co2_ppm0 DEFAULT 
     500    fi 
     501 
     502    if ( [ X${config_UserChoices_ConfigType} = XESMCO2 ] ) ; then 
     503        # Set carbon cycle parameters according to parmeters in lmdz.card  
     504        IGCM_comp_modifyDefFile nonblocker config.def read_fco2_ocean_cor ${lmdz_UserChoices_read_fco2_ocean_cor} 
     505        IGCM_comp_modifyDefFile nonblocker config.def var_fco2_ocean_cor ${lmdz_UserChoices_var_fco2_ocean_cor} 
     506        IGCM_comp_modifyDefFile nonblocker config.def read_fco2_land_cor ${lmdz_UserChoices_read_fco2_land_cor} 
     507        IGCM_comp_modifyDefFile nonblocker config.def var_fco2_land_cor ${lmdz_UserChoices_var_fco2_land_cor} 
     508    else 
     509        IGCM_comp_modifyDefFile nonblocker config.def read_fco2_ocean_cor DEFAULT 
     510        IGCM_comp_modifyDefFile nonblocker config.def var_fco2_ocean_cor DEFAULT 
     511        IGCM_comp_modifyDefFile nonblocker config.def read_fco2_land_cor DEFAULT 
     512        IGCM_comp_modifyDefFile nonblocker config.def var_fco2_land_cor DEFAULT 
    494513    fi 
    495514 
     
    530549        cat gcm.def 
    531550        ByPass_hgardfou_teta=n 
     551    export lmdz_UserChoices_ByPass_hgardfou_teta=n 
    532552        IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_teta "${ByPass_hgardfou_teta}" 
    533553    fi 
     
    543563        cat gcm.def 
    544564        ByPass_hgardfou_mats=n 
     565        export lmdz_UserChoices_ByPass_hgardfou_mats=n 
    545566        IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_mats "${ByPass_hgardfou_mats}" 
    546567    fi 
     
    554575    fi 
    555576    # Include xml files for output configuration if running with workflow CMIP6 
    556     if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
     577    if ( [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] || [ X${config_Post_dr2xmlIPSL} = XTRUE ] ) ; then 
    557578        echo '<context id="LMDZ" src="./ping_lmdz.xml"/>' >> add.tmp 
    558         echo '<context id="LMDZ" src="./dr2xml_lmdz.xml"/>' >> add.tmp 
     579    echo '<context id="LMDZ" src="./dr2xml_lmdz.xml"/>' >> add.tmp 
    559580    fi 
    560581    cp iodef.xml iodef.xml.tmp 
Note: See TracChangeset for help on using the changeset viewer.