From 27b8528bb610e4f8e506bfd9f328a72965b95bbb Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Tue, 7 Apr 2015 14:45:52 +0200
Subject: [PATCH] [Cleanup] Rename: weakeningRegionDistance -> distance

---
 src/distances.hh              | 2 +-
 src/sand-wedge-data/mygrid.cc | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/distances.hh b/src/distances.hh
index 1dfa47e7..ffe7dd51 100644
--- a/src/distances.hh
+++ b/src/distances.hh
@@ -18,7 +18,7 @@ template <class Geometry> double diameter(Geometry const &geometry) {
 }
 
 template <class Geometry>
-double distanceToWeakeningRegion(
+double distance(
     Geometry const &g,
     ConvexPolyhedron<typename Geometry::GlobalCoordinate> const &weakPatch) {
   using Coordinate = typename Geometry::GlobalCoordinate;
diff --git a/src/sand-wedge-data/mygrid.cc b/src/sand-wedge-data/mygrid.cc
index 1a5499d2..93e3a883 100644
--- a/src/sand-wedge-data/mygrid.cc
+++ b/src/sand-wedge-data/mygrid.cc
@@ -203,8 +203,7 @@ void refine(Grid &grid, ConvexPolyhedron<LocalVector> const &weakPatch,
          it != grid.template leafend<0>(); ++it) {
       auto const geometry = it->geometry();
 
-      auto const weakeningRegionDistance =
-          distanceToWeakeningRegion(geometry, weakPatch);
+      auto const weakeningRegionDistance = distance(geometry, weakPatch);
       auto const admissibleDiameter =
           computeAdmissibleDiameter(weakeningRegionDistance, smallestDiameter);
 
-- 
GitLab