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
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
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
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
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
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
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
Arne Morten Kvarving
f5c7bada37
move EndTime to TypeTag-free parameter system
2024-08-12 15:49:47 +02:00
Arne Morten Kvarving
d95c049936
move RestartTime to TypeTag-free parameter system
2024-08-12 15:49:47 +02:00
Arne Morten Kvarving
0e3d9604ab
move PrintParameters to TypeTag-free parameter system
2024-08-12 15:49:47 +02:00
Arne Morten Kvarving
6c7f40b786
move PredeterminedTimeStepsFile to TypeTag-free parameter system
2024-08-12 15:49:47 +02:00
Arne Morten Kvarving
0509285170
move DomainSize(X|Y|Z) to TypeTag-free parameter system
2024-08-12 15:40:31 +02:00
Arne Morten Kvarving
25aed6d79a
move Cells(X|Y|Z) to TypeTag-free parameter system
2024-08-12 15:40:31 +02:00
Arne Morten Kvarving
d2096030e5
move FlashTwoPhaseMethod to TypeTag-free parameter system
2024-08-12 15:40:28 +02:00
Arne Morten Kvarving
4905289325
move GridFile to TypeTag-free parameter system
2024-08-12 15:20:28 +02:00
Arne Morten Kvarving
b4f3e65740
move GridGlobalRefinements to TypeTag-free parameter system
2024-08-12 15:20:28 +02:00
Arne Morten Kvarving
b424c380fa
move ParameterFile to TypeTag-free parameter system
2024-08-12 15:20:28 +02:00
Arne Morten Kvarving
3d737c0303
ParameterSystem: add support for quad Scalar
2024-08-12 15:20:28 +02:00
Atgeirr Flø Rasmussen
c1e2a3a9b3
Add workaround from libc++ incomplete from_chars().
...
Float version not included in current version (15).
2024-08-12 13:32:40 +02:00
Arne Morten Kvarving
129e15bd0a
ParameterSystem: add overloads for typetag free parameter system
2024-08-09 15:24:43 +02:00