RE: Setting tolerance/number of iterations for iterative solvers

More
5 years 9 months ago #1414 by BenWilson94
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
More
5 years 9 months ago #1415 by hvwahl
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
More
2 years 5 months ago #4409 by walker_tr9
Actually, for MinResSolver, the keyword is "maxiter".
Time to create page: 0.104 seconds