From 3db779a1d99c85b74c9d7e6e912c76b50cd45f28 Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@mi.fu-berlin.de> Date: Thu, 16 Jan 2014 11:08:42 +0000 Subject: [PATCH] Adjust to new base class interface [[Imported from SVN: r12669]] --- .../materials/geomexactstvenantkirchhoffmaterial.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh b/dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh index c8640bb..d8a6291 100644 --- a/dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh +++ b/dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh @@ -67,7 +67,7 @@ public: } //! Evaluate the strain energy - ReturnType energy(const GridFunction& displace) + ReturnType energy(const GridFunction* displace) { ReturnType energy=0; const GridType& grid = this->basis_->getGridView().grid(); @@ -114,16 +114,16 @@ public: return 0.5*energy; } - + //! Return the local assembler of the first derivative of the strain energy - LocalLinearization& firstDerivative(const GridFunction& displace) + LocalLinearization& firstDerivative(GridFunction* displace) { localLinearization_->setConfiguration(displace); return *localLinearization_; } //! Return the local assembler of the second derivative of the strain energy - LocalHessian& secondDerivative(const GridFunction& displace) + LocalHessian& secondDerivative(GridFunction* displace) { localHessian_->setConfiguration(displace); return *localHessian_; -- GitLab