]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix an abort I was getting on some code.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 31 Oct 2002 17:32:32 +0000 (17:32 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 31 Oct 2002 17:32:32 +0000 (17:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@6736 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_refinement.cc

index 9956ea00d2e9695bd4a8920c36ee955a67c0d549..030a0f2b691488e3082f6a416b81cce33229a8d4 100644 (file)
@@ -125,7 +125,8 @@ void GridRefinement::coarsen (Triangulation<dim>   &tria,
   
   for (unsigned int index=0; index<n_cells; ++cell, ++index)
     if (std::fabs(criteria(index)) <= threshold)
-      cell->set_coarsen_flag();
+      if (!cell->refine_flag_set())
+        cell->set_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.