Changeset 3758 for CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/pisces.driver
- Timestamp:
- 04/13/18 13:41:50 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/pisces.driver
r3687 r3758 68 68 fi 69 69 70 ##-- Enable dbio output file71 DBIO_ENABLE=".FALSE."72 eval pisces_DBIO_ENABLE=\${pisces_UserChoices_DBIO_ENABLE} > /dev/null 2>&173 if [ "${pisces_DBIO_ENABLE}" = "y" ]; then74 DBIO_ENABLE=".TRUE."75 fi76 70 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} 104 78 105 79 ##-- Update namelist_top_cfg and namelist_pisces_cfg … … 110 84 # Update iodef.xml 111 85 112 if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then113 VT1D_ENABLE=".FALSE."114 VT5D_ENABLE=".FALSE."115 VT1M_ENABLE=".FALSE."116 VT1Y_ENABLE=".FALSE."117 fi118 119 86 IGCM_debug_Print 1 'Informations into iodef.xml : VT1D_ENABLE VT5D_ENABLE VT1M_ENABLE VT1Y_ENABLE ' 120 87 IGCM_debug_Print 1 ${VT1D_ENABLE} ${VT5D_ENABLE} ${VT1M_ENABLE} ${VT1Y_ENABLE} … … 124 91 IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1m_pis enabled ${VT1M_ENABLE} 125 92 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 126 99 127 100 IGCM_debug_PopStack "MBG_Update"
Note: See TracChangeset
for help on using the changeset viewer.