10 #include "cell_types.h"
34 Mesh
create_box(MPI_Comm comm,
const std::array<std::array<double, 3>, 2>& p,
35 std::array<std::size_t, 3> n,
CellType celltype,
51 Mesh
create_interval(MPI_Comm comm, std::size_t n, std::array<double, 2> x,
82 const std::array<std::array<double, 2>, 2>& p,
83 std::array<std::size_t, 2> n,
CellType celltype,
104 const std::array<std::array<double, 2>, 2>& p,
105 std::array<std::size_t, 2> n,
CellType celltype,
Mesh data structures and algorithms on meshes.
Definition: DofMap.h:30
Mesh create_rectangle(MPI_Comm comm, const std::array< std::array< double, 2 >, 2 > &p, std::array< std::size_t, 2 > n, CellType celltype, GhostMode ghost_mode, DiagonalType diagonal=DiagonalType::right)
Create a uniform mesh::Mesh over the rectangle spanned by the two points p. The order of the two poin...
Definition: generation.cpp:562
Mesh create_box(MPI_Comm comm, const std::array< std::array< double, 3 >, 2 > &p, std::array< std::size_t, 3 > n, CellType celltype, GhostMode ghost_mode, const mesh::CellPartitionFunction &partitioner=create_cell_partitioner())
Create a uniform mesh::Mesh over the rectangular prism spanned by the two points p....
Definition: generation.cpp:233
CellPartitionFunction create_cell_partitioner(const graph::partition_fn &partfn=&graph::partition_graph)
Create a function that computes destination rank for mesh cells in this rank by applying the default ...
Definition: utils.cpp:604
Mesh create_interval(MPI_Comm comm, std::size_t n, std::array< double, 2 > x, GhostMode ghost_mode, const CellPartitionFunction &partitioner=create_cell_partitioner())
Interval mesh of the 1D line [a, b]. Given n cells in the axial direction, the total number of interv...
Definition: generation.cpp:303
GhostMode
Enum for different partitioning ghost modes.
Definition: utils.h:29
DiagonalType
Enum for different diagonal types.
Definition: generation.h:58
CellType
Cell type identifier.
Definition: cell_types.h:22
std::function< dolfinx::graph::AdjacencyList< std::int32_t >(MPI_Comm comm, int nparts, int tdim, const dolfinx::graph::AdjacencyList< std::int64_t > &cells, dolfinx::mesh::GhostMode ghost_mode)> CellPartitionFunction
Signature for the cell partitioning function. The function should compute the destination rank for ce...
Definition: utils.h:54