From 499906b9b1ceb4fc32a20032797ccc8f33c9e712 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Mon, 14 Nov 2011 11:10:52 +0100
Subject: [PATCH] Bug fix: multiply derivative by coefficient as well

---
 dune/tectonic/nicefunction.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/tectonic/nicefunction.hh b/dune/tectonic/nicefunction.hh
index 027e6052..81625152 100644
--- a/dune/tectonic/nicefunction.hh
+++ b/dune/tectonic/nicefunction.hh
@@ -55,14 +55,14 @@ class RuinaFunction : public NiceFunction {
     if (eta * s <= rho)
       return 0;
 
-    return normalStress * (a * std::log(s) + mu);
+    return coefficient * normalStress * (a * std::log(s) + mu);
   }
 
   double virtual rightDifferential(double s) const {
     if (eta * s <= rho)
       return 0;
 
-    return normalStress * (a * std::log(s) + mu);
+    return coefficient * normalStress * (a * std::log(s) + mu);
   }
 
 private:
-- 
GitLab