ngsolve icon indicating copy to clipboard operation
ngsolve copied to clipboard

"WARNING: maxsteps is deprecated, use maxiter instead!"

Open Alex-Vasile opened this issue 3 years ago • 0 comments

When I try calling ngs.solvers.CG as:

ngs.solvers.CG(mat=a_assembled.mat, rhs=L_assembled.vec, pre=precond, sol=gfu.vec,
                           tol=self.solver_tolerance, maxsteps=self.solver_max_iters, printrates=self.verbose,
                           initialize=False)

It produces the following warning in the console: WARNING: maxsteps is deprecated, use maxiter instead!

However, when I try changing maxsteps to maxiter the call crashes: TypeError: CG() got an unexpected keyword argument 'maxiter'.

Ubuntu 21.10 Python 3.9.7 NGSolve-6.2.2105 (installed using apt)

Alex-Vasile avatar Jan 07 '22 17:01 Alex-Vasile