Skip to content

Commit

Permalink
Perform at least one SDC iteration (#509)
Browse files Browse the repository at this point in the history
* Perform at least one SDC iteration

* Can use only prediction if predicting exotically

* Reverted last commit
  • Loading branch information
brownbaerchen authored Dec 20, 2024
1 parent 76cfa15 commit da7a177
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ 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
res_converged = L.status.residual <= L.params.restol and (S.status.iter > 0 or L.status.sweep > 0)
e_tol_converged = (
L.status.increment < L.params.e_tol if (L.params.get('e_tol') and L.status.get('increment')) else False
)
Expand Down

0 comments on commit da7a177

Please sign in to comment.