Co-authored-by: Rene Gassmoeller <rene.gassmoeller@mailbox.org>
update_vertex_to_neighbor_subdomain = 0x100,
/**
- * Update the coinciding vertex groups as well as the
- * vertex_to_coinciding_vertex_group
+ * Update the information about which subdomains are connected to each vertex.
*/
update_vertex_with_ghost_neighbors = 0x200,
std::set<unsigned int> cell_to_neighbor_subdomain;
for (const unsigned int v : cell->vertex_indices())
{
- if (vertices_with_ghost_neighbors.find(cell->vertex_index(v)) !=
+ const auto vertex_ghost_neighbors = vertices_with_ghost_neighbors.find(cell->vertex_index(v));
+ if (vertex_ghost_neighbors !=
vertices_with_ghost_neighbors.end())
{
cell_to_neighbor_subdomain.insert(
- vertices_with_ghost_neighbors.at(cell->vertex_index(v))
- .begin(),
- vertices_with_ghost_neighbors.at(cell->vertex_index(v))
- .end());
+ vertex_ghost_neighbors->second.begin(),
+ vertex_ghost_neighbors->second.end());
}
}
Point<dim> reference_position;
if (Utilities::MPI::this_mpi_process(tr.get_communicator()) == 0)
- position(0) = 0.001;
+ position[0] = 0.001;
else
position[0] = 0.999;
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams