Skip to content
Snippets Groups Projects
Commit 7ed4a11f authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Use more 'override'

parent d07a325c
Branches
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ public: ...@@ -37,7 +37,7 @@ public:
/** \brief Compute the energy at the current configuration */ /** \brief Compute the energy at the current configuration */
virtual RT energy (const typename Basis::LocalView& localView, virtual RT energy (const typename Basis::LocalView& localView,
const std::vector<TargetSpace>& localSolution) const const std::vector<TargetSpace>& localSolution) const override
{ {
return localEnergy_->energy(localView,localSolution); return localEnergy_->energy(localView,localSolution);
} }
...@@ -47,7 +47,7 @@ public: ...@@ -47,7 +47,7 @@ public:
The default implementation in this class uses a finite difference approximation */ The default implementation in this class uses a finite difference approximation */
virtual void assembleGradient(const typename Basis::LocalView& localView, virtual void assembleGradient(const typename Basis::LocalView& localView,
const std::vector<TargetSpace>& solution, const std::vector<TargetSpace>& solution,
std::vector<typename TargetSpace::TangentVector>& gradient) const; std::vector<typename TargetSpace::TangentVector>& gradient) const override;
/** \brief Assemble the local tangent matrix and gradient at the current position /** \brief Assemble the local tangent matrix and gradient at the current position
...@@ -63,7 +63,7 @@ public: ...@@ -63,7 +63,7 @@ public:
*/ */
virtual void assembleGradientAndHessian(const typename Basis::LocalView& localView, virtual void assembleGradientAndHessian(const typename Basis::LocalView& localView,
const std::vector<TargetSpace>& localSolution, const std::vector<TargetSpace>& localSolution,
std::vector<typename TargetSpace::TangentVector>& localGradient); std::vector<typename TargetSpace::TangentVector>& localGradient) override;
const LocalGeodesicFEStiffness<Basis, ATargetSpace>* localEnergy_; const LocalGeodesicFEStiffness<Basis, ATargetSpace>* localEnergy_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment