]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a shift argument into a Tensor<1,dim> from a Point<dim>.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 2015 21:20:44 +0000 (16:20 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 2015 21:22:30 +0000 (16:22 -0500)
This keeps with our recent changes to separate the semantics of the two.

doc/news/changes.h
include/deal.II/grid/grid_tools.h
source/grid/grid_tools.cc
source/grid/grid_tools.inst.in

index 33344b4530d6cf1414be804ef5e13a64141b375e..3f375b03b62fea7365739e36ab3aefd30dd919d8 100644 (file)
@@ -410,6 +410,13 @@ inconvenience this causes.
 <h3>Specific improvements</h3>
 
 <ol>
+  <li> Changed: In the spirit of the changes made to the distinction
+  between Point and Tensor objects discussed above, the first argument
+  to GridTools::shift() has been changed from a Point to a Tensor@<1,dim@>.
+  <br>
+  (Wolfgang Bangerth, 2015/04/02)
+  <li>
+
   <li> New: There is now a new quadrature formula in quadrature_lib. It is
   now possible to use Telles' quadrature rules through the function QTelles
   to integrate singular integrals
index e58a1b02b3a2cd9b2340ba874af36ff29813cbed..e8429c9ea7f14474a2ae053493bed8c781abefd2 100644 (file)
@@ -242,7 +242,7 @@ namespace GridTools
    * triangulation stated there hold for this function as well.
    */
   template <int dim, int spacedim>
-  void shift (const Point<spacedim>   &shift_vector,
+  void shift (const Tensor<1,spacedim>    &shift_vector,
               Triangulation<dim,spacedim> &triangulation);
 
 
index 5401887b7a7ed63415fb07e6570066c6e4159385..45ad4b131962fc387eeb5f726c3d1a0b3530eb2c 100644 (file)
@@ -556,7 +556,7 @@ namespace GridTools
     class ShiftPoint
     {
     public:
-      ShiftPoint (const Point<spacedim> &shift)
+      ShiftPoint (const Tensor<1,spacedim> &shift)
         :
         shift(shift)
       {}
@@ -565,7 +565,7 @@ namespace GridTools
         return p+shift;
       }
     private:
-      const Point<spacedim> shift;
+      const Tensor<1,spacedim> shift;
     };
 
 
@@ -609,7 +609,7 @@ namespace GridTools
 
   template <int dim, int spacedim>
   void
-  shift (const Point<spacedim>   &shift_vector,
+  shift (const Tensor<1,spacedim>   &shift_vector,
          Triangulation<dim, spacedim> &triangulation)
   {
     transform (ShiftPoint<spacedim>(shift_vector), triangulation);
index 346797bd2d1fde4aade1d391d464247015699a0d..870714d4e33b2efac0e6c4f37d018ad3d2b6055a 100644 (file)
@@ -146,7 +146,7 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS
                                       double);
 
     template
-      void shift<deal_II_dimension> (const Point<deal_II_space_dimension> &,
+      void shift<deal_II_dimension> (const Tensor<1,deal_II_space_dimension> &,
                                                Triangulation<deal_II_dimension, deal_II_space_dimension> &);
 
     template

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.