Changeset 3459


Ignore:
Timestamp:
Jan 31, 2019, 8:22:47 PM (6 years ago)
Author:
oboucher
Message:

Changing hard-coded value of 28.97 g/mol by RMD physical constant defined in suphel.F90
As rmd = 28.9644, this involves a lack of numerical convergence with previous commit.

Location:
LMDZ6/trunk/libf/phylmd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/carbon_cycle_mod.F90

    r3453 r3459  
    562562         
    563563          ! Transformation of atmospheric CO2 concentration for the radiation code
    564           RCO2 = co2_ppm * 1.0e-06  * RMCO2/28.97
     564          RCO2 = co2_ppm * 1.0e-06 * RMCO2 / RMD
    565565         
    566566          WRITE(lunout,*) 'RCO2 is now updated! RCO2 = ', RCO2
  • LMDZ6/trunk/libf/phylmd/conf_phys_m.F90

    r3447 r3459  
    596596    ! RCO2 = 5.286789092164308E-04
    597597    !ancienne valeur
    598     RCO2_omp = co2_ppm_omp * 1.0e-06  * 44.011/28.97 ! pour co2_ppm=348.
     598    RCO2_omp = co2_ppm_omp * 1.0e-06 * RMCO2 / RMD ! pour co2_ppm=348.
    599599
    600600    !  CALL getin('RCO2', RCO2)
     
    616616    CALL getin('CH4_ppb', zzz)
    617617    CH4_ppb_omp = zzz
    618     RCH4_omp = CH4_ppb_omp * 1.0E-09 * 16.043/28.97
     618    RCH4_omp = CH4_ppb_omp * 1.0E-09 * RMCH4 / RMD
    619619    !
    620620    !Config Key  = RN2O
     
    634634    CALL getin('N2O_ppb', zzz)
    635635    N2O_ppb_omp = zzz
    636     RN2O_omp = N2O_ppb_omp * 1.0E-09 * 44.013/28.97
     636    RN2O_omp = N2O_ppb_omp * 1.0E-09 * RMN2O / RMD
    637637    !
    638638    !Config Key  = RCFC11
     
    646646    CALL getin('CFC11_ppt',zzz)
    647647    CFC11_ppt_omp = zzz
    648     RCFC11_omp=CFC11_ppt_omp* 1.0E-12 * 137.3686/28.97
     648    RCFC11_omp=CFC11_ppt_omp* 1.0E-12 * RMCFC11 / RMD
    649649    ! RCFC11 = 1.327690990680013E-09
    650650    !OK CALL getin('RCFC11', RCFC11)
     
    660660    CALL getin('CFC12_ppt',zzz)
    661661    CFC12_ppt_omp = zzz
    662     RCFC12_omp = CFC12_ppt_omp * 1.0E-12 * 120.9140/28.97
     662    RCFC12_omp = CFC12_ppt_omp * 1.0E-12 * RMCFC12 / RMD
    663663    ! RCFC12 = 2.020102726958923E-09
    664664    !OK CALL getin('RCFC12', RCFC12)
     
    680680    !Config Help =
    681681    !               
    682     RCO2_per_omp = co2_ppm_per_omp * 1.0e-06  * 44.011/28.97
     682    RCO2_per_omp = co2_ppm_per_omp * 1.0e-06 * RMCO2 / RMD
    683683
    684684    !Config Key  = ok_4xCO2atm
     
    695695    CALL getin('CH4_ppb_per', zzz)
    696696    CH4_ppb_per_omp = zzz
    697     RCH4_per_omp = CH4_ppb_per_omp * 1.0E-09 * 16.043/28.97
     697    RCH4_per_omp = CH4_ppb_per_omp * 1.0E-09 * RMCH4 / RMD
    698698    !
    699699    !Config Key  = RN2O_per
     
    705705    CALL getin('N2O_ppb_per', zzz)
    706706    N2O_ppb_per_omp = zzz
    707     RN2O_per_omp = N2O_ppb_per_omp * 1.0E-09 * 44.013/28.97
     707    RN2O_per_omp = N2O_ppb_per_omp * 1.0E-09 * RMN2O / RMD
    708708    !
    709709    !Config Key  = RCFC11_per
     
    715715    CALL getin('CFC11_ppt_per',zzz)
    716716    CFC11_ppt_per_omp = zzz
    717     RCFC11_per_omp=CFC11_ppt_per_omp* 1.0E-12 * 137.3686/28.97
     717    RCFC11_per_omp=CFC11_ppt_per_omp* 1.0E-12 * RMCFC11 / RMD
    718718    !
    719719    !Config Key  = RCFC12_per
     
    725725    CALL getin('CFC12_ppt_per',zzz)
    726726    CFC12_ppt_per_omp = zzz
    727     RCFC12_per_omp = CFC12_ppt_per_omp * 1.0E-12 * 120.9140/28.97
     727    RCFC12_per_omp = CFC12_ppt_per_omp * 1.0E-12 * RMCFC12 / RMD
    728728    !ajout CFMIP end
    729729
  • LMDZ6/trunk/libf/phylmd/phyetat0.F90

    r3457 r3459  
    110110  IF (carbon_cycle_tr .OR. carbon_cycle_cpl) THEN
    111111     co2_ppm = tab_cntrl(3)
    112      RCO2    = co2_ppm * 1.0e-06  * RMCO2/28.97
     112     RCO2    = co2_ppm * 1.0e-06 * RMCO2 / RMD
    113113     ! ELSE : keep value from .def
    114114  ENDIF
Note: See TracChangeset for help on using the changeset viewer.