[fdfd.solvers.generic] report residual scaled to b
This commit is contained in:
parent
cd5cc9eb83
commit
c4f8749941
@ -44,7 +44,7 @@ def _scipy_qmr(
|
||||
nonlocal ii
|
||||
ii += 1
|
||||
if ii % 100 == 0:
|
||||
cur_norm = norm(A @ xk - b)
|
||||
cur_norm = norm(A @ xk - b) / norm(b)
|
||||
logger.info(f'Solver residual at iteration {ii} : {cur_norm}')
|
||||
|
||||
if 'callback' in kwargs:
|
||||
|
Loading…
x
Reference in New Issue
Block a user