Skip to content

feat(dfns): add memory variable specification/schema#334

Merged
wpbonelli merged 6 commits into
MODFLOW-ORG:developfrom
wpbonelli:dev3
Jun 29, 2026
Merged

feat(dfns): add memory variable specification/schema#334
wpbonelli merged 6 commits into
MODFLOW-ORG:developfrom
wpbonelli:dev3

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Jun 24, 2026

Copy link
Copy Markdown
Member

modflowapi#94 requested docs for MODFLOW API-accessible runtime variables. Currently the memory addressing scheme is not publicly documented. It's also not readily apparent what can be changed via the API and what can't (or shouldn't) be.

Add a memory variable catalog to the definition file specification. This may be of some benefit both for generating docs and code, in MF6 and modflowapi. The spec/schema drafted here describes variables in terms of attributes like permissions, when the variable is modified, whether it's an output, etc.

This adds some burden (carefully considering/defining memory variables) to package developers, but this is arguably a good thing, and it could be optional. By default (i.e. if there is no memory catalog in the DFN), variables could be made readonly. Developers could decide whether to opt into full API support.

@wpbonelli wpbonelli added this to the 1.10.0 milestone Jun 24, 2026
@wpbonelli wpbonelli added the enhancement New feature or request label Jun 24, 2026
@wpbonelli wpbonelli force-pushed the dev3 branch 6 times, most recently from f48946f to b1a44e8 Compare June 26, 2026 02:31
@wpbonelli wpbonelli marked this pull request as ready for review June 29, 2026 03:32
@wpbonelli wpbonelli merged commit dc2f354 into MODFLOW-ORG:develop Jun 29, 2026
15 checks passed
@wpbonelli wpbonelli deleted the dev3 branch July 1, 2026 11:26
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