From e5c0378b23f5553f10b1956e64ddc3ce47ec0488 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 6 Dec 2020 16:58:09 -0700 Subject: [PATCH] Remove an internal function. Since #11301 introduced a more generic function, we no longer need this one in an internal namespace. --- source/grid/grid_tools.cc | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 2900ae3e34..51bb361ce9 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -3092,18 +3092,6 @@ namespace GridTools - namespace internal - { - template - double - diameter(const typename Triangulation::cell_iterator &cell, - const Mapping &mapping) - { - return cell->diameter(mapping); - } - } // namespace internal - - template double minimal_cell_diameter(const Triangulation &triangulation, @@ -3112,9 +3100,7 @@ namespace GridTools double min_diameter = std::numeric_limits::max(); for (const auto &cell : triangulation.active_cell_iterators()) if (!cell->is_artificial()) - min_diameter = - std::min(min_diameter, - internal::diameter(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; -- 2.39.5