Ignore:
Timestamp:
Feb 18, 2026, 10:28:23 AM (7 weeks ago)
Author:
mturbet
Message:

renaming and merging of radiative routines in phygeneric

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phygeneric/rad_correlatedk_opacities_stellar.F90

    r4076 r4077  
    1 MODULE optcv_mod
     1MODULE rad_correlatedk_opacities_stellar_mod
    22
    33IMPLICIT NONE
     
    55CONTAINS
    66
    7 SUBROUTINE OPTCV(DTAUV,TAUV,TAUCUMV,PLEV,  &
     7SUBROUTINE rad_correlatedk_opacities_stellar(DTAUV,TAUV,TAUCUMV,PLEV,  &
    88     QXVAER,QSVAER,GVAER,WBARV,COSBV,       &
    99     TAUAERO,TMID,PMID,TAUGSURF,QVAR,MUVAR,FRACVAR)
     
    1616  use callkeys_mod, only: kastprof,continuum,graybody,callgasvis,varspec, &
    1717                          rayleigh
    18   use recombin_corrk_mod, only: corrk_recombin, gasv_recomb
     18  use rad_correlatedk_online_recombination_mod, only: corrk_recombin, gasv_recomb
    1919  use tpindex_mod, only: tpindex
    20   use interpolate_continuum_mod, only: interpolate_continuum
    21   use calc_rayleigh_mod, only: calc_rayleigh
     20  use rad_correlatedk_continuum_interpolation_mod, only: rad_correlatedk_continuum_interpolation
     21  use rad_correlatedk_rayleigh_scattering_opacity_mod, only: rad_correlatedk_rayleigh_scattering_opacity
    2222
    2323  implicit none
     
    138138     else
    139139        dz(k) = dpr(k)*R*TMID(K)/(glat_ig*PMID(K))*mugaz/muvar(k)
    140         U(k)  = Cmk*DPR(k)*mugaz/muvar(k)     ! only Cmk line in optci.F 
     140        U(k)  = Cmk*DPR(k)*mugaz/muvar(k)     ! only Cmk line in rad_correlatedk_opacities_thermal.F 
    141141            !JL13 the mugaz/muvar factor takes into account water meanmolecular weight if water is present
    142142     endif
     
    154154            !   but visible does not handle very well diffusion in first layer.
    155155            !   The tauaero and tauray are thus set to 0 (a small value for rayleigh because the code crashes otherwise)
    156             !   in the 4 first semilayers in optcv, but not optci.
     156            !   in the 4 first semilayers in rad_correlatedk_opacities_stellar, but not rad_correlatedk_opacities_thermal.
    157157            !   This solves random variations of the sw heating at the model top.
    158158  do iaer=1,naerkind
     
    170170
    171171      if(rayleigh) then
    172          call calc_rayleigh(QVAR,MUVAR,PMID,TMID,TAURAY)
     172         call rad_correlatedk_rayleigh_scattering_opacity(QVAR,MUVAR,PMID,TMID,TAURAY)
    173173      else
    174          print*,'setspv: No Rayleigh scattering, check for NaN in output!'
     174         print*,'rad_correlatedk_init_stellar: No Rayleigh scattering, check for NaN in output!'
    175175         do NW=1,L_NSPECTV
    176176            TAURAY(:,NW) = 1E-16
     
    243243                     ((igas .eq. igas_CO2) .and. (jgas .eq. igas_CH4)) ) then
    244244
    245                   call interpolate_continuum('',igas,jgas,'VI',nw,T_cont,p_cont,p_cross,dtemp,.false.)
     245                  call rad_correlatedk_continuum_interpolation('',igas,jgas,'VI',nw,T_cont,p_cont,p_cross,dtemp,.false.)
    246246
    247247                endif
     
    268268           
    269269              ! JVO 2017 : added tmpk because the repeated calls to gasi/v increased dramatically
    270               ! the execution time of optci/v -> ~ factor 2 on the whole radiative
     270              ! the execution time of rad_correlatedk_opacities_thermal/v -> ~ factor 2 on the whole radiative
    271271              ! transfer on the tested simulations !
    272272
     
    334334            !JL18 It seems to be good to have aerosols in the first "radiative layer" of the gcm in the IR
    335335            !   but not in the visible
    336             !   The tauaero is thus set to 0 in the 4 first semilayers in optcv, but not optci.
     336            !   The tauaero is thus set to 0 in the 4 first semilayers in rad_correlatedk_opacities_stellar, but not rad_correlatedk_opacities_thermal.
    337337            !   This solves random variations of the sw heating at the model top.
    338338  do iaer=1,naerkind
     
    407407
    408408
    409 end subroutine optcv
    410 
    411 END MODULE optcv_mod
     409end subroutine rad_correlatedk_opacities_stellar
     410
     411END MODULE rad_correlatedk_opacities_stellar_mod
Note: See TracChangeset for help on using the changeset viewer.