From: bangerth Date: Mon, 22 Jul 2013 01:59:20 +0000 (+0000) Subject: Put the cheap condition first in a conditional. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e378339e8b2802b770d798b4cf52b62b70f09f0;p=dealii-svn.git Put the cheap condition first in a conditional. git-svn-id: https://svn.dealii.org/trunk@30084 0785d39b-7218-0410-832d-ea1e28bc413d --- 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