DNDSR 0.2.1
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::Geom::GhostResult Struct Reference

#include <MeshConnectivity.hpp>

Collaboration diagram for DNDS::Geom::GhostResult:
[legend]

Public Member Functions

bool hasGhosts (EntityKind kind) const
 
index totalGhosts () const
 Total number of ghost entities on THIS rank.
 

Public Attributes

std::unordered_map< EntityKind, std::vector< index > > ghostIndices
 Per EntityKind: sorted, deduplicated global indices to ghost.
 
std::unordered_set< EntityKindactiveKinds
 

Detailed Description

Result of evaluating a CompiledGhostTree. Contains per-EntityKind sorted, deduplicated global indices to ghost.

Definition at line 312 of file MeshConnectivity.hpp.

Member Function Documentation

◆ hasGhosts()

bool DNDS::Geom::GhostResult::hasGhosts ( EntityKind  kind) const
inline

Whether any rank has ghosts for a given kind (collective). Safe to branch on — consistent across all ranks.

Definition at line 323 of file MeshConnectivity.hpp.

◆ totalGhosts()

index DNDS::Geom::GhostResult::totalGhosts ( ) const
inline

Total number of ghost entities on THIS rank.

Definition at line 329 of file MeshConnectivity.hpp.

Member Data Documentation

◆ activeKinds

std::unordered_set<EntityKind> DNDS::Geom::GhostResult::activeKinds

Entity kinds that have ghosts on ANY rank (collective). Populated by evaluateGhostTree via MPI_Allreduce.

Definition at line 319 of file MeshConnectivity.hpp.

◆ ghostIndices

std::unordered_map<EntityKind, std::vector<index> > DNDS::Geom::GhostResult::ghostIndices

Per EntityKind: sorted, deduplicated global indices to ghost.

Definition at line 315 of file MeshConnectivity.hpp.


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