-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs for opm common and embedded #7
base: main
Are you sure you want to change the base?
Conversation
@hakonhagland can you have a look? Thanks! |
7cfc36a
to
80c0eb0
Compare
80c0eb0
to
69c9c34
Compare
@lisajulia Great, I will have a look later today 😄 |
set(DOCSTRINGS_GENERATED_HEADER_PATH "${PROJECT_BINARY_DIR}/${TEMP_GEN_DIR}/${DOCSTRINGS_GENERATED_HPP}") | ||
set(PYBLACKOIL_DOCSTRINGS_FILE "${PROJECT_SOURCE_DIR}/docs/docstrings_simulators.json") | ||
set(PYBLACKOIL_DOCSTRINGS_GENERATED_HPP "PyBlackOilSimulatorDoc.hpp") | ||
set(PYBLACKOIL_DOCSTRINGS_GENERATED_HEADER_PATH "${PROJECT_BINARY_DIR}/${TEMP_GEN_DIR}/${PYBLACKOIL_DOCSTRINGS_GENERATED_HPP}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this file, only PYBLACKOIL_DOCSTRINGS_GENERATED_HEADER_PATH
and COMMON_DOCSTRINGS_GENERATED_HEADER_PATH
needs to be exported to the global scope, right? I like to export only necessary variables, I think it helps with maintenance in the long run. Could we make this a function like in e.g. OpmPythonSetupInstall.cmake ? I realize this was something I forgot to do in the original version of this file..
|
||
In order to enable the PYACTION keyword: | ||
|
||
1. OPM flow must be compiled with the cmake switches -DOPM ENABLE EMBEDDED PYTHON=ON and -DOPM ENABLE PYTHON=ON, the default is to build with these switches set to OFF. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plan is to remove the -DOPM_ENABLE_PYTHON
flag from opm-common and only keep the -DOPM ENABLE EMBEDDED PYTHON
flag. When that is done, we should update this sentence.
These are the changes from OPM/opm-common#4018 and OPM/opm-simulators#5349