Skip to content

Commit

Permalink
silence some uninitialized warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jan 26, 2024
1 parent 29c5f4d commit 81f283f
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 81f283f

Please sign in to comment.