From e5be39f50faed361bf98ba288246f28ad6878042 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 11 Aug 2000 12:34:16 +0000 Subject: [PATCH] Fix a slight bug when there are too few cells. Add a comment. git-svn-id: https://svn.dealii.org/trunk@3251 0785d39b-7218-0410-832d-ea1e28bc413d --- .../source/numerics/error_estimator.cc | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/deal.II/deal.II/source/numerics/error_estimator.cc b/deal.II/deal.II/source/numerics/error_estimator.cc index d39948dfc3..7ec6b19cbc 100644 --- a/deal.II/deal.II/source/numerics/error_estimator.cc +++ b/deal.II/deal.II/source/numerics/error_estimator.cc @@ -333,14 +333,27 @@ void KellyErrorEstimator::estimate_some (Data &data, DoFHandler::active_cell_iterator cell=data.dof.begin_active(); - // calculate the start cell for this - // thread. the enumeration is choosen - // in this strange way to generate a - // "random" distribution of the cells. - // if the sequence of the iterator would - // be used, the threads would take widely - // spread times to calculate their cells. - for (unsigned int t=0;t