Skip to content

Commit 1ba0577

Browse files
committed
add back convectively-transported tracer tendency changes
1 parent 30e3c23 commit 1ba0577

3 files changed

Lines changed: 30 additions & 30 deletions

File tree

physics/CONV/nTiedtke/cu_ntiedtke.F90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ subroutine cu_ntiedtke_run(pu,pv,pt,pqv,ntqv,tdi,qvdi,pqvf,ptf,clw,poz,pzz,prsl,
210210
real(kind=kind_phys), dimension(:,:),intent(in) :: pzz, prsi
211211

212212
!--- inout arguments:
213-
real(kind=kind_phys), dimension(:,:,:), intent(inout) :: clw
213+
real(kind=kind_phys), dimension(:,:,:), intent(in) :: clw
214214
real(kind=kind_phys), dimension(:,:), intent(in) :: pu, pv, pt, pqv
215215

216216
!--- output arguments:
@@ -390,10 +390,10 @@ subroutine cu_ntiedtke_run(pu,pv,pt,pqv,ntqv,tdi,qvdi,pqvf,ptf,clw,poz,pzz,prsl,
390390
if(pcte(j,k1).gt.0.) then
391391
fliq=foealfa(ztp1(j,k1))
392392
fice=1.0-fliq
393-
clw(j,k,2)=clw(j,k,2)+fliq*pcte(j,k1)*ztmst
394-
clw(j,k,1)=clw(j,k,1)+fice*pcte(j,k1)*ztmst
395-
!dclw_l(j,k) = fliq*pcte(j,k1)
396-
!dclw_i(j,k) = fice*pcte(j,k1)
393+
!clw(j,k,2)=clw(j,k,2)+fliq*pcte(j,k1)*ztmst
394+
!clw(j,k,1)=clw(j,k,1)+fice*pcte(j,k1)*ztmst
395+
dclw_l(j,k) = fliq*pcte(j,k1)
396+
dclw_i(j,k) = fice*pcte(j,k1)
397397
endif
398398
end do
399399
end do

physics/CONV/nTiedtke/cu_ntiedtke.meta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_tracers_for_convective_transport)
150150
type = real
151151
kind = kind_phys
152-
intent = inout
152+
intent = in
153153
[poz]
154154
standard_name = geopotential
155155
long_name = geopotential at model layer centers

physics/Interstitials/UFS_SCM_NEPTUNE/GFS_DCNV_generic_post.F90

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -73,30 +73,30 @@ subroutine GFS_DCNV_generic_post_run (im, levs, tracers_total, otsptflag, &
7373
errmsg = ''
7474
errflg = 0
7575

76-
! !ten_q(:,:,1) already has a value from the deep convection scheme
77-
! if (tracers_total > 0) then
78-
! tracers = 2
79-
! do n=2,ntrac
80-
! if ( otsptflag(n) ) then
81-
! tracers = tracers + 1
82-
! ten_q(1:im,:,n) = dclw(1:im,:,tracers)
83-
! endif
84-
! enddo
85-
! endif
86-
! if (ntcw > 0) then
87-
! if (imp_physics == imp_physics_zhao_carr .or. &
88-
! imp_physics == imp_physics_zhao_carr_pdf .or. &
89-
! imp_physics == imp_physics_gfdl) then
90-
! ten_q(1:im,:,ntcw) = dclw(1:im,:,1) + dclw(1:im,:,2)
91-
! elseif (ntiw > 0) then
92-
! ten_q(1:im,:,ntiw) = dclw(1:im,:,1)
93-
! ten_q(1:im,:,ntcw) = dclw(1:im,:,2)
94-
! else
95-
! ten_q(1:im,:,ntcw) = dclw(1:im,:,1) + dclw(1:im,:,2)
96-
! endif ! end if_ntiw
97-
! endif ! end if_ntcw
98-
!
99-
!
76+
!ten_q(:,:,1) already has a value from the deep convection scheme
77+
if (tracers_total > 0) then
78+
tracers = 2
79+
do n=2,ntrac
80+
if ( otsptflag(n) ) then
81+
tracers = tracers + 1
82+
ten_q(1:im,:,n) = dclw(1:im,:,tracers)
83+
endif
84+
enddo
85+
endif
86+
if (ntcw > 0) then
87+
if (imp_physics == imp_physics_zhao_carr .or. &
88+
imp_physics == imp_physics_zhao_carr_pdf .or. &
89+
imp_physics == imp_physics_gfdl) then
90+
ten_q(1:im,:,ntcw) = dclw(1:im,:,1) + dclw(1:im,:,2)
91+
elseif (ntiw > 0) then
92+
ten_q(1:im,:,ntiw) = dclw(1:im,:,1)
93+
ten_q(1:im,:,ntcw) = dclw(1:im,:,2)
94+
else
95+
ten_q(1:im,:,ntcw) = dclw(1:im,:,1) + dclw(1:im,:,2)
96+
endif ! end if_ntiw
97+
endif ! end if_ntcw
98+
99+
100100
case_DCNV_ten: select case (tend_opt_dcnv)
101101
case (1) !immediately apply tendencies
102102
!Current state = current state + dt*current tendency

0 commit comments

Comments
 (0)