Skip to content

Tidy compositional flash diagnostics - #7393

Merged
GitPaean merged 2 commits into
OPM:masterfrom
GitPaean:comp_tidy
Sep 10, 2026
Merged

Tidy compositional flash diagnostics#7393
GitPaean merged 2 commits into
OPM:masterfrom
GitPaean:comp_tidy

Conversation

@GitPaean

@GitPaean GitPaean commented Sep 9, 2026

Copy link
Copy Markdown
Member

Route diagnostics through OpmLog and make the generated phase and composition messages clearer.

Route diagnostics through OpmLog and make the generated phase and composition messages clearer.
@GitPaean

GitPaean commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

jenkins build this please

https://ci.opm-project.org/job/opm-simulators-PR-builder/10583/

@GitPaean GitPaean added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Sep 9, 2026
@GitPaean
GitPaean requested a balanced review from Copilot September 9, 2026 10:38

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.

🟡 Changes recommended

Default MPI logging drops diagnostics produced on non-root ranks.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Routes compositional flash diagnostics through OpmLog with clearer phase and composition formatting.

Changes:

  • Replaces direct console output with debug logging.
  • Improves per-cell flash diagnostic messages.
File summaries
File Description
opm/models/ptflash/flashintensivequantities.hh Updates flash diagnostic logging and formatting.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

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

Comment thread opm/models/ptflash/flashintensivequantities.hh
@GitPaean
GitPaean marked this pull request as draft September 9, 2026 11:01
@GitPaean

GitPaean commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

jenkins build this please

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.

🟢 Approval recommended

The implementation is consistent with existing logging behavior and includes focused MPI coverage.

Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

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.

🟡 Changes recommended

allRanksDebugLoggingEnabled() can throw at startup when FlashVerbosity is specified before the parameter is registered (early parameter pass).

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread opm/simulators/flow/FlowMain.hpp
Enable Flow's existing per-rank debug logging and merger whenever flash diagnostics are requested. Document where flash verbosity is written and apply the project formatting to the diagnostic output.

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.

🟢 Approval recommended

The changes are small, consistent, and improve logging behavior without introducing interface or control-flow risk.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@GitPaean

Copy link
Copy Markdown
Member Author

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.

Nice!

Please merge when ready.

@GitPaean
GitPaean marked this pull request as ready for review September 10, 2026 08:34
@GitPaean
GitPaean merged commit 22cff7c into OPM:master Sep 10, 2026
2 checks passed
@GitPaean
GitPaean deleted the comp_tidy branch September 10, 2026 08:41
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.

3 participants