-
Notifications
You must be signed in to change notification settings - Fork 121
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
Import opm-models #4627
Import opm-models #4627
Conversation
jenkins build this please |
jenkins build this please |
Tangential note: Do we know how much of |
according to the git log, close to nothing. |
There might not be a better time than now... (I am aware this needs to be discussed) Actually, that might open the door to moving the material law managers from opm-common to opm-simulators which might make supporting adaptivity a tad easier. |
I'm currently working on supporting LGRs on EclThermalLawManager, namely, getting the field properties of type int and double for a leaf grid view with LGRs, and it would be more convenient if the files were located in opm-simulators. |
[bugfix] Do not try to save FLOWS or FLOWRES values for NNCs.
Fix Flows/Flores for NNCs
These parameters get referenced only in certain configurations.
Tag Certain Parameters As Maybe-Unused
adjust to output module accessor change
in particular the solventMeaning can lead to out-of-bounds dereferences in updatePrimaryVariables
they used to use the same EWOMS_DIFFUSION_MODULE_HH
…diffusion changing including guard name for two diffusionmodule
these have been deactivated for years
remove last remnants of property system macros
Remove unused EWOMS_RESET_PARAMS macro
it adds no simplicity and only obfuscates
it simplifies nothing, only obscures. remove unused different propTagName and use paramName.
remove EWOMS_END_PARAM_REGISTRATION macro
remove macro EWOMS_PARAM_IS_SET macro
it adds no simplicity and only obfuscates
remove EWOMS_GET_PARAM_LISTS macro
it adds no simplicity and only obfuscates
Don't Require Floating Point from_chars() Function
remove typetag based parameter system
support drsdtcon with pvtnum
Avoid deleting derivatives with zero pressure difference
Add necessary changes to build float simulators
1fe7d8c
to
6e4f0fe
Compare
September is upon us. As previously agree I have updated this PR now. I hope this can be expedited quite fast so I don't have to update yet again. |
jenkins build this serial please |
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.
I haven't reviewed the new files, other than modelTests.cmake
, since I assume those are effectively copies of the corresponding files in the OPM-Models repository. We could probably drop the doc
directory at some point as well.
The integration changes look good to me and the CI system confirms the build is green. I do however have a couple of questions about the integration itself
- What happens to the open PRs in OPM-Models?
- Do we not need the workaround for older compilers that don't have the floating-point overloads of
std::from_chars()
–i.e., PRs Don't Require Floating Point from_chars() Function opm-models#926 and fixed: use PROJECT_SOURCE_DIR opm-models#927?
6e4f0fe
to
104a79c
Compare
|
jenkins build this please |
This commit broadens the scope of commit 2ad332e0b (PR OPM#922) to apply to all compilers/libraries, not just Clang/libc++, which do not have support for floating-point types in std::from_chars(). While hopefully a transient situation, this enables building the parameter system with GCC versions prior to GCC 11. We expect to require version 11 in the not too distant future, though. At that point we should revert this commit. We use a configure-time feature test of the compiler (CMake command 'try_compile') to detect whether or not the compiler supports floating-point overloads of std::from_chars() and emit the result to config.h as the new preprocessor symbol HAVE_FLOATING_POINT_FROM_CHARS We use std::strtod() as the fall-back alternative for floating point conversion if this symbol is defined to false (zero).
104a79c
to
a26b981
Compare
jenkins build this please |
Okay, then I guess you'll get to assist the authors if they run into trouble. Probably not a huge problem, because other than the compositional stuff, PR OPM/opm-models#808 and maybe PRs OPM/opm-models#813 and OPM/opm-models#512 there does not seem to be a whole lot that's worthwhile to port. |
absolutely available to help, but it should simply be |
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.
absolutely available to help, but it should simply be git format-patch and git am assuming it doesn't touch buildsystem etc.
Okay, very good. In that case I'll merge this to start the process of incorporating OPM-Models into OPM-Simulators.
It seems it's never a good time for this, but I'll open this PR for testing purposes so I can nip any problems out up front for when it is.