chombo-discharge
Loading...
Searching...
No Matches
Public Attributes | List of all members
ParticleManagement::detail::NNPooledParticle< Packed > Struct Template Reference

Pooled per-round record for one particle: the particle plus its cached boundary-exposure flag. More...

#include <CD_NearestNeighborParticleMerge.H>

Public Attributes

MergeParticle< Packed > particle
 The pooled particle (position/weight/ids/level/payload).
 
bool exposed = false
 Whether this local valid particle's cell touches a patch boundary (has ghost targets). Always false for ghosts.
 

Detailed Description

template<typename Packed>
struct ParticleManagement::detail::NNPooledParticle< Packed >

Pooled per-round record for one particle: the particle plus its cached boundary-exposure flag.

particlesByID maps every local valid particle and every ghost to one of these. Folding the exposure flag in (it used to live in a separate id->bool map filled in the same gather loop) lets the gather do one hash insert per particle instead of two, and resolveTrivialTier() one lookup per query/candidate instead of two. exposed is meaningful only for local valid particles; ghosts always carry false (a ghost never initiates a query, and candidate-side exposure is gated on locality).

Template Parameters
PackedCaller-defined payload type (see MergeParticle).

The documentation for this struct was generated from the following file: