11 #include <dolfinx/graph/AdjacencyList.h>
12 #include <dolfinx/mesh/Mesh.h>
18 class CoordinateElement;
22 namespace generation::IntervalMesh
38 create(MPI_Comm comm, std::size_t n, std::array<double, 2> x,
This class manages coordinate mappings for isoparametric cells.
Definition: CoordinateElement.h:26
This class provides a static adjacency list data structure. It is commonly used to store directed gra...
Definition: AdjacencyList.h:46
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition: Mesh.h:57
mesh::Mesh create(MPI_Comm comm, std::size_t n, std::array< double, 2 > x, const fem::CoordinateElement &element, const mesh::GhostMode ghost_mode, const mesh::CellPartitionFunction &partitioner=static_cast< graph::AdjacencyList< std::int32_t >(*)(MPI_Comm, int, const mesh::CellType, const graph::AdjacencyList< std::int64_t > &, mesh::GhostMode)>(&mesh::partition_cells_graph))
Interval mesh of the 1D line [a, b]. Given n cells in the axial direction, the total number of interv...
Definition: IntervalMesh.cpp:75
graph::AdjacencyList< std::int32_t > partition_cells_graph(MPI_Comm comm, int n, const mesh::CellType cell_type, const graph::AdjacencyList< std::int64_t > &cells, mesh::GhostMode ghost_mode)
Compute destination rank for mesh cells in this rank by applying the default graph partitioner to the...
Definition: utils.cpp:485
CellType
Cell type identifier.
Definition: cell_types.h:21
GhostMode
Enum for different partitioning ghost modes.
Definition: Mesh.h:48
std::function< const dolfinx::graph::AdjacencyList< std::int32_t >(MPI_Comm comm, int nparts, const dolfinx::mesh::CellType cell_type, const dolfinx::graph::AdjacencyList< std::int64_t > &cells, dolfinx::mesh::GhostMode ghost_mode)> CellPartitionFunction
Definition: Mesh.h:44