From 656d1e661838fef69725c27b0e82b25e4a9b7a4d Mon Sep 17 00:00:00 2001 From: David Grote Date: Tue, 24 Sep 2024 11:12:46 -0700 Subject: [PATCH] Remove m_cell_centered_data from multifab map --- Source/Diagnostics/BTDiagnostics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Diagnostics/BTDiagnostics.cpp b/Source/Diagnostics/BTDiagnostics.cpp index e00c30aa78e..ae44c3d735e 100644 --- a/Source/Diagnostics/BTDiagnostics.cpp +++ b/Source/Diagnostics/BTDiagnostics.cpp @@ -519,7 +519,8 @@ BTDiagnostics::DefineCellCenteredMultiFab(int lev) #else const int ncomps = static_cast(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(ba, dmap, ncomps, amrex::IntVect(ngrow)); + m_cell_centered_data[lev]->setVal(0._rt); }