Skip to content
Snippets Groups Projects
Commit 2bc61124 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Remove operator()

This was a non-standard extension introduced without discussion.

As a consequence of this removal, the FixedStepLinearSolver class
loses its first template argument, too.
parent 4e7716d2
Branches
No related tags found
No related merge requests found
...@@ -17,10 +17,9 @@ namespace TNNMG { ...@@ -17,10 +17,9 @@ namespace TNNMG {
/** /**
* \brief An iterative solver for linear problems, using a fixed number of iterations * \brief An iterative solver for linear problems, using a fixed number of iterations
* *
* \tparam Matrix Matrix type of the linear system
* \tparam Vector Vector type of the linear system * \tparam Vector Vector type of the linear system
*/ */
template <class Matrix, class Vector, class Step> template <class Vector, class Step>
class FixedStepLinearSolver class FixedStepLinearSolver
: public IterativeSolver<Vector, Solvers::DefaultBitVector_t<Vector>> : public IterativeSolver<Vector, Solvers::DefaultBitVector_t<Vector>>
{ {
...@@ -45,17 +44,6 @@ public: ...@@ -45,17 +44,6 @@ public:
step_->preprocess(); step_->preprocess();
} }
/** \brief Solve */
void operator()(Vector& x, const Matrix& m, const Vector& r)
{
Dune::Solvers::resizeInitialize(ignore_, x, false);
step_->setIgnore(ignore_);
step_->setProblem(m, x, r);
step_->preprocess();
for (unsigned int i=0; i<noOfSteps_; i++)
step_->iterate();
}
/** \brief Solve */ /** \brief Solve */
virtual void solve() virtual void solve()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment