I am trying to solve a problem several consecutive times using the same matrix. Therefore it is useful to reuse as much as possible from one solve to the next one. For direct solvers I use:
solver = LUSolver()
solver.parameters['reuse_factorization'] = True
This works fine.
I was now trying to do the same with a Krylov solver. I searched around in FEniCS and I found this (very similar to the direct solver):
solver = KrylovSolver('gmres', 'hypre_amg')
solver.parameters['preconditioner']['reuse'] = True
But this returns an error
KeyError: "'reuse' is not a parameter"
Therefore I guess that either this option was removed or the way to use it changed. Can anyone clarify this to me?
Thank you.