- Thank you received: 0
RE: Setting tolerance/number of iterations for iterative solvers
- BenWilson94
- Topic Author
- Offline
- Junior Member
Less
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
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
5 years 9 months ago #1415
by hvwahl
Replied by hvwahl on topic RE: Setting tolerance/number of iterations for iterative solvers
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
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
- walker_tr9
- Offline
- Senior Member
Less
More
- Thank you received: 0
2 years 5 months ago #4409
by walker_tr9
Replied by walker_tr9 on topic RE: Setting tolerance/number of iterations for iterative solvers
Actually, for MinResSolver, the keyword is "maxiter".
Time to create page: 0.104 seconds