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.GENERIC/libf/phystd/optcv.F90

    r2131 r2133  
    1010
    1111  use radinc_h, only: L_NLAYRAD, L_NLEVRAD, L_LEVELS, L_NSPECTV, L_NGAUSS, L_REFVAR, NAERKIND
    12   use radcommon_h, only: gasv, tlimit, wrefVAR, Cmk, tgasref, pfgasref,wnov,scalep,indv,glat_ig,gweight
     12  use radcommon_h, only: gasv, tlimit, wrefVAR, Cmk, tgasref, pfgasref,wnov,scalep,indv,glat_ig
    1313  use gases_h, only: gfrac, ngasmx, igas_H2, igas_H2O, igas_He, igas_N2
    1414  use comcstfi_mod, only: g, r, mugaz
    15   use callkeys_mod, only: kastprof,continuum,graybody,H2Ocont_simple,callgasvis,diagdtau
     15  use callkeys_mod, only: kastprof,continuum,graybody,H2Ocont_simple,callgasvis
    1616
    1717  implicit none
     
    9292  real*8 dz(L_LEVELS)
    9393
    94   ! variables for diags of optical depth
    95   real*8 INT_DTAU(L_NLAYRAD,L_NSPECTV)
    96   character*2 str2
    9794
    9895  integer igas, jgas
     
    379376
    380377
    381   !  Optical thickness for 1D diagnostics (added by JVO)
    382   if (diagdtau) then ! diagtau can be true only if 1D
    383     do l=1,L_NLAYRAD
    384        do nw=1,L_NSPECTV
    385         INT_DTAU(L,NW) = 0.0d+0
    386           DO NG=1,L_NGAUSS
    387              INT_DTAU(L,NW)= INT_DTAU(L,NW) + dtauv(L,nw,ng)*gweight(NG)
    388           enddo
    389        enddo
    390     enddo
    391     do nw=1,L_NSPECTV
    392       write(str2,'(i2.2)') nw
    393       call writediagfi(1,'dtauv'//str2,'Layer optical thickness in VI band '//str2,'',1,int_dtau(L_NLAYRAD:1:-1,nw))
    394     enddo
    395   endif
    396378
    397379
Note: See TracChangeset for help on using the changeset viewer.