DOLFIN-X
DOLFIN-X C++ interface
|
11 #include <dolfinx/common/MPI.h>
62 bool mark(std::int32_t edge_index);
86 bool redistribute)
const;
100 static std::vector<std::int64_t>
101 adjust_indices(
const std::shared_ptr<const common::IndexMap>& index_map,
109 Eigen::Array<double, Eigen::Dynamic, 3, Eigen::RowMajor>
110 _new_vertex_coordinates;
113 std::vector<bool> _marked_edges;
117 std::vector<std::vector<std::int64_t>> _marked_for_update;
120 std::map<std::int32_t, std::set<std::int32_t>> _shared_edges;
123 MPI_Comm _neighbour_comm;
mesh::Mesh build_local(const std::vector< std::int64_t > &cell_topology) const
Build local mesh from internal data when not running in parallel.
Definition: ParallelRefinement.cpp:330
void mark_all()
Mark all edges in mesh.
Definition: ParallelRefinement.cpp:163
mesh::Mesh partition(const std::vector< std::int64_t > &cell_topology, bool redistribute) const
Use vertex and topology data to partition new mesh across processes.
Definition: ParallelRefinement.cpp:350
bool mark(std::int32_t edge_index)
Mark edge by index.
Definition: ParallelRefinement.cpp:140
const std::vector< bool > & marked_edges() const
Return markers for all edges.
Definition: ParallelRefinement.cpp:135
~ParallelRefinement()
Destructor.
Definition: ParallelRefinement.cpp:133
void update_logical_edgefunction()
Transfer marked edges between processes.
Definition: ParallelRefinement.cpp:193
Data structure and methods for refining meshes in parallel.
Definition: ParallelRefinement.h:40
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition: Mesh.h:46
std::map< std::int32_t, std::int64_t > create_new_vertices()
Add new vertex for each marked edge, and create new_vertex_coordinates and global_edge->new_vertex ma...
Definition: ParallelRefinement.cpp:219
static std::vector< std::int64_t > adjust_indices(const std::shared_ptr< const common::IndexMap > &index_map, std::int32_t n)
Adjust indices to account for extra n values on each process This is a utility to help add new topolo...
Definition: ParallelRefinement.cpp:302
ParallelRefinement(const mesh::Mesh &mesh)
Constructor.
Definition: ParallelRefinement.cpp:89
ParallelRefinement & operator=(const ParallelRefinement &p)=delete
Disable copy assignment.