]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Either make implicit casts from Tensor<1,dim> to Point<dim> explicit, or correct...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 6 Feb 2015 03:16:49 +0000 (21:16 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 9 Feb 2015 23:30:35 +0000 (17:30 -0600)
source/grid/manifold_lib.cc

index 534fdfd7a80951225dd5f4cc1b141757034ef3e0..b5d315d3a39d9e2bec5c5ad8dd39631c3362f823 100644 (file)
@@ -57,7 +57,7 @@ SphericalManifold<dim,spacedim>::get_new_point(const Quadrature<spacedim> &quad)
           mid_point += quad.weight(i)*quad.point(i);
         }
       // Project the mid_pont back to the right location
-      Point<spacedim> 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 <int dim, int spacedim>
 Point<spacedim>
 SphericalManifold<dim,spacedim>::pull_back(const Point<spacedim> &space_point) const
 {
-  const Point<spacedim> R = space_point-center;
+  const Tensor<1,spacedim> R = space_point-center;
   const double rho = R.norm();
 
   Point<spacedim> p;
@@ -193,9 +193,9 @@ get_new_point (const Quadrature<spacedim> &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<spacedim>((vector_from_axis / vector_from_axis.norm() * radius +
+                            ((middle-point_on_axis) * direction) * direction +
+                            point_on_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.