]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fianlize documentation
authorBruno Blais <blais.bruno@gmail.com>
Fri, 18 Nov 2022 21:14:15 +0000 (16:14 -0500)
committerBruno Blais <blais.bruno@gmail.com>
Fri, 18 Nov 2022 21:14:15 +0000 (16:14 -0500)
include/deal.II/grid/grid_tools_cache.h
source/particles/particle_handler.cc

index 4d5ccfcf75dc0feb086fb6463d10ec0abc353e5f..3b7e27fb30c11d2bd22d446acecd83acb130b772 100644 (file)
@@ -169,11 +169,20 @@ namespace GridTools
     get_vertex_to_neighbor_subdomain() const;
 
     /**
-     * TODO
+     * Returns the std::map of std::vector of unsigned integer containing
+     * coinciding vertices labeled by an arbitrary element from them. This
+     * feature is used to identify cells which are connected by periodic
+     * boundaries.
      */
     const std::map<unsigned int, std::vector<unsigned int>> &
     get_coinciding_vertex_groups() const;
 
+    /**
+     * Returns the std::map of unsigned integer containing
+     * the label of a group of coinciding vertices. This
+     * feature is used to identify cells which are connected by periodic
+     * boundaries.
+     */
     const std::map<unsigned int, unsigned int> &
     get_vertex_to_coinciding_vertex_group() const;
 
@@ -303,14 +312,16 @@ namespace GridTools
 
     /**
      * Store an std::map of std::vector of unsigned integer containing
-     * coinciding vertices labeled by an arbitrary element from them
+     * coinciding vertices labeled by an arbitrary element from them.
      */
     mutable std::map<unsigned int, std::vector<unsigned int>>
       coinciding_vertex_groups;
 
     /**
      * Store an std::map of unsigned integer containing
-     * the label of a group of coinciding vertices
+     * the label of a group of coinciding vertices.
+     * This std::map is generally used in combination
+     * with the above std::map coinciding_vertex_groups.
      */
     mutable std::map<unsigned int, unsigned int>
       vertex_to_coinciding_vertex_group;
index fae3bc91bd1ea40d12f9702e56fc5da3dbb2f915..a7d54914e981530d6e23c637efb808c91f0e370e 100644 (file)
@@ -1545,8 +1545,8 @@ namespace Particles
     // In the case of a parallel simulation with periodic boundary conditions
     // the vertices associated with periodic boundaries are not directly
     // connected to the ghost cells but they are connected to the ghost cells
-    // through their coinciding vertices. We loop over the coinciding vertices
-    // to identify cells in which ghost particles must be generated
+    // through their coinciding vertices. We gather the information about
+    // the coinciding vertices through the grid cache.
     const std::map<unsigned int, std::vector<unsigned int>>
       coinciding_vertex_groups =
         triangulation_cache->get_coinciding_vertex_groups();
@@ -1579,7 +1579,8 @@ namespace Particles
                 // looped over are contained inside the
                 // vertex_to_coinciding_vertex_group Consequently, we loop over
                 // the full content of the coinciding vertex group which will
-                // include the current vertex and we skip the current vertex.
+                // include the current vertex. When we reach the current vertex,
+                // we skip it to avoid repetition.
                 if (vertex_to_coinciding_vertex_group.find(cell->vertex_index(
                       v)) != vertex_to_coinciding_vertex_group.end())
                   {

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.