Skip to content

Multicomponent salt array in GPU PVT tests - #7061

Open
svenn-t wants to merge 1 commit into
OPM:masterfrom
svenn-t:pvt_multicomp_salt
Open

svenn-t wants to merge 1 commit into
OPM:masterfrom
svenn-t:pvt_multicomp_salt

Conversation

@svenn-t

@svenn-t svenn-t commented May 19, 2026

Copy link
Copy Markdown
Contributor

Companion PR to OPM/opm-common#5159 to test and benchmark CO2STORE with multicomponent salts.

@svenn-t svenn-t added the manual:irrelevant This PR is a minor fix and should not appear in the manual label May 19, 2026
@svenn-t
svenn-t force-pushed the pvt_multicomp_salt branch from 235b3cb to dfe334d Compare May 19, 2026 12:22
@svenn-t
svenn-t force-pushed the pvt_multicomp_salt branch from dfe334d to 955b272 Compare June 26, 2026 10:52
@svenn-t
svenn-t force-pushed the pvt_multicomp_salt branch from 955b272 to df846ba Compare August 20, 2026 08:33
@svenn-t
svenn-t force-pushed the pvt_multicomp_salt branch 2 times, most recently from 655be79 to 8761906 Compare September 8, 2026 14:01
@svenn-t
svenn-t force-pushed the pvt_multicomp_salt branch 2 times, most recently from 1b0c350 to 6b4cdcb Compare September 18, 2026 09:09
@svenn-t svenn-t changed the title [TEST] Multicomponent salt array in GPU PVT tests Multicomponent salt array in GPU PVT tests Sep 18, 2026
@svenn-t

svenn-t commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Companion PR is ready-to-review, along with this one.

@svenn-t
svenn-t marked this pull request as ready for review September 18, 2026 09:14
@totto82
totto82 requested a lite review from Copilot September 21, 2026 06:19

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.

Copilot review overview

🟡 Changes recommended

Initialize the salinity vector before indexing it.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Updates GPU PVT tests to exercise multicomponent Na/Cl salt arrays for CO2STORE.

Changes:

  • Adds SaltArray support.
  • Replaces scalar salinity inputs with Na/Cl component arrays in both tests.
File Summary
tests/​gpuistl/​test_gpuPvt.cu Configures multicomponent salinity data; empty-vector accesses at lines 265 and 290 cause undefined behavior.

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

Comment thread tests/gpuistl/test_gpuPvt.cu Outdated
// Test case evaluating pvt values for BrineDynamic on a GPU and CPU
BOOST_FIXTURE_TEST_CASE(TestCo2GasPvt, Fixture) {
std::vector<double> salinities = {0.2, 0.3, 0.4};
std::vector<Opm::SaltArray<double, Opm::SaltMassFraction> > salinities;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed both places

This branch has not been deployed

No deployments
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