LocalMeshData.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
LocalMeshData
¶ Parent class(es)
This class stores mesh data on a local processor corresponding to a portion of a (larger) global mesh. Note that the data stored in this class does typically not correspond to a topologically connected mesh; it merely stores a list of vertex coordinates, a list of cell-vertex mappings and a list of global vertex numbers for the locally stored vertices.
It is typically used for parsing meshes in parallel from mesh XML files. After local mesh data has been parsed on each processor, a subsequent repartitioning takes place: first a geometric partitioning of the vertices followed by a redistribution of vertex and cell data, and then a topological partitioning again followed by redistribution of vertex and cell data, at that point corresponding to topologically connected meshes instead of local mesh data.
-
explicit
LocalMeshData
(const MPI_Comm mpi_comm)¶ Create empty local mesh data
-
void
check
() const¶ Check that all essential data has been initialized, and throw error if there is a problem
-
std::string
str
(bool verbose) const¶ Return informal string representation (pretty-print)
-
void
clear
()¶ Clear all data
-
void
broadcast_mesh_data
(const MPI_Comm mpi_comm)¶ Broadcast mesh data from main process (used when Mesh is created on one process)
-
void
receive_mesh_data
(const MPI_Comm mpi_comm)¶ Receive mesh data from main process
-
void
reorder
()¶ Reorder cell data
-
Geometry
()¶ Constructor
-
void
clear
()¶ Clear data
-
void
unpack_vertex_coordinates
(const std::vector<double> &values)¶ Unpack received vertex coordinates
-
Topology
()¶ Constructor
-
void
clear
() Clear data
-
void
unpack_cell_vertices
(const std::vector<std::int64_t> &values)¶ Unpack received cell vertices
-
MPI_Comm
mpi_comm
() const¶ Return MPI communicator
-
explicit