diff --git a/dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh b/dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh index c8640bb5851a7eb0c9a574030d3ae9f77c0455a4..d8a6291df11478f39f4f9a655bd4ecd33b74a885 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_;