Changeset 1715 for trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90
- Timestamp:
- Jun 8, 2017, 1:03:06 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90
r1714 r1715 123 123 REAL*8 taucumi(L_LEVELS,L_NSPECTI,L_NGAUSS) 124 124 125 REAL*8 tauaero(L_LEVELS +1,naerkind)125 REAL*8 tauaero(L_LEVELS,naerkind) 126 126 REAL*8 nfluxtopv,nfluxtopi,nfluxtop,fluxtopvdn 127 127 REAL*8 nfluxoutv_nu(L_NSPECTV) ! Outgoing band-resolved VI flux at TOA (W/m2). … … 189 189 190 190 ! test on allocated necessary because of CLFvarying (two calls to callcorrk in physiq) 191 if(.not.allocated(QXVAER)) allocate(QXVAER(L_LEVELS +1,L_NSPECTV,naerkind))192 if(.not.allocated(QSVAER)) allocate(QSVAER(L_LEVELS +1,L_NSPECTV,naerkind))193 if(.not.allocated(GVAER)) allocate(GVAER(L_LEVELS +1,L_NSPECTV,naerkind))194 if(.not.allocated(QXIAER)) allocate(QXIAER(L_LEVELS +1,L_NSPECTI,naerkind))195 if(.not.allocated(QSIAER)) allocate(QSIAER(L_LEVELS +1,L_NSPECTI,naerkind))196 if(.not.allocated(GIAER)) allocate(GIAER(L_LEVELS +1,L_NSPECTI,naerkind))191 if(.not.allocated(QXVAER)) allocate(QXVAER(L_LEVELS,L_NSPECTV,naerkind)) 192 if(.not.allocated(QSVAER)) allocate(QSVAER(L_LEVELS,L_NSPECTV,naerkind)) 193 if(.not.allocated(GVAER)) allocate(GVAER(L_LEVELS,L_NSPECTV,naerkind)) 194 if(.not.allocated(QXIAER)) allocate(QXIAER(L_LEVELS,L_NSPECTI,naerkind)) 195 if(.not.allocated(QSIAER)) allocate(QSIAER(L_LEVELS,L_NSPECTI,naerkind)) 196 if(.not.allocated(GIAER)) allocate(GIAER(L_LEVELS,L_NSPECTI,naerkind)) 197 197 198 198 !!! ALLOCATED instances are necessary because of CLFvarying (strategy to call callcorrk twice in physiq...) … … 323 323 end do !iaer=1,naerkind. 324 324 325 325 326 ! How much light do we get ? 326 327 do nw=1,L_NSPECTV … … 439 440 ! Test / Correct for freaky s. s. albedo values. 440 441 do iaer=1,naerkind 441 do k=1,L_LEVELS +1442 do k=1,L_LEVELS 442 443 443 444 do nw=1,L_NSPECTV … … 482 483 ! boundary conditions 483 484 tauaero(1,iaer) = tauaero(2,iaer) 484 tauaero(L_LEVELS+1,iaer) = tauaero(L_LEVELS,iaer)485 485 !tauaero(1,iaer) = 0. 486 !tauaero(L_LEVELS+1,iaer) = 0.487 486 488 487 end do ! naerkind … … 574 573 575 574 if(kastprof)then 576 577 if(.not.global1d)then ! garde-fou/safeguard added by MT (to be removed in the future) 578 write(*,*) 'You have to fix mu0, ' 579 write(*,*) 'the cosinus of the solar angle' 580 stop 581 endif 582 575 583 576 ! Initial values equivalent to mugaz. 584 577 DO l=1,nlayer
Note: See TracChangeset
for help on using the changeset viewer.