From 94b42ff4b28233d73a2037fc2dfdfdae8ad97b00 Mon Sep 17 00:00:00 2001
From: Jonathan Youett <youett@math.fu-berlin.de>
Date: Thu, 13 Nov 2014 16:34:18 +0100
Subject: [PATCH] make compile: the interface method gets a shared_ptr

---
 dune/elasticity/materials/adolcmaterial.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/elasticity/materials/adolcmaterial.hh b/dune/elasticity/materials/adolcmaterial.hh
index ca86b0c..57b86b6 100644
--- a/dune/elasticity/materials/adolcmaterial.hh
+++ b/dune/elasticity/materials/adolcmaterial.hh
@@ -68,7 +68,7 @@ public:
     }
 
     //! Evaluate the strain energy
-    ReturnType energy(const GridFunction& displace)
+    ReturnType energy(std::shared_ptr<GridFunction> displace)
     {
         typename LocalEnergy::ReturnType aEnergy(0.0);
 
@@ -83,7 +83,7 @@ public:
 
             // interpolate by local finite element to get the local coefficients
             typename LocalEnergy::CoefficientVectorType localCoeff(lfe.localBasis().size());
-            LocalWrapper fiLocal(displace,*eIt,0);
+            LocalWrapper fiLocal(*displace,*eIt,0);
 
             std::vector<typename LocalWrapper::RangeType> interpolationValues;
             for (int i=0; i<dim; i++) {
-- 
GitLab