DOLFINx
0.1.0
DOLFINx C++ interface
|
11 #include "cell_types.h"
13 #include <dolfinx/common/MPI.h>
14 #include <dolfinx/common/UniqueIdGenerator.h>
23 class CoordinateElement;
40 = std::function<const dolfinx::graph::AdjacencyList<std::int32_t>(
41 MPI_Comm comm,
int nparts,
int tdim,
62 template <
typename Topology,
typename Geometry>
82 Mesh& operator=(
const Mesh& mesh) =
delete;
86 Mesh& operator=(
Mesh&& mesh) =
default;
113 std::size_t
id()
const {
return _unique_id; }
158 const xt::xtensor<double, 2>& x,
GhostMode ghost_mode);
163 const xt::xtensor<double, 2>& x,
GhostMode ghost_mode,
Topology & topology_mutable() const
Get mesh topology if one really needs the mutable version.
Definition: Mesh.cpp:122
std::function< const 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
Definition: Mesh.h:43
std::size_t id() const
Get unique identifier for the mesh.
Definition: Mesh.h:113
This class provides a static adjacency list data structure. It is commonly used to store directed gra...
Definition: AdjacencyList.h:46
GhostMode
Enum for different partitioning ghost modes.
Definition: Mesh.h:46
Topology & topology()
Get mesh topology.
Definition: Mesh.cpp:118
Mesh(MPI_Comm comm, Topology &&topology, Geometry &&geometry)
Create a mesh.
Definition: Mesh.h:63
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition: Mesh.h:55
Mesh create_mesh(MPI_Comm comm, const graph::AdjacencyList< std::int64_t > &cells, const fem::CoordinateElement &element, const xt::xtensor< double, 2 > &x, GhostMode ghost_mode)
Create a mesh using the default partitioner. This function takes mesh input data that is distributed ...
Definition: Mesh.cpp:25
~Mesh()=default
Destructor.
A duplicate MPI communicator and manage lifetime of the communicator.
Definition: MPI.h:35
std::string name
Name.
Definition: Mesh.h:120
Topology stores the topology of a mesh, consisting of mesh entities and connectivity (incidence relat...
Definition: Topology.h:56
Geometry & geometry()
Get mesh geometry.
Definition: Mesh.cpp:124
MPI_Comm mpi_comm() const
Mesh MPI communicator.
Definition: Mesh.cpp:128
Geometry stores the geometry imposed on a mesh.
Definition: Geometry.h:36
static std::size_t id()
Generate a unique ID.
Definition: UniqueIdGenerator.cpp:22
This class manages coordinate mappings for isoparametric cells.
Definition: CoordinateElement.h:30