From: Wolfgang Bangerth Date: Thu, 10 Mar 2005 19:11:11 +0000 (+0000) Subject: // store a pointer to the end X-Git-Tag: v8.0.0~14452 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e749b5b7172e070f1c5e99547e313a0fa330413d;p=dealii.git // store a pointer to the end // iterator, since we can't get at // it any more once cell is already // the end iterator (in that case // dereferencing cell-> triggers an // assertion) git-svn-id: https://svn.dealii.org/trunk@10081 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 724ab95752..178c8dea24 100644 --- a/deal.II/deal.II/source/numerics/error_estimator.cc +++ b/deal.II/deal.II/source/numerics/error_estimator.cc @@ -49,9 +49,14 @@ inline void advance_by_n (CellIterator &cell, const unsigned int n) { - for (unsigned int t=0; - ((tget_dof_handler().end())); - ++t, ++cell); + // store a pointer to the end + // iterator, since we can't get at + // it any more once cell is already + // the end iterator (in that case + // dereferencing cell-> triggers an + // assertion) + const CellIterator endc = cell->get_dof_handler().end(); + for (unsigned int t=0; ((tdeal.II
    +
  1. + Fixed: There was a bug in the KellyErrorEstimator class that resulted in + assertions being thrown when run with multithreading + enabled. This is now fixed. +
    + (WB, 2005/03/10) +

    +
  2. Changed: The Triangulation<2>::execute_refinement function has been