Class GlobalCellHandler
Defined in File mesh_continuum_global_cell_handler.h
Class Documentation
-
class GlobalCellHandler
Handles all global index queries.
Public Functions
Adds a new cell to the appropriate category (local or ghost).
- Parameters:
new_cell – The cell to add.
-
Cell &operator[](uint64_t cell_global_index)
Returns a reference to a cell given its global cell index.
-
const Cell &operator[](uint64_t cell_global_index) const
Returns a const reference to a cell given its global cell index.
-
inline size_t GhostCellCount() const
Returns the the total number of ghost cells.
-
std::vector<uint64_t> GetGhostGlobalIDs() const
Returns the cell global ids of all ghost cells. These are cells that neighbors to this partition’s cells but are on a different partition.
-
uint64_t GetGhostLocalID(uint64_t cell_global_index) const
Returns the local storage address of a ghost cell. If the ghost is not truly a ghost then -1 is returned, but is wasteful and therefore the user of this function should implement code to prevent it.