Ignore:
Timestamp:
04/13/18 13:41:50 (4 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)

Location:
CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER
Files:
5 edited

Legend:

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

    r3687 r3758  
    4444    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim enabled ${VI1Y_ENABLE} 
    4545 
     46    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d_lim output_level ${lim2_UserChoices_OutputLevel} 
     47    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d_lim output_level ${lim2_UserChoices_OutputLevel} 
     48    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m_lim output_level ${lim2_UserChoices_OutputLevel} 
     49    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim output_level ${lim2_UserChoices_OutputLevel} 
     50 
    4651    echo UPDATE ICE !!! 
    4752 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/lim3.driver

    r3687 r3758  
    3636  # Update iodef.xml 
    3737 
    38     if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then        
    39         VI1D_ENABLE=".FALSE." 
    40         VI5D_ENABLE=".FALSE." 
    41         VI1M_ENABLE=".FALSE." 
    42         VI1Y_ENABLE=".FALSE." 
    43     fi 
    44  
    4538    IGCM_debug_Print 1 'Informations into iodef.xml : VI1D_ENABLE VI5D_ENABLE VI1M_ENABLE VI1Y_ENABLE ' 
    4639    IGCM_debug_Print 1 ${VI1D_ENABLE}  ${VI5D_ENABLE} ${VI1M_ENABLE} ${VI1Y_ENABLE} 
     
    5043    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m_lim enabled ${VI1M_ENABLE} 
    5144    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim enabled ${VI1Y_ENABLE} 
     45 
     46    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d_lim output_level ${lim3_UserChoices_OutputLevel} 
     47    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d_lim output_level ${lim3_UserChoices_OutputLevel} 
     48    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m_lim output_level ${lim3_UserChoices_OutputLevel} 
     49    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim output_level ${lim3_UserChoices_OutputLevel} 
     50 
    5251 
    5352    echo UPDATE ICE !!! 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/lmdz.driver

    r3687 r3758  
    8181    done 
    8282 
    83     if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
    84         ok_mensuel=.FALSE. 
    85         ok_journe=.FALSE. 
    86         ok_hf=.FALSE. 
    87         ok_hf3h=.FALSE. 
    88         ok_hf3hm=.FALSE. 
    89         ok_stn=.FALSE. 
    90     fi 
    9183 
    9284##  Read LMDZ_COSP_OK in lmdz.card 
     
    373365    fi 
    374366 
     367 
     368    # run.def : Activate the call to phytrac  
     369    if [ ! X${lmdz_UserChoices_iflag_phytrac} = X ]; then  
     370        IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac ${lmdz_UserChoices_iflag_phytrac} 
     371    else 
     372        IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac 0 
     373    fi  
     374 
     375    # physiq.def : Activate the call to phytrac  
     376    if [ ! X${lmdz_UserChoices_ok_bug_cv_trac} = X ]; then  
     377        IGCM_comp_modifyDefFile nonblocker physiq.def ok_bug_cv_trac  ${lmdz_UserChoices_ok_bug_cv_trac} 
     378    else 
     379        IGCM_comp_modifyDefFile nonblocker physiq.def ok_bug_cv_trac  n 
     380    fi  
    375381 
    376382    # config.def : Activate direct radiative effect if ok_ade=y 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/opa9.driver

    r3687 r3758  
    6868        IGCM_debug_Verif_Exit 
    6969    fi 
     70 
     71    if [[ ${opa9_UserChoices_TimeOrigin} -gt ${InitYear} ]] ; then 
     72        echo 
     73        echo 
     74        IGCM_debug_Exit "TimeOrigin=${opa9_UserChoices_TimeOrigin} is greater than initial year=${InitYear}. IT MUST BE LOWER ! Change this value in opa9.card" 
     75        IGCM_debug_Verif_Exit 
     76    fi 
     77 
    7078     
    7179    IGCM_debug_PopStack "OCE_Initialize" 
     
    186194    # Update iodef.xml 
    187195 
    188     if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then        
    189         V1D_ENABLE=".FALSE." 
    190         V5D_ENABLE=".FALSE." 
    191         V1M_ENABLE=".FALSE." 
    192         V1Y_ENABLE=".FALSE." 
    193     fi 
    194  
    195196    IGCM_debug_Print 1 'Informations into iodef.xml : V1D_ENABLE V5D_ENABLE V1M_ENABLE V1Y_ENABLE ' 
    196197    IGCM_debug_Print 1 ${V1D_ENABLE}  ${V5D_ENABLE} ${V1M_ENABLE} ${V1Y_ENABLE} 
     
    200201    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1m_opa enabled ${V1M_ENABLE} 
    201202    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1y_opa enabled ${V1Y_ENABLE} 
     203 
     204    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1d_opa output_level ${opa9_UserChoices_OutputLevel} 
     205    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 5d_opa output_level ${opa9_UserChoices_OutputLevel} 
     206    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1m_opa output_level ${opa9_UserChoices_OutputLevel} 
     207    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1y_opa output_level ${opa9_UserChoices_OutputLevel} 
     208 
    202209 
    203210    IGCM_comp_modifyXmlFile force context_nemo.xml ref_year NONE ${opa9_UserChoices_TimeOrigin} 
  • 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.