]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Put the cheap condition first in a conditional.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 22 Jul 2013 01:59:20 +0000 (01:59 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 22 Jul 2013 01:59:20 +0000 (01:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@30084 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/tria.cc

index f43aaed205e9e7b64eb4525c90c6b5b543c75db0..dd9046a3900f29f07de794362d474ff3bf61d893 100644 (file)
@@ -12211,7 +12211,7 @@ void Triangulation<dim, spacedim>::execute_coarsening ()
   // to n_levels()-2.
   if (levels.size() >= 2)
     for (cell = last(); cell!=endc; --cell)
-      if (cell->user_flag_set() && cell->level()<=static_cast<int>(levels.size()-2))
+      if (cell->level()<=static_cast<int>(levels.size()-2) && cell->user_flag_set())
         // use a separate function,
         // since this is dimension
         // specific

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.