From: Wolfgang Bangerth Date: Thu, 2 Apr 2015 21:20:44 +0000 (-0500) Subject: Make a shift argument into a Tensor<1,dim> from a Point. X-Git-Tag: v8.3.0-rc1~318^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cb8df0b763e17e6bb88828cd7ca0e80b47f5a79;p=dealii.git Make a shift argument into a Tensor<1,dim> from a Point. This keeps with our recent changes to separate the semantics of the two. --- diff --git a/doc/news/changes.h b/doc/news/changes.h index 33344b4530..3f375b03b6 100644 --- a/doc/news/changes.h +++ b/doc/news/changes.h @@ -410,6 +410,13 @@ inconvenience this causes.

Specific improvements

    +
  1. 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@>. +
    + (Wolfgang Bangerth, 2015/04/02) +
  2. +
  3. 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 diff --git a/include/deal.II/grid/grid_tools.h b/include/deal.II/grid/grid_tools.h index e58a1b02b3..e8429c9ea7 100644 --- a/include/deal.II/grid/grid_tools.h +++ b/include/deal.II/grid/grid_tools.h @@ -242,7 +242,7 @@ namespace GridTools * triangulation stated there hold for this function as well. */ template - void shift (const Point &shift_vector, + void shift (const Tensor<1,spacedim> &shift_vector, Triangulation &triangulation); diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 5401887b7a..45ad4b1319 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -556,7 +556,7 @@ namespace GridTools class ShiftPoint { public: - ShiftPoint (const Point &shift) + ShiftPoint (const Tensor<1,spacedim> &shift) : shift(shift) {} @@ -565,7 +565,7 @@ namespace GridTools return p+shift; } private: - const Point shift; + const Tensor<1,spacedim> shift; }; @@ -609,7 +609,7 @@ namespace GridTools template void - shift (const Point &shift_vector, + shift (const Tensor<1,spacedim> &shift_vector, Triangulation &triangulation) { transform (ShiftPoint(shift_vector), triangulation); diff --git a/source/grid/grid_tools.inst.in b/source/grid/grid_tools.inst.in index 346797bd2d..870714d4e3 100644 --- a/source/grid/grid_tools.inst.in +++ b/source/grid/grid_tools.inst.in @@ -146,7 +146,7 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS double); template - void shift (const Point &, + void shift (const Tensor<1,deal_II_space_dimension> &, Triangulation &); template