diff options
Diffstat (limited to 'Source/Diagnostics/WarpXIO.cpp')
-rw-r--r-- | Source/Diagnostics/WarpXIO.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Diagnostics/WarpXIO.cpp b/Source/Diagnostics/WarpXIO.cpp index 42261caf6..6a2c12479 100644 --- a/Source/Diagnostics/WarpXIO.cpp +++ b/Source/Diagnostics/WarpXIO.cpp @@ -24,6 +24,7 @@ # include <AMReX_AmrMeshInSituBridge.H> #endif +#include <memory> using namespace amrex; @@ -251,7 +252,7 @@ WarpX::GetCellCenteredData() { for (int lev = 0; lev <= finest_level; ++lev) { - cc[lev].reset( new MultiFab(grids[lev], dmap[lev], nc, ng) ); + cc[lev] = std::make_unique<MultiFab>(grids[lev], dmap[lev], nc, ng ); int dcomp = 0; // first the electric field |