From a9f9b67127279a20f0e63029262cad8e4112ffbb Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 5 Feb 2015 21:16:49 -0600 Subject: [PATCH] Either make implicit casts from Tensor<1,dim> to Point explicit, or correct the data type of where we store the result. --- source/grid/tria_accessor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index 4183364808..9d00889701 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -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(); } -- 2.39.5