Skip to content
Snippets Groups Projects
Commit 7430b4d8 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

moved to new module dune-solvers

[[Imported from SVN: r2348]]
parent e5d3ba05
Branches
Tags
No related merge requests found
#ifndef DUNE_SOLVER_HH
#define DUNE_SOLVER_HH
#include "numproc.hh"
/** \brief The base class for all sorts of solver algorithms */
class Solver : public NumProc
{
public:
Solver(VerbosityMode verbosity)
: NumProc(verbosity)
{}
/** \brief Virtual destructor */
virtual ~Solver() {}
/** \brief Do the necessary preprocessing */
virtual void preprocess();
/** \brief Derived classes overload this with the actual
* solution algorithm */
virtual void solve() = 0;
};
void Solver::preprocess()
{
// Default: Do nothing
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment