|
WarpX
|
#include "ParticleUtils.H"#include <AMReX_Algorithm.H>#include <AMReX_Array.H>#include <AMReX_Box.H>#include <AMReX_Dim3.H>#include <AMReX_Geometry.H>#include <AMReX_GpuLaunch.H>#include <AMReX_GpuQualifiers.H>#include <AMReX_IntVect.H>#include <AMReX_MFIter.H>#include <AMReX_PODVector.H>#include <AMReX_ParticleTile.H>#include <AMReX_REAL.H>#include <AMReX_SPACE.H>Namespaces | |
| namespace | ParticleUtils |
Typedefs | |
| using | ParticleUtils::ParticleType = typename WarpXParticleContainer::ParticleType |
| using | ParticleUtils::ParticleBins = DenseBins<ParticleTileDataType> |
Functions | |
| amrex::DenseBins< ParticleTileDataType > | ParticleUtils::findParticlesInEachCell (amrex::Geometry const &geom_lev, amrex::MFIter const &mfi, WarpXParticleContainer::ParticleTileType &ptile) |
| Find the particles and count the particles that are in each cell. More specifically this function returns an amrex::DenseBins object containing an offset array and a permutation array which can be used to loop over all the cells in a tile and apply an algorithm to particles of a given species present in each cell. Note that this does not rearrange particle arrays. | |