From: Wolfgang Bangerth Date: Fri, 6 Feb 2015 03:16:49 +0000 (-0600) Subject: Either make implicit casts from Tensor<1,dim> to Point explicit, or correct... X-Git-Tag: v8.3.0-rc1~492^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9f9b67127279a20f0e63029262cad8e4112ffbb;p=dealii.git Either make implicit casts from Tensor<1,dim> to Point explicit, or correct the data type of where we store the result. --- 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(); }