]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add some documentation and clarify an awkwardly explained concept.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 15 Jun 2014 15:45:45 +0000 (15:45 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 15 Jun 2014 15:45:45 +0000 (15:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@33046 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/grid/tria.h

index 86d7789683edc34ccf68fff58ff79eb46b4df171..f60fd6e5455dd450821ad96bd0a4d6f3484e92b8 100644 (file)
@@ -2879,14 +2879,22 @@ public:
   unsigned int n_active_faces () const;
 
   /**
-   * Return number of levels in use. This
-   * may be less than the number of levels
-   * existing in the triangulation if by
-   * coarsening the highest level was
-   * completely depopulated. That level is
-   * not removed, since it will most likely
-   * be repopulated soon by the next
-   * refinement process.
+   * Return the number of levels in this triangulation.
+   *
+   * @note Internally, triangulations store data in levels, and there
+   * may be more levels in this data structure than one may think --
+   * for example, imagine a triangulation that we just got by
+   * coarsening the highest level so that it was completely
+   * depopulated. That level is not removed, since it will most likely
+   * be repopulated soon by the next refinement process. As a consequence,
+   * if you happened to run through raw cell iterators (which you can't
+   * do as a user of this class, but can internally), then the number
+   * of objects in the levels hierarchy is larger than the level of the most
+   * refined cell plus one. On the other hand, since this is rarely what a
+   * user of this class cares about, the function really just returns the
+   * level of the most refined active cell plus one. (The plus one is
+   * because in a coarse, unrefined mesh, all cells have level zero --
+   * making the number of levels equal to one.)
    */
   unsigned int n_levels () const;
 

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.