Skip to content

Commit

Permalink
Size of temp MF for nu should be 3 rather than the number of vars wri…
Browse files Browse the repository at this point in the history
…tten to plt file. (#1119)
  • Loading branch information
AMLattanzi authored Jun 22, 2023
1 parent 2c065e9 commit 682c673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/IO/Plotfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ERF::WritePlotFile (int which, Vector<std::string> plot_var_names)
if (solverChoice.use_terrain) {
for (int lev = 0; lev <= finest_level; ++lev) {
BoxArray nodal_grids(grids[lev]); nodal_grids.surroundingNodes();
mf_nd[lev].define(nodal_grids, dmap[lev], ncomp_mf, 0);
mf_nd[lev].define(nodal_grids, dmap[lev], 3, 0);
mf_nd[lev].setVal(0.);
}
}
Expand Down

0 comments on commit 682c673

Please sign in to comment.