diff --git a/dune/elasticity/common/referenceneumannfunction.hh b/dune/elasticity/common/referenceneumannfunction.hh index 945aae91392f229e63ddcec8903f19b5a64c7c37..f81df2ce45efaf3b86d4fd97a985687137a6bde7 100644 --- a/dune/elasticity/common/referenceneumannfunction.hh +++ b/dune/elasticity/common/referenceneumannfunction.hh @@ -36,8 +36,9 @@ public: displacementField_(basis, displacementCoefficient) {} - virtual void evaluateLocal(const Element& e, const LocalDomainType& x, RangeType& y) const override + void evaluateLocal(const Element& e, const LocalDomainType& x, RangeType& y) const override { + typename Base::DerivativeType deformationGradient, invTransposedDefGradient; displacementField_.evaluateDerivativeLocal(e, x, deformationGradient); Dune::MatrixVector::addToDiagonal(deformationGradient, 1.0);