Skip to content

Commit

Permalink
Can use only prediction if predicting exotically
Browse files Browse the repository at this point in the history
  • Loading branch information
brownbaerchen committed Dec 20, 2024
1 parent cf2367c commit c17024d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def check_convergence(S, self=None):

# get residual and check against prescribed tolerance (plus check number of iterations)
iter_converged = S.status.iter >= S.params.maxiter
res_converged = L.status.residual <= L.params.restol and (S.status.iter > 0 or L.status.sweep > 0)
res_converged = L.status.residual <= L.params.restol and (
(S.status.iter > 0 or L.status.sweep > 0) or L.sweep.params.initial_guess not in ['spread', 'copy', 'zero']
)
e_tol_converged = (
L.status.increment < L.params.e_tol if (L.params.get('e_tol') and L.status.get('increment')) else False
)
Expand Down

0 comments on commit c17024d

Please sign in to comment.