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/WarpXOpenPMD.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/WarpXOpenPMD.cpp')
-rw-r--r-- | Source/Diagnostics/WarpXOpenPMD.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Diagnostics/WarpXOpenPMD.cpp b/Source/Diagnostics/WarpXOpenPMD.cpp index daf5fbefc..ada56da36 100644 --- a/Source/Diagnostics/WarpXOpenPMD.cpp +++ b/Source/Diagnostics/WarpXOpenPMD.cpp @@ -495,7 +495,7 @@ WarpXOpenPMDPlot::WriteOpenPMDParticles (const amrex::Vector<ParticleDiag>& part 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>(); // names of amrex::Real and int particle attributes in SoA data amrex::Vector<std::string> real_names; amrex::Vector<std::string> int_names; |