Skip to content

flow: let problems append a section to the simulation trailer - #7253

Merged
bska merged 1 commit into
OPM:masterfrom
hnil:pr/trailer-summary-hook
Aug 7, 2026
Merged

flow: let problems append a section to the simulation trailer#7253
bska merged 1 commit into
OPM:masterfrom
hnil:pr/trailer-summary-hook

Conversation

@hnil

@hnil hnil commented Jul 31, 2026

Copy link
Copy Markdown
Member

printFlowTrailer gains a defaulted extra-summary argument, filled from a new FlowProblem::extraTrailerSummary() (default: empty). No output change for standard runs; opm-flowgeomechanics uses it for its timing summary.

@hnil hnil added the manual:enhancement This is an enhancement/improvent that needs to be documented in the manual label Jul 31, 2026
@hnil
hnil requested a review from akva2 July 31, 2026 08:38
Comment thread opm/simulators/flow/Banners.hpp Outdated
const double deck_read_time,
const SimulatorReport& report);
const SimulatorReport& report,
std::string_view extra_summary = {});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop default

printFlowTrailer gains a defaulted extra_summary argument, and FlowMain
fills it from the new FlowProblem::extraTrailerSummary() (default: empty;
derived problems shadow it -- e.g. geomechanics timing summaries). Generic
code carries no module-specific names.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hnil

hnil commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

Default dropped — there is only the one caller, and it always passes the summary.

@hnil
hnil force-pushed the pr/trailer-summary-hook branch from f0c10f2 to 239d3d8 Compare August 7, 2026 14:44
@bska

bska commented Aug 7, 2026

Copy link
Copy Markdown
Member

jenkins build this please

@bska bska left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the updates. This looks good to me now and I'll merge into master.

@bska
bska merged commit cea11f3 into OPM:master Aug 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:enhancement This is an enhancement/improvent that needs to be documented in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants