Skip to content

#14622 Sector export: Preserve separate include files for ACTNUM and … - #14624

Open
kriben wants to merge 1 commit into
devfrom
14622-sector-export-preserve-include-files
Open

#14622 Sector export: Preserve separate include files for ACTNUM and …#14624
kriben wants to merge 1 commit into
devfrom
14622-sector-export-preserve-include-files

Conversation

@kriben

@kriben kriben commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

…FAULTS

Sector model export removed all ACTNUM and FAULTS keywords from the deck and re-inserted the sector-specific replacements at the end of the GRID section, which always lands in the main DATA file. Decks that keep these keywords in separate include files lost their file organization, leaving the original include files empty while the data was written inline.

Collapse duplicates to a single occurrence instead of removing all occurrences, so the subsequent in-place replacement keeps the keyword in its original file when the deck is saved with OutputMode::COPY. ACTNUM keeps the last occurrence since a later ACTNUM overrides an earlier one; FAULTS keeps the first so fault definitions do not move past keywords referencing them.

Fixes #14622.

…FAULTS

Sector model export removed all ACTNUM and FAULTS keywords from the deck
and re-inserted the sector-specific replacements at the end of the GRID
section, which always lands in the main DATA file. Decks that keep these
keywords in separate include files lost their file organization, leaving
the original include files empty while the data was written inline.

Collapse duplicates to a single occurrence instead of removing all
occurrences, so the subsequent in-place replacement keeps the keyword in
its original file when the deck is saved with OutputMode::COPY. ACTNUM
keeps the last occurrence since a later ACTNUM overrides an earlier one;
FAULTS keeps the first so fault definitions do not move past keywords
referencing them.
@kriben kriben self-assigned this Aug 27, 2026
@kriben
kriben requested a review from jonjenssen August 31, 2026 11:41
@kriben
kriben marked this pull request as ready for review August 31, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sector model export: Preserve separate include files for ACTNUM and FAULTS

2 participants