Commit Graph

799 Commits

Author SHA1 Message Date
Arne Morten Kvarving
daea73d696 simulator: drop unnecessary wrapper function 2024-09-05 13:32:15 +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
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
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
Arne Morten Kvarving
d36fefd428 fixed: build without MPI 2024-09-04 12:51:05 +02:00
Arne Morten Kvarving
c4871367e8 fixed: building without float simulators
pointy hat is all mine
2024-09-04 12:51:05 +02:00
Arne Morten Kvarving
f838cb6ecf timer: introduce translation unit 2024-09-04 12:06:52 +02:00
Arne Morten Kvarving
b3e08b4f2f timer.hh: rename to timer.hpp 2024-09-04 12:06:35 +02:00
Arne Morten Kvarving
13b575eae9 tasklets: introduce translation unit 2024-09-04 12:06:21 +02:00
Arne Morten Kvarving
d35d80427e tasklets.hh: rename to tasklets.hpp 2024-09-04 12:06:21 +02:00
Arne Morten Kvarving
27f9277c47 mpiutil: add translation unit 2024-09-04 12:06:21 +02:00
Arne Morten Kvarving
fcd0168691 mpiutil.hh: rename to mpiutil.hpp 2024-09-04 12:06:21 +02:00
Arne Morten Kvarving
e7a9c4cd21 threadmanager: remove unused typetag template parameter
and move implementation to a translation unit
2024-09-04 12:06:21 +02:00
Arne Morten Kvarving
3ee5eddf48 threadmanager.hh: rename to threadmanager.hpp 2024-09-04 11:32:21 +02:00
Arne Morten Kvarving
55a0a6da54 blackoilsolventparams: introduce translation unit
move code for loading parameters from eclipse state into it
2024-09-04 11:17:40 +02:00
Arne Morten Kvarving
6ceeb3098e blackoilsolventparams.hh: rename to blackoilsolventparams.hpp 2024-09-04 11:17:40 +02:00
Arne Morten Kvarving
3aed1aa7f9 blackoilpolymerparams: introduce translation unit
move code for loading parameters from eclipse state into it
2024-09-04 11:17:40 +02:00
Arne Morten Kvarving
85cc5ffa5f blackoilpolymerparams.hh: rename to blackoilpolymerparams.hpp 2024-09-04 09:21:09 +02:00
Arne Morten Kvarving
5a567de3e2 blackoilmicpparams: introduce translation unit
move code for loading parameters from eclipse state into it
2024-09-04 09:17:26 +02:00
Arne Morten Kvarving
e1453e5a48 blackoilmicpparams.hh: rename to blackoilmicpparams.hpp 2024-09-04 09:16:34 +02:00
Arne Morten Kvarving
f6d3893093 blackoilfoamparams: introduce translation unit
move code for loading parameters from eclipse state into it
2024-09-04 09:13:02 +02:00
Arne Morten Kvarving
6bb6e3db43 blackoilfoamparams.hh: rename to blackoilfoamparams.hpp 2024-09-04 09:11:58 +02:00
Arne Morten Kvarving
a04d9fdd00 blackoilextboparams: introduce translation unit
move code for loading parameters from eclipse state into it
2024-09-04 09:08:12 +02:00
Arne Morten Kvarving
9fd99ab232 blackoilexboparams.hh: rename to blackoilextboparams.hpp 2024-09-04 09:06:59 +02:00
Arne Morten Kvarving
a51e13c244 blackoilbrineparams: introduce translation unit
move code for loading parameters from eclipse state into it
2024-09-04 09:02:17 +02:00
Arne Morten Kvarving
99d64ff7ec blackoilbrineparams.hh: rename to blackoilbrineparams.hpp 2024-09-04 09:00:02 +02:00
Bård Skaflestad
f5aeffc8f5 Merge pull request #896 from akva2/floats
Add necessary changes to build float simulators
2024-08-30 15:28:34 +02:00
Kai Bao
818f8b9ee3 Merge pull request #877 from hnil/no_early_exit_zero_flux
Avoid deleting derivatives with zero pressure difference
2024-08-29 14:46:00 +02:00
Arne Morten Kvarving
61abbc2de9 consistently use Scalar type 2024-08-23 11:04:20 +02:00
Arne Morten Kvarving
43fafc1ada BlackoilMICPModules: fix field prop copy if Scalar is float 2024-08-23 11:04:20 +02:00
Tor Harald Sandve
fa610b49a3 Merge pull request #924 from totto82/drsdtcon_pvtnum
support drsdtcon with pvtnum
2024-08-22 14:30:18 +02:00
hnil
23034c0bee Avoid deleting derivatives with zero pressure difference 2024-08-22 11:44:59 +02:00
Arne Morten Kvarving
a7737fe5ae remove typetag based parameter system 2024-08-16 17:13:56 +02:00
Bård Skaflestad
d9863d5e32 Don't Require Floating Point from_chars() Function
This commit broadens the scope of commit c1e2a3a9b (PR #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).
2024-08-15 18:16:38 +02:00
Tor Harald Sandve
2b7fe4cae0 support drsdtcon with pvtnum 2024-08-14 15:07:34 +02:00
Arne Morten Kvarving
62a180447c move LinearSolver parameters to TypeTag-free parameter system 2024-08-14 12:47:59 +02:00
Arne Morten Kvarving
0a40ed2950 move BlackoilNewtonMethod parameters to TypeTag-free parameter system 2024-08-14 09:30:45 +02:00
Arne Morten Kvarving
f14c73857b move EnableGravity to TypeTag-free parameter system 2024-08-14 09:30:45 +02:00
Arne Morten Kvarving
1a74100d00 move VtkDiscreteFractureModule parameters to TypeTag-free parameter system 2024-08-14 09:13:10 +02:00
Arne Morten Kvarving
5c108be7f3 move VtkPtFlashModule parameters to TypeTag-free parameter system 2024-08-14 09:12:05 +02:00
Arne Morten Kvarving
f011bb517f move VtkBlackoilMICPModule parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
Arne Morten Kvarving
46b5b99495 move VtkBlackoilModule parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
Arne Morten Kvarving
e388125e6d move VtkTemperatureModule parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
Arne Morten Kvarving
8b860aac07 move VtkEnergyModule parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
Arne Morten Kvarving
3c92550f74 move VtkSolventModule parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
Arne Morten Kvarving
bd582e8150 move VtkPrimaryVars parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
Arne Morten Kvarving
185b4d90d5 move VtkPhasePresence parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
Arne Morten Kvarving
4853860d46 move VtkBlackoilEnergyModule parameters to TypeTag-free parameter system 2024-08-14 09:06:25 +02:00
Arne Morten Kvarving
19e8c394cf move VtkCompositionModule parameters to TypeTag-free parameter system 2024-08-14 09:06:25 +02:00
Arne Morten Kvarving
f97959c72c move VtkDiffusionModule parameters to TypeTag-free parameter system 2024-08-14 09:06:18 +02:00
Arne Morten Kvarving
26114b7e06 move VtkMultiphaseModule parameters to TypeTag-free parameter system 2024-08-14 09:06:18 +02:00
Arne Morten Kvarving
ee578104a6 move VtkBlackoilPolymerModule parameters to TypeTag-free parameter system 2024-08-14 09:06:18 +02:00
Arne Morten Kvarving
84d5044d83 move NewtonMaxIterations to TypeTag-free parameter system 2024-08-14 09:06:18 +02:00
Arne Morten Kvarving
930e6c8adf move NewtonTargetIterations to TypeTag-free parameter system 2024-08-14 09:06:18 +02:00
Arne Morten Kvarving
8285d999e8 move NewtonMaxError parameter to TypeTag-free parameter system 2024-08-14 09:06:10 +02:00
Arne Morten Kvarving
73344cfb60 move NewtonTolerance to TypeTag-free parameter system 2024-08-13 20:13:18 +02:00
Arne Morten Kvarving
6d649be5db move NewtonWriteConvergence to TypeTag-free parameter system 2024-08-13 20:13:18 +02:00
Arne Morten Kvarving
36b05f9295 move NewtonVerbose to TypeTag-free parameter system 2024-08-13 20:13:18 +02:00
Bård Skaflestad
b76dd13afc Merge pull request #923 from akva2/typetag_free_params1
Move more parameters to typetag-free parameter system
2024-08-13 19:43:58 +02:00
Arne Morten Kvarving
a480fe56b8 move EnableThermodynamicHints to TypeTag-free parameter system 2024-08-13 14:29:57 +02:00
Arne Morten Kvarving
32667526e0 move EnableStorageCache to TypeTag-free parameter system 2024-08-13 14:02:40 +02:00
Arne Morten Kvarving
5b7fd50d1e move EnableIntensiveQuantityCache to TypeTag-free parameter system 2024-08-13 13:38:15 +02:00
Arne Morten Kvarving
af30ebf0f7 move ContinueOnConvergenceError to TypeTag-free parameter system 2024-08-13 13:01:36 +02:00
Arne Morten Kvarving
07dcd1a431 move MaxTimestepDivisions to TypeTag-free parameter system 2024-08-13 12:30:43 +02:00
Arne Morten Kvarving
508422faf5 move MinTimestepSize to TypeTag-free parameter system 2024-08-13 12:02:15 +02:00
Arne Morten Kvarving
08002caa53 move MaxTimestepSize to TypeTag-free parameter system 2024-08-13 11:37:22 +02:00
Arne Morten Kvarving
c979eae201 move EnableVtkOutput to TypeTag-free parameter system 2024-08-13 10:34:22 +02:00
Arne Morten Kvarving
8a67f44793 move OutputDir parameter to TypeTag-less implementation 2024-08-13 10:05:53 +02:00
Bård Skaflestad
6b724aacc1 Merge pull request #921 from akva2/typetag_free_params_no_downstream
Start moving parameters to new parameter system
2024-08-12 19:45:28 +02:00
Bård Skaflestad
8d382f7dcb Merge pull request #922 from atgeirr/from_char-workaround
Add workaround for libc++ incomplete from_chars().
2024-08-12 18:38:22 +02:00
Arne Morten Kvarving
805e0a4bb7 move EnableGridAdaptation to TypeTag-free parameter system 2024-08-12 15:49:47 +02:00
Arne Morten Kvarving
f6abb4671e move ThreadsPerProcess to TypeTag-free parameter system 2024-08-12 15:49:47 +02:00
Arne Morten Kvarving
a2cbb8cb02 move InitialTimeStepSize to TypeTag-free parameter system 2024-08-12 15:49:47 +02:00