diff options
Diffstat (limited to 'Source/Particles/ParticleBoundaryBuffer.H')
-rw-r--r-- | Source/Particles/ParticleBoundaryBuffer.H | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Particles/ParticleBoundaryBuffer.H b/Source/Particles/ParticleBoundaryBuffer.H index d2ac9f035..171b74701 100644 --- a/Source/Particles/ParticleBoundaryBuffer.H +++ b/Source/Particles/ParticleBoundaryBuffer.H @@ -7,8 +7,8 @@ #ifndef PARTICLEBOUNDARYBUFFER_H_ #define PARTICLEBOUNDARYBUFFER_H_ -#include "Particles/ParticleBuffer.H" #include "Particles/MultiParticleContainer_fwd.H" +#include "Particles/WarpXParticleContainer.H" #include <vector> @@ -18,6 +18,8 @@ class ParticleBoundaryBuffer { public: + using BufferType = typename WarpXParticleContainer::ContainerLike<amrex::PinnedArenaAllocator>; + ParticleBoundaryBuffer (); int numSpecies() const { return getSpeciesNames().size(); } @@ -43,7 +45,7 @@ public: int getNumParticlesInContainer(const std::string species_name, int boundary); - ParticleBuffer::BufferType<amrex::PinnedArenaAllocator>& getParticleBuffer(const std::string species_name, int boundary); + BufferType& getParticleBuffer(const std::string species_name, int boundary); static constexpr int numBoundaries () { return AMREX_SPACEDIM*2 @@ -55,7 +57,7 @@ public: private: // over boundary, then number of species - std::vector<std::vector<ParticleBuffer::BufferType<amrex::PinnedArenaAllocator> > > m_particle_containers; + std::vector<std::vector<BufferType> > m_particle_containers; // over boundary, then number of species std::vector<std::vector<int> > m_do_boundary_buffer; |