Skip to content

Commit

Permalink
Make sure m_wstar vector is always the right size
Browse files Browse the repository at this point in the history
  • Loading branch information
ewquon committed Aug 23, 2024
1 parent 7d9d2df commit d169bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/BoundaryConditions/MOSTAverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ MOSTAverage::MOSTAverage (Vector<Geometry> geom,
m_rot_fields.resize(m_maxlev);
m_averages.resize(m_maxlev);
m_z_phys_nd.resize(m_maxlev);
m_wstar.resize(m_maxlev);

m_k_in.resize(m_maxlev);

Expand Down Expand Up @@ -242,7 +243,6 @@ MOSTAverage::update_field_ptrs (int lev,
void
MOSTAverage::set_wstar_ptrs(Vector<std::unique_ptr<MultiFab>>& w_star)
{
m_wstar.resize(m_maxlev);
for (int lev(0); lev < m_maxlev; lev++) {
m_wstar[lev] = w_star[lev].get();
}
Expand Down

0 comments on commit d169bcc

Please sign in to comment.