This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

How to set the number of iterations before restart in Krylov-solver?

+1 vote

Is there an option that can be used to set the number of iterations before restart when using GMRES Krylov-solvers; in the Python interface for Fenics?

(I look for something similar to PETSc's KSPGMRESSetRestart)

asked Jul 3, 2014 by BB FEniCS Novice (710 points)

1 Answer

+4 votes
 
Best answer

This should do the trick:

parameters["krylov_solver"]["gmres"]["restart"] = num_iterations
answered Jul 3, 2014 by Øyvind Evju FEniCS Expert (17,700 points)
selected Jul 3, 2014 by BB
...