Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Alex-Vasile opened this issue Jan 7, 2022 · 0 comments
Open

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

Alex-Vasile opened this issue Jan 7, 2022 · 0 comments

Comments

@Alex-Vasile
Copy link

Alex-Vasile commented Jan 7, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant