From 78073e0f12ed256c972a1561e30b5c007a1fa4c2 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Fri, 1 Jun 2012 11:09:08 +0200
Subject: [PATCH] Kill member mu

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

diff --git a/dune/tectonic/nicefunction.hh b/dune/tectonic/nicefunction.hh
index 6a30e338..07f6e606 100644
--- a/dune/tectonic/nicefunction.hh
+++ b/dune/tectonic/nicefunction.hh
@@ -37,20 +37,19 @@ class RuinaFunction : public NiceFunction {
   RuinaFunction(double coefficient, double a, double mu, double eta,
                 double normalStress, double b, double state, double L, double h)
       : a(a),
-        mu(mu),
         eta(eta),
         h(h),
         coefficientProduct(coefficient * normalStress),
-        K(b *
-          (state - std::log(eta * L))), // state is assumed to be logarithmic
-        rho(std::exp(-(mu + K) / a)) {}
+        K(mu + b * (state - std::log(eta * L))), // state is assumed to be
+                                                 // logarithmic
+        rho(std::exp(-K / a)) {}
 
   double virtual leftDifferential(double x) const {
     double const arg = x / h * eta;
     if (arg <= rho)
       return 0;
 
-    double const ret = a * std::log(arg) + mu + K;
+    double const ret = a * std::log(arg) + K;
     return coefficientProduct * ret;
   }
 
@@ -77,7 +76,6 @@ class RuinaFunction : public NiceFunction {
 
 private:
   double const a;
-  double const mu;
   double const eta;
   double const h;
   double const coefficientProduct;
-- 
GitLab