Skip to content

Add missing restart serialization - #7376

Draft
akva2 wants to merge 6 commits into
OPM:masterfrom
akva2:add_missing_restart_serialization
Draft

Add missing restart serialization#7376
akva2 wants to merge 6 commits into
OPM:masterfrom
akva2:add_missing_restart_serialization

Conversation

@akva2

@akva2 akva2 commented Aug 31, 2026

Copy link
Copy Markdown
Member

Various dynamic state that was missing from restart serialization.

akva2 added 6 commits August 31, 2026 10:22
Move the auto-choke group THP cache into the generic network base
used by the well-model serializer.

The derived network implementation accesses the inherited state, so
the dynamic values now survive serialized restart.
Persist the FlowProblem first_step_ flag across serialized restarts.
It controls the first-step explicit-quantity update path and otherwise
resets to true when a problem is reconstructed.
WELPI scaling changes connection transmissibility factors after the
well completion data has been constructed. Those scaled factors are
copied into well_perf_data_ and then used as well_index_ when computing
perforation transmissibilities and rates. They are runtime state, not
merely static schedule metadata.

The well model serializer previously omitted well_perf_data_. A
restarted model therefore rebuilt perforation data from the schedule
connection CF values, losing the scaled CTF values. This changed Tw
immediately after restart and caused the local well equations and rates
to diverge from a continuous run.

Serialize all PerforationData fields so the restarted model restores the
same completion factors and associated metadata. Add the
PerforationData serialization test object, equality operator, double and
conditional float instantiations, and cover the round trip through the
existing RestartSerialization test macro.
@akva2 akva2 added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Aug 31, 2026
@akva2

akva2 commented Aug 31, 2026

Copy link
Copy Markdown
Member Author

jenkins build this please

@akva2

akva2 commented Aug 31, 2026

Copy link
Copy Markdown
Member Author

last commit might not be necessary, drafting until i have verified

@akva2
akva2 marked this pull request as draft August 31, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant