From 9638ee1d08b2ad8c75f1bab99f71920d55874523 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Fri, 1 Aug 2014 17:56:16 -0500 Subject: [PATCH] Add empty virtual destructors for TimeStepping and RungeKutta. --- include/deal.II/base/time_stepping.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/deal.II/base/time_stepping.h b/include/deal.II/base/time_stepping.h index 31639ebd31..6d656e6fa0 100644 --- a/include/deal.II/base/time_stepping.h +++ b/include/deal.II/base/time_stepping.h @@ -78,6 +78,11 @@ namespace TimeStepping class TimeStepping { public: + /** + * Virtual destructor. + */ + virtual ~TimeStepping() {}; + /** * Purely virtual function. This function is used to advance from time @p * t to t+ @p delta_t. @p F is a vector of functions \f$ f(t,y) \f$ that should be @@ -119,6 +124,11 @@ namespace TimeStepping class RungeKutta : public TimeStepping { public: + /** + * Virtual destructor. + */ + virtual ~RungeKutta() {}; + /** * Purely virtual method used to initialize the Runge-Kutta method. */ -- 2.39.5