SolverControl solver_control (1000, 1e-10);
SolverCG<> solver (solver_control);
preconditioner.initialize(system_matrix, data);
- solver.solve (system_matrix, solution, system_rhs,
- preconditioner);
+
+ check_solver_within_range(
+ solver.solve (system_matrix, solution, system_rhs,
+ preconditioner),
+ solver_control.last_step(), 18, 32);
}
deallog.pop();
}
deallog.push("MueLu_Q");
{
solution = 0;
- SolverControl solver_control (1000, 1e-12);
+ SolverControl solver_control (1000, 1e-8);
SolverCG<> solver (solver_control);
TrilinosWrappers::PreconditionAMGMueLu preconditioner;
preconditioner.initialize(system_matrix);
- solver.solve (system_matrix, solution, system_rhs,
- preconditioner);
+ check_solver_within_range(
+ solver.solve (system_matrix, solution, system_rhs,
+ preconditioner),
+ solver_control.last_step(), 31, 33);
}
deallog.pop();
deallog.push("MueLu_Q_iso_Q1");
{
solution = 0;
- SolverControl solver_control (1000, 1e-12);
+ SolverControl solver_control (1000, 1e-8);
SolverCG<> solver (solver_control);
TrilinosWrappers::PreconditionAMGMueLu preconditioner;
preconditioner.initialize(preconditioner_matrix);
- solver.solve (system_matrix, solution, system_rhs,
- preconditioner);
+ check_solver_within_range(
+ solver.solve (system_matrix, solution, system_rhs,
+ preconditioner),
+ solver_control.last_step(), 36, 38);
}
deallog.pop();
deallog << std::endl;
-DEAL:02401:MueLu_Q:cg::Starting value 31.4643
-DEAL:02401:MueLu_Q:cg::Convergence step 45 value 0
-DEAL:02401:MueLu_Q_iso_Q1:cg::Starting value 31.4643
-DEAL:02401:MueLu_Q_iso_Q1:cg::Convergence step 34 value 0
+DEAL:02401:MueLu_Q::Solver stopped within 31 - 33 iterations
+DEAL:02401:MueLu_Q_iso_Q1::Solver stopped within 36 - 38 iterations
DEAL:02401::
-DEAL:09409:MueLu_Q:cg::Starting value 44.5271
-DEAL:09409:MueLu_Q:cg::Convergence step 47 value 0
-DEAL:09409:MueLu_Q_iso_Q1:cg::Starting value 44.5271
-DEAL:09409:MueLu_Q_iso_Q1:cg::Convergence step 34 value 0
+DEAL:09409:MueLu_Q::Solver stopped within 31 - 33 iterations
+DEAL:09409:MueLu_Q_iso_Q1::Solver stopped within 36 - 38 iterations
DEAL:09409::