From 664e8b0848246b15f4485a7b0739ef3012af8774 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Fri, 19 Jul 2013 14:37:22 +0200
Subject: [PATCH] [Cleanup] Do not recompute x.two_norm()

---
 dune/tectonic/localfriction.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/tectonic/localfriction.hh b/dune/tectonic/localfriction.hh
index 4f610b25..870b9e8c 100644
--- a/dune/tectonic/localfriction.hh
+++ b/dune/tectonic/localfriction.hh
@@ -36,7 +36,7 @@ template <int dimension> class LocalFriction {
     if (xnorm < 1e-14 && xnorm >= smp)
       return std::numeric_limits<double>::infinity();
 
-    return func->regularity(x.two_norm());
+    return func->regularity(xnorm);
   }
 
   // directional subdifferential: at u on the line u + t*v
-- 
GitLab