|
WarpX
|
#include <WarpXOpenPMD.H>
Public Types | |
| using | ParticleContainer = typename WarpXParticleContainer::ContainerLike<amrex::PolymorphicArenaAllocator> |
| using | ParticleIter = typename amrex::ParIterSoA<PIdx::nattribs, 0, amrex::PolymorphicArenaAllocator> |
Public Member Functions | |
| WarpXParticleCounter (ParticleContainer *pc) | |
| unsigned long | GetTotalNumParticles () const |
Public Attributes | |
| std::vector< unsigned long long > | m_ParticleOffsetAtRank |
| std::vector< unsigned long long > | m_ParticleSizeAtRank |
Private Member Functions | |
| void | GetParticleOffsetOfProcessor (const long &numParticles, unsigned long long &offset, unsigned long long &sum) const |
Private Attributes | |
| int | m_MPIRank = 0 |
| int | m_MPISize = 1 |
| unsigned long long | m_Total = 0 |
| std::vector< unsigned long long > | m_ParticleCounterByLevel |
| using WarpXParticleCounter::ParticleContainer = typename WarpXParticleContainer::ContainerLike<amrex::PolymorphicArenaAllocator> |
| using WarpXParticleCounter::ParticleIter = typename amrex::ParIterSoA<PIdx::nattribs, 0, amrex::PolymorphicArenaAllocator> |
|
explicit |
|
private |
get the offset in the overall particle id collection
| [out] | numParticles | particles on this processor / amrex fab |
| [out] | offset | particle offset over all, mpi-global amrex fabs |
| [out] | sum | number of all particles from all amrex fabs |
|
inlinenodiscard |
|
private |
|
private |
|
private |
| std::vector<unsigned long long> WarpXParticleCounter::m_ParticleOffsetAtRank |
| std::vector<unsigned long long> WarpXParticleCounter::m_ParticleSizeAtRank |
|
private |