Skip to content

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

@Alex-Vasile

Description

@Alex-Vasile

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions