Skip to content

Commit

Permalink
add virtual destructors (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robinson <[email protected]>
  • Loading branch information
MarcBerliner and martinjrobins authored Jan 27, 2025
1 parent 727c032 commit 978eb32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pybammsolvers/idaklu_source/IDAKLUSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class IDAKLUSolver
/**
* @brief Default destructor
*/
~IDAKLUSolver() = default;
virtual ~IDAKLUSolver() = default;

/**
* @brief Abstract solver method that executes the solver
Expand Down
2 changes: 1 addition & 1 deletion src/pybammsolvers/idaklu_source/IDAKLUSolverOpenMP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class IDAKLUSolverOpenMP : public IDAKLUSolver
/**
* @brief Destructor
*/
~IDAKLUSolverOpenMP();
virtual ~IDAKLUSolverOpenMP();

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

0 comments on commit 978eb32

Please sign in to comment.