Skip to content
Snippets Groups Projects
Commit 8c4c6813 authored by Elias Pipping's avatar Elias Pipping Committed by pipping
Browse files

Add Dune::Solvers::Preconditioner

[[Imported from SVN: r11958]]
parent 64b17e95
No related branches found
No related tags found
No related merge requests found
...@@ -21,4 +21,22 @@ public: ...@@ -21,4 +21,22 @@ public:
}; };
namespace Dune {
namespace Solvers {
/** \brief Abstract base class for preconditioners
*/
template <class MatrixType, class VectorType, class BitVectorType
= Dune::BitSetVector<VectorType::block_type::dimension> >
class Preconditioner : public NumProc
{
public:
virtual ~Preconditioner() {}
virtual void check() const {}
virtual void setMatrix(const MatrixType& matrix) = 0;
virtual void apply(VectorType& x, const VectorType& r) = 0;
};
}
}
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment