Skip to content
Snippets Groups Projects
Commit eb67d8b5 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

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.
parent afaf1f37
Branches
No related tags found
No related merge requests found
Pipeline #19756 failed
...@@ -28,26 +28,12 @@ public: ...@@ -28,26 +28,12 @@ public:
virtual void assembleGradientAndHessian(const Entity& e, virtual void assembleGradientAndHessian(const Entity& e,
const LocalFiniteElement& localFiniteElement, const LocalFiniteElement& localFiniteElement,
const VectorType& localConfiguration, const VectorType& localConfiguration,
VectorType& localGradient); VectorType& localGradient) = 0;
// assembled data // assembled data
Dune::Matrix<Dune::FieldMatrix<RT,blocksize,blocksize> > A_; 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 #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment