Changeset 3684


Ignore:
Timestamp:
Mar 14, 2025, 3:01:04 PM (3 months ago)
Author:
debatzbr
Message:

Cleaning for new diagnostics of optical thickness

Location:
trunk/LMDZ.PLUTO/libf/phypluto
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/callcorrk.F90

    r3627 r3684  
    3232      use comcstfi_mod, only: pi, mugaz, cpp, r, g
    3333      use callkeys_mod, only: diurnal,tracer,varfixed, &
    34                               diagdtau,kastprof,strictboundcorrk,specOLR, &
     34                              kastprof,strictboundcorrk,specOLR, &
    3535                              tplanckmin,tplanckmax,global1d, &
    3636                              optichaze,haze_radproffix,&
     
    10611061         end do
    10621062
    1063       !  Optical thickness diagnostics (added by JVO)
    1064       if (diagdtau) then
    1065         do l=1,L_NLAYRAD
    1066           do nw=1,L_NSPECTV
    1067             int_dtauv(ig,l,nw) = 0.0d0
    1068              DO k=1,L_NGAUSS
    1069               ! Output exp(-tau) because gweight ponderates exp and not tau itself
    1070               int_dtauv(ig,l,nw)= int_dtauv(ig,l,nw) + exp(-dtauv(l,nw,k))*gweight(k)
    1071              ENDDO
    1072           enddo
    1073           do nw=1,L_NSPECTI
    1074            int_dtaui(ig,l,nw) = 0.0d0
    1075              DO k=1,L_NGAUSS
    1076               ! Output exp(-tau) because gweight ponderates exp and not tau itself
    1077               int_dtaui(ig,l,nw)= int_dtaui(ig,l,nw) + exp(-dtaui(l,nw,k))*gweight(k)
    1078              ENDDO
    1079           enddo
    1080         enddo
    1081       endif
     1063         ! Optical thickness diagnostics
     1064         ! Output exp(-tau) because gweight ponderates exp and not tau itself
     1065         int_dtauv(ig,:,:) = 0.0d0
     1066         int_dtaui(ig,:,:) = 0.0d0
     1067         do l=1,L_NLAYRAD
     1068            do nw=1,L_NSPECTV
     1069               do k=1,L_NGAUSS
     1070                  int_dtauv(ig,l,nw)= int_dtauv(ig,l,nw) + exp(-dtauv(l,nw,k))*gweight(k)
     1071               enddo
     1072            enddo
     1073            do nw=1,L_NSPECTI
     1074               do k=1,L_NGAUSS
     1075                  int_dtaui(ig,l,nw)= int_dtaui(ig,l,nw) + exp(-dtaui(l,nw,k))*gweight(k)
     1076               enddo
     1077            enddo
     1078         enddo
    10821079
    10831080! **********************************************************
  • TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/callkeys_mod.F90

    r3652 r3684  
    2222      logical,save :: specOLR
    2323      logical,save :: kastprof
    24       logical,save :: diagdtau
    25 !$OMP THREADPRIVATE(enertest,nonideal,meanOLR,kastprof,diagdtau)
     24!$OMP THREADPRIVATE(enertest,nonideal,meanOLR,kastprof)
    2625      logical,save :: newtonian
    2726      logical,save :: force_cpp
  • TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/inifis_mod.F90

    r3652 r3684  
    375375     if (is_master) write(*,*)trim(rname)//": specOLR = ",specOLR
    376376
    377      if (is_master) write(*,*)trim(rname)//&
    378        ": Output diagnostic optical thickness attenuation exp(-tau)?"
    379      diagdtau=.false.
    380      call getin_p("diagdtau",diagdtau)
    381      if (is_master) write(*,*)trim(rname)//": diagdtau = ",diagdtau
    382 
    383377     if (is_master) write(*,*)trim(rname)//": Operate in kastprof mode?"
    384378     kastprof=.false.
  • TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90

    r3683 r3684  
    4848                              callrad, callsoil, nosurf,                      &
    4949                              callconduct,callmolvis,callmoldiff,             &
    50                               corrk, diagdtau,                                &
     50                              corrk,                                          &
    5151                              diurnal, enertest, fat1au,                      &
    5252                              icetstep, intheat, iradia, kastprof,            &
     
    21902190
    21912191      ! Diagnostics of optical thickness
    2192       ! Warning this is exp(-tau), I let you postproc with -log to have tau itself - JVO 19
    2193       if (diagdtau.and..not.oldplutocorrk) then
    2194             do nw=1,L_NSPECTV
    2195                write(str2,'(i2.2)') nw
    2196                call write_output('dtauv'//str2,'Layer optical thickness attenuation in VI band '//str2,'',int_dtauv(:,nlayer:1:-1,nw))
    2197             enddo
    2198             do nw=1,L_NSPECTI
    2199                write(str2,'(i2.2)') nw
    2200                call write_output('dtaui'//str2,'Layer optical thickness attenuation in IR band '//str2,'',int_dtaui(:,nlayer:1:-1,nw))
    2201             enddo
    2202       endif
    2203 
     2192      ! Warning this is exp(-tau), I let you postproc with -log to have tau itself
     2193      !do nw=1,L_NSPECTV
     2194      !   write(str2,'(i2.2)') nw
     2195      !   call write_output('dtauv'//str2,'Layer optical thickness attenuation in VI band '//str2,'',int_dtauv(:,nlayer:1:-1,nw))
     2196      !enddo
     2197      !do nw=1,L_NSPECTI
     2198      !   write(str2,'(i2.2)') nw
     2199      !   call write_output('dtaui'//str2,'Layer optical thickness attenuation in IR band '//str2,'',int_dtaui(:,nlayer:1:-1,nw))
     2200      !enddo
     2201     
    22042202      ! Temporary inclusions for heating diagnostics.
    22052203      if (.not.fast) then
Note: See TracChangeset for help on using the changeset viewer.