Skip to content

Commit d033868

Browse files
committed
Update physics/PBL/SATMEDMF/satmedmfvdifq.F so that the sa3dtke and
use_lpt options can be properly used together.
1 parent 65a2547 commit d033868

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

physics/PBL/SATMEDMF/satmedmfvdifq.F

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,15 +514,20 @@ subroutine satmedmfvdifq_run(im,km,ntrac,ntcw,ntrw, &
514514
do i=1,im
515515
pix(i,k) = psk(i) / prslk(i,k)
516516
theta(i,k) = t1(i,k) * pix(i,k)
517+
qice(i,k) = 0.0
518+
qliq(i,k) = 0.0
517519
if(ntiw > 0) then
518520
tem = max(q1(i,k,ntcw),qlmin)
519521
tem1 = max(q1(i,k,ntiw)+q1(i,k,5)+q1(i,k,6),qlmin)
522+
qice(i,k) = tem1
523+
qliq(i,k) = tem
520524
qlx(i,k) = tem + tem1
521525
ptem = hvap*tem + (hvap+hfus)*tem1
522526
slx(i,k) = cp * t1(i,k) + phil(i,k) - ptem
523527
else
524528
qlx(i,k) = max(q1(i,k,ntcw),qlmin)
525529
slx(i,k) = cp * t1(i,k) + phil(i,k) - hvap*qlx(i,k)
530+
qliq(i,k) = qlx(i,k)
526531
endif
527532
tem2 = 1.+fv*max(q1(i,k,1),qmin)-qlx(i,k)
528533
thvx(i,k) = theta(i,k) * tem2

0 commit comments

Comments
 (0)