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

Skip to content

Conversation

@lisajulia
Copy link

@lisajulia lisajulia commented Jan 16, 2025

Alternative to #4136 as suggested by @bska in #4136 (comment)

For the reference manual: With this PR and OPM/opm-simulators#5892, the keywords WELPI and WPIMULT can be used in the "insert keywords"-function in Pyaction.

@lisajulia
Copy link
Author

jenkins build this opm-simulators=5892 please

@bska
Copy link
Member

bska commented Jan 16, 2025

I'm out of the office until Monday so I can't review this before then. That said, I really appreciate you taking the time to explore this alternative!

@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-WELPI-WPIMULT-alternative branch from e49b10e to 359cdc5 Compare January 17, 2025 06:07
@lisajulia
Copy link
Author

jenkins build this opm-simulators=5892 please

@lisajulia
Copy link
Author

lisajulia commented Jan 17, 2025

I'm out of the office until Monday so I can't review this before then. That said, I really appreciate you taking the time to explore this alternative!

No worries, I liked your idea and I'm looking forward to your feedback when you're back 🙂!

@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-WELPI-WPIMULT-alternative branch from 359cdc5 to 40d1a92 Compare January 17, 2025 06:31
@lisajulia
Copy link
Author

jenkins build this opm-simulators=5892 please

@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-WELPI-WPIMULT-alternative branch from 40d1a92 to 11c54ff Compare January 17, 2025 06:55
@lisajulia
Copy link
Author

jenkins build this opm-simulators=5892 please

@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-WELPI-WPIMULT-alternative branch from 11c54ff to b50e897 Compare January 17, 2025 07:20
@lisajulia
Copy link
Author

jenkins build this opm-simulators=5892 please

@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-WELPI-WPIMULT-alternative branch from b50e897 to 160072e Compare January 17, 2025 07:37
@lisajulia
Copy link
Author

jenkins build this opm-simulators=5892 please

@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-WELPI-WPIMULT-alternative branch from 160072e to 3636592 Compare January 17, 2025 11:16
@lisajulia
Copy link
Author

jenkins build this opm-simulators=5892 please

@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-WELPI-WPIMULT-alternative branch from 3636592 to 080043c Compare January 17, 2025 12:57
@lisajulia
Copy link
Author

jenkins build this opm-simulators=5892 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.

Thanks a lot for making this alternative implementation. This looks really good. Other than the renaming of the HandlerContext data member I have no notes. If you would like revert back to the original name–or something else that's not quite as tightly associated to WELPI–then feel free to do so now. Otherwise, I'm in favour of merging this as is with a possible caveat that I may follow up with a renaming PR later.

I'll review the downstream PR now.

Lisa Julia Nebel added 4 commits January 20, 2025 12:37
…hedule and the run functions of PyAction and PyRunModule.

The argument is the analogon to the argument target_wellpi of applyAction for an ActionX.
Also, the target_wellpi map is an attribute of opm_embedded module object.
With this, it is possible to communicate old well production indices from the ActionHandler (i.e. the Well Model) back to the applyKeywords funcion of the Schedule.
The old well production indices are needed when a user inserts the keyword WELPI or WPIMULT from a python script using the PyAction functionality.
@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-WELPI-WPIMULT-alternative branch from 080043c to 7d5ba9a Compare January 20, 2025 11:40
@lisajulia
Copy link
Author

jenkins build this opm-simulators=5892 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.

Thanks a lot for the updates. This looks really good to me now and I'll merge this and its downstream counterpart into master. It's great to have this feature available for Python users too.

@bska bska merged commit afd0a0d into OPM:master Jan 20, 2025
1 check passed
@lisajulia lisajulia deleted the feature/pyAction-insert-kw-WELPI-WPIMULT-alternative branch January 20, 2025 13:43
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.

2 participants