From e101ed14465867d1308c479e2be2d0515d839780 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 5 Feb 2015 21:16:47 -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/dofs/dof_renumbering.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)); } -- 2.39.5