Changeset 3638


Ignore:
Timestamp:
03/12/18 18:13:29 (6 years ago)
Author:
cetlod
Message:

Update pisces.driver since the carbon cycle in the ESM version is managed in another way

File:
1 edited

Legend:

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

    r3635 r3638  
    6969 
    7070 
    71     ##-- CO2 forcing : update atcco2 value in namelist_pisces_cfg 
    72     if [ "${pisces_UserChoices_CARBON_CYCLE}" = "y" ]; then 
    73         IGCM_debug_Print 1 "Special case for carbon cycle" 
    74         # Activate this case by putting CARBON_CYCLE=y in pisces.card section UserChoices 
    75         IGCM_debug_Print 1  'Update atcco2 in namelist_pisces_cfg with value from file co2.log' 
    76         PathCO2log=${SUBMIT_DIR} 
    77         PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log ) 
    78         IPCC_PIS_CO2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' ) 
    79         IGCM_debug_Print 1 "IPCC_PIS_CO2 : ${IPCC_PIS_CO2} " 
    80         IGCM_comp_modifyNamelist force  namelist_pisces_cfg atcco2 ${IPCC_PIS_CO2} 
    81     else 
    82         IGCM_debug_Print 1 "Take same CO2 as for LMDZ, in parameter file config.def." 
    83         # ATM_Update is done before MBG_Update and therefore config.def file contains the correct value for CO2. 
    84         IGCM_debug_Print 1 'Update atcco2 in namelist_pisces_cfg with same value as for LMDZ' 
    85         LMDZ_CO2=$( lmdzgrep2 co2_ppm config.def ) 
    86         IGCM_debug_Print 1 "LMDZ_CO2 : ${LMDZ_CO2} " 
    87         IGCM_comp_modifyNamelist force  namelist_pisces_cfg atcco2 ${LMDZ_CO2} 
    88     fi 
    89  
     71    ##-- CO2 forcing : update atcco2 value in namelist_pisces_cfg with the same one used in LMDZ 
     72    IGCM_debug_Print 1 "Take same CO2 as for LMDZ, in parameter file config.def." 
     73    # ATM_Update is done before MBG_Update and therefore config.def file contains the correct value for CO2. 
     74    IGCM_debug_Print 1 'Update atcco2 in namelist_pisces_cfg with same value as for LMDZ' 
     75    LMDZ_CO2=$( lmdzgrep2 co2_ppm config.def ) 
     76    IGCM_debug_Print 1 "LMDZ_CO2 : ${LMDZ_CO2} " 
     77    IGCM_comp_modifyNamelist force  namelist_pisces_cfg atcco2 ${LMDZ_CO2} 
    9078 
    9179    ##-- Update namelist_top_cfg and namelist_pisces_cfg 
Note: See TracChangeset for help on using the changeset viewer.