- Timestamp:
- Feb 18, 2026, 10:28:23 AM (7 weeks ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phygeneric/rad_correlatedk_opacities_stellar.F90
r4076 r4077 1 MODULE optcv_mod1 MODULE rad_correlatedk_opacities_stellar_mod 2 2 3 3 IMPLICIT NONE … … 5 5 CONTAINS 6 6 7 SUBROUTINE OPTCV(DTAUV,TAUV,TAUCUMV,PLEV, &7 SUBROUTINE rad_correlatedk_opacities_stellar(DTAUV,TAUV,TAUCUMV,PLEV, & 8 8 QXVAER,QSVAER,GVAER,WBARV,COSBV, & 9 9 TAUAERO,TMID,PMID,TAUGSURF,QVAR,MUVAR,FRACVAR) … … 16 16 use callkeys_mod, only: kastprof,continuum,graybody,callgasvis,varspec, & 17 17 rayleigh 18 use r ecombin_corrk_mod, only: corrk_recombin, gasv_recomb18 use rad_correlatedk_online_recombination_mod, only: corrk_recombin, gasv_recomb 19 19 use tpindex_mod, only: tpindex 20 use interpolate_continuum_mod, only: interpolate_continuum21 use calc_rayleigh_mod, only: calc_rayleigh20 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 22 22 23 23 implicit none … … 138 138 else 139 139 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.F140 U(k) = Cmk*DPR(k)*mugaz/muvar(k) ! only Cmk line in rad_correlatedk_opacities_thermal.F 141 141 !JL13 the mugaz/muvar factor takes into account water meanmolecular weight if water is present 142 142 endif … … 154 154 ! but visible does not handle very well diffusion in first layer. 155 155 ! 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. 157 157 ! This solves random variations of the sw heating at the model top. 158 158 do iaer=1,naerkind … … 170 170 171 171 if(rayleigh) then 172 call calc_rayleigh(QVAR,MUVAR,PMID,TMID,TAURAY)172 call rad_correlatedk_rayleigh_scattering_opacity(QVAR,MUVAR,PMID,TMID,TAURAY) 173 173 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!' 175 175 do NW=1,L_NSPECTV 176 176 TAURAY(:,NW) = 1E-16 … … 243 243 ((igas .eq. igas_CO2) .and. (jgas .eq. igas_CH4)) ) then 244 244 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.) 246 246 247 247 endif … … 268 268 269 269 ! 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 radiative270 ! the execution time of rad_correlatedk_opacities_thermal/v -> ~ factor 2 on the whole radiative 271 271 ! transfer on the tested simulations ! 272 272 … … 334 334 !JL18 It seems to be good to have aerosols in the first "radiative layer" of the gcm in the IR 335 335 ! 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. 337 337 ! This solves random variations of the sw heating at the model top. 338 338 do iaer=1,naerkind … … 407 407 408 408 409 end subroutine optcv410 411 END MODULE optcv_mod409 end subroutine rad_correlatedk_opacities_stellar 410 411 END MODULE rad_correlatedk_opacities_stellar_mod
Note: See TracChangeset
for help on using the changeset viewer.
