Skip to content
Snippets Groups Projects
Unverified Commit da7a1770 authored by Thomas Baumann's avatar Thomas Baumann Committed by GitHub
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
parent 76cfa155
No related branches found
No related tags found
No related merge requests found
Pipeline #241941 passed
...@@ -73,7 +73,7 @@ class CheckConvergence(ConvergenceController): ...@@ -73,7 +73,7 @@ class CheckConvergence(ConvergenceController):
# get residual and check against prescribed tolerance (plus check number of iterations) # get residual and check against prescribed tolerance (plus check number of iterations)
iter_converged = S.status.iter >= S.params.maxiter iter_converged = S.status.iter >= S.params.maxiter
res_converged = L.status.residual <= L.params.restol res_converged = L.status.residual <= L.params.restol and (S.status.iter > 0 or L.status.sweep > 0)
e_tol_converged = ( e_tol_converged = (
L.status.increment < L.params.e_tol if (L.params.get('e_tol') and L.status.get('increment')) else False L.status.increment < L.params.e_tol if (L.params.get('e_tol') and L.status.get('increment')) else False
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment