Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jakobtorben
Copy link
Member

When using restart, the DRSDT ended up being active for a simulation that did not use DRSDT in the first place. This matters for functions like recycleFirstIterationStorage() but I am not sure if it had any real consequences as of now.

Fixing this is required for OPM/opm-simulators#6357 to work.

I added a check which checks if the DRSDT value was defined in the state and skips updating the oilvap object if this is the case, which resolves this problem.

@jakobtorben jakobtorben requested a review from bska July 3, 2025 13:38
@jakobtorben jakobtorben added the manual:bugfix This PR is a bug fix and should be noted in the manual label Jul 3, 2025
@jakobtorben
Copy link
Member Author

jenkins build this please

Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

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

This looks good to me and fixes the problem. At some point we should do something about those magic constants (i.e., 1.0e+20) that are scattered about this part of the code, but for now I'm happy with the interim solution.

I'll merge into master.

@bska bska merged commit d7a0ec6 into OPM:master Jul 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants