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
......@@ -17,10 +17,9 @@ namespace TNNMG {
/**
* \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
*/
template <class Matrix, class Vector, class Step>
template <class Vector, class Step>
class FixedStepLinearSolver
: public IterativeSolver<Vector, Solvers::DefaultBitVector_t<Vector>>
{
......@@ -45,17 +44,6 @@ public:
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 */
virtual void solve()
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment