From f08d57062577fb328c6e186c38741fb85841a007 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/manifold_lib.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index 534fdfd7a8..b5d315d3a3 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -57,7 +57,7 @@ SphericalManifold::get_new_point(const Quadrature &quad) mid_point += quad.weight(i)*quad.point(i); } // Project the mid_pont back to the right location - Point R = mid_point-center; + Tensor<1,spacedim> R = mid_point-center; // Scale it to have radius rho_average R *= rho_average/R.norm(); // And return it. @@ -102,7 +102,7 @@ template Point SphericalManifold::pull_back(const Point &space_point) const { - const Point R = space_point-center; + const Tensor<1,spacedim> R = space_point-center; const double rho = R.norm(); Point p; @@ -193,9 +193,9 @@ get_new_point (const Quadrature &quad) const return middle; else - return (vector_from_axis / vector_from_axis.norm() * radius + - ((middle-point_on_axis) * direction) * direction + - point_on_axis); + return Point((vector_from_axis / vector_from_axis.norm() * radius + + ((middle-point_on_axis) * direction) * direction + + point_on_axis)); } -- 2.39.5