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

include/deal.II/dofs/dof_renumbering.h

index 68ff5c38f456137b3a7463ca863453958031c06d..44acdadf0171701d903c4841ce76f63fd1b25c02 100644 (file)
@@ -350,7 +350,7 @@ namespace DoFRenumbering
     /**
      * Constructor.
      */
-    CompareDownstream (const Point<dim> &dir)
+    CompareDownstream (const Tensor<1,dim> &dir)
       :
       dir(dir)
     {}
@@ -359,7 +359,7 @@ namespace DoFRenumbering
      */
     bool operator () (const Iterator &c1, const Iterator &c2) const
     {
-      const Point<dim> diff = c2->center() - c1->center();
+      const Tensor<1,dim> diff = c2->center() - c1->center();
       return (diff*dir > 0);
     }
 
@@ -367,7 +367,7 @@ namespace DoFRenumbering
     /**
      * Flow direction.
      */
-    const Point<dim> dir;
+    const Tensor<1,dim> dir;
   };
 
 
@@ -384,7 +384,7 @@ namespace DoFRenumbering
     /**
      * Constructor.
      */
-    ComparePointwiseDownstream (const Point<dim> &dir)
+    ComparePointwiseDownstream (const Tensor<1,dim> &dir)
       :
       dir(dir)
     {}
@@ -394,7 +394,7 @@ namespace DoFRenumbering
     bool operator () (const std::pair<Point<dim>,types::global_dof_index> &c1,
                       const std::pair<Point<dim>,types::global_dof_index> &c2) const
     {
-      const Point<dim> diff = c2.first-c1.first;
+      const Tensor<1,dim> diff = c2.first-c1.first;
       return (diff*dir > 0 || (diff*dir==0 && c1.second<c2.second));
     }
 
@@ -402,9 +402,11 @@ namespace DoFRenumbering
     /**
      * Flow direction.
      */
-    const Point<dim> dir;
+    const Tensor<1,dim> dir;
   };
 
+
+  
   /**
    * A namespace for the implementation of some renumbering algorithms based
    * on algorithms implemented in the Boost Graph Library (BGL) by Jeremy Siek

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.