Changeset 2050 for trunk/LMDZ.TITAN/libf/phytitan/optcv.F90
- Timestamp:
- Nov 30, 2018, 12:55:49 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/optcv.F90
r2046 r2050 1 SUBROUTINE OPTCV(PQ O,NLAY,PLEV,TMID,PMID, &1 SUBROUTINE OPTCV(PQMO,NLAY,PLEV,TMID,PMID, & 2 2 DTAUV,TAUV,TAUCUMV,WBARV,COSBV,TAURAY,TAUGSURF,SEASHAZEFACT) 3 3 4 4 use radinc_h 5 use radcommon_h, only: gasv,tlimit,Cmk,gzlat_ig,tgasref,pfgasref,wnov,scalep,indv,gweight 5 use radcommon_h, only: gasv,gasv_recomb,tlimit,Cmk,gzlat_ig, & 6 tgasref,pfgasref,wnov,scalep,indv,gweight 6 7 use gases_h 7 8 use comcstfi_mod, only: r 8 use callkeys_mod, only: continuum,graybody,callgasvis,callclouds,callmufi,seashaze,uncoupl_optic_haze 9 use callkeys_mod, only: continuum,graybody,callgasvis,corrk_recombin, & 10 callclouds,callmufi,seashaze,uncoupl_optic_haze 9 11 use tracer_h, only: nmicro,nice 10 12 use MMP_OPTICS … … 43 45 ! Input/Output 44 46 !========================================================== 45 REAL*8, INTENT(IN) :: PQ O(nlay,nmicro) ! Tracers (X/m2).46 INTEGER, INTENT(IN) :: NLAY ! Number of pressure layers (for pqo)47 REAL*8, INTENT(IN) :: PQMO(nlay,nmicro) ! Tracers for microphysics optics (X/m2). 48 INTEGER, INTENT(IN) :: NLAY ! Number of pressure layers (for pqmo) 47 49 REAL*8, INTENT(IN) :: PLEV(L_LEVELS) 48 50 REAL*8, INTENT(IN) :: TMID(L_LEVELS), PMID(L_LEVELS) … … 167 169 ! as long as the microphysics only isn't fully debugged -- JVO 01/18 168 170 IF (callmufi .AND. (.NOT. uncoupl_optic_haze)) THEN 169 m0as = pq o(ilay,1)170 m3as = pq o(ilay,2)171 m0af = pq o(ilay,3)172 m3af = pq o(ilay,4)171 m0as = pqmo(ilay,1) 172 m3as = pqmo(ilay,2) 173 m0af = pqmo(ilay,3) 174 m3af = pqmo(ilay,4) 173 175 174 176 IF (.NOT.mmp_sph_optics_vis(m0as,m3as,nw,ext_s,sca_s,ssa_s,asf_s)) & … … 267 269 ! transfer on the tested simulations ! 268 270 269 tmpk = GASV(MT(K):MT(K)+1,MP(K):MP(K)+1,1,NW,NG) 271 if (corrk_recombin) then 272 tmpk = GASV_RECOMB(MT(K):MT(K)+1,MP(K):MP(K)+1,NW,NG) 273 else 274 tmpk = GASV(MT(K):MT(K)+1,MP(K):MP(K)+1,1,NW,NG) 275 endif 270 276 271 277 KCOEF(1) = tmpk(1,1) ! KCOEF(1) = GASV(MT(K),MP(K),1,NW,NG) … … 302 308 ! Now the full treatment for the layers, where besides the opacity 303 309 ! we need to calculate the scattering albedo and asymmetry factors 310 ! ====================================================================== 304 311 305 312 ! Haze scattering
Note: See TracChangeset
for help on using the changeset viewer.