diff options
author | 2020-10-19 10:17:46 +0200 | |
---|---|---|
committer | 2020-10-19 01:17:46 -0700 | |
commit | 1e7de3b536c974327513d17f9aee156d93030825 (patch) | |
tree | fb5885e8fbbbfdd51d5d9efcc53c597a41b2fa1d /Source/Particles/WarpXParticleContainer.cpp | |
parent | 1f8f4f74adf7d460c593752a83e3574cc5cc0589 (diff) | |
download | WarpX-1e7de3b536c974327513d17f9aee156d93030825.tar.gz WarpX-1e7de3b536c974327513d17f9aee156d93030825.tar.zst WarpX-1e7de3b536c974327513d17f9aee156d93030825.zip |
Replace wherever possible '.reset(new' with '= make_unique' (#1429)
* replace wherever possible .reset(new with = make_unique
* fixed bug
* fixed bug
* revert WarpXOpenPMD.cpp to the original version
* removed another .reset(new
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index ba1e2b438..2374703fc 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -632,7 +632,7 @@ WarpXParticleContainer::GetChargeDensity (int lev, bool local) WarpX& warpx = WarpX::GetInstance(); const int ng_rho = warpx.get_ng_depos_rho().max(); - auto rho = std::unique_ptr<MultiFab>(new MultiFab(nba,dm,WarpX::ncomps,ng_rho)); + auto rho = std::make_unique<MultiFab>(nba,dm,WarpX::ncomps,ng_rho); rho->setVal(0.0); #ifdef _OPENMP |