]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Revert order of evaluation of a conditional statement to better
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Sep 2003 17:04:29 +0000 (17:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Sep 2003 17:04:29 +0000 (17:04 +0000)
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

index c1c2bc16c0fa32a4b2cd72d19ed5e97432c7115f..a59aca4c3546a8a05e107f5657bee4ed5178b680 100644 (file)
@@ -470,12 +470,12 @@ MappingQ1<dim>::compute_fill (const typename DoFHandler<dim>::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;

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.