]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated function GridGenerator::parallelogram with a rank-2 tensor for...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 31 Dec 2014 15:31:29 +0000 (09:31 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 4 Jan 2015 21:13:45 +0000 (15:13 -0600)
doc/news/changes.h
include/deal.II/grid/grid_generator.h
source/grid/grid_generator.cc
tests/grid/grid_generator_01.cc

index 147bcaf23045f5981206d9bc5e5a451c291f1530..872a1d36c8b175371c6b27e3d5452152a8cd2c59 100644 (file)
@@ -56,6 +56,8 @@ inconvenience this causes.
   - ThreadManagement::spawn.
   - Threads::ThreadCondition and Threads::ThreadMutex.
   - GridGenerator::laplace_transformation.
+  - The version of GridGenerator::parallelogram where the corners are given
+    as a rank-2 tensor rather than as an array of points.
 </ol>
 
   <li> Removed: The config.h file no longer exports HAVE_* definitions.
index 46745406ab915d26123459c17cd31b2337d2ec93..db2c71c0fbc70fb5fecf98684c26f2b82476a08d 100644 (file)
@@ -210,15 +210,6 @@ namespace GridGenerator
                  const Point<dim>  (&corners)[dim],
                  const bool          colorize=false);
 
-  /**
-   * @deprecated Use the other function of same name.
-   */
-  template <int dim>
-  void
-  parallelogram (Triangulation<dim>  &tria,
-                 const Tensor<2,dim> &corners,
-                 const bool           colorize=false) DEAL_II_DEPRECATED;
-
   /**
    * A parallelepiped. The first corner point is the origin. The @p dim
    * adjacent points are vectors describing the edges of the parallelepiped
index e27fe2e1fc3179840185ded923e0a529e5ef7a6a..65710c8fd3fa7dfc80ef19484b15721a47d193bc 100644 (file)
@@ -647,37 +647,6 @@ namespace GridGenerator
   }
 
 
-  template<>
-  void
-  parallelogram (Triangulation<1>  &tria,
-                 const Tensor<2,1> &corners,
-                 const bool         colorize)
-  {
-    Assert (false, ExcNotImplemented());
-  }
-
-  template<>
-  void
-  parallelogram (Triangulation<3>  &tria,
-                 const Tensor<2,3> &corners,
-                 const bool         colorize)
-  {
-    Assert (false, ExcNotImplemented());
-  }
-
-
-  template<>
-  void
-  parallelogram (Triangulation<2>  &tria,
-                 const Tensor<2,2> &corners,
-                 const bool         colorize)
-  {
-    // simply pass everything to the other function of same name
-    const Point<2> x[2] = { corners[0], corners[1] };
-    parallelogram (tria, x, colorize);
-  }
-
-
 
 // Parallelepiped implementation in 1d, 2d, and 3d. @note The
 // implementation in 1d is similar to hyper_rectangle(), and in 2d is
index 9f2b7c23bdfaaebca5b21769d1be69345a4255d2..21e4c93dff478b15e550aed952f00d4019e0bb5d 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2005 - 2013 by the deal.II authors
+// Copyright (C) 2005 - 2014 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -95,7 +95,7 @@ void test(std::ostream &out)
     {
       deallog << "parallelogram" << std::endl;
       Triangulation<dim> tr;
-      Tensor<2,dim> corners;
+      Point<dim> corners[dim];
       corners[0] = p1;
       if (dim>1) corners[1] = p2;
       if (dim>2) corners[2] = p3;

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.