]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix up places where we use Point<dim> for directions when we should be
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 5 Feb 2015 02:51:48 +0000 (20:51 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 5 Feb 2015 03:25:14 +0000 (21:25 -0600)
using Tensor<1,dim>.

source/grid/manifold_lib.cc

index 9236e5796b2743ee7fc42d0df3b2aef857d0dffc..5039586936b699479d1cd8319164601347adc891 100644 (file)
@@ -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<spacedim> &quad) const
   Point<spacedim> middle = flat_manifold.get_new_point(quad);
 
   double radius = 0;
-  Point<spacedim> on_plane;
+  Tensor<1,spacedim> on_plane;
 
   for (unsigned int i=0; i<surrounding_points.size(); ++i)
     {
@@ -184,8 +184,8 @@ get_new_point (const Quadrature<spacedim> &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<spacedim> 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.