9 #include "cell_types.h"
12 #include <dolfinx/common/MPI.h>
25 class ElementDofLayout;
84 void set_index_map(
int dim,
85 const std::shared_ptr<const common::IndexMap>& map);
91 std::shared_ptr<const common::IndexMap> index_map(
int dim)
const;
99 std::shared_ptr<const graph::AdjacencyList<std::int32_t>>
100 connectivity(
int d0,
int d1)
const;
108 const std::vector<std::uint32_t>& get_cell_permutation_info()
const;
119 const std::vector<std::uint8_t>& get_facet_permutations()
const;
134 std::int32_t create_entities(
int dim);
139 void create_connectivity(
int d0,
int d1);
142 void create_entity_permutations();
145 void create_connectivity_all();
149 MPI_Comm mpi_comm()
const;
159 std::array<std::shared_ptr<const common::IndexMap>, 4> _index_map;
162 std::vector<std::vector<std::shared_ptr<graph::AdjacencyList<std::int32_t>>>>
168 std::vector<std::uint8_t> _facet_permutations;
172 std::vector<std::uint32_t> _cell_permutations;
194 const std::vector<std::int64_t>& original_cell_index,
195 const std::vector<int>& ghost_owners,
A duplicate MPI communicator and manage lifetime of the communicator.
Definition: MPI.h:36
This class provides a static adjacency list data structure. It is commonly used to store directed gra...
Definition: AdjacencyList.h:68
Topology stores the topology of a mesh, consisting of mesh entities and connectivity (incidence relat...
Definition: Topology.h:57
Topology & operator=(const Topology &topology)=delete
Assignment.
Topology & operator=(Topology &&topology)=default
Assignment.
Topology(Topology &&topology)=default
Move constructor.
Topology(const Topology &topology)=default
Copy constructor.
~Topology()=default
Destructor.
std::vector< bool > compute_boundary_facets(const Topology &topology)
Compute marker for owned facets that are on the exterior of the domain, i.e. are connected to only on...
Definition: Topology.cpp:120
CellType
Cell type identifier.
Definition: cell_types.h:23
Topology create_topology(MPI_Comm comm, const graph::AdjacencyList< std::int64_t > &cells, const std::vector< std::int64_t > &original_cell_index, const std::vector< int > &ghost_owners, const CellType &cell_type, mesh::GhostMode ghost_mode)
Create distributed topology.
Definition: Topology.cpp:303
GhostMode
Enum for different partitioning ghost modes.
Definition: Mesh.h:48