From: Wolfgang Bangerth Date: Fri, 11 Aug 2000 12:34:16 +0000 (+0000) Subject: Fix a slight bug when there are too few cells. Add a comment. X-Git-Tag: v8.0.0~20178 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4634401d04cc8b30a86c8400c8e43d8099c5a24;p=dealii.git 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 --- 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