Skip to content

Commit

Permalink
Add reflectivity calculation back to WSM6 scheme (#2098)
Browse files Browse the repository at this point in the history
TYPE: bug fix

KEYWORDS: radar reflectivity, WSM6

SOURCE: reported by Gabriel Cassol of Sigma Meteorologia, Brazil, internal

DESCRIPTION OF CHANGES:
Problem:
When moving WSM6 to MMM shared physics directory, the calculation of radar reflectivity was left out.

Solution:
The calculation of radar reflectivity is added back in the WSM6 scheme.

ISSUE: For use when this PR closes an issue.
Fixes #2096

LIST OF MODIFIED FILES:
M phys/module_mp_wsm6.F

TESTS CONDUCTED:

1. The reflectivity is computed now when namelist do_radar_ref is set to 1.
2. The Jenkins tests are all passing.

RELEASE NOTE: Fixed the bug of missing radar reflectivity in WSM6 scheme when do_radar_ref is set to 1. This bug was introduced when WSM6 scheme was moved to physics_mmm/ directory, and shared with other MMM models in v4.6.
  • Loading branch information
weiwangncar authored Aug 30, 2024
1 parent 2e885eb commit 0ca0d96
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion phys/module_mp_wsm6.F
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module module_mp_wsm6
use ccpp_kind_types,only: kind_phys

use mp_wsm6,only: mp_wsm6_run
use mp_wsm6,only: mp_wsm6_run,refl10cm_wsm6
use mp_wsm6_effectrad,only: mp_wsm6_effectRad_run


Expand Down Expand Up @@ -231,6 +231,23 @@ subroutine wsm6(th,q,qc,qr,qi,qs,qg,den,pii,p,delz, &
enddo
enddo

if (diagflag .and. do_radar_ref == 1) then
do i=its,ite
do k=kts,kte
t1d(k)=th(i,k,j)*pii(i,k,j)
p1d(k)=p(i,k,j)
qv1d(k)=q(i,k,j)
qr1d(k)=qr(i,k,j)
qs1d(k)=qs(i,k,j)
qg1d(k)=qg(i,k,j)
enddo
call refl10cm_wsm6 (qv1d,qr1d,qs1d,qg1d,t1d,p1d,dBZ,kts,kte)
do k = kts, kte
refl_10cm(i,k,j) = MAX(-35., dBZ(k))
enddo
enddo
endif

enddo

end subroutine wsm6
Expand Down

0 comments on commit 0ca0d96

Please sign in to comment.