Changeset 1535 for CONFIG/IPSLCM/IPSLCM5-2/piControl
- Timestamp:
- 08/18/11 17:41:19 (13 years ago)
- Location:
- CONFIG/IPSLCM/IPSLCM5-2/piControl/COMP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/IPSLCM/IPSLCM5-2/piControl/COMP/lmdz.driver
r1172 r1535 134 134 135 135 [ ${CumulPeriod} -gt 1 ] && ( IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ; IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ) 136 137 ##-- GHG forcing : 138 ## If forcing file exist in run directory, read values for the current year and modify physiq.def 139 if [ -f SOLARANDVOLCANOES.txt ] ; then 140 IPCC_SOLAR=`grep Annee_${year} SOLARANDVOLCANOES.txt | awk -F= '{print $2}'` 141 LMDZ_sed physiq.def solaire ${IPCC_SOLAR} 142 fi 143 if [ -f CO2.txt ] ; then 144 IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 145 LMDZ_sed physiq.def co2_ppm ${IPCC_CO2} 146 fi 147 if [ -f CH4.txt ] ; then 148 IPCC_CH4=`grep Annee_${year} CH4.txt | awk -F= '{print $2}'` 149 LMDZ_sed physiq.def CH4_ppb ${IPCC_CH4} 150 fi 151 if [ -f N2O.txt ] ; then 152 IPCC_N2O=`grep Annee_${year} N2O.txt | awk -F= '{print $2}'` 153 LMDZ_sed physiq.def N2O_ppb ${IPCC_N2O} 154 fi 155 if [ -f CFC11.txt ] ; then 156 IPCC_CFC11=`grep Annee_${year} CFC11.txt | awk -F= '{print $2}'` 157 LMDZ_sed physiq.def CFC11_ppt ${IPCC_CFC11} 158 fi 159 if [ -f CFC12.txt ] ; then 160 IPCC_CFC12=`grep Annee_${year} CFC12.txt | awk -F= '{print $2}'` 161 LMDZ_sed physiq.def CFC12_ppt ${IPCC_CFC12} 162 fi 136 163 137 164 ## physiq.def parameters modified from initial physiq_L${RESOL_ATM_Z} -
CONFIG/IPSLCM/IPSLCM5-2/piControl/COMP/pisces.driver
r1437 r1535 11 11 } 12 12 13 ##--Variables used by OPA --14 15 16 13 ##--Variables used by MBG -- 17 14 … … 23 20 PAT_TOP_LRSTTR=$( supergrep ln_rsttr ${SUBMIT_DIR}/PARAM/namelist_top_${RESOL_OCE} ) 24 21 PAT_TOP_NRSTTR=$( supergrep nrsttr ${SUBMIT_DIR}/PARAM/namelist_top_${RESOL_OCE} ) 22 PAT_PIS_ATCCO2=$( supergrep atcco2 ${SUBMIT_DIR}/PARAM/namelist_pisces_${RESOL_OCE} ) 25 23 PAT_PIS_LRIVER=$( supergrep ln_river ${SUBMIT_DIR}/PARAM/namelist_pisces_${RESOL_OCE} ) 26 24 … … 77 75 IGCM_sys_Mv iodef.xml.tmp iodef.xml 78 76 77 ##-- CO2 forcing : update atcco2 value in namelist_pisces for some cases 78 if [ "${piseces_UserChoices_CARBON_CYCLE}" = "y" ]; then 79 # Special case for carbon cycle 80 # Activate this case by putting CARBON_CYCLE=y in pisces.card section UserChoices 81 echo 'Update atcco2 in namelist_pisces with value from file co2.log' 82 PathCO2log=${SUBMIT_DIR} 83 PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log ) 84 IPCC_PIS_CO2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' ) 85 sed -e "s%${PAT_PIS_ATCCO2}% atcco2=${IPCC_PIS_CO2}%" \ 86 namelist_pisces > namelist_pisces.tmp 87 IGCM_sys_Mv namelist_pisces.tmp namelist_pisces 88 elif [ -f CO2.txt ] ; then 89 # This case is activated if the file CO2.txt is found in run directory, add file in BoundaryFiles in pisces.card or lmdz.card 90 echo 'Update atcco2 in namelist_pisces with annual value from file CO2.txt' 91 IPCC_PIS_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 92 sed -e "s%${PAT_PIS_ATCCO2}% atcco2=${IPCC_PIS_CO2}%" \ 93 namelist_pisces > namelist_pisces.tmp 94 IGCM_sys_Mv namelist_pisces.tmp namelist_pisces 95 fi 96 79 97 ##-- Update namelist_top and namelist_pisces 80 98
Note: See TracChangeset
for help on using the changeset viewer.