Ignore:
Timestamp:
May 12, 2021, 2:45:26 PM (4 years ago)
Author:
Guillaume Chaverot
Message:

update of the H2O continuum

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
1 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/callkeys_mod.F90

    r2482 r2520  
    1010      logical,save :: callstats,calleofdump
    1111!$OMP THREADPRIVATE(callstats,calleofdump)
    12       logical,save :: callgasvis,continuum,H2Ocont_simple,graybody
    13 !$OMP THREADPRIVATE(callgasvis,continuum,H2Ocont_simple,graybody)
     12      logical,save :: callgasvis,continuum,graybody
     13!$OMP THREADPRIVATE(callgasvis,continuum,graybody)
    1414      logical,save :: strictboundcorrk                                     
    1515!$OMP THREADPRIVATE(strictboundcorrk)
  • trunk/LMDZ.GENERIC/libf/phystd/inifis_mod.F90

    r2482 r2520  
    265265     call getin_p("continuum",continuum)
    266266     write(*,*) " continuum = ",continuum
    267 
    268      write(*,*) "use analytic function for H2O continuum ?"
    269      H2Ocont_simple=.false. ! default value
    270      call getin_p("H2Ocont_simple",H2Ocont_simple)
    271      write(*,*) " H2Ocont_simple = ",H2Ocont_simple
    272267 
    273268     write(*,*) "version for H2H2 CIA file ?"
  • trunk/LMDZ.GENERIC/libf/phystd/optci.F90

    r2133 r2520  
    1414  use gases_h, only: gfrac, ngasmx, igas_N2, igas_He, igas_H2O, igas_H2
    1515  use comcstfi_mod, only: g, r, mugaz
    16   use callkeys_mod, only: kastprof,continuum,graybody,H2Ocont_simple
     16  use callkeys_mod, only: kastprof,continuum,graybody
    1717  implicit none
    1818
     
    205205                 enddo
    206206
    207               elseif(igas.eq.igas_H2O.and.T_cont.gt.200.0)then
    208 
     207              elseif(igas.eq.igas_H2O.and.T_cont.gt.100.0)then
     208                 ! Compute self and foreign (with air) continuum of H2O
    209209                 p_air = dble(PMID(k)*scalep) - p_cont ! note assumes background is air!
    210                  if(H2Ocont_simple)then
    211                     call interpolateH2Ocont_PPC(wn_cont,T_cont,p_cont,p_air,dtemp,.false.)
    212                  else
    213                     interm = indi(nw,igas,igas)
    214                     call interpolateH2Ocont_CKD(wn_cont,T_cont,p_cont,p_air,dtemp,.false.,interm)
    215                     indi(nw,igas,igas) = interm
    216                  endif
     210                 interm = indi(nw,igas,igas)
     211                 call interpolateH2O_self_foreign(wn_cont,T_cont,p_cont,p_air,dtemp,.false.,interm) ! MTCKD v3.3
     212                 indi(nw,igas,igas) = interm
    217213
    218214              endif
  • trunk/LMDZ.GENERIC/libf/phystd/optcv.F90

    r2133 r2520  
    1313  use gases_h, only: gfrac, ngasmx, igas_H2, igas_H2O, igas_He, igas_N2
    1414  use comcstfi_mod, only: g, r, mugaz
    15   use callkeys_mod, only: kastprof,continuum,graybody,H2Ocont_simple,callgasvis
     15  use callkeys_mod, only: kastprof,continuum,graybody,callgasvis
    1616
    1717  implicit none
     
    214214                 enddo
    215215
    216               elseif(igas.eq.igas_H2O.and.T_cont.gt.200.0)then
    217 
     216              elseif(igas.eq.igas_H2O.and.T_cont.gt.100.0)then
     217                 ! Compute self and foreign (with air) continuum of H2O
    218218                 p_air = dble(PMID(k)*scalep) - p_cont ! note assumes background is air!
    219                  if(H2Ocont_simple)then
    220                     call interpolateH2Ocont_PPC(wn_cont,T_cont,p_cont,p_air,dtemp,.false.)
    221                  else
    222                     interm = indv(nw,igas,igas)
    223                     call interpolateH2Ocont_CKD(wn_cont,T_cont,p_cont,p_air,dtemp,.false.,interm)
    224                     indv(nw,igas,igas) = interm
    225                  endif
     219                 interm = indv(nw,igas,igas)
     220                 call interpolateH2O_self_foreign(wn_cont,T_cont,p_cont,p_air,dtemp,.false.,interm) ! MTCKD v3.3
     221                 indv(nw,igas,igas) = interm
    226222
    227223              endif
  • trunk/LMDZ.GENERIC/libf/phystd/sugas_corrk.F90

    r2032 r2520  
    3232      use ioipsl_getin_p_mod, only: getin_p
    3333      use callkeys_mod, only: varactive,varfixed,graybody,callgasvis,&
    34                 continuum,H2Ocont_simple
     34                continuum
    3535      implicit none
    3636
     
    643643         elseif (igas .eq. igas_H2O) then
    644644
    645             ! H2O is special
    646             if(H2Ocont_simple)then
    647                call interpolateH2Ocont_PPC(990.D+0,296.D+0,683.2D+0*2,0.D+0,testcont,.true.)
    648             else
    649                dummy = -9999
    650                call interpolateH2Ocont_CKD(990.D+0,296.D+0,683.2D+0*2,0.D+0,testcont,.true.,dummy)
    651             endif
     645            ! Compute self and foreign (with air) continuum of H2O
     646            dummy = -9999
     647            call interpolateH2O_self_foreign(990.D+0,296.D+0,683.2D+0*2,0.D+0,testcont,.true.,dummy) 
    652648
    653649         endif
Note: See TracChangeset for help on using the changeset viewer.