]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated function GridTools::extract_boundary_mesh().
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 24 Jan 2015 01:46:16 +0000 (19:46 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 24 Jan 2015 04:46:54 +0000 (22:46 -0600)
doc/news/changes.h
examples/step-38/step-38.cc
include/deal.II/grid/grid_tools.h
source/grid/grid_tools.cc
source/grid/grid_tools.inst.in

index c1118761643e1f9ea91cb90f82bed687f76bce16..8008516f74207f622a32f262256699d7e85bddf8 100644 (file)
@@ -165,6 +165,7 @@ inconvenience this causes.
   - The version of parallel::distributed::Vector::scale
     function that takes a scalar as argument.
   - GridTools::create_union_triangulation.
+  - GridTools::extract_boundary_mesh.
   <br>
   This release also removes the deprecated class MGDoFHandler. The
   functionality of this class had previously been incorporated into
index a5495901f6b153c6dccfc5520843b068e51a6ce8..acc6275fd81ac1c4d86497d304b524527620edf9 100644 (file)
@@ -30,7 +30,6 @@
 #include <deal.II/grid/tria_accessor.h>
 #include <deal.II/grid/tria_boundary_lib.h>
 #include <deal.II/grid/grid_generator.h>
-#include <deal.II/grid/grid_tools.h>
 #include <deal.II/lac/full_matrix.h>
 #include <deal.II/lac/vector.h>
 #include <deal.II/lac/solver_control.h>
@@ -288,13 +287,13 @@ namespace Step38
   // indicators of all faces on the outside of the boundary to zero for the
   // ones located on the perimeter of the disk/ball, and one on the straight
   // part that splits the full disk/ball into two halves. The next step is the
-  // main point: The GridTools::extract_boundary_mesh function creates a mesh
+  // main point: The GridGenerator::extract_boundary_mesh function creates a mesh
   // that consists of those cells that are the faces of the previous mesh,
   // i.e. it describes the <i>surface</i> cells of the original (volume)
   // mesh. However, we do not want all faces: only those on the perimeter of
   // the disk or ball which carry boundary indicator zero; we can select these
   // cells using a set of boundary indicators that we pass to
-  // GridTools::extract_boundary_mesh.
+  // GridGenerator::extract_boundary_mesh.
   //
   // There is one point that needs to be mentioned. In order to refine a
   // surface mesh appropriately if the manifold is curved (similarly to
@@ -327,8 +326,8 @@ namespace Step38
       std::set<types::boundary_id> boundary_ids;
       boundary_ids.insert (0);
 
-      GridTools::extract_boundary_mesh (volume_mesh, triangulation,
-                                        boundary_ids);
+      GridGenerator::extract_boundary_mesh (volume_mesh, triangulation,
+                                            boundary_ids);
     }
     triangulation.refine_global(4);
 
index eac23073fdfe13ace45cb7aada8da8eb728e78c0..da90f4e4d737fc0193c6b2198b323aadbf7ef502 100644 (file)
@@ -871,21 +871,6 @@ namespace GridTools
   };
 #endif
 
-  /**
-   * @deprecated Use GridGenerator::extract_boundary_mesh() instead.
-   */
-  template <template <int,int> class Container, int dim, int spacedim>
-#ifndef _MSC_VER
-  std::map<typename Container<dim-1,spacedim>::cell_iterator,
-      typename Container<dim,spacedim>::face_iterator>
-#else
-  typename ExtractBoundaryMesh<Container,dim,spacedim>::return_type
-#endif
-      extract_boundary_mesh (const Container<dim,spacedim> &volume_mesh,
-                             Container<dim-1,spacedim>     &surface_mesh,
-                             const std::set<types::boundary_id> &boundary_ids
-                             = std::set<types::boundary_id>()) DEAL_II_DEPRECATED;
-
   /*@}*/
   /**
    * @name Dealing with periodic domains
index 266b351339cd8472fa03262975b3ff96aaa579dd..db2e2ec8d460c8fb678e3e8796947edc272b4097 100644 (file)
@@ -2485,23 +2485,6 @@ next_cell:
 
 
 
-  template <template <int,int> class Container, int dim, int spacedim>
-#ifndef _MSC_VER
-  std::map<typename Container<dim-1,spacedim>::cell_iterator,
-      typename Container<dim,spacedim>::face_iterator>
-#else
-  typename ExtractBoundaryMesh<Container,dim,spacedim>::return_type
-#endif
-      extract_boundary_mesh (const Container<dim,spacedim> &volume_mesh,
-                             Container<dim-1,spacedim>     &surface_mesh,
-                             const std::set<types::boundary_id> &boundary_ids)
-  {
-    // this function is deprecated. call the one that replaced it
-    return GridGenerator::extract_boundary_mesh (volume_mesh, surface_mesh, boundary_ids);
-  }
-
-
-
   /*
    * Internally used in orthogonal_equality
    *
index dde95735ad89f59fd1e1b99bc111298d47132218..7c1ae95385ee28d4a54a9b9e4c2f2966461e24dc 100644 (file)
@@ -240,23 +240,8 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS
       std::vector<Container<deal_II_dimension,deal_II_space_dimension>::active_cell_iterator>
       get_patch_around_cell<Container<deal_II_dimension,deal_II_space_dimension> >
       (const Container<deal_II_dimension,deal_II_space_dimension>::active_cell_iterator &cell);
-
-
-#if deal_II_dimension != 1
-      template
-#ifndef _MSC_VER
-      std::map<Container<deal_II_dimension-1,deal_II_space_dimension>::cell_iterator,
-                  Container<deal_II_dimension,deal_II_space_dimension>::face_iterator>
-#else
-      ExtractBoundaryMesh<Container,deal_II_dimension,deal_II_space_dimension>::return_type
-#endif
-      extract_boundary_mesh (const Container<deal_II_dimension, deal_II_space_dimension> &mesh,
-                            Container<deal_II_dimension-1,deal_II_space_dimension>  &boundary_mesh,
-                            const std::set<types::boundary_id> &boundary_ids);
-#endif
-      \}
+    \}
 #endif
-
   }
 
 

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.