@@ -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