From bdf7ea2055083cee86cf7da8a3965844dfc81c97 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 4 Feb 2015 20:51:48 -0600 Subject: [PATCH] Fix up places where we use Point for directions when we should be using Tensor<1,dim>. --- source/grid/manifold_lib.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index 9236e5796b..5039586936 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2013 - 2014 by the deal.II authors +// Copyright (C) 2013 - 2015 by the deal.II authors // // This file is part of the deal.II library. // @@ -172,7 +172,7 @@ get_new_point (const Quadrature &quad) const Point middle = flat_manifold.get_new_point(quad); double radius = 0; - Point on_plane; + Tensor<1,spacedim> on_plane; for (unsigned int i=0; i &quad) const // we then have to project this point out to the given radius from // the axis. to this end, we have to take into account the offset // point_on_axis and the direction of the axis - const Point vector_from_axis = (middle-point_on_axis) - - ((middle-point_on_axis) * direction) * direction; + const Tensor<1,spacedim> vector_from_axis = (middle-point_on_axis) - + ((middle-point_on_axis) * direction) * direction; // scale it to the desired length and put everything back together, // unless we have a point on the axis -- 2.39.5