From 0e378339e8b2802b770d798b4cf52b62b70f09f0 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 22 Jul 2013 01:59:20 +0000 Subject: [PATCH] Put the cheap condition first in a conditional. git-svn-id: https://svn.dealii.org/trunk@30084 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/tria.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/source/grid/tria.cc b/deal.II/source/grid/tria.cc index f43aaed205..dd9046a390 100644 --- a/deal.II/source/grid/tria.cc +++ b/deal.II/source/grid/tria.cc @@ -12211,7 +12211,7 @@ void Triangulation::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(levels.size()-2)) + if (cell->level()<=static_cast(levels.size()-2) && cell->user_flag_set()) // use a separate function, // since this is dimension // specific -- 2.39.5