]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Move GridGenerator::laplace_transformation to GridTools.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Feb 2013 04:18:02 +0000 (04:18 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Feb 2013 04:18:02 +0000 (04:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@28597 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/grid/grid_generator.h
deal.II/include/deal.II/grid/grid_tools.h
deal.II/source/grid/grid_tools.cc
deal.II/source/grid/grid_tools.inst.in

index eabdfd32f6e555a1303520e10780099c0515a424..c152e2afafd03d43199a7db1d428ae396853971c 100644 (file)
@@ -699,10 +699,13 @@ public:
    * (overwritten).
    *
    * In 1d, this function is not currently implemented.
+   *
+   * @deprecated This function has been moved to GridTools::laplace_transformation
    */
   template <int dim>
-  static void laplace_transformation (Triangulation<dim> &tria,
-                                      const std::map<unsigned int,Point<dim> > &new_points);
+  static
+  void laplace_transformation (Triangulation<dim> &tria,
+                               const std::map<unsigned int,Point<dim> > &new_points) DEAL_II_DEPRECATED;
 
   /**
    * Exception
index 6b270a8bd2867550051906ce91b7f172b53428ab..2e2c8cf221837dcafd6b24ab9e91271db9cc41e1 100644 (file)
@@ -231,6 +231,22 @@ namespace GridTools
   void rotate (const double      angle,
                Triangulation<2> &triangulation);
 
+  /**
+   * This function transformes the @p Triangulation @p tria smoothly to a
+   * domain that is described by the boundary points in the map @p
+   * new_points. This map maps the point indices to the boundary points in the
+   * transformed domain.
+   *
+   * Note, that the @p Triangulation is changed in-place, therefore you don't
+   * need to keep two triangulations, but the given triangulation is changed
+   * (overwritten).
+   *
+   * In 1d, this function is not currently implemented.
+   */
+  template <int dim>
+  void laplace_transformation (const std::map<unsigned int,Point<dim> > &new_points,
+                               Triangulation<dim> &tria);
+
   /**
    * Scale the entire triangulation
    * by the given factor. To
index a32ac8b8dafc4f917dbe7c47cb0e8e5de8602d53..909bf9fa226f2976b1c0969193c43c8c2a123ef5 100644 (file)
@@ -18,6 +18,7 @@
 #include <deal.II/grid/tria_accessor.h>
 #include <deal.II/grid/tria_iterator.h>
 #include <deal.II/grid/tria_boundary.h>
+#include <deal.II/grid/grid_generator.h>
 #include <deal.II/grid/grid_tools.h>
 #include <deal.II/grid/intergrid_map.h>
 #include <deal.II/lac/sparsity_pattern.h>
@@ -602,6 +603,18 @@ namespace GridTools
   }
 
 
+  template <int dim>
+  void
+  laplace_transformation (const std::map<unsigned int,Point<dim> > &new_points,
+                          Triangulation<dim> &triangulation)
+  {
+    //TODO: Move implementation of this function into the current
+    // namespace
+    GridGenerator::laplace_transformation(triangulation, new_points);
+  }
+
+
+
   template <int dim, int spacedim>
   void
   distort_random (const double        factor,
index 1d2470bf6cf6264d89542a8dd74937deaa1d9b54..82a81a16c46683b08fea42e9480073337eb1d1be 100644 (file)
@@ -155,6 +155,11 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS
        const Triangulation<deal_II_dimension, deal_II_space_dimension> &triangulation_2,
        Triangulation<deal_II_dimension, deal_II_space_dimension>       &result);
 #if deal_II_dimension == deal_II_space_dimension  
+    template
+    void
+    laplace_transformation (const std::map<unsigned int,Point<deal_II_dimension> > &new_points,
+                          Triangulation<deal_II_dimension> &triangulation);
+
     template
       Triangulation<deal_II_dimension,deal_II_space_dimension>::DistortedCellList
       fix_up_distorted_child_cells

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.