From c17024dbcc648ddeec844cab2ff20a1aaaeac8b1 Mon Sep 17 00:00:00 2001 From: Thomas Baumann <39156931+brownbaerchen@users.noreply.github.com> Date: Fri, 20 Dec 2024 14:19:57 +0100 Subject: [PATCH] Can use only prediction if predicting exotically --- .../convergence_controller_classes/check_convergence.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pySDC/implementations/convergence_controller_classes/check_convergence.py b/pySDC/implementations/convergence_controller_classes/check_convergence.py index c76acebebd..3a2ee3952c 100644 --- a/pySDC/implementations/convergence_controller_classes/check_convergence.py +++ b/pySDC/implementations/convergence_controller_classes/check_convergence.py @@ -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 )