From: Wolfgang Bangerth Date: Thu, 5 Feb 2015 02:51:48 +0000 (-0600) Subject: Fix up places where we use Point for directions when we should be X-Git-Tag: v8.3.0-rc1~494^2~14 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf7ea2055083cee86cf7da8a3965844dfc81c97;p=dealii.git Fix up places where we use Point for directions when we should be using Tensor<1,dim>. --- 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