]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update comment to match what we are currently doing.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 21 Jul 2013 23:56:00 +0000 (23:56 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 21 Jul 2013 23:56:00 +0000 (23:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@30083 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/tria.cc

index d55a04bedfa93da53f4bb0f2926643b4d0b2871c..f43aaed205e9e7b64eb4525c90c6b5b543c75db0 100644 (file)
@@ -12206,8 +12206,9 @@ void Triangulation<dim, spacedim>::execute_coarsening ()
   // deleted (if the latter are on a
   // higher level for example)
   //
-  // since we delete the *children* of cells, we only need to start
-  // considering cells on the second highest level, n_levels()-2.
+  // since we delete the *children* of cells, we can ignore cells
+  // on the highest level, i.e., level must be less than or equal
+  // to n_levels()-2.
   if (levels.size() >= 2)
     for (cell = last(); cell!=endc; --cell)
       if (cell->user_flag_set() && cell->level()<=static_cast<int>(levels.size()-2))

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.