Changeset 1550 for CONFIG/IPSLCM/IPSLCM5-2/EXPALL/DRIVER/pisces.driver
- Timestamp:
- 08/30/11 14:53:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/IPSLCM/IPSLCM5-2/EXPALL/DRIVER/pisces.driver
r1549 r1550 30 30 { 31 31 IGCM_debug_PushStack "MBG_Update" 32 33 # Local function to find parameters in LMDZ .def files 34 lmdzgrep () { 35 grep $1 $2 |grep -v "#" | awk "-F=" '{print $2}' 36 } 32 37 33 38 ##-- Restart configuration … … 75 80 IGCM_sys_Mv iodef.xml.tmp iodef.xml 76 81 77 ##-- CO2 forcing : update atcco2 value in namelist_pisces for some cases82 ##-- CO2 forcing : update atcco2 value in namelist_pisces 78 83 if [ "${piseces_UserChoices_CARBON_CYCLE}" = "y" ]; then 79 84 # Special case for carbon cycle … … 86 91 namelist_pisces > namelist_pisces.tmp 87 92 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 else 94 # Take same CO2 as for LMDZ, in parameter file config.def. 95 # ATM_Update is done before MBG_Update and therefor config.def file contains the correct value for CO2. 96 echo 'Update atcco2 in namelist_pisces with same value as for LMDZ' 97 LMDZ_CO2=$( lmdzgrep co2_ppm config.def ) 98 sed -e "s%${PAT_PIS_ATCCO2}% atcco2=${LMDZ_CO2}%" \ 93 99 namelist_pisces > namelist_pisces.tmp 94 100 IGCM_sys_Mv namelist_pisces.tmp namelist_pisces
Note: See TracChangeset
for help on using the changeset viewer.