Skip to content

Commit

Permalink
Remove m_cell_centered_data from multifab map
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Sep 24, 2024
1 parent 0337ee1 commit 656d1e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Diagnostics/BTDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ BTDiagnostics::DefineCellCenteredMultiFab(int lev)
#else
const int ncomps = static_cast<int>(m_cellcenter_varnames.size());
#endif
WarpX::AllocInitMultiFab(m_cell_centered_data[lev], ba, dmap, ncomps, amrex::IntVect(ngrow), lev, "cellcentered_BTD", 0._rt);
m_cell_centered_data[lev] = std::make_unique<amrex::MultiFab>(ba, dmap, ncomps, amrex::IntVect(ngrow));
m_cell_centered_data[lev]->setVal(0._rt);

}

Expand Down

0 comments on commit 656d1e6

Please sign in to comment.