Ignore:
Timestamp:
04/13/18 13:41:50 (6 years ago)
Author:
acosce
Message:

update IPSLESM6 to be consistent with CM6.1 (rev 3744)
+ add two flag in lmdz.card to drive iflag_phytrac and ok_bug_cv_trac (mandatory for AER configuration)

File:
1 edited

Legend:

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

    r3687 r3758  
    6868    fi 
    6969 
    70     ##-- Enable dbio output file 
    71     DBIO_ENABLE=".FALSE."  
    72     eval pisces_DBIO_ENABLE=\${pisces_UserChoices_DBIO_ENABLE} > /dev/null 2>&1 
    73     if [ "${pisces_DBIO_ENABLE}" = "y" ]; then 
    74         DBIO_ENABLE=".TRUE." 
    75     fi 
    7670 
    77     # update iodef.xml 
    78  
    79     IGCM_debug_Print 1 " 'Informations into iodef.xml : DBIO_ENABLE : ${DBIO_ENABLE}" 
    80  
    81     sed -e "s/<DBIO_ENABLE>/${DBIO_ENABLE}/" \ 
    82         iodef.xml > iodef.xml.tmp 
    83  
    84     IGCM_sys_Mv iodef.xml.tmp iodef.xml 
    85  
    86     ##-- CO2 forcing : update atcco2 value in namelist_pisces_cfg 
    87     if [ "${pisces_UserChoices_CARBON_CYCLE}" = "y" ]; then 
    88         IGCM_debug_Print 1 "Special case for carbon cycle" 
    89         # Activate this case by putting CARBON_CYCLE=y in pisces.card section UserChoices 
    90         IGCM_debug_Print 1  'Update atcco2 in namelist_pisces_cfg with value from file co2.log' 
    91         PathCO2log=${SUBMIT_DIR} 
    92         PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log ) 
    93         IPCC_PIS_CO2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' ) 
    94         IGCM_debug_Print 1 "IPCC_PIS_CO2 : ${IPCC_PIS_CO2} " 
    95         IGCM_comp_modifyNamelist force  namelist_pisces_cfg atcco2 ${IPCC_PIS_CO2} 
    96     else 
    97         IGCM_debug_Print 1 "Take same CO2 as for LMDZ, in parameter file config.def." 
    98         # ATM_Update is done before MBG_Update and therefore config.def file contains the correct value for CO2. 
    99         IGCM_debug_Print 1 'Update atcco2 in namelist_pisces_cfg with same value as for LMDZ' 
    100         LMDZ_CO2=$( lmdzgrep2 co2_ppm config.def ) 
    101         IGCM_debug_Print 1 "LMDZ_CO2 : ${LMDZ_CO2} " 
    102         IGCM_comp_modifyNamelist force  namelist_pisces_cfg atcco2 ${LMDZ_CO2} 
    103     fi 
     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} 
    10478 
    10579    ##-- Update namelist_top_cfg and namelist_pisces_cfg 
     
    11084    # Update iodef.xml 
    11185 
    112     if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then        
    113         VT1D_ENABLE=".FALSE." 
    114         VT5D_ENABLE=".FALSE." 
    115         VT1M_ENABLE=".FALSE." 
    116         VT1Y_ENABLE=".FALSE." 
    117     fi 
    118  
    11986    IGCM_debug_Print 1 'Informations into iodef.xml : VT1D_ENABLE VT5D_ENABLE VT1M_ENABLE VT1Y_ENABLE ' 
    12087    IGCM_debug_Print 1 ${VT1D_ENABLE}  ${VT5D_ENABLE} ${VT1M_ENABLE} ${VT1Y_ENABLE} 
     
    12491    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1m_pis enabled ${VT1M_ENABLE} 
    12592    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1y_pis enabled ${VT1Y_ENABLE} 
     93 
     94    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1d_pis output_level ${pisces_UserChoices_OutputLevel} 
     95    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 5d_pis output_level ${pisces_UserChoices_OutputLevel} 
     96    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1m_pis output_level ${pisces_UserChoices_OutputLevel} 
     97    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1y_pis output_level ${pisces_UserChoices_OutputLevel} 
     98 
    12699    
    127100    IGCM_debug_PopStack "MBG_Update" 
Note: See TracChangeset for help on using the changeset viewer.