Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Patch to wait before exiting iterator due to stale eigenvalue
Browse files Browse the repository at this point in the history
Signed-off-by: Drew Johnson <[email protected]>
  • Loading branch information
Drew Johnson committed Apr 15, 2017
1 parent f04a8ec commit 7c3fab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion critops/iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def itermain(tmp_list: (list, tuple), file_name: str, iter_vars: dict, kwargs: d
if abs(_k - kwargs['k_target']) < kwargs['eps_k']:
utils.oprint(' done', **kwargs)
return iter_vecs, k_vec, 0
if len(k_vec) > 1 and abs(_k - k_vec[-2]) < kwargs['eps_k']:
if len(k_vec) > 2 and abs(_k - k_vec[-2]) < kwargs['eps_k']:
utils.oprint(' done', **kwargs)
return iter_vecs, k_vec, -2
stat = update_itervar(iter_vars, iter_vecs, k_vec, kwargs['k_target'])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

vRelease = 2
vMacro = 0
vMicro = 0
vMicro = 1

vDevel = ''
vDevelMicro = '7'
Expand Down

0 comments on commit 7c3fab6

Please sign in to comment.