I used to set my solver parameters via:
solver = PETScKrylovSolver("gmres", MyPrecon)
solver.set_operator(A)
solver.parameters["relative_tolerance"] = 1E-6
solver.parameters["absolute_tolerance"] = 1E-6
solver.parameters["maximum_iterations"] = 1000
solver.parameters['gmres']['restart'] = 200
but now, I get a keyerror: 'gmres'.
I get the same when I use:
solver.parameters['krylov_solver']['gmres']['restart'] = 200
but with a keyerror: 'krylov_solver'
Thanks.