Skip to content

Activate GLIFTOPT for use in Pyaction and add warning for required keywords#4398

Open
lisajulia wants to merge 1 commit into
OPM:masterfrom
lisajulia:feature/pyAction-insert-kw-GLIFTOPT
Open

Activate GLIFTOPT for use in Pyaction and add warning for required keywords#4398
lisajulia wants to merge 1 commit into
OPM:masterfrom
lisajulia:feature/pyAction-insert-kw-GLIFTOPT

Conversation

@lisajulia

@lisajulia lisajulia commented Dec 29, 2024

Copy link
Copy Markdown

Depends on OPM/opm-simulators#5831 and OPM/opm-tests#1271.

With this PR, the keyword GLIFTOPT is activated for the use in a PYACTION. Since GLIFTOPT needs the keyword LIFTOPT before, I've added a warning: When a keywords that requires other keywords is inserted via a PYACTION, the warning

Opm::OpmLog::warning("Attention, the keyword " + keyword.name() + " needs the keyword " + requiredKeyword + " before.");

about the required keywords is added. I've chosen this, since there is no way to access the keywords that have already been processed from inside the PYACTION.

@lisajulia

Copy link
Copy Markdown
Author

jenkins build this opm-simulators=5831 opm-tests=1271 please

@blattms blattms left a comment

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.

Maybe we need to discuss his as there might be hard to detect or undetectable input errors.

Comment thread python/cxx/schedule.cpp Outdated
Comment thread python/cxx/schedule.cpp
@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-GLIFTOPT branch from 8c5d06d to 37af2e3 Compare January 8, 2025 11:39
@lisajulia lisajulia force-pushed the feature/pyAction-insert-kw-GLIFTOPT branch from 37af2e3 to 301e678 Compare January 8, 2025 11:50
@lisajulia

Copy link
Copy Markdown
Author

jenkins build this opm-simulators=5831 opm-tests=1271 please

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