From 6c872eba996e8c6e9f751ed13fd7e731c6447428 Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Sun, 14 May 2017 19:28:53 +0200
Subject: [PATCH] [MatL] E: calculatePlasticJacobian returns result.

---
 MaterialLib/SolidModels/Ehlers-impl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MaterialLib/SolidModels/Ehlers-impl.h b/MaterialLib/SolidModels/Ehlers-impl.h
index 191607bdaa2..2b0367c5db5 100644
--- a/MaterialLib/SolidModels/Ehlers-impl.h
+++ b/MaterialLib/SolidModels/Ehlers-impl.h
@@ -621,8 +621,8 @@ newton(double const dt, MaterialProperties const& mp,
     };
 
     auto const update_jacobian = [&](JacobianMatrix& jacobian) {
-        calculatePlasticJacobian<DisplacementDim>(
-            dt, jacobian, s, solution[KelvinVectorSize * 2 + 2], mp);
+        jacobian = calculatePlasticJacobian<DisplacementDim>(
+            dt, s, solution[KelvinVectorSize * 2 + 2], mp);
     };
 
     auto const update_solution = [&](ResidualVectorType const& increment) {
-- 
GitLab