Skip to content

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

Open
wpbonelli wants to merge 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:fix-runner
Open

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

Conversation

@wpbonelli

Copy link
Copy Markdown
Member

The ATS conditional branch in run_simulation() did not cap Picard iterations. A timestep failing to converge under ATS 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.

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
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