Ignore:
Timestamp:
08/18/11 17:41:19 (13 years ago)
Author:
jgipsl
Message:

Modifications in working configuration :

Modifications in lmdz.card and lmdz.driver

  • GHG forcing files should now be copied in files with standard names such as CO2.txt, CH4.txt, N2O.txt, CFC11.txt and CFC12.txt. Now the

lmdz.driver will update the GHG parameters in physiq.def as soon as one
of theses files are added in lmdz.card.

  • removed CO2_1765_2005.txt from Chistorical/COMP/lmdz.card, the file is not used in this experience

Modifications in pisces.driver and pisces.card

  • add option CARBON_CYCLE=y to be set in pisces.card section UserChoices? for experience Chistorical and CpiControl?. With this option, co2 will

be read from co2.log file as before.

  • modified pisces.driver to read co2 from file CO2.txt if existing. As done in lmdz.driver
  • all pisces.driver are now the same
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5-2/Chistorical/COMP/lmdz.driver

    r1316 r1535  
    153153    [ ${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 ) 
    154154 
    155     ##-- GHG forcing for the current year 
    156     IPCC_SOLAR=`grep Annee_${year} SOLARANDVOLCANOES_1610_2008.txt | awk -F= '{print $2}'` 
    157 #    IPCC_CO2=`grep Annee_${year} CO2_1765_2005.txt | awk -F= '{print $2}'` 
    158     IPCC_CH4=`grep Annee_${year} CH4_1765_2005.txt | awk -F= '{print $2}'` 
    159     IPCC_N2O=`grep Annee_${year} N2O_1765_2005.txt | awk -F= '{print $2}'` 
    160     IPCC_CFC11=`grep Annee_${year} CFC11_1765_2005.txt | awk -F= '{print $2}'` 
    161     IPCC_CFC12=`grep Annee_${year} CFC12_1765_2005.txt | awk -F= '{print $2}'` 
     155    ##-- GHG forcing : 
     156    ##   If forcing file exist in run directory, read values for the current year and modify physiq.def 
     157    if [ -f SOLARANDVOLCANOES.txt ] ; then 
     158        IPCC_SOLAR=`grep Annee_${year} SOLARANDVOLCANOES.txt | awk -F= '{print $2}'` 
     159        LMDZ_sed physiq.def solaire     ${IPCC_SOLAR} 
     160    fi 
     161    if [ -f CO2.txt ] ; then 
     162        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 
     163        LMDZ_sed physiq.def co2_ppm     ${IPCC_CO2} 
     164    fi 
     165    if [ -f CH4.txt ] ; then 
     166        IPCC_CH4=`grep Annee_${year} CH4.txt | awk -F= '{print $2}'` 
     167        LMDZ_sed physiq.def CH4_ppb     ${IPCC_CH4} 
     168    fi 
     169    if [ -f N2O.txt ] ; then 
     170        IPCC_N2O=`grep Annee_${year} N2O.txt | awk -F= '{print $2}'` 
     171        LMDZ_sed physiq.def N2O_ppb     ${IPCC_N2O} 
     172    fi 
     173    if [ -f CFC11.txt ] ; then 
     174        IPCC_CFC11=`grep Annee_${year} CFC11.txt | awk -F= '{print $2}'` 
     175        LMDZ_sed physiq.def CFC11_ppt   ${IPCC_CFC11} 
     176    fi 
     177    if [ -f CFC12.txt ] ; then 
     178        IPCC_CFC12=`grep Annee_${year} CFC12.txt | awk -F= '{print $2}'` 
     179        LMDZ_sed physiq.def CFC12_ppt   ${IPCC_CFC12} 
     180    fi 
    162181 
    163182    if ( ${FirstInitialize} && [ X"${config_ATM_Restart}" = X"n" ]) ; then 
     
    243262    LMDZ_sed physiq.def ok_hfCOSP   ${LMDZ_COSP_hf} 
    244263    LMDZ_sed physiq.def ok_histNMC  "${LMDZ_NMC_monthly}, ${LMDZ_NMC_daily}, ${LMDZ_NMC_hf}" 
    245     LMDZ_sed physiq.def solaire     ${IPCC_SOLAR} 
    246 #    LMDZ_sed physiq.def co2_ppm     ${IPCC_CO2} 
    247264    LMDZ_sed physiq.def co2_ppm     ${CO2_ppm} 
    248     LMDZ_sed physiq.def CH4_ppb     ${IPCC_CH4} 
    249     LMDZ_sed physiq.def N2O_ppb     ${IPCC_N2O} 
    250     LMDZ_sed physiq.def CFC11_ppt   ${IPCC_CFC11} 
    251     LMDZ_sed physiq.def CFC12_ppt   ${IPCC_CFC12} 
    252265 
    253266    ## gcm.def parameters : no change since gcm.def_${RESOL_ATM_3D} is used and already modified 
     
    348361    # Formula 
    349362    CO2_ppm=$( echo "${CO2_ppm_prec} + (${fCO2_ff} + ${CO2MBG} + ${CO2SBG}) / 2.12" | bc -l ) 
    350     echo "New CO2  :" ${CO2_ppm}  
     363    echo "New CO2  :" ${CO2_ppm} 
    351364 
    352365    # Save CO2 values in ExeCpuLog variable contents 5 fields 
Note: See TracChangeset for help on using the changeset viewer.