Skip to content

Commit

Permalink
fix: passing verb argument to pyamg solve
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Nov 9, 2021
1 parent 45e3f8f commit 52c277d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LoopStructural/interpolators/discrete_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def _solve_cg(self, A, B, precon=None, **kwargs):
cgargs['M'] = precon(A)
return sla.cg(A, B, **cgargs)[0][:self.nx]

def _solve_pyamg(self, A, B, tol=1e-12,x0=None,**kwargs):
def _solve_pyamg(self, A, B, tol=1e-12,x0=None,verb=False**kwargs):
"""
Solve least squares system using pyamg algorithmic multigrid solver
Expand All @@ -518,7 +518,7 @@ def _solve_pyamg(self, A, B, tol=1e-12,x0=None,**kwargs):
"""
import pyamg
logger.info("Solving using pyamg: tol {}".format(tol))
return pyamg.solve(A, B, tol=tol, x0=x0, verb=False)[:self.nx]
return pyamg.solve(A, B, tol=tol, x0=x0, verb=verb)[:self.nx]

def _solve(self, solver='cg', **kwargs):
"""
Expand Down

0 comments on commit 52c277d

Please sign in to comment.