Changeset 2131 for trunk/LMDZ.TITAN/libf/phytitan
- Timestamp:
- Apr 29, 2019, 2:52:42 PM (6 years ago)
- Location:
- trunk/LMDZ.TITAN/libf/phytitan
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/callkeys_mod.F90
r2050 r2131 27 27 logical,save :: meanOLR 28 28 logical,save :: specOLR 29 !$OMP THREADPRIVATE(enertest,nonideal,meanOLR) 29 logical,save :: diagdtau 30 !$OMP THREADPRIVATE(enertest,nonideal,meanOLR,specOLR,diagdtau) 30 31 logical,save :: newtonian 31 32 logical,save :: check_cpp_match -
trunk/LMDZ.TITAN/libf/phytitan/inifis_mod.F90
r2078 r2131 336 336 call getin_p("specOLR",specOLR) 337 337 write(*,*)" specOLR = ",specOLR 338 339 write(*,*)"Output diagnostic optical thickness?" 340 diagdtau=.false. 341 call getin_p("diagdtau",diagdtau) 342 write(*,*)" diagdtau = ",diagdtau 343 ! sanity check 344 if (diagdtau.and.(ngrid.ne.1)) then 345 print*,"Diagnostic optical thickness can be output in 1D only !" 346 print*,"Start again with diagdtau=.false." 347 stop 348 endif 349 338 350 339 351 write(*,*)"Uniform absorption in radiative transfer?" -
trunk/LMDZ.TITAN/libf/phytitan/optci.F90
r2050 r2131 7 7 use gases_h 8 8 use comcstfi_mod, only: r 9 use callkeys_mod, only: continuum,graybody,corrk_recombin, &9 use callkeys_mod, only: continuum,graybody,corrk_recombin,diagdtau, & 10 10 callclouds,callmufi,seashaze,uncoupl_optic_haze 11 11 use tracer_h, only : nmicro,nice 12 use MMP_OPTICS13 12 14 13 implicit none … … 61 60 real*8 ASF_T(L_LEVELS,L_NSPECTI) 62 61 real*8 INT_DTAU(L_NLAYRAD,L_NSPECTI) 63 real*8 K_HAZE(L_NLAYRAD,L_NSPECTI)64 62 65 63 CHARACTER*2 str2 … … 412 410 413 411 414 ! Titan's outputs (J.V.O, 2016)=============================================== 415 ! do l=1,L_NLAYRAD 416 ! do nw=1,L_NSPECTI 417 ! INT_DTAU(L,NW) = 0.0d+0 418 ! DO NG=1,L_NGAUSS 419 ! INT_DTAU(L,NW)= INT_DTAU(L,NW) + dtaui(L,nw,ng)*gweight(NG) 420 ! enddo 421 ! enddo 422 ! enddo 423 424 ! do nw=1,L_NSPECTI 425 ! write(str2,'(i2.2)') nw 426 ! call writediagfi(1,'kgi'//str2,'Gaz extinction coefficient IR band '//str2,'m-1',1,int_dtau(L_NLAYRAD:1:-1,nw)/dz_lay(L_NLAYRAD:1:-1)) 427 ! call writediagfi(1,'khi'//str2,'Haze extinction coefficient IR band '//str2,'m-1',1,k_haze(L_NLAYRAD:1:-1,nw)/dz_lay(L_NLAYRAD:1:-1)) 428 ! enddo 429 430 ! ============================================================================== 412 ! Optical thickness for 1D diagnostics (added by JVO) 413 if (diagdtau) then ! diagtau can be true only if 1D 414 do l=1,L_NLAYRAD 415 do nw=1,L_NSPECTI 416 INT_DTAU(L,NW) = 0.0d+0 417 DO NG=1,L_NGAUSS 418 INT_DTAU(L,NW)= INT_DTAU(L,NW) + dtaui(L,nw,ng)*gweight(NG) 419 enddo 420 enddo 421 enddo 422 do nw=1,L_NSPECTI 423 write(str2,'(i2.2)') nw 424 call writediagfi(1,'dtaui'//str2,'Layer optical thickness in IR band '//str2,'',1,int_dtau(L_NLAYRAD:1:-1,nw)) 425 enddo 426 endif 427 431 428 432 429 if(firstcall) firstcall = .false. -
trunk/LMDZ.TITAN/libf/phytitan/optcv.F90
r2095 r2131 7 7 use gases_h 8 8 use comcstfi_mod, only: r 9 use callkeys_mod, only: continuum,graybody,callgasvis,corrk_recombin, &9 use callkeys_mod, only: continuum,graybody,callgasvis,corrk_recombin,diagdtau, & 10 10 callclouds,callmufi,seashaze,uncoupl_optic_haze 11 11 use tracer_h, only: nmicro,nice … … 69 69 real*8 ASF_T(L_LEVELS,L_NSPECTI) 70 70 real*8 INT_DTAU(L_NLAYRAD,L_NSPECTI) 71 real*8 K_HAZE(L_NLAYRAD,L_NSPECTI)72 71 73 72 CHARACTER*2 str2 … … 391 390 392 391 393 ! Titan's outputs (JVO, 2016)=============================================== 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 403 ! do nw=1,L_NSPECTV 404 ! write(str2,'(i2.2)') nw 405 ! call writediagfi(1,'kgv'//str2,'Gaz extinction coefficient VI band '//str2,'m-1',1,int_dtau(L_NLAYRAD:1:-1,nw)/dz_lay(L_NLAYRAD:1:-1)) 406 ! call writediagfi(1,'khv'//str2,'Haze extinction coefficient VI band '//str2,'m-1',1,k_haze(L_NLAYRAD:1:-1,nw)/dz_lay(L_NLAYRAD:1:-1)) 407 ! enddo 408 409 ! ============================================================================== 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 410 408 411 409 if(firstcall) firstcall = .false.
Note: See TracChangeset
for help on using the changeset viewer.