]> https://gitweb.dealii.org/ - dealii.git/commitdiff
// store a pointer to the end
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 10 Mar 2005 19:11:11 +0000 (19:11 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 10 Mar 2005 19:11:11 +0000 (19:11 +0000)
   // 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

deal.II/deal.II/source/numerics/error_estimator.cc
deal.II/doc/news/changes.html

index 724ab95752194590d7fd4488779fb3f554ba6691..178c8dea24b825322bf87ff0510da8fd34ed7c8c 100644 (file)
@@ -49,9 +49,14 @@ inline
 void advance_by_n (CellIterator &cell,
                    const unsigned int n)
 {
-  for (unsigned int t=0;
-       ((t<n) && (cell!=cell->get_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; ((t<n) && (cell!=endc)); ++t, ++cell);
 }
 
 
index a98486c5b1c519baf2b71a646c77999da246b645..f9bcf44139a3196e291d25abffed04fbde5fdbee 100644 (file)
@@ -212,6 +212,15 @@ inconvenience this causes.
 <h3>deal.II</h3>
 
 <ol>
+  <li> <p>
+       Fixed: There was a bug in the <code
+       class="class">KellyErrorEstimator</code> class that resulted in
+       assertions being thrown when run with multithreading
+       enabled. This is now fixed.
+       <br> 
+       (WB, 2005/03/10)
+       </p>
+
   <li> <p>
        Changed: The <code class="class">Triangulation<2></code>::<code
        class="member">execute_refinement</code> function has been

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.