From: Wolfgang Bangerth Date: Fri, 6 Feb 2015 03:16:47 +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~8 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e101ed14465867d1308c479e2be2d0515d839780;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/dofs/dof_renumbering.cc b/source/dofs/dof_renumbering.cc index 1e7d9e31a5..9a3e5e6bcd 100644 --- a/source/dofs/dof_renumbering.cc +++ b/source/dofs/dof_renumbering.cc @@ -1743,10 +1743,10 @@ namespace DoFRenumbering const DHCellIterator &c2, dealii::internal::int2type) const { - const Point v1 = c1->center() - center; - const Point v2 = c2->center() - center; - const double s1 = std::atan2(v1(0), v1(1)); - const double s2 = std::atan2(v2(0), v2(1)); + const Tensor<1,dim> v1 = c1->center() - center; + const Tensor<1,dim> v2 = c2->center() - center; + const double s1 = std::atan2(v1[0], v1[1]); + const double s2 = std::atan2(v2[0], v2[1]); return ( counter ? (s1>s2) : (s2>s1)); }