From d5d13ead68a5383782328a0a4d424aeef639a8f8 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 29 Sep 2003 17:04:29 +0000 Subject: [PATCH] Revert order of evaluation of a conditional statement to better reflect probabilities of different branches. git-svn-id: https://svn.dealii.org/trunk@8055 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/mapping_q1.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/fe/mapping_q1.cc b/deal.II/deal.II/source/fe/mapping_q1.cc index c1c2bc16c0..a59aca4c35 100644 --- a/deal.II/deal.II/source/fe/mapping_q1.cc +++ b/deal.II/deal.II/source/fe/mapping_q1.cc @@ -470,12 +470,12 @@ MappingQ1::compute_fill (const typename DoFHandler::cell_iterator &cel // if necessary, recompute the // support points of the // transformation of this cell - if ((data.mapping_support_points.size() == 0) + if ((cell != data.cell_of_current_support_points) || (&cell->get_triangulation() != &data.cell_of_current_support_points->get_triangulation()) || - (cell != data.cell_of_current_support_points)) + (data.mapping_support_points.size() == 0)) { compute_mapping_support_points(cell, data.mapping_support_points); data.cell_of_current_support_points = cell; -- 2.39.5