Ignore:
Timestamp:
Apr 30, 2019, 10:34:11 AM (6 years ago)
Author:
jvatant
Message:

Fic a bug in r2131 the writediagfi cannot be called
in RT routines because of the iradia it goes crazy with outputs freq ...
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/optcv.F90

    r2131 r2133  
    44  use radinc_h
    55  use radcommon_h, only: gasv,gasv_recomb,tlimit,Cmk,gzlat_ig, &
    6                          tgasref,pfgasref,wnov,scalep,indv,gweight
     6                         tgasref,pfgasref,wnov,scalep,indv
    77  use gases_h
    88  use comcstfi_mod, only: r
    9   use callkeys_mod, only: continuum,graybody,callgasvis,corrk_recombin,diagdtau,  &
     9  use callkeys_mod, only: continuum,graybody,callgasvis,corrk_recombin,     &
    1010                          callclouds,callmufi,seashaze,uncoupl_optic_haze
    1111  use tracer_h, only: nmicro,nice
     
    6868  real*8 SSA_T(L_LEVELS,L_NSPECTI)
    6969  real*8 ASF_T(L_LEVELS,L_NSPECTI)
    70   real*8 INT_DTAU(L_NLAYRAD,L_NSPECTI)
    71  
    72   CHARACTER*2  str2
    7370  ! ==========================
    7471
     
    390387
    391388
    392   !  Optical thickness for 1D diagnostics (added by JVO)
    393   if (diagdtau) then ! diagtau can be true only if 1D
    394     do l=1,L_NLAYRAD
    395        do nw=1,L_NSPECTV
    396         INT_DTAU(L,NW) = 0.0d+0
    397           DO NG=1,L_NGAUSS
    398              INT_DTAU(L,NW)= INT_DTAU(L,NW) + dtauv(L,nw,ng)*gweight(NG)
    399           enddo
    400        enddo
    401     enddo
    402     do nw=1,L_NSPECTV
    403       write(str2,'(i2.2)') nw
    404       call writediagfi(1,'dtauv'//str2,'Layer optical thickness in VI band '//str2,'',1,int_dtau(L_NLAYRAD:1:-1,nw))
    405     enddo
    406   endif
    407 
    408 
    409389  if(firstcall) firstcall = .false.
    410390
Note: See TracChangeset for help on using the changeset viewer.