Commit Graph

134 Commits

Author SHA1 Message Date
Bård Skaflestad
bdf6951e62 Restore Builds With Dune in Non-Default Installed Locations
In general we'd need to link to dune-common ("target_link_library")
to get the appropriate include directories for Dune in that case,
but in this specific instance we can get by with not specialising
Dune's 'className' function if Dune is not available.

Thanks to [at]akva2 for suggesting this workaround.
2023-03-16 12:44:17 +01:00
hnil
c0086e7be8 fixed remaining comments 2023-03-03 16:36:50 +01:00
hnil
e8b87af11a removed segment index from old code to avoid extra diffs 2023-03-03 15:03:16 +01:00
hnil
3cd55b5290 - changed materialsparams to not use shared pointers
- added interface of reusing search in tables

- fixed after modifiying files for minimal diffs

fixed NDEBUG things

fixed from review
2023-03-03 14:43:50 +01:00
Arne Morten Kvarving
a03a03af36 Tabulated1DFunction: move stream output to compile unit 2023-01-02 15:50:41 +01:00
Arne Morten Kvarving
cf41f01625 Tabulated1DFunction: avoid using sstream 2023-01-02 15:50:41 +01:00
Arne Morten Kvarving
a631ef7ce9 UniformXTabulated2DFunction: move stream output to compile unit 2023-01-02 15:50:41 +01:00
Arne Morten Kvarving
8aace8e1d5 UniformXTabulated2DFunction: avoid using sstream 2023-01-02 15:50:41 +01:00
Arne Morten Kvarving
7d386d9082 TridiagonalMatrix: move stream output to compile unit 2023-01-02 15:50:41 +01:00
Arne Morten Kvarving
c7d1fb33e7 Spline: move stream output to compile unit 2023-01-02 15:50:41 +01:00
Arne Morten Kvarving
a82ad9e86a IntervalTabulated2DFunction: avoid using sstream 2023-01-02 15:50:41 +01:00
Arne Morten Kvarving
a999c06862 remove unused header
it will never be used either as opm requires c++17 now
which means final is always supported
2022-12-15 14:05:44 +01:00
Arne Morten Kvarving
9a77d47c35 changed: drop exceptions class from material
use the opm-common exception classes directly
2022-12-13 12:47:20 +01:00
Arne Morten Kvarving
207d280ee4 remove HAVE_OPM_COMMON conditionals 2022-12-08 14:03:15 +01:00
Kai Bao
c22d8e66be checking whether the value is finite
when findSegmentIndex_ for Tabulated1DFunction.
2022-09-22 15:55:52 +02:00
Kai Bao
3e74c703c0 changing assertions to throw with information output
for function findSegmentIndex_ of class Tabulated1DFunction
2022-09-21 10:32:57 +02:00
Tor Harald Sandve
d7503a52f0 fix bug for assigning from reversed order samples in the Spline.hpp 2022-08-26 08:35:07 +02:00
Markus Blatt
9bb9caaec3 Merge pull request #522 from akva2/remove_unused
Remove Unused.hpp
2022-08-02 14:19:10 +02:00
Arne Morten Kvarving
6e96bada9b remove now unused Unused.hpp 2022-08-02 10:32:12 +02:00
Arne Morten Kvarving
260a0c2dc3 replace Unused.hpp with [[maybe_unused]] or anonymous variables 2022-08-02 10:32:00 +02:00
Arne Morten Kvarving
cb9f01df4e remove unused includes of Unused.hpp 2022-08-02 10:16:25 +02:00
Arne Morten Kvarving
e96594d32c Valgrind: get rid of Unused.hpp usage 2022-08-02 09:58:30 +02:00
Atgeirr Flø Rasmussen
2e131727a8 Merge pull request #482 from akva2/avoid_manual_mem_management
changed: avoid manual memory management
2022-08-02 08:44:32 +02:00
Trine Mykkeltvedt
659ae7e846 fixed some jenkins warnings 2022-06-28 13:28:49 +02:00
Trine Mykkeltvedt
e8d9f6ca0f removed some printing in the polynomialsolver 2022-06-23 14:23:17 +02:00
Trine Mykkeltvedt
59a521d46d added new cubic solver from Svenns old branch, also made a phaseStabilityTestMichelsen_ with the same wrapping as julia code - this does not work with newton right now. BUT the fix of the roots makes the stabilitytest give similar K as Olavs Julia code. Will never be completely equal due to minimization through gibbs (not implemented in opm) which will different choize of roots 2022-06-08 08:46:52 +02:00
Trine Mykkeltvedt
f4e6b700a3 added Svenns cubic solver 2022-06-08 08:46:52 +02:00
Arne Morten Kvarving
90a925ff1a changed: avoid manual memory management 2021-11-04 15:33:35 +01:00
Markus Blatt
dd1bb73472 Fixed old type extend -> extent 2021-09-28 17:07:25 +02:00
Markus Blatt
868531e414 Extrapolate for values not in domain (UniformTabulated2DFunction/liquidDensity).
Extrapolate liquidDensity for unreasonable
pressure/temperature (Brine) and in UniformTabulated2DFunction.
In the current code the interpolation actually already works if the
values are outside of the tabulated region.

With this change there is now an additional function parameter
If it is true we will interpolate for every value instead of throwing
and aborting (was the case always before).
2021-09-28 16:34:42 +02:00
Arne Morten Kvarving
24dba01e99 changed: get rid of OPM_UNUSED macro usage
prefer anonymous parameters and c++17 [[maybe_unused]]
2021-08-03 09:32:02 +02:00
Arne Morten Kvarving
50c8cbea78 fixed: do not assert conditions guaranteed by unsigned 2021-06-18 13:24:02 +02:00
Arne Morten Kvarving
1a75bd9ab4 avoid signed/unsigned comparison warnings 2021-06-09 08:30:39 +02:00
Arne Morten Kvarving
69970a0602 add missing includes 2021-06-09 08:30:01 +02:00
Arne Morten Kvarving
6689e6d08f fixed: do not use Opm:: prefix within Opm namespace part 2
have to use anchoring to root namespace in some places due
to overlapping namespace and class type names.
2021-05-05 21:58:33 +02:00
Arne Morten Kvarving
75b2609336 test if apple clang likes this better 2020-12-08 15:27:50 +01:00
Joakim Hove
1315acfe51 Remove unusued #include common excpetions 2020-09-21 10:56:05 +02:00
Arne Morten Kvarving
8909d471e8 disable assert
this triggers while running a thermal deck (SPE1CASE2_THERMAL),
but there is no apparent reason why it is an error.
2020-01-29 08:48:39 +01:00
Arne Morten Kvarving
059c6b58aa add accessors and equality operator to Uniform(X)Tabulated2DFunction 2019-12-19 10:45:05 +01:00
Arne Morten Kvarving
52d310760b add accessors and equality operator to IntervalTabulated2DFunction 2019-12-19 10:32:47 +01:00
Arne Morten Kvarving
5a23d7ffca add accessors and equality operator to Tabulated1DFunction 2019-12-19 10:27:50 +01:00
Arne Morten Kvarving
8c2cb50569 added: OPM_UNUSED_NOMPI
for suppressing unused variable warnings when a variable
is unused if compiled without MPI
2019-06-28 13:49:13 +02:00
Kai Bao
292e84ec08 fixing the compilation problem related to DenseAD 2019-06-12 14:53:54 +02:00
Andreas Lauser
3b933ae42a unify the creation of evalutions
to create a constant, there are now always the three functions

Opm::constant<Eval>(value);
Opm::constant<Eval>(numDeriv, value);
Opm::constant<Eval>(x, value); // with 'x' being the 'template' of the returned value

If a given call does not make sense, an exception is thrown:

- Plain floating point objects like `float`, `double` or `quad`
  complain if the specified number of derivatives is not zero.
- Statically sized evaluations throw if the specified number of
  derivatives of passed to the function is not equal to their static
  size.
- Dynamically sized evaluations complain if the number of derivatives
  cannot be determined.

The third variant of `Opm::constant()` works unconditionally. The
`Opm::variable()` helpers are modified analogously.
2019-06-12 11:50:37 +02:00
Tor Harald Sandve
a62ea4b0f1 Add log10 AD function 2019-06-03 11:22:42 +02:00
Andreas Lauser
438653d0b5 UniformXTabulated2DFunction: minor cleanups 2019-05-03 14:30:30 +02:00
Atgeirr Flø Rasmussen
77c963167f Merge pull request #328 from atgeirr/interpolation_2d_miscibility_fix
Interpolation 2d miscibility fix
2019-04-02 08:20:02 +02:00
Atgeirr Flø Rasmussen
f8d11efe82 Added explanatory comments about the use of 'shift'. 2019-04-01 14:08:18 +02:00
Atgeirr Flø Rasmussen
322c6fb0ff Address review issues. 2019-03-29 11:48:35 +01:00
hnil
5399d72477 Change 2D interpolation of live oil and wet gas.
Interpolation is now done parallel to the saturated/unsaturated boundary lines,
instead of axis-aligned.
2019-03-22 14:08:28 +01:00