From dc5ce6c6f3d75658fd6e2c16cb02f5d7c517da06 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Tue, 2 Jan 2018 11:12:42 +0100
Subject: [PATCH] Make the quadraticMembraneEnergy method compile again

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

diff --git a/dune/gfe/cosseratenergystiffness.hh b/dune/gfe/cosseratenergystiffness.hh
index 74885295..1ff24720 100644
--- a/dune/gfe/cosseratenergystiffness.hh
+++ b/dune/gfe/cosseratenergystiffness.hh
@@ -228,7 +228,7 @@ public:
      */
     RT quadraticMembraneEnergy(const Dune::GFE::CosseratStrain<field_type,3,gridDim>& U) const
     {
-        Dune::FieldMatrix<field_type,3,3> UMinus1 = U;
+        Dune::FieldMatrix<field_type,3,3> UMinus1 = U.matrix();
         for (int i=0; i<dim; i++)
             UMinus1[i][i] -= 1;
 
-- 
GitLab