]> 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:47 +0000 (21:16 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 9 Feb 2015 23:27:15 +0000 (17:27 -0600)
source/dofs/dof_renumbering.cc

index 1e7d9e31a5fa74f6c923738cecc88e8ddd71b59f..9a3e5e6bcdadc407ec6a3966e64876c71750ab6a 100644 (file)
@@ -1743,10 +1743,10 @@ namespace DoFRenumbering
                     const DHCellIterator &c2,
                     dealii::internal::int2type<xdim>) const
       {
-        const Point<dim> v1 = c1->center() - center;
-        const Point<dim> v2 = c2->center() - center;
-        const double s1 = std::atan2(v1(0), v1(1));
-        const double s2 = std::atan2(v2(0), v2(1));
+        const Tensor<1,dim> v1 = c1->center() - center;
+        const Tensor<1,dim> v2 = c2->center() - center;
+        const double s1 = std::atan2(v1[0], v1[1]);
+        const double s2 = std::atan2(v2[0], v2[1]);
         return ( counter ? (s1>s2) : (s2>s1));
       }
 

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.