From 8665a8cbbbfd234dacc05205efacad9c693fc0eb Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Sun, 3 May 2020 20:53:42 +0200 Subject: [PATCH] Give LocalIntegralEnergy a virtual destructor It has other virtual methods, and therefore needs a virtual destructor, too. --- dune/elasticity/materials/localintegralenergy.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dune/elasticity/materials/localintegralenergy.hh b/dune/elasticity/materials/localintegralenergy.hh index e7ea38c..515d432 100644 --- a/dune/elasticity/materials/localintegralenergy.hh +++ b/dune/elasticity/materials/localintegralenergy.hh @@ -31,6 +31,10 @@ public: : localDensity_(ld) {} + /** \brief Virtual destructor */ + virtual ~LocalIntegralEnergy() + {} + /** \brief Assemble the energy for a single element */ field_type energy (const Entity& e, const LocalFiniteElement& localFiniteElement, -- GitLab