]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
bug fix in fix_coarsening_flags(): allow coarsening case which has been forbidden...
authorleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Jun 2006 14:05:21 +0000 (14:05 +0000)
committerleicht <leicht@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Jun 2006 14:05:21 +0000 (14:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@13293 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 97a0a92561a45d1ac5aac38767e79420fe9f766e..0d8391753fba9ff7626508f5d425681a239fa513 100644 (file)
@@ -7453,7 +7453,8 @@ void Triangulation<dim>::fix_coarsen_flags ()
                                                     // refined. maybe someone
                                                     // else will want to do this
                                                     // some time
-                   child_neighbor->refine_flag_set())
+                   (child_neighbor->refine_flag_set() &&
+                    (child_neighbor->level()==cell->level()+1)))
                  coarsening_allowed = false;
            }
        

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.