Export to GitHub

pyamg - issue #58

tolerance parameter should be relative to norm(b)


Posted on Nov 25, 2008 by Quick Rabbit

The tol parameter in multilevel_solver.solve() should be relative to the norm of the right-hand-side, as it is for the other iterative methods.

http://groups.google.com/group/pyamg-user/browse_thread/thread/b1096fd0ff9d0e49

Comment #1

Posted on Jan 15, 2009 by Helpful Rabbit

What I do in the Krylov routines is, # Scale tol by normb normb = norm(b) if normb != 0: tol = tol*normb

The larger that b is, then the more tol should be relaxed. Is this what you mean? If so, then you or I can just pop this code into multilevel.py at the start of the solve(...) routine.

Comment #2

Posted on Jan 15, 2009 by Quick Rabbit

Yep, that's all that is needed. Go ahead and make the changes.

Comment #3

Posted on Jan 21, 2009 by Helpful Rabbit

Done

Comment #4

Posted on Jul 8, 2013 by Happy Elephant

moved to github: https://github.com/pyamg/pyamg/issues

Status: Fixed

Labels:
Type-Defect Milestone-Release1.0