Skip to content

14227 avoid duplicate depth results#14233

Merged
kriben merged 2 commits into
devfrom
14227-avoid-duplicate-depth-results
Jun 19, 2026
Merged

14227 avoid duplicate depth results#14233
kriben merged 2 commits into
devfrom
14227-avoid-duplicate-depth-results

Conversation

@kriben

@kriben kriben commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Fixes #14227.

@kriben kriben marked this pull request as ready for review June 17, 2026 10:52
@kriben kriben requested a review from magnesj June 17, 2026 10:52

@magnesj magnesj 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.

I would like to have easier to read lambda functions

Comment thread ApplicationLibCode/ReservoirDataModel/RigCaseCellResultsData.cpp Outdated
kriben added 2 commits June 19, 2026 08:30
Add a value-asserting unit test that loads the dual-porosity test model and
verifies that the geometry-derived depth results (DEPTH/DX/DY/DZ/TOPS/BOTTOM)
are identical between the matrix and fracture porosity models for cells active
in both. This guards the upcoming change that computes these results in a
single shared grid traversal.
…models

The depth-related geometry results (DEPTH/DX/DY/DZ/TOPS/BOTTOM) are derived
purely from the shared grid geometry and were computed independently for the
matrix and fracture porosity models. For dual-porosity cases this recomputed the
identical per-cell geometry twice.

Replace the per-model computeDepthRelatedResults() with a single static routine
that traverses the shared main grid once, computing each cell's geometry a single
time and writing it to every porosity model in which the cell is active. The
per-property already-computed guards and the temporary-grid recompute path are
preserved, so the stored values are unchanged. All six matrix+fracture call sites
now go through a thin RigEclipseCaseData::computeDepthRelatedResults() wrapper.
@kriben kriben force-pushed the 14227-avoid-duplicate-depth-results branch from 0d20b8e to 7263157 Compare June 19, 2026 07:12
@kriben kriben requested a review from magnesj June 19, 2026 07:19
@kriben kriben merged commit a489db3 into dev Jun 19, 2026
21 checks passed
@kriben kriben deleted the 14227-avoid-duplicate-depth-results branch June 19, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid computing same depth result twice

2 participants