Skip to content

feat(dfns): model array-based aux as a list of named arrays - #371

Merged
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:grid-aux-records
Oct 1, 2026
Merged

wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:grid-aux-records

Conversation

@wpbonelli

Copy link
Copy Markdown
Member

Layer- and grid-array stress packages (gwf-rcha, gwf-evta, gwf-welg, etc) have an array per auxiliary variable. This wasn't represented before. Tweak the spec to accommodate this kind of relationship as a list of dynamically named arrays.

Array-based stress packages (gwf-rcha, gwf-evta, gwf-*g) read one grid
array per auxiliary variable, each introduced by the variable's name,
not a single array tagged AUX. Migrate the period `aux` field to an
optional tagged list of (auxname, aux) records, bounded by the
auxiliary count, with `auxname` an untagged string keyed to
`options.auxiliary`.

Relax the spec to support this with existing constructs:

- a string `fk` may target a string array, whose entries are the keys
- a record led by such a dynamic keyword is keyword-led, so the list
  is tagged and may appear among the block's other tagged fields
- a dynamic keyword followed by an array spans lines, read like a
  tagged array whose tag is the key's value

Also validate fks in union-item lists, and keep the dev3 memory
catalog's BOUND columns from picking up the aux list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpbonelli wpbonelli added this to the 1.10.0 milestone Oct 1, 2026
@wpbonelli wpbonelli added the bug Something isn't working label Oct 1, 2026
@wpbonelli
wpbonelli marked this pull request as ready for review October 1, 2026 21:36
@wpbonelli
wpbonelli merged commit 7484a52 into MODFLOW-ORG:develop Oct 1, 2026
15 checks passed
@wpbonelli
wpbonelli deleted the grid-aux-records branch October 1, 2026 22:19
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