Skip to content

Commit 48fe982

Browse files
sbryngelsonclaude
andcommitted
Initialize k_v and k_g module-level variables alongside bub_pp counterparts
The bub_pp%k_v and bub_pp%k_g struct fields were initialized to dflt_real but the corresponding module-level k_v and k_g scalars were not. Fixes potential uninitialized reads when the thermal bubble model is inactive. Fixes #1203 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 22304a1 commit 48fe982

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/simulation/m_global_parameters.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,8 @@ contains
700700
bub_pp%gam_g = dflt_real; gam_g = dflt_real
701701
bub_pp%M_v = dflt_real; M_v = dflt_real
702702
bub_pp%M_g = dflt_real; M_g = dflt_real
703-
bub_pp%k_v = dflt_real;
704-
bub_pp%k_g = dflt_real;
703+
bub_pp%k_v = dflt_real; k_v = dflt_real
704+
bub_pp%k_g = dflt_real; k_g = dflt_real
705705
bub_pp%cp_v = dflt_real; cp_v = dflt_real
706706
bub_pp%cp_g = dflt_real; cp_g = dflt_real
707707
bub_pp%R_v = dflt_real; R_v = dflt_real

0 commit comments

Comments
 (0)