Skip to content

Commit

Permalink
Merge pull request #14973 from bangerth/doc-gridtools
Browse files Browse the repository at this point in the history
Add to the documentation of a function in GridTools.
  • Loading branch information
drwells committed Mar 25, 2023
2 parents 31826f3 + 1f4d831 commit b8135fa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions include/deal.II/grid/grid_tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -3375,8 +3375,21 @@ namespace GridTools
std::map<unsigned int, unsigned int> &vertex_to_coinciding_vertex_group);

/**
* Return a map that, for each vertex, lists all the processes whose
* subdomains are adjacent to that vertex.
* Return a map that, for each vertex of the given triangulation,
* provides a set of all the process subdomain ids whose subdomains
* are adjacent to that vertex. The set excludes the subdomain id
* of the current process. As a consequence, for a given vertex,
* the returned set consists of exactly those subdomain ids that
* correspond to the
* @ref GlossGhostCell "ghost cells"
* adjacent to that vertex, assuming there are any such ghost cells.
*
* For vertices that are not adjacent to a ghost cell, the map contains
* no entries, and this should be interpreted in the same way as if
* the map contained an entry for a given vertex index, but that the
* `std::set` associated with that map entry is simply empty.
* For non-parallel triangulations, the map is consequently empty
* since no vertex has adjacent ghost cells.
*
* @param[in] tria Triangulation.
*/
Expand Down
2 changes: 1 addition & 1 deletion source/grid/grid_tools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6736,7 +6736,7 @@ namespace GridTools
for (const unsigned int v : cell->vertex_indices())
vertex_of_own_cell[cell->vertex_index(v)] = true;

// 3) for each vertex belonging to a locally owned cell all ghost
// 3) for each vertex belonging to a locally owned cell, find all ghost
// neighbors (including the periodic own)
std::map<unsigned int, std::set<types::subdomain_id>> result;

Expand Down

0 comments on commit b8135fa

Please sign in to comment.