Skip to content

Commit cf2367c

Browse files
committed
Perform at least one SDC iteration
1 parent 0518f26 commit cf2367c

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)