Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
MeshTopology stores the topology of a mesh, consisting of mesh entities and connectivity (incidence relations for the mesh entities). Note that the mesh entities don’t need to be stored, only the number of entities and the connectivity. Any numbering scheme for the mesh entities is stored separately in a MeshFunction over the entities.
A mesh entity e may be identified globally as a pair e = (dim, i), where dim is the topological dimension and i is the index of the entity within that topological dimension.
Create empty mesh topology
Copy constructor
Assignment
Return topological dimension
Return number of entities for given dimension
Return global number of entities for given dimension
Return number of regular (non-ghost) entities or equivalently, the offset of where ghost entities begin
Clear all data
Clear data for given pair of topological dimensions
Initialize topology of given maximum dimension
Set number of local entities (local_size) and global entities (global_size) for given topological dimension dim
Initialize storage for global entity numbering for entities of dimension dim
Initialise the offset index of ghost entities for this dimension
Set global index for entity of dimension dim and with local index
Get local-to-global index map for entities of topological dimension d
Check if global indices are available for entities of dimension dim
Check whether there are any shared entities calculated of dimension dim
Return map from shared entities (local index) to processes that share the entity
Return map from shared entities (local index) to process that share the entity (const version)
Return mapping from local ghost cell index to owning process Since ghost cells are at the end of the range, this is just a vector over those cells
Return mapping from local ghost cell index to owning process (const version) Since ghost cells are at the end of the range, this is just a vector over those cells
Return connectivity for given pair of topological dimensions
Return connectivity for given pair of topological dimensions
Return hash based on the hash of cell-vertex connectivity
Return informal string representation (pretty-print)