detecting when the first perforation values cannot be made consistent - #7369
Open
GitPaean wants to merge 1 commit into
Open
detecting when the first perforation values cannot be made consistent#7369GitPaean wants to merge 1 commit into
GitPaean wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR tightens parallel well synchronization by detecting the invalid case where a well has (open) perforations but no rank reports owning the first open connection, which would otherwise allow ranks to silently diverge in “first perforation” derived properties (e.g., PVT region, reference density, first-connection P/T/salt).
Changes:
- Extend
ParallelWellInfo::communicateFirstPerforation()to allgather an additional per-rank flag and throwstd::logic_errorwhen perforations exist but no rank claims the first open connection. - Add a unit test asserting that this inconsistent “perforated well without first perforation owner” case is detected and rejected.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/test_parallelwellinfo.cpp | Adds a new Boost test case covering the newly-detected inconsistent first-perforation ownership scenario. |
| opm/simulators/wells/ParallelWellInfo.cpp | Updates first-perforation coordination to distinguish “no open connections anywhere” from “perforated but no first owner” and throw in the latter case. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
GitPaean
force-pushed
the
fix_parallel_well_first_perf_guard
branch
from
August 28, 2026 11:14
a8702dc to
86e17bf
Compare
GitPaean
force-pushed
the
fix_parallel_well_first_perf_guard
branch
from
August 28, 2026 11:46
86e17bf to
91dde76
Compare
Member
Author
|
jenkins build this please |
broadcastFirstPerforationValue() does nothing when no process reported holding the first open connection of the well, and every process then keeps its own value. That is intended when the well has no open connections at all, but if the well is perforated it means the processes silently end up with different values for the pvt region, the reference density and the pressure, temperature and salt concentration of the first connection. communicateFirstPerforation() now also gathers whether a process has any perforation, so the two cases can be told apart, and throws for the second.
GitPaean
force-pushed
the
fix_parallel_well_first_perf_guard
branch
from
August 28, 2026 13:02
91dde76 to
23684c4
Compare
GitPaean
marked this pull request as ready for review
August 28, 2026 13:16
Member
Author
|
I do not think we have problem so far with this corner situation, but it is more for safety on the code side found when working with #7367 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
broadcastFirstPerforationValue() does nothing when no process reported holding the first open connection of the well, and every process then keeps its own value. That is intended when the well has no open connections at all, but if the well is perforated it means the processes silently end up with different values for the pvt region, the reference density and the pressure, temperature and salt concentration of the first connection.
communicateFirstPerforation() now also gathers whether a process has any perforation, so the two cases can be told apart, and throws for the second.