aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/SliceDiagnostic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Diagnostics/SliceDiagnostic.cpp')
-rw-r--r--Source/Diagnostics/SliceDiagnostic.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/Source/Diagnostics/SliceDiagnostic.cpp b/Source/Diagnostics/SliceDiagnostic.cpp
index 1d0d2e39c..8b95217e7 100644
--- a/Source/Diagnostics/SliceDiagnostic.cpp
+++ b/Source/Diagnostics/SliceDiagnostic.cpp
@@ -11,6 +11,8 @@
#include <WarpX.H>
+#include <memory>
+
using namespace amrex;
@@ -113,8 +115,8 @@ CreateSlice( const MultiFab& mf, const Vector<Geometry> &dom_geom,
Vector<DistributionMapping> sdmap(1);
sdmap[0] = DistributionMapping{sba[0]};
- smf.reset(new MultiFab(amrex::convert(sba[0],SliceType), sdmap[0],
- ncomp, nghost));
+ smf = std::make_unique<MultiFab>(amrex::convert(sba[0],SliceType), sdmap[0],
+ ncomp, nghost);
// Copy data from domain to slice that has same cell size as that of //
// the domain mf. src and dst have the same number of ghost cells //
@@ -137,8 +139,8 @@ CreateSlice( const MultiFab& mf, const Vector<Geometry> &dom_geom,
AMREX_ALWAYS_ASSERT(crse_ba[0].size() == sba[0].size());
- cs_mf.reset( new MultiFab(amrex::convert(crse_ba[0],SliceType),
- sdmap[0], ncomp,nghost));
+ cs_mf = std::make_unique<MultiFab>(amrex::convert(crse_ba[0],SliceType),
+ sdmap[0], ncomp,nghost);
MultiFab& mfSrc = *smf;
MultiFab& mfDst = *cs_mf;
@@ -480,10 +482,3 @@ InterpolateLo(const Box& bx, FArrayBox &fabox, IntVect slice_lo,
}
}
-
-
-
-
-
-
-