Skip to content

Safeguard against running TPSA simulations without FlowProblemTPSA#6985

Merged
bska merged 1 commit intoOPM:masterfrom
svenn-t:tpsa_throw_fix
Apr 15, 2026
Merged

Safeguard against running TPSA simulations without FlowProblemTPSA#6985
bska merged 1 commit intoOPM:masterfrom
svenn-t:tpsa_throw_fix

Conversation

@svenn-t
Copy link
Copy Markdown
Contributor

@svenn-t svenn-t commented Apr 14, 2026

Without this fix, a simulation with TPSA in the deck will run even if a flow binary does not exist for the particular setup.

@svenn-t svenn-t added this to the Release 2026.04 milestone Apr 14, 2026
@svenn-t svenn-t added the manual:bugfix This PR is a bug fix and should be noted in the manual label Apr 14, 2026
@svenn-t
Copy link
Copy Markdown
Contributor Author

svenn-t commented Apr 14, 2026

jenkins build this please

const auto& rspec = vanguard.eclState().runspec();
if (rspec.mech() && rspec.mechSolver().tpsa()) {
throw std::runtime_error("TPSA solver enabled in the deck, but geomechanics "
"module disabled at compile time!");
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.

was

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.

thanks, I took the liberty of fixing my typo for the GEOCHEM throw as well.

@bska
Copy link
Copy Markdown
Member

bska commented Apr 15, 2026

PR approved and build check is green. I'll merge into master.

@bska bska merged commit f726e18 into OPM:master Apr 15, 2026
1 check passed
michal-toth pushed a commit to michal-toth/opm-simulators that referenced this pull request Apr 17, 2026
Safeguard against running TPSA simulations without FlowProblemTPSA
@michal-toth michal-toth added the backported Release managers use this at their discretion label Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported Release managers use this at their discretion manual:bugfix This PR is a bug fix and should be noted in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants