Skip to content

feat(dfns): say which model's grid a cellid refers to - #385

Merged
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:cellid-model
Oct 7, 2026
Merged

wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:cellid-model

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Extend Array.cellid to signal not only that an array is a cell ID but which model it refers to. Accept true/"1"/"2", where true means the component's own model, and ``"1"/"2"` the first/second model of some enclosing context (e.g. `EXGMNAMEA`/`EXGMNAMEB` for an exchange).

Make Array.cellid value-carrying, as index already is: true for the
component's own model's grid, "1"/"2" for the first/second model of the
enclosing context (EXGMNAMEA/EXGMNAMEB under an exchange). Strings, not
ints, since True == 1; StrictBool so an int is rejected, not coerced.

The migration sets cellidm1/cellidm2 on the exg-* components and
cellidn/cellidm/cellidsj on gwf-gnc (1, 2, 1), as MF6 hard-codes. An
exchange's cellids must name a model, and a row may not mix true with
"1"/"2", union arms included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpbonelli wpbonelli added this to the 1.10.0 milestone Oct 7, 2026
@wpbonelli wpbonelli added the enhancement New feature or request label Oct 7, 2026
@wpbonelli
wpbonelli marked this pull request as ready for review October 7, 2026 20:09
@wpbonelli
wpbonelli merged commit 8fb5dd8 into MODFLOW-ORG:develop Oct 7, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant