// 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
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);
}
<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