From: wolf Date: Mon, 29 Sep 2003 17:04:29 +0000 (+0000) Subject: Revert order of evaluation of a conditional statement to better X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5d13ead68a5383782328a0a4d424aeef639a8f8;p=dealii-svn.git 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 --- 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;