From eb67d8b5c62bfced78fa31c86ece6dc4d2ff431b Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Fri, 30 Aug 2019 13:29:25 +0200 Subject: [PATCH] Remove default implementation of assembleGradientAndHessian It was empty anyway, and all implementations were always required to implement the methods. With the new LocalEnergy interface class this can now be properly documented in the interface. --- dune/elasticity/assemblers/localfestiffness.hh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/dune/elasticity/assemblers/localfestiffness.hh b/dune/elasticity/assemblers/localfestiffness.hh index f8a62e8..f2d13cb 100644 --- a/dune/elasticity/assemblers/localfestiffness.hh +++ b/dune/elasticity/assemblers/localfestiffness.hh @@ -28,26 +28,12 @@ public: virtual void assembleGradientAndHessian(const Entity& e, const LocalFiniteElement& localFiniteElement, const VectorType& localConfiguration, - VectorType& localGradient); + VectorType& localGradient) = 0; // assembled data Dune::Matrix<Dune::FieldMatrix<RT,blocksize,blocksize> > A_; }; - -// /////////////////////////////////////////////////////////// -// Compute gradient by finite-difference approximation -// /////////////////////////////////////////////////////////// -template <class GridType, class LocalFiniteElement, class VectorType> -void LocalFEStiffness<GridType, LocalFiniteElement, VectorType>:: -assembleGradientAndHessian(const Entity& element, - const LocalFiniteElement& localFiniteElement, - const VectorType& localConfiguration, - VectorType& localGradient) -{ - DUNE_THROW(Dune::NotImplemented, "!"); -} - #endif -- GitLab