22 int solve(
const VectorType &src, VectorType &dst,
const double tol)
24 if (!
matrix)
throw std::runtime_error(
"GMRES::solve: matrix not initialized");
25 dealii::SolverControl solver_control(std::max<std::size_t>(1000, src.size() / 10), tol);
26 dealii::SolverGMRES<VectorType> solver(solver_control);
31 return solver_control.last_step();