We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2367c commit c17024dCopy full SHA for c17024d
pySDC/implementations/convergence_controller_classes/check_convergence.py
@@ -73,7 +73,9 @@ def check_convergence(S, self=None):
73
74
# get residual and check against prescribed tolerance (plus check number of iterations)
75
iter_converged = S.status.iter >= S.params.maxiter
76
- 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 (
77
+ (S.status.iter > 0 or L.status.sweep > 0) or L.sweep.params.initial_guess not in ['spread', 'copy', 'zero']
78
+ )
79
e_tol_converged = (
80
L.status.increment < L.params.e_tol if (L.params.get('e_tol') and L.status.get('increment')) else False
81
)
0 commit comments