Skip to content

fix(runner.py): cap Picard iterations with ATS#102

Merged
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:fix-runner
Jul 11, 2026
Merged

fix(runner.py): cap Picard iterations with ATS#102
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:fix-runner

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Jul 6, 2026

Copy link
Copy Markdown
Member

The ATS conditional branch in run_simulation() did not cap Picard iterations. A timestep failing to converge would call mf6.solve() indefinitely instead of giving up after maxiter tries. This caused crashes (access violations) on Windows in the ex-gwt-adv-schemes example model. I think the "central" scheme is borderline-unstable on this model, it converges on the Linux and macOS builds but can fail on Windows.

Note however that ATS is not truly supported right now by the API: there is no way currently to hook into the retry mechanism. This is a temporary stopgap to prevent crashes until ATS is supported. See

Close #98

@wpbonelli wpbonelli added this to the 0.2.1 milestone Jul 6, 2026
@wpbonelli wpbonelli added the bug Something isn't working label Jul 6, 2026
@wpbonelli wpbonelli marked this pull request as ready for review July 8, 2026 15:03
@wpbonelli wpbonelli merged commit 73dd087 into MODFLOW-ORG:develop Jul 11, 2026
34 checks passed
@wpbonelli wpbonelli deleted the fix-runner branch July 11, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example ex-gwt-adv-schemes fails on Windows

1 participant