Skip to content

write structured grid arrays 1 row per line - #450

Merged
wpbonelli merged 2 commits into
modflowpy:developfrom
wpbonelli:fix-grid-array-rows
Oct 10, 2026
Merged

wpbonelli merged 2 commits into
modflowpy:developfrom
wpbonelli:fix-grid-array-rows

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

MF6 expects a structured grid array to have 1 row per line, but we wrote a full layer per line. fix it.

wpbonelli and others added 2 commits October 10, 2026 05:26
MF6 reads a structured grid's 2D array a row per READ, each starting a
new line, but griddata arrays were written a layer per line, so MF6
couldn't read any varying TOP, BOTM, K, ... on a grid of more than one
row. Shape them like the grid, (nrow, ncol) per layer, as period arrays
already are, and indent each row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simulation child collections are lists since modflowpy#444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpbonelli wpbonelli added this to the MVP milestone Oct 10, 2026
@wpbonelli wpbonelli added the bug Something isn't working label Oct 10, 2026
@wpbonelli
wpbonelli merged commit b4e9c78 into modflowpy:develop Oct 10, 2026
17 checks passed
@wpbonelli
wpbonelli deleted the fix-grid-array-rows branch October 10, 2026 14:45
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.

1 participant