Commit Graph

20373 Commits

Author SHA1 Message Date
Arne Morten Kvarving
2a9d81227b changed: subclass Main for python
move the initFlowBlackoil method into it

in particular we then avoid the FlowMainType type alias
in Main.hpp
2024-09-09 14:28:20 +02:00
Arne Morten Kvarving
fc96e9da75 Main: mark some members protected
to enable subclassing
2024-09-09 14:28:11 +02:00
Bård Skaflestad
95af21095e
Merge pull request #5587 from akva2/fix_python_binding_version
fix python package versioning
2024-09-09 12:57:16 +02:00
Arne Morten Kvarving
8ed1149252 fix python package versioning
remove opm-models cloning
build both bindings in one build directory
2024-09-09 12:45:00 +02:00
Bård Skaflestad
8f761c51a2
Merge pull request #5582 from akva2/micro_tu_optims
Move more opm-models code to translation units
2024-09-05 15:34:47 +02:00
Arne Morten Kvarving
93d796ef22 restart: add translation unit 2024-09-05 15:02:52 +02:00
Arne Morten Kvarving
e22276b91a restart.hh: rename to restart.hpp 2024-09-05 13:58:09 +02:00
Arne Morten Kvarving
929515c672 move assignment of signal handlers into utility function in terminal.cpp 2024-09-05 13:45:12 +02:00
Arne Morten Kvarving
7726924cb1 start.hh: move check for nonexistent parameter file into parseParameterFile
now we don't have to pull in <fstream> in start.hh
2024-09-05 13:32:15 +02:00
Arne Morten Kvarving
e56fc10b4c add utility function for verifying simulator output directory
use this in fvbaseproblem.hh. allows to encapsulate some includes
2024-09-05 13:32:15 +02:00
Arne Morten Kvarving
5d2a25ac14 add utility function to read time step files
and use this in simulator.hh
2024-09-05 13:32:15 +02:00
Arne Morten Kvarving
478ddb5e52 added: opm/models/simulatorutils.[ch]pp
move humanReadableTime from simulator.hh into it
2024-09-05 13:32:15 +02:00
Arne Morten Kvarving
daea73d696 simulator: drop unnecessary wrapper function 2024-09-05 13:32:15 +02:00
Arne Morten Kvarving
e081be96cd
Merge pull request #5581 from bska/fix-build-on-older-compilers
Fix Build on Older Compilers
2024-09-05 13:32:04 +02:00
Bård Skaflestad
46c652b553 Fix Build on Older Compilers
The strsignal() function is declared in <string.h> on those.
2024-09-05 13:19:44 +02:00
Arne Morten Kvarving
ec3081baab
Merge pull request #5580 from akva2/add_terminal_tu
added: translation unit for terminal manipulation stuff
2024-09-05 12:03:07 +02:00
Bård Skaflestad
3ee6c07076
Merge pull request #5573 from bska/threept-horiz-sfunc-consistency-checks-impl
Add Saturation Function Consistency Checks for SCALECRS
2024-09-05 11:41:48 +02:00
Arne Morten Kvarving
f7f7f9b7ef start.hh: cleanup includes 2024-09-05 11:40:41 +02:00
Arne Morten Kvarving
2492c0867d move resetTerminal functions from start.hh to terminal.cpp 2024-09-05 11:07:18 +02:00
Arne Morten Kvarving
909aa53efc added: opm/models/utils/terminal.[ch]pp
holds some terminal related methods that used to sit
in parametersystem
2024-09-05 10:58:42 +02:00
Bård Skaflestad
3de20b46b6 Add Saturation Function Consistency Checks for SCALECRS
This commit introduces consistency checks for the scaled displacing
saturation in the three point horizontal scaling method
(SCALECRS=YES).  These plug into the framework introduced in commit
c3939c544 (PR #5438).  We implement the following two checks

  - SGCR < 1-SOGCR-SWL < SGU
  - SWCR < 1-SOWCR-SGL < SWU

which collectively guarantee a mobile displacing oil saturation in
the two phase gas/oil and oil/water systems.
2024-09-05 10:36:43 +02:00
Bård Skaflestad
9a0e39c1ad
Merge pull request #5578 from akva2/parametersystem_tu
ParameterSystem: add translation unit
2024-09-05 10:34:51 +02:00
Arne Morten Kvarving
462926a356 ParameterSystem: cosmetics 2024-09-05 10:08:29 +02:00
Arne Morten Kvarving
5b40229211 ParameterSystem: replace loop with standard algorithms 2024-09-05 10:08:09 +02:00
Arne Morten Kvarving
95ab000612 ParameterSystem: replace if nest with switch 2024-09-05 10:08:09 +02:00
Arne Morten Kvarving
4cc187d2d8 ParameterSystem: replace std::list with std::vector 2024-09-05 10:08:09 +02:00
Arne Morten Kvarving
36142f588c ParameterSystem: cleanup includes 2024-09-05 10:08:09 +02:00
Arne Morten Kvarving
218988c85e Parameters::printUnused: drop default parameter for stream 2024-09-05 10:08:09 +02:00
Arne Morten Kvarving
4967323c29 Parameters::printValues: drop default parameter for stream 2024-09-05 10:08:09 +02:00
Arne Morten Kvarving
ed0c480a19 Parameters::printUsage: drop default parameter for stream 2024-09-05 10:08:08 +02:00
Arne Morten Kvarving
4507501622 ParameterSystem: the entire backend store can now be an implementation detail 2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
3161b4f547 ParameterSystem: add function to query if registration is open 2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
0cda471821 remove Parameters::noPositionalParameters_
only used in a test
2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
672de7665d Parameters::printParamList can now be an implementation detail 2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
faa963056d Parameters::printParamUsage can now be an implementation detail 2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
77dc5ad895 Parameters::getFlattenedKeyList can now be an implementation detail 2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
410039206d add Parameters::Parameter struct
this holds a key-value pair for a parameter with some utility functions
for comparison and printing.

use this to move Parameters::getLists to the translation unit
2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
ae8dd62fe3 Parameters::Get split out parts of implementation
allows putting it in translation unit
2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
cfad87b41f ParameterSystem: remove ParamFinalizer
this adds no extra validation and complicates refactoring
2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
65158cd3fb Parameters::SetDefault split out parts of implementation
allows putting it in translation unit
2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
741e97da61 Parameters::IsSet split out parts of implementation
allows putting it in translation unit
2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
98b33d582f Parameters::Register split out parts of implementation
allows putting it in translation unit
2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
48bcf6ac04 Parameters::Hide split out main implementation
allows putting it in translation unit
2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
7584f588a7 parametersystem: parseKey/transformKey can now be implementation details 2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
427b619ca5 parametersystem: use a std::function instead of template parameter for callback
allows putting implementation in translation unit and this is hardly
performance critical
2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
bc83bb6e1c parametersystem: introduce translation unit 2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
05f01bf819 parametersystem.hh: rename to .hpp 2024-09-05 10:07:40 +02:00
Arne Morten Kvarving
2bdab9e518 parametersystem: pass add callback for adding keys to positional parameter handler
this way the backing store for the parameters can be an implementation
detail of the parameter system
2024-09-05 10:07:40 +02:00
Bård Skaflestad
be94b037bc
Merge pull request #5579 from bska/dont-count-cells-if-not-needed
Don't Count Cells Unless Needed
2024-09-05 10:04:41 +02:00
Bård Skaflestad
329ad50e59 Don't Count Cells Unless Needed
If the user chooses a specific number of NLDD domains, there is no
need to compute the default number of domains based on a specific
target number of cells per domain.  Defer the, potentially costly,
calculation to when we know we need it.

While here, also split/rejoin a couple of long lines.
2024-09-05 09:45:16 +02:00