Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

RE: Setting tolerance/number of iterations for iterative solvers

More
5 years 2 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 2 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
1 year 10 months ago #4409 by walker_tr9
Actually, for MinResSolver, the keyword is "maxiter".
Time to create page: 0.150 seconds