25#include <CD_NamespaceHeader.H>
191#include <CD_NamespaceFooter.H>
Implementation of CD_KDNode.H.
Node in a particle-merging KD-tree.
Definition CD_KDNode.H:34
ParticleList moveParticles() noexcept
Move the particles list further down in the subtree into this vector.
Definition CD_KDNodeImplem.H:106
const Real & weight() const noexcept
Get the node weight.
Definition CD_KDNodeImplem.H:53
const ParticleList & getParticles() const noexcept
Get particles in this node.
Definition CD_KDNodeImplem.H:39
KDNode()
Default constructor.
Definition CD_KDNodeImplem.H:25
std::shared_ptr< KDNode< P > > & getRight() noexcept
Get the right node.
Definition CD_KDNodeImplem.H:139
std::shared_ptr< KDNode > m_right
Right KD-node.
Definition CD_KDNode.H:162
ParticleList gatherParticles() const noexcept
Gather particles further down in the subtree and return all particles (in the leaf nodes)
Definition CD_KDNodeImplem.H:81
virtual ~KDNode()
Destructor. Does nothing.
Definition CD_KDNodeImplem.H:34
ParticleList m_particles
List of particles.
Definition CD_KDNode.H:172
Real m_weight
Node weight.
Definition CD_KDNode.H:167
std::shared_ptr< KDNode< P > > & getLeft() noexcept
Get the left node.
Definition CD_KDNodeImplem.H:132
std::vector< P > ParticleList
List of particles. This is aliased because the KD-tree construction may require both random access an...
Definition CD_KDNode.H:40
bool isLeafNode() const noexcept
Is leaf node or not.
Definition CD_KDNodeImplem.H:67
KDNode(const KDNode &&)=delete
Disallowed constructor.
std::shared_ptr< KDNode > m_left
Left KD-node.
Definition CD_KDNode.H:157
KDNode(const KDNode &)=delete
Disallowed constructor.
bool isInteriorNode() const noexcept
Is leaf node or not.
Definition CD_KDNodeImplem.H:74
KDNode & operator=(const KDNode &&)=delete
Disallowed assignment.
KDNode & operator=(const KDNode &)=delete
Disallowed assignment.
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:26