Commit 5f6c2d39 authored by Backofen, Rainer's avatar Backofen, Rainer
Browse files

set number of iterations in adaptInfo according to mtl-solver.

    ProblemScal.cc
    ProblemVec.cc
    ProblemNonLin.cc
parent f16957c9
...@@ -78,7 +78,7 @@ namespace AMDiS { ...@@ -78,7 +78,7 @@ namespace AMDiS {
#if 0 #if 0
TEST_EXIT(nonLinSolver_)("no non-linear solver!\n"); TEST_EXIT(nonLinSolver_)("no non-linear solver!\n");
int iter = nonLinSolver_->solve(matVec, solution, rhs, leftPrecon, rightPrecon); int iter = nonLinSolver_->solve(matVec, solution, rhs, leftPrecon, rightPrecon);
adaptInfo->setSolverIterations(iter); adaptInfo->setSolverIterations(solver->getIterations());
#endif #endif
} }
......
...@@ -238,7 +238,7 @@ namespace AMDiS { ...@@ -238,7 +238,7 @@ namespace AMDiS {
TIME_USED(first, clock())); TIME_USED(first, clock()));
#endif #endif
adaptInfo->setSolverIterations(iter); adaptInfo->setSolverIterations(solver->getIterations());
adaptInfo->setMaxSolverIterations(solver->getMaxIterations()); adaptInfo->setMaxSolverIterations(solver->getMaxIterations());
adaptInfo->setSolverTolerance(solver->getTolerance()); adaptInfo->setSolverTolerance(solver->getTolerance());
adaptInfo->setSolverResidual(solver->getResidual()); adaptInfo->setSolverResidual(solver->getResidual());
......
...@@ -497,7 +497,7 @@ namespace AMDiS { ...@@ -497,7 +497,7 @@ namespace AMDiS {
TIME_USED(first, clock())); TIME_USED(first, clock()));
#endif #endif
adaptInfo->setSolverIterations(iter); adaptInfo->setSolverIterations(solver->getIterations());
adaptInfo->setMaxSolverIterations(solver->getMaxIterations()); adaptInfo->setMaxSolverIterations(solver->getMaxIterations());
adaptInfo->setSolverTolerance(solver->getTolerance()); adaptInfo->setSolverTolerance(solver->getTolerance());
adaptInfo->setSolverResidual(solver->getResidual()); adaptInfo->setSolverResidual(solver->getResidual());
......
Markdown is supported
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