]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
remove coarsen flag only for active cells, otherwise an Assertion would be thrown
authorleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Jan 2007 08:18:44 +0000 (08:18 +0000)
committerleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Jan 2007 08:18:44 +0000 (08:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@14363 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index b1b601d80300455156416524e90fcabda62d0dfe..595bdbb4b75edfe3b0c742aea52c4f5b08cdabb3 100644 (file)
@@ -7798,9 +7798,9 @@ bool Triangulation<dim>::prepare_coarsening_and_refinement ()
       if (((smooth_grid & coarsest_level_1) ||
           (smooth_grid & patch_level_1)) && n_levels()>=2)
        {
-         typename Triangulation<dim>::cell_iterator
-           cell=begin(1),
-           endc=end(1);
+         typename Triangulation<dim>::active_cell_iterator
+           cell=begin_active(1),
+           endc=end_active(1);
          
          for (; cell!=endc; ++cell)
            cell->clear_coarsen_flag();

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.