Skip to content

fix(dfns): scope package dims to their component - #375

Merged
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:package-dim-scope
Oct 3, 2026
Merged

wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:package-dim-scope

Conversation

@wpbonelli

Copy link
Copy Markdown
Member

The migration gave every dimension the scope implied by the component's parent. Only the discretization's grid dims and TDIS's nper should be shared, everything else component scoped.

The dev2 migration gave every dimensions-block integer the scope implied by
the component's parent, so any package under a model declared its dims at
model scope (and any under the simulation at simulation scope). Package dims
like nseg, numgnc and maxbound then leaked into every other package's
inherited dims, and names like maxbound were declared model-wide by dozens of
components. utl-laktab/utl-sfrtab's nrow/ncol even collided with the
discretization's at simulation scope.

Only the discretization's grid dims and TDIS's nper are shared; everything
else is now component-scoped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpbonelli wpbonelli added this to the 1.10.0 milestone Oct 3, 2026
@wpbonelli wpbonelli added the bug Something isn't working label Oct 3, 2026
@wpbonelli
wpbonelli marked this pull request as ready for review October 3, 2026 01:32
@wpbonelli
wpbonelli merged commit 257e9bc into MODFLOW-ORG:develop Oct 3, 2026
15 checks passed
@wpbonelli
wpbonelli deleted the package-dim-scope branch October 3, 2026 01:34
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