diff options
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index ece25ea0d..7f5d9e62e 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -261,7 +261,7 @@ WarpX::WarpX () multi_diags = std::make_unique<MultiDiagnostics>(); /** create object for reduced diagnostics */ - reduced_diags = new MultiReducedDiags(); + reduced_diags = std::make_unique<MultiReducedDiags>(); Efield_aux.resize(nlevs_max); Bfield_aux.resize(nlevs_max); @@ -406,8 +406,6 @@ WarpX::~WarpX () for (int lev = 0; lev < nlevs_max; ++lev) { ClearLevel(lev); } - - delete reduced_diags; } void |