]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide the same comments for begin_active/end_active as for the other DoFHandler...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 21 Jul 2013 22:56:58 +0000 (22:56 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 21 Jul 2013 22:56:58 +0000 (22:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@30080 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/hp/dof_handler.h

index 4d0177fc41e23570aeea166c57f4e33e8654a909..1baba2752622f46166f2334f8adb1bdd3d4a7059 100644 (file)
@@ -315,9 +315,17 @@ namespace hp
     cell_iterator        begin       (const unsigned int level = 0) const;
 
     /**
-    * Iterator to the first active
-    * cell on level @p level.
-    */
+     *  Iterator to the first active cell on level @p level. If the
+     *  given level does not contain any active cells (i.e., all cells
+     *  on this level are further refined, then this function returns
+     *  <code>end_active(level)</code> so that loops of the kind
+     *  @code
+     *    for (cell=dof_handler.begin_active(level); cell!=dof_handler.end_active(level); ++cell)
+     *      ...
+     *  @endcode
+     *  have zero iterations, as may be expected if there are no active
+     *  cells on this level.
+     */
     active_cell_iterator begin_active(const unsigned int level = 0) const;
 
     /**
@@ -339,12 +347,10 @@ namespace hp
     cell_iterator        end (const unsigned int level) const;
 
     /**
-    * Return an active iterator
-    * which is the first iterator
-    * not on level. If @p level is
-    * the last level, then this
-    * returns <tt>end()</tt>.
-    */
+     * Return an active iterator which is the first active iterator not
+     * on the given level. If @p level is the last level, then this
+     * returns <tt>end()</tt>.
+     */
     active_cell_iterator end_active (const unsigned int level) 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.