177 const std::bitset<Dimensions> periodicBC
254 bool removeReturnedParticlesFromSet,
255 bool onlyReturnParticlesThatWillBeLocal,
332#include "SieveParticles.cpph"
Utility class for global sorting for all flavours of particle sets.
static void deleteParticles(ParticleList &list)
std::string toString() const
std::list< T * > ParticleList
static tarch::multicore::BooleanSemaphore _particlesToBeSievedSemaphore
void addParticleThatCanNotBeLiftedWithinItsTree(T *)
Add a particle to the list of particles which cannot be lifted.
int getNumberOfParticlesThatHaveBeSievedIntoVertices() const
hasParticlesToBeSievedIntoVertices() is equivalent to checking if this routine returns something grea...
ParticleList getParticlesToBeSievedIntoVertex(const peano4::datamanagement::VertexMarker &marker, bool removeReturnedParticlesFromSet, bool onlyReturnParticlesThatWillBeLocal, bool lockSemaphore)
Get particles that are to be sieved into one vertex.
static tarch::multicore::BooleanSemaphore _particlesThatCanNotBeLiftedWithinTheirTreeSemaphore
Semaphores.
ParticleList _particlesThatCanNotBeLiftedWithinTheirTree
void deleteParticles()
Deep clear.
SieveParticles< T > cloneParticlesToBeSieved()
Clone object, but let it contain only the delivering part, i.e.
void exchangeSieveListsGlobally(const tarch::la::Vector< Dimensions, double > domainOffset, const tarch::la::Vector< Dimensions, double > domainSize, const std::bitset< Dimensions > periodicBC)
Get all the global sieve data consistent.
bool hasParticlesToBeSievedIntoVertices() const
Fine out how many particles still to sieve.
virtual ~SieveParticles()
Destructor.
static int _SieveReductionTag
Reduction tag.
static tarch::logging::Log _log
ParticleList _particlesThatHaveToBeSieved
Particles that should be sieved.
Vertex marker to provide information about selected vertex.