WarpX
Namespaces | Functions
ParticleUtils.H File Reference
#include "Particles/WarpXParticleContainer.H"
#include <AMReX_DenseBins.H>

Go to the source code of this file.

Namespaces

 ParticleUtils
 

Functions

amrex::DenseBins< WarpXParticleContainer::ParticleTypeParticleUtils::findParticlesInEachCell (int const lev, amrex::MFIter const &mfi, WarpXParticleContainer::ParticleTileType const &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. More...