Skip to content

Commit

Permalink
initialize to 0 so we don't use uninitialized values
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren committed Aug 14, 2024
1 parent 1fbb115 commit 66735f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/convection/incflo_compute_MAC_projected_velocities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ incflo::compute_MAC_projected_velocities (
for (int lev=0; lev <= finest_level; ++lev)
{
MultiFab time_dep_inflow_vel(vel[lev]->boxArray(),vel[lev]->DistributionMap(),AMREX_SPACEDIM,1);
time_dep_inflow_vel.setVal(0.);
fillphysbc_velocity(lev, m_cur_time+0.5*l_dt, time_dep_inflow_vel, 1);

Box domain(geom[lev].Domain());
Expand Down

0 comments on commit 66735f3

Please sign in to comment.