Changeset 1647 for trunk/LMDZ.TITAN/libf/phytitan/optcv.F90
- Timestamp:
- Jan 11, 2017, 3:33:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/optcv.F90
r1397 r1647 7 7 use gases_h 8 8 use comcstfi_mod, only: g, r, mugaz 9 use callkeys_mod, only: kastprof,continuum,graybody,H2Ocont_simple,callgasvis9 use callkeys_mod, only: continuum,graybody,callgasvis 10 10 11 11 implicit none … … 106 106 107 107 ! if we have continuum opacities, we need dz 108 if(kastprof)then 109 dz(k) = dpr(k)*(1000.0d0*8.3145d0/muvar(k))*TMID(K)/(g*PMID(K)) 110 U(k) = Cmk*DPR(k)*mugaz/muvar(k) 111 else 112 dz(k) = dpr(k)*R*TMID(K)/(glat_ig*PMID(K))*mugaz/muvar(k) 113 U(k) = Cmk*DPR(k)*mugaz/muvar(k) ! only Cmk line in optci.F 114 !JL13 the mugaz/muvar factor takes into account water meanmolecular weight if water is present 115 endif 108 109 dz(k) = dpr(k)*R*TMID(K)/(glat_ig*PMID(K))*mugaz/muvar(k) 110 U(k) = Cmk*DPR(k)*mugaz/muvar(k) ! only Cmk line in optci.F 111 !JL13 the mugaz/muvar factor takes into account water meanmolecular weight if water is present 112 116 113 117 114 call tpindex(PMID(K),TMID(K),QVAR(K),pfgasref,tgasref,WREFVAR, & … … 186 183 indv(nw,igas,jgas) = interm 187 184 ! should be irrelevant in the visible 188 elseif(jgas.eq.igas_He)then189 interm = indv(nw,igas,jgas)190 call interpolateH2He(wn_cont,T_cont,p_cross,p_cont,dtempc,.false.,interm)191 indv(nw,igas,jgas) = interm192 185 endif 193 186 dtemp = dtemp + dtempc 194 187 enddo 195 196 elseif(igas.eq.igas_H2O.and.T_cont.gt.200.0)then197 198 p_air = dble(PMID(k)*scalep) - p_cont ! note assumes background is air!199 if(H2Ocont_simple)then200 call interpolateH2Ocont_PPC(wn_cont,T_cont,p_cont,p_air,dtemp,.false.)201 else202 interm = indv(nw,igas,igas)203 call interpolateH2Ocont_CKD(wn_cont,T_cont,p_cont,p_air,dtemp,.false.,interm)204 indv(nw,igas,igas) = interm205 endif206 188 207 189 endif
Note: See TracChangeset
for help on using the changeset viewer.