Skip to content

Commit

Permalink
Fix conditional jump on uninitialized mem in SHOC
Browse files Browse the repository at this point in the history
The rino temp view only had the nlev-1 entry initialized. pblintd_height was
accessing other entries.
  • Loading branch information
jgfouca committed Dec 4, 2024
1 parent 9cdabe9 commit 2c68acf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void Functions<S,D>::pblintd(

// Initialize
bool check = true;
s_rino(nlev-1) = 0;
Kokkos::deep_copy(rino, 0);
pblh = s_z(nlev-1);

// PBL height calculation
Expand Down

0 comments on commit 2c68acf

Please sign in to comment.