Skip to content

Commit da7a177

Browse files
Perform at least one SDC iteration (#509)
* Perform at least one SDC iteration * Can use only prediction if predicting exotically * Reverted last commit
1 parent 76cfa15 commit da7a177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pySDC/implementations/convergence_controller_classes/check_convergence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def check_convergence(S, self=None):
7373

7474
# get residual and check against prescribed tolerance (plus check number of iterations)
7575
iter_converged = S.status.iter >= S.params.maxiter
76-
res_converged = L.status.residual <= L.params.restol
76+
res_converged = L.status.residual <= L.params.restol and (S.status.iter > 0 or L.status.sweep > 0)
7777
e_tol_converged = (
7878
L.status.increment < L.params.e_tol if (L.params.get('e_tol') and L.status.get('increment')) else False
7979
)

0 commit comments

Comments
 (0)