From 54e4271e1914624834eb60b6abe099670b0a01b1 Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@math.fu-berlin.de> Date: Wed, 3 Feb 2016 12:08:41 +0100 Subject: [PATCH] Base class method 'energy' is const --- dune/elasticity/materials/adolcmaterial.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/elasticity/materials/adolcmaterial.hh b/dune/elasticity/materials/adolcmaterial.hh index 272ddc3..f1e3e3f 100644 --- a/dune/elasticity/materials/adolcmaterial.hh +++ b/dune/elasticity/materials/adolcmaterial.hh @@ -68,7 +68,7 @@ public: } //! Evaluate the strain energy - ReturnType energy(std::shared_ptr<GridFunction> displace) + ReturnType energy(std::shared_ptr<GridFunction> displace) const { typename LocalEnergy::ReturnType aEnergy(0.0); -- GitLab