]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
improve documentation
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 12 Feb 2014 22:25:48 +0000 (22:25 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 12 Feb 2014 22:25:48 +0000 (22:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@32463 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/grid/tria_accessor.h

index 7ff6297f2cf46c040cc5a56280ec0345b2b86e62..9822d047baea28105bdb72c96811b623f913b6c5 100644 (file)
@@ -2598,10 +2598,17 @@ public:
    */
 
   /**
-   *  Return the @p
-   *  RefinementCase<dim> this cell
-   *  was flagged to be refined
-   *  with.
+   * Return the @p RefinementCase<dim> this cell was flagged to be refined
+   * with.
+   * The return value of this function can be compared to a bool to check if this cell is flagged
+   * for any kind of refinement. For example, after calling cell->set_refine_flag()
+   * this code will go into the if statement:
+   * @code
+   * if (cell->refine_flag_set())
+   * {
+   *   // yes, this cell is marked for refinement.
+   * }
+   * @endcode
    */
   RefinementCase<dim> refine_flag_set () const;
 
@@ -2609,7 +2616,8 @@ public:
    *  Flag the cell pointed to for
    *  refinement. This function is
    *  only allowed for active
-   *  cells.
+   *  cells. Keeping the default value for @p ref_case will mark this cell for
+   *  isotropic refinement.
    */
   void set_refine_flag (const RefinementCase<dim> ref_case = RefinementCase<dim>::isotropic_refinement) 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.