]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Reinstate previous order.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Sep 2003 17:33:59 +0000 (17:33 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Sep 2003 17:33:59 +0000 (17:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@8058 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/mapping_q1.cc

index da3643d8a9c8cca31a5fee23f3be90249fd1b879..78823cd27a20eabeed8709fefc2b9fd957d8ea3d 100644 (file)
@@ -467,12 +467,18 @@ MappingQ1<dim>::compute_fill (const typename DoFHandler<dim>::cell_iterator &cel
                                   // if necessary, recompute the
                                   // support points of the
                                   // transformation of this cell
-  if ((cell != data.cell_of_current_support_points)
+                                  // (note that we need to first
+                                  // check the triangulation pointer,
+                                  // since otherwise the second test
+                                  // might trigger an exception if
+                                  // the triangulations are not the
+                                  // same)
+  if ((data.mapping_support_points.size() == 0)
       ||
       (&cell->get_triangulation() !=
        &data.cell_of_current_support_points->get_triangulation())
       ||
-      (data.mapping_support_points.size() == 0))
+      (cell != data.cell_of_current_support_points))
     {
       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.