Skip to content

Commit

Permalink
fix re-used variable
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren committed Oct 29, 2024
1 parent 8484d51 commit f3a0459
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/IO/ERF_Plotfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,17 @@ ERF::WritePlotFile (int which, PlotFileType plotfile_type, Vector<std::string> p
// because we don't need to set interior fine points.
// NOTE: the momenta here are only used as scratch space, the momenta themselves are not fillpatched

int lev = 0;
FillPatch(lev, t_new[lev], {&vars_new[lev][Vars::cons], &vars_new[lev][Vars::xvel],
&vars_new[lev][Vars::yvel], &vars_new[lev][Vars::zvel]});
// Level 0 FilLPatch
FillPatch(0, t_new[0], {&vars_new[0][Vars::cons], &vars_new[0][Vars::xvel],
&vars_new[0][Vars::yvel], &vars_new[0][Vars::zvel]});

for (int lev = 1; lev <= finest_level; ++lev) {
bool fillset = false;
FillPatch(lev, t_new[lev], {&vars_new[lev][Vars::cons], &vars_new[lev][Vars::xvel],
&vars_new[lev][Vars::yvel], &vars_new[lev][Vars::zvel]},
{&vars_new[lev][Vars::cons],
&rU_new[lev], &rV_new[lev], &rW_new[lev]},
base_state[lev], base_state[lev], fillset);
&rU_new[lev], &rV_new[lev], &rW_new[lev]},
base_state[lev], base_state[lev], fillset);
}

// Get qmoist pointers if using moisture
Expand Down

0 comments on commit f3a0459

Please sign in to comment.