Changeset 3696 for trunk/LMDZ.GENERIC/libf/phystd/calc_rayleigh.F90
- Timestamp:
- Mar 20, 2025, 9:02:16 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/LMDZ.GENERIC/libf/phystd/calc_rayleigh.F90 ¶
r3663 r3696 1 module calc_rayleigh_mod 2 3 implicit none 4 5 contains 6 1 7 subroutine calc_rayleigh(qvar,muvar,PMID,TMID,tauray) 2 8 … … 67 73 character(len=10),parameter :: subname="rayleigh" 68 74 logical, save :: firstcall=.true. 69 75 !$OMP THREADPRIVATE(firstcall) 76 70 77 integer icantbewrong 71 78 … … 111 118 ! Convert qvar mol/mol -> kg/kg 112 119 if((igas.eq.vgas).and.(maxval(QVAR(:)).ge.1.e-2))then 113 print*,'variable gas is ',trim(gnom(igas)),' in Rayleigh scattering '120 ! print*,'variable gas is ',trim(gnom(igas)),' in Rayleigh scattering ' 114 121 mass_frac(igas,:) = QVAR(:)*massmol(igas)/muvar(:) 115 122 elseif((igas/=vgas).and.(gfrac(igas).ge.1.e-2))then 116 123 mass_frac(igas,:) = gfrac(igas)*(1.-QVAR(:))*massmol(igas)/muvar(:) 117 124 else 118 print*,'Ignoring ',trim(gnom(igas)),' in Rayleigh scattering '// &119 'as its mixing ratio is less than 0.01.'125 ! print*,'Ignoring ',trim(gnom(igas)),' in Rayleigh scattering '// & 126 ! 'as its mixing ratio is less than 0.01.' 120 127 ! ignore variable gas in Rayleigh calculation 121 128 ! ignore gases of mixing ratio < 0.01 in Rayleigh calculation … … 125 132 enddo 126 133 127 ! ATTENTION, au delà de 60000 cm-1, pour toutes les molécules, il y a des singularités en lien avec la formule d'interpolation.134 ! WARNING, beyond 60000 cm-1, for all molecules, there are singularities due to the interpolation formula. 128 135 129 136 … … 188 195 P0(:) = pmid(:)*scalep 189 196 lr = 0.589 190 rho(:) = mass_frac(igas,:)*muvar(:)/massmol(igas)*P0(:)/(8.314463*T0(:)/ muvar(:)/1000.)197 rho(:) = mass_frac(igas,:)*muvar(:)/massmol(igas)*P0(:)/(8.314463*T0(:)/(muvar(:)/1000.)) 191 198 rhos(:) = rho(:)/rhor 192 199 ts(:) = T0(:)/Tr … … 281 288 282 289 end subroutine calc_rayleigh 290 291 end module calc_rayleigh_mod
Note: See TracChangeset
for help on using the changeset viewer.