Skip to content
Snippets Groups Projects
Commit d28ac5f2 authored by Elias Pipping's avatar Elias Pipping
Browse files

Clean up test

parent b4d6e7e0
No related branches found
No related tags found
No related merge requests found
......@@ -96,11 +96,14 @@ struct CGTestSuite
}
}
const auto verbosity = Solver::QUIET;
const bool relativeErrors = false;
// Test 2: CGSolver (dune-solvers)
{
CGSolver<Matrix,Vector> solver(&A, &u2, &rhs2, nullptr,
maxIterations, stepTol, &energyNorm,
Solver::QUIET, false); // absolute error
verbosity, relativeErrors);
solver.check();
solver.preprocess();
solver.solve();
......@@ -118,7 +121,7 @@ struct CGTestSuite
{
Dune::Solvers::CGStep<Matrix,Vector> cgStep(A, u3, rhs3);
::LoopSolver<Vector> solver(&cgStep, maxIterations, stepTol, &energyNorm,
Solver::QUIET, false); // absolute error
verbosity, relativeErrors);
solver.check();
solver.preprocess();
solver.solve();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment