]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Either make implicit casts from Tensor<1,dim> to Point<dim> explicit, or correct...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 6 Feb 2015 03:16:49 +0000 (21:16 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 9 Feb 2015 23:30:35 +0000 (17:30 -0600)
source/grid/tria_accessor.cc

index 4183364808443473836cdaf41eaef300812eddbe..9d00889701fa17afcc763ec4fa3305fce6062b51 100644 (file)
@@ -1003,8 +1003,8 @@ namespace
 
     // the face is planar. then its area is 1/2 of the norm of the
     // cross product of the two diagonals
-    const Point<3> v12 = accessor.vertex(2) - accessor.vertex(1);
-    Point<3> twice_area;
+    const Tensor<1,3> v12 = accessor.vertex(2) - accessor.vertex(1);
+    Tensor<1,3> twice_area;
     cross_product(twice_area, v03, v12);
     return 0.5 * twice_area.norm();
   }

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.