Skip to content

Commit 978eb32

Browse files
add virtual destructors (#25)
Co-authored-by: Martin Robinson <martinjrobins@gmail.com>
1 parent 727c032 commit 978eb32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pybammsolvers/idaklu_source/IDAKLUSolver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class IDAKLUSolver
2222
/**
2323
* @brief Default destructor
2424
*/
25-
~IDAKLUSolver() = default;
25+
virtual ~IDAKLUSolver() = default;
2626

2727
/**
2828
* @brief Abstract solver method that executes the solver

src/pybammsolvers/idaklu_source/IDAKLUSolverOpenMP.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class IDAKLUSolverOpenMP : public IDAKLUSolver
106106
/**
107107
* @brief Destructor
108108
*/
109-
~IDAKLUSolverOpenMP();
109+
virtual ~IDAKLUSolverOpenMP();
110110

111111
/**
112112
* @brief The main solve method that solves for each variable and time step

0 commit comments

Comments
 (0)