]> https://gitweb.dealii.org/ - dealii.git/commitdiff
No need to test a flag if we clear it if it is set. Just clear it.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 24 Jul 2010 23:52:55 +0000 (23:52 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 24 Jul 2010 23:52:55 +0000 (23:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@21569 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 06cbc43b944ba53b6b84e5ac74cfc038ad7b2864..8f274cf8581a4ee5280d2d62738751846c128059 100644 (file)
@@ -13077,8 +13077,7 @@ bool Triangulation<dim,spacedim>::prepare_coarsening_and_refinement ()
 
                  if (unrefined_neighbors < refined_neighbors)
                    {
-                     if (cell->coarsen_flag_set())
-                       cell->clear_coarsen_flag();
+                     cell->clear_coarsen_flag();
                      cell->set_refine_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.