Skip to content

fix(dfns): mark blocks optional - #376

Merged
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:optional-blocks
Oct 3, 2026
Merged

wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:optional-blocks

Conversation

@wpbonelli

Copy link
Copy Markdown
Member

MF6 reads SFR CROSSSECTIONS/DIVERSIONS/INITIALSTAGES, LAK OUTLETS and IMS NONLINEAR/LINEAR with blockRequired=.false., but these aren't all marked optional in the DFNs. Mark them optional during migration until the upstream DFNs are fixed

MF6 reads SFR CROSSSECTIONS/DIVERSIONS/INITIALSTAGES, LAK OUTLETS and IMS
NONLINEAR/LINEAR with blockRequired=.false., but their v1 fields aren't all
marked optional, so the derived Block.optional came out false. A writer that
emits required blocks even when empty then writes e.g. an empty SFR
DIVERSIONS block, which MF6 rejects. Mark these blocks' fields optional
during migration until the upstream DFNs are fixed.

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:43
@wpbonelli
wpbonelli merged commit 73ad51d into MODFLOW-ORG:develop Oct 3, 2026
15 checks passed
@wpbonelli
wpbonelli deleted the optional-blocks branch October 3, 2026 01:43
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