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

introduced virtual destructors

[[Imported from SVN: r2662]]
parent ed1733de
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,9 @@ namespace Dune {
//! Default constructor
IterationStep() {}
/** \brief Destructor */
virtual ~IterationStep() {}
//! Constructor being given linear operator, solution and right hand side
IterationStep(const OperatorType& mat, DiscFuncType& x, DiscFuncType& rhs) {
mat_ = &mat;
......@@ -25,7 +28,7 @@ namespace Dune {
}
//! Set linear operator, solution and right hand side
void setProblem(const OperatorType& mat, DiscFuncType& x, DiscFuncType& rhs) {
virtual void setProblem(const OperatorType& mat, DiscFuncType& x, DiscFuncType& rhs) {
x_ = &x;
rhs_ = &rhs;
mat_ = &mat;
......
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_SOLVER_HH__
#define __DUNE_SOLVER_HH__
#ifndef DUNE_SOLVER_HH
#define DUNE_SOLVER_HH
#include <dune/solver/common/numproc.hh>
......@@ -12,6 +12,9 @@ namespace Dune {
{
public:
/** \brief Virtual destructor */
virtual ~Solver() {}
/** \brief Do the necessary preprocessing */
virtual void preprocess();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment