diff options
author | 2022-02-16 14:19:02 -0800 | |
---|---|---|
committer | 2022-02-16 22:19:02 +0000 | |
commit | 716098b54a66b89a107f545f944e48cf7d141ee9 (patch) | |
tree | e4c64b7c33b82ed60e6f8667b414f8ebcb334b43 /Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp | |
parent | cb79a956f70204b12ed37646ea1bb5a2eea307f4 (diff) | |
download | WarpX-716098b54a66b89a107f545f944e48cf7d141ee9.tar.gz WarpX-716098b54a66b89a107f545f944e48cf7d141ee9.tar.zst WarpX-716098b54a66b89a107f545f944e48cf7d141ee9.zip |
ParticleBuffer: Generalize & Move (#2860)
* ParticleBuffer: Generalize & Move
- move the `ParticleBuffer` to ABLASTR
- generalize the API
- remove `amr_core` argument
- use more semantic naming
- add docs
* Use `amrex::ParticleContainer::make_alike`
* Update AMREX
to include https://github.com/AMReX-Codes/amrex/pull/2630
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp')
-rw-r--r-- | Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index 4e9fe41cb..2a2af1d95 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -3,7 +3,6 @@ #include "Diagnostics/ParticleDiag/ParticleDiag.H" #include "Particles/Filter/FilterFunctors.H" #include "Particles/WarpXParticleContainer.H" -#include "Particles/ParticleBuffer.H" #include "Particles/PinnedMemoryParticleContainer.H" #include "Utils/Interpolate.H" #include "Utils/WarpXProfilerWrapper.H" @@ -302,7 +301,7 @@ FlushFormatPlotfile::WriteParticles(const std::string& dir, for (unsigned i = 0, n = particle_diags.size(); i < n; ++i) { WarpXParticleContainer* pc = particle_diags[i].getParticleContainer(); - auto tmp = ParticleBuffer::getTmpPC<amrex::PinnedArenaAllocator>(pc); + auto tmp = pc->make_alike<amrex::PinnedArenaAllocator>(); if (isBTD) { PinnedMemoryParticleContainer* pinned_pc = particle_diags[i].getPinnedParticleContainer(); tmp.SetParticleGeometry(0,pinned_pc->Geom(0)); |