diff --git a/Source/gravity/Castro_gravity.cpp b/Source/gravity/Castro_gravity.cpp index 46eccda99f..7b300310ec 100644 --- a/Source/gravity/Castro_gravity.cpp +++ b/Source/gravity/Castro_gravity.cpp @@ -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) { @@ -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) {