This class implements a set of basic algorithms that automate the computation of mesh entities and connectivity.
More...
#include <TopologyComputation.h>
|
static std::tuple< std::shared_ptr< graph::AdjacencyList< std::int32_t > >, std::shared_ptr< graph::AdjacencyList< std::int32_t > >, std::shared_ptr< common::IndexMap > > | compute_entities (MPI_Comm comm, const Topology &topology, int dim) |
| Compute mesh entities of given topological dimension by computing entity-to-vertex connectivity (dim, 0), and cell-to-entity connectivity (tdim, dim) More...
|
|
static std::array< std::shared_ptr< graph::AdjacencyList< std::int32_t > >, 2 > | compute_connectivity (const Topology &topology, int d0, int d1) |
| Compute connectivity (d0 -> d1) for given pair of topological dimensions. More...
|
|
This class implements a set of basic algorithms that automate the computation of mesh entities and connectivity.
◆ compute_connectivity()
std::array< std::shared_ptr< graph::AdjacencyList< std::int32_t > >, 2 > TopologyComputation::compute_connectivity |
( |
const Topology & |
topology, |
|
|
int |
d0, |
|
|
int |
d1 |
|
) |
| |
|
static |
Compute connectivity (d0 -> d1) for given pair of topological dimensions.
- Parameters
-
[in] | topology | The topology |
[in] | d0 | The dimension of the nodes in the adjacency list |
[in] | d1 | The dimension of the edges in the adjacency list |
- Returns
- The connectivities [(d0, d1), (d1, d0)] if they are computed. If (d0, d1) already exists then a nullptr is returned. If (d0, d1) is computed and the computation of (d1, d0) was required as part of computing (d0, d1), the (d1, d0) is returned as the second entry. The second entry is otherwise nullptr.
◆ compute_entities()
Compute mesh entities of given topological dimension by computing entity-to-vertex connectivity (dim, 0), and cell-to-entity connectivity (tdim, dim)
- Parameters
-
[in] | comm | MPI Communicator |
[in] | topology | Mesh topology |
[in] | dim | The dimension of the entities to create |
- Returns
- Tuple of (cell-entity connectivity, entity-vertex connectivity, index map). If the entities already exist, then {nullptr, nullptr, nullptr} is returned.
The documentation for this class was generated from the following files:
- /build/dolfinx-EGDDvI/dolfinx-2019.2.0~git20200723.696fbc0/cpp/dolfinx/mesh/TopologyComputation.h
- /build/dolfinx-EGDDvI/dolfinx-2019.2.0~git20200723.696fbc0/cpp/dolfinx/mesh/TopologyComputation.cpp