Hi,
Could you let me know how to change the number of iterations in NG-solve when solving the linear systems using the default in-built local preconditioners?
It appears to be set as a maximum of 100. I would like to increase this.
Thanks
Ben
Hi,
Could you let me know how to change the number of iterations in NG-solve when solving the linear systems using the default in-built local preconditioners?
It appears to be set as a maximum of 100. I would like to increase this.
Thanks
Ben
Hi Ben,
calling for example help(solvers.CG) from python shows the keyword arguments that the iterative solver CG takes.
For the number of iterations (for CG, MinRes, QMR, GMRes) use maxsteps= (PreconditionedRichardson has the keyword “maxit”) and for the tolerance the keyword is “tol”.
Best wishes,
Henry
Actually, for MinResSolver, the keyword is “maxiter”.