From 46c5cd3c3f0a8a04386caf19d69998f0fa77947d Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 21 Jul 2013 23:56:00 +0000 Subject: [PATCH] Update comment to match what we are currently doing. git-svn-id: https://svn.dealii.org/trunk@30083 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/tria.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deal.II/source/grid/tria.cc b/deal.II/source/grid/tria.cc index d55a04bedf..f43aaed205 100644 --- a/deal.II/source/grid/tria.cc +++ b/deal.II/source/grid/tria.cc @@ -12206,8 +12206,9 @@ void Triangulation::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(levels.size()-2)) -- 2.39.5