Skip to content

Track Whether or not Run Supports Solution Tracers - #5302

Open
bska wants to merge 1 commit into
OPM:masterfrom
bska:track-solution-tracer-availability
Open

Track Whether or not Run Supports Solution Tracers#5302
bska wants to merge 1 commit into
OPM:masterfrom
bska:track-solution-tracer-availability

Conversation

@bska

@bska bska commented Aug 20, 2026

Copy link
Copy Markdown
Member

Solution gas tracers are supported only if the run itself enables gas dissolution (DISGAS keyword). Similarly, solution oil tracers are supported only if the run enables oil vaporisation (VAPOIL keyword).

The immediate use case for this is assisting the restart component's array allocation. Certain arrays must be sized according to the number of tracer components and we need to know whether or not solution tracers are active. In the future, these flags will also permit greater consistency checking and diagnostics for the simulation input deck.

@bska bska added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Aug 20, 2026
@bska

bska commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

I'm creating this PR in draft mode because it depends on, and contains, the earlier PR #5301. I will keep the PR in a draft state until such time as it is ready for review and merging.

@bska
bska force-pushed the track-solution-tracer-availability branch 6 times, most recently from 1f4303b to dce0942 Compare August 24, 2026 14:22
@bska
bska requested a lite review from Copilot August 24, 2026 14:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds run-level capability flags to TracerConfig to indicate whether solution gas tracers (via DISGAS) and vaporised oil tracers (via VAPOIL) are supported, enabling correct restart array allocation and paving the way for improved input diagnostics.

Changes:

  • Introduce supportsSolutionGasTracer() / supportsVaporisedOilTracer() accessors and persist these flags via serialization and equality.
  • Populate the new flags from DISGAS / VAPOIL deck keywords during TracerConfig construction.
  • Extend parser tests to assert the new support-flag behavior for DISGAS and VAPOIL.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tests/parser/TracerTests.cpp Adds assertions and new test cases for solution-tracer support flags.
opm/input/eclipse/EclipseState/TracerConfig.hpp Adds new public accessors and serializes the new support flags.
opm/input/eclipse/EclipseState/TracerConfig.cpp Computes the new support flags from deck keywords and includes them in equality/serialization test object.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread opm/input/eclipse/EclipseState/TracerConfig.cpp
Solution gas tracers are supported only if the run itself enables
gas dissolution ("DISGAS" keyword).  Similarly, solution oil tracers
are supported only if the run enables oil vaporisation ("VAPOIL"
keyword).

The immediate use case for this is assisting the restart component's
array allocation.  Certain arrays must be sized according to the
number of tracer components and we need to know whether or not
solution tracers are active.  In the future, these flags will also
permit greater consistency checking and diagnostics for the
simulation input deck.
@bska
bska force-pushed the track-solution-tracer-availability branch from dce0942 to 8b2faf5 Compare August 24, 2026 15:53
@bska
bska requested a lite review from Copilot August 24, 2026 15:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread opm/input/eclipse/EclipseState/TracerConfig.cpp
@bska

bska commented Aug 24, 2026

Copy link
Copy Markdown
Member Author

jenkins build this please

@bska

bska commented Aug 24, 2026

Copy link
Copy Markdown
Member Author

I've addressed Copilot's concerns and the build goes through. I'm marking this as "ready for review" now.

@bska
bska marked this pull request as ready for review August 24, 2026 18:36
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.

2 participants