]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add to the documentation of a function in GridTools. 14973/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 29 Sep 2022 16:27:32 +0000 (10:27 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 24 Mar 2023 20:26:18 +0000 (14:26 -0600)
include/deal.II/grid/grid_tools.h
source/grid/grid_tools.cc

index d38176e604e14228e9db3c99de594babb1d15cc4..66e73e3ed64ce5a51bcca978c6e27efb8b54ff3b 100644 (file)
@@ -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.
    */
index a86aec61231000afbc3ecace47eefa2a54b3c2b9..78b73d0097a89881ec9052f5d892b7866dee1433 100644 (file)
@@ -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;
 

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


Typeset in Trocchi and Trocchi Bold Sans Serif.