From 1cb9484b3b7719397482a19083410f3103ecca10 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 9 Jan 2014 03:37:14 +0000 Subject: [PATCH] Fix another comment that was no longer accurate. git-svn-id: https://svn.dealii.org/trunk@32185 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/distributed/grid_refinement.cc | 31 ++++++------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/deal.II/source/distributed/grid_refinement.cc b/deal.II/source/distributed/grid_refinement.cc index c727e27db3..f7f185ff4e 100644 --- a/deal.II/source/distributed/grid_refinement.cc +++ b/deal.II/source/distributed/grid_refinement.cc @@ -315,28 +315,15 @@ namespace else interesting_range[0] = interesting_range[1] = test_threshold; - // terminate the iteration - // after 10 go-arounds. this - // is necessary because - // oftentimes error - // indicators on cells have - // exactly the same value, - // and so there may not be a - // particular value that cuts - // the indicators in such a - // way that we can achieve - // the desired number of - // cells. using a max of 10 - // iterations means that we - // terminate the iteration - // after 10 steps if the - // indicators were perfectly - // badly distributed, and we - // make at most a mistake of - // 1/2^10 in the number of - // cells flagged if - // indicators are perfectly - // equidistributed + // terminate the iteration after 25 go-arounds. this is necessary + // because oftentimes error indicators on cells have exactly the + // same value, and so there may not be a particular value that cuts + // the indicators in such a way that we can achieve the desired + // number of cells. using a maximal number of iterations means that + // we terminate the iteration after a fixed number N of steps if the + // indicators were perfectly badly distributed, and we make at most + // a mistake of 1/2^N in the number of cells flagged if indicators + // are perfectly equidistributed ++iteration; if (iteration == 25) interesting_range[0] = interesting_range[1] = test_threshold; -- 2.39.5