Skip to content

Use user supplied water compressibility in Philips density calculation - #4165

Open
dkachuma wants to merge 5 commits into
developfrom
dkachuma/fix/propagate-water-compressibility
Open

dkachuma wants to merge 5 commits into
developfrom
dkachuma/fix/propagate-water-compressibility

Conversation

@dkachuma

@dkachuma dkachuma commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Propagates the user supplied water compressibility to the actual computation. Currently this is still using the hard-coded value. This applies to pure water density calculations i.e. when salinity is zero.

Add a new pvt driver test to cover the zero salinity path.

@dkachuma dkachuma self-assigned this Oct 13, 2026
@dkachuma dkachuma added type: bug Something isn't working flag: ready for review ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: no rebaseline Does not require rebaseline ci: run code coverage enables running of the code coverage CI jobs ci: run device builds Allows to run the device (CUDA/HIP) builds labels Oct 13, 2026
@dkachuma
dkachuma marked this pull request as ready for review October 13, 2026 15:56
@dkachuma dkachuma changed the title Use user supplied water compressibility Use user supplied water compressibility in Philips density calculation Oct 13, 2026
@dkachuma
dkachuma requested a balanced review from Copilot October 13, 2026 16:01

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

A regression test is needed for zero salinity with non-default compressibility.

1 open finding
What changed in this PR

Propagates user-configured water compressibility into pure-water Phillips density calculations.

Changes:

  • Passes configured compressibility into the pure-water calculation.
  • Removes the hard-coded compressibility value.
File Description
PhillipsBrineDensity.cpp Uses supplied compressibility for zero-salinity density.

🧠 Review effort: Balanced


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

@dkachuma dkachuma added flag: requires rebaseline Requires rebaseline branch in integratedTests and removed flag: no rebaseline Does not require rebaseline labels Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: run code coverage enables running of the code coverage CI jobs ci: run device builds Allows to run the device (CUDA/HIP) builds ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: ready for review flag: requires rebaseline Requires rebaseline branch in integratedTests type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants