Commit fdf83307 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Add norm criterion to test

parent 5bd3116f
......@@ -184,10 +184,15 @@ void solveProblem(const MatrixType& mat, VectorType& x, const VectorType& rhs, c
[&](){return Dune::formatString(" % 12.5e", stepRule.x_);},
" step size ");
solver.addCriterion(Dune::Solvers::maxIterCriterion(solver, maxIterations) | gradientCriterion);
std::vector<double> correctionNorms;
solver.addCriterion(Dune::Solvers::correctionNormCriterion(gradientStep, norm, 1e-4, correctionNorms));
solver.addCriterion(Dune::Solvers::correctionNormCriterion(gradientStep, norm, 1e-4));
solver.solve();
std::cout << correctionNorms.size() << std::endl;
}
......
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