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

A cross-patch merge proposal: one particle's own nearest-neighbor query result, bundled as a self-contained, atomic pair for shipment to whichever rank owns the candidate. More...

#include <CD_NearestNeighborParticleMerge.H>

Public Attributes

MergeParticle< Packed > source
 The proposer's own particle (full data) – always locally valid/owned by the sending rank.
 
ParticleID targetID
 Global id of the particle being proposed to. Owned by the receiving (judge) rank.
 
Real distanceSquared
 Squared distance between source and the target. Duplicated from the originating NNMergeEdge so the judge never needs to look anything up to sort/compare proposals.
 

Detailed Description

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

A cross-patch merge proposal: one particle's own nearest-neighbor query result, bundled as a self-contained, atomic pair for shipment to whichever rank owns the candidate.

Carries full data for both participants (not a bare id reference) so the judge's decision is self-contained and it can never recombine pieces across different incoming proposals. Routing rule (see generateProposals()): a proposal is always sent to the owner of the querying particle's best candidate, never by any id comparison.

Template Parameters
PackedSee MergeParticle.

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