10#include "cell_types.h"
33Mesh
create_box(MPI_Comm comm,
const std::array<std::array<double, 3>, 2>& p,
34 std::array<std::size_t, 3> n,
CellType celltype,
48Mesh
create_interval(MPI_Comm comm, std::size_t n, std::array<double, 2> x,
77 const std::array<std::array<double, 2>, 2>& p,
78 std::array<std::size_t, 2> n,
CellType celltype,
97 const std::array<std::array<double, 2>, 2>& p,
98 std::array<std::size_t, 2> n,
CellType celltype,
Mesh data structures and algorithms on meshes.
Definition: DofMap.h:31
Mesh create_rectangle(MPI_Comm comm, const std::array< std::array< double, 2 >, 2 > &p, std::array< std::size_t, 2 > n, CellType celltype, 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:556
std::function< graph::AdjacencyList< std::int32_t >(MPI_Comm comm, int nparts, int tdim, const graph::AdjacencyList< std::int64_t > &cells)> CellPartitionFunction
Signature for the cell partitioning function. The function should compute the destination rank for ce...
Definition: utils.h:55
Mesh create_box(MPI_Comm comm, const std::array< std::array< double, 3 >, 2 > &p, std::array< std::size_t, 3 > n, CellType celltype, 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:230
DiagonalType
Enum for different diagonal types.
Definition: generation.h:54
Mesh create_interval(MPI_Comm comm, std::size_t n, std::array< double, 2 > x, 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:299
CellType
Cell type identifier.
Definition: cell_types.h:22
CellPartitionFunction create_cell_partitioner(mesh::GhostMode ghost_mode=mesh::GhostMode::none, 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:609