]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove an internal function. 11332/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 6 Dec 2020 23:58:09 +0000 (16:58 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 6 Dec 2020 23:58:09 +0000 (16:58 -0700)
Since #11301 introduced a more generic function, we no longer need this one in an internal namespace.

source/grid/grid_tools.cc

index 2900ae3e34079ef02ab7ec66724df2d6decde508..51bb361ce9dbced57a8e74daeffae7dad84c65b1 100644 (file)
@@ -3092,18 +3092,6 @@ namespace GridTools
 
 
 
-  namespace internal
-  {
-    template <int dim, int spacedim>
-    double
-    diameter(const typename Triangulation<dim, spacedim>::cell_iterator &cell,
-             const Mapping<dim, spacedim> &mapping)
-    {
-      return cell->diameter(mapping);
-    }
-  } // namespace internal
-
-
   template <int dim, int spacedim>
   double
   minimal_cell_diameter(const Triangulation<dim, spacedim> &triangulation,
@@ -3112,9 +3100,7 @@ namespace GridTools
     double min_diameter = std::numeric_limits<double>::max();
     for (const auto &cell : triangulation.active_cell_iterators())
       if (!cell->is_artificial())
-        min_diameter =
-          std::min(min_diameter,
-                   internal::diameter<dim, spacedim>(cell, mapping));
+        min_diameter = std::min(min_diameter, cell->diameter(mapping));
 
     double global_min_diameter = 0;
 
@@ -3141,8 +3127,7 @@ namespace GridTools
     double max_diameter = 0.;
     for (const auto &cell : triangulation.active_cell_iterators())
       if (!cell->is_artificial())
-        max_diameter =
-          std::max(max_diameter, internal::diameter(cell, mapping));
+        max_diameter = std::max(max_diameter, cell->diameter(mapping));
 
     double global_max_diameter = 0;
 

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.