Skip to content

Commit

Permalink
silence some uninitialized warnings (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Jan 26, 2024
1 parent 702f45b commit 794de4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/gravity/Castro_gravity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void Castro::construct_old_gravity_source(MultiFab& source, MultiFab& state_in,
}
#endif

Real SrE;
Real SrE{};

if (castro::grav_source_type == 1 || castro::grav_source_type == 2) {

Expand Down Expand Up @@ -584,7 +584,7 @@ void Castro::construct_new_gravity_source(MultiFab& source, MultiFab& state_old,

// Correct energy

Real SrEcorr;
Real SrEcorr{};

if (castro::grav_source_type == 1) {

Expand Down

0 comments on commit 794de4a

Please sign in to comment.