Very basic question here: I would like to set the tolerance on a KrylovSolver
solve. Neither the object itself nor the solve()
method accept a tol
argument. I need to use KrylovSolver
to get the number of performed steps.
solver = KrylovSolver("cg", "none")
x = Function(V)
x_vec = x.vector()
num_steps = solver.solve(A, x_vec, b)
Any hints?