Skip to content

Commit 098e9c2

Browse files
committed
Merge branch 'atmosphere/thompson_uninit_mvd_fix' into hotfix-v8.0.2 (PR #1152)
This merge initializes two local variables, mvd_r and mvd_c, in the mp_thompson routine to avoid the potential use of uninitialized memory. Note: Identical changes to those included in this merge have separately been introduced into newer versions of the Thompson microphysics scheme, and so the changes here can be considered a back-port of these fixes. This merge closes Issue #1150.
2 parents c5c46e7 + bfdc9d2 commit 098e9c2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/core_atmosphere/physics/physics_wrf/module_mp_thompson.F

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,6 +1593,8 @@ subroutine mp_thompson (qv1d, qc1d, qi1d, qr1d, qs1d, qg1d, ni1d, &
15931593
smod(k) = 0.
15941594
smoe(k) = 0.
15951595
smof(k) = 0.
1596+
mvd_r(k) = 0.
1597+
mvd_c(k) = 0.
15961598
enddo
15971599

15981600
!+---+-----------------------------------------------------------------+

0 commit comments

Comments
 (0)