Commit Graph

1198 Commits

Author SHA1 Message Date
Andreas Lauser
e3e79e6562 Merge pull request #85 from andlaus/fix_headercheck
UniformXTabulated2DFunction: include missing header file
2015-10-21 18:18:20 +02:00
Andreas Lauser
ddc54a3e46 UniformXTabulated2DFunction: include missing header file
for some reason, this did not trigger before...
2015-10-21 18:16:11 +02:00
Andreas Lauser
2af0a8da26 Merge pull request #82 from andlaus/fix_gcc5_warnings
fix GCC5 sign comparison warning
2015-10-19 12:33:39 +02:00
Andreas Lauser
a36db0a5a9 fix GCC5 sign comparison warning 2015-10-19 12:32:41 +02:00
Andreas Lauser
4c0a471f30 Merge pull request #80 from andlaus/fix_gcc5_warnings
blackoil-PVT: fix a few "non-void method may not return anything" warnings on GCC5
2015-10-14 13:38:22 +02:00
Andreas Lauser
a347461486 blackoil-PVT: fix a few "non-void method may not return anything" warnings on GCC5
this warning is a false positive because the branch of the switch
statement which does not return a value throws an exception instead.
2015-10-13 14:14:38 +02:00
Andreas Lauser
8b4d3c644c Merge pull request #79 from andlaus/fix_gcc44
fix build on GCC 4.4
2015-10-13 13:35:47 +02:00
Andreas Lauser
5622351d5e fix build on GCC 4.4
the explicit include of <array> is beneficial anyway.
2015-10-13 11:46:19 +02:00
Andreas Lauser
191330f55a Merge pull request #78 from totto82/fix_family2deck
Fix the SOF3 input  to make the KROW input similar as in SWOF.
2015-10-12 17:20:58 +02:00
Tor Harald Sandve
4a42a2af8e Fix the SOF3 input to make the KROW input similar as in SWOF. 2015-10-12 14:26:19 +02:00
Atgeirr Flø Rasmussen
a20978000d Merge pull request #76 from andlaus/error_macros_to_opm_common
use the error macros from opm-common
2015-10-12 13:31:46 +02:00
Markus Blatt
60b4169283 Give access to the shared_ptr of the parameters.
This is needed to keep the pointer structure when creating
a new material law manager for just a subgrid.
2015-10-08 12:16:12 +02:00
Andreas Lauser
d52579277a use the error macros from opm-common 2015-10-08 11:49:10 +02:00
Andreas Lauser
7646a4e17a Merge pull request #75 from andlaus/remove_assertation_in_eps
EclEpsScalingPoints: remove incorrect assertation
2015-10-07 21:26:45 +02:00
Andreas Lauser
a99f43428d EclEpsScalingPoints: remove incorrect assertation
the documentation only requires the maximum gas satuation to
correspond to 1-Swco, not that the gas and water relperms are equal at
that point.
2015-10-07 21:23:41 +02:00
Joakim Hove
151a5b87f5 Merge pull request #62 from joakim-hove/table-container
Table container
2015-10-05 14:46:37 +02:00
Joakim Hove
3136ec04ed Changed Table code to use TableContainer 2015-10-04 17:00:55 +02:00
Andreas Lauser
216dde38b4 Merge pull request #73 from andlaus/fix_EclMaterialLawManager_unit_test
fix the (newly added) unit test for EclMaterialLawManager
2015-10-01 20:39:14 +02:00
Andreas Lauser
e79f363d04 fix the (newly added) unit test for EclMaterialLawManager
the first reason why it failed was that the parameters are now
per-element instead of per-satregions. (this was merged after this was
written.) The second issue was a problem in the deck data: according
to the ECL reference manual (or the technical description, I don't
remember), the maximum relperms for the water and for the gas phase
must be equal, but in the test's decks they were not.
2015-10-01 15:57:01 +02:00
Andreas Lauser
6073558373 Merge pull request #69 from andlaus/various_stuff
various improvements
2015-09-30 12:24:19 +02:00
Andreas Lauser
731d2fccf1 various improvements
- add unit tests for the EclMaterialLawManager and the black-oil PVT classes
- rework the API of the blackoil PVT classes so that it follows the
  initFromDeck() pattern and uses multiplexer classes instead of
  dynamic polymorphism to select the concrete PVT approach
- the former change allowed to use the BlackOil fluid system with
  arbitrary Evaluations, i.e., it is not limited to a single
  Evaluation class which is specified as a class template argument
  anymore.
- more fixes for GCC and clang warnings. now it should be reasonably
  hard to trigger warnings using these compilers.

this commit squashes the following patches:

- add a unit test for the EclMaterialLawManager
- black oil: simplify the WaterPvtInterface
- add a unit test for the PVT classes of the black oil fluid system
- black oil: improvements to the PVT classes
- blackoil PVT: remove dynamic polymorphism
2015-09-29 14:09:19 +02:00
Andreas Lauser
e932fe0ff0 Merge pull request #68 from andlaus/remove_non_element_specific
EclMaterialLawManager: remove the non-element specific initialization
2015-09-28 23:36:13 +02:00
Andreas Lauser
cacf06468f EclMaterialLawManager: remove the non-element specific initialization
This simplifies the satfunc initialization code paths considerably and
avoids troubles with SWATINIT if endpoint scaling and hysteresis is
disabled. on the flipside it now requires more memory in the simple case.

It seems to me that the usual proverb about optimization holds once
more: Say 99.5% of all time: premature optimization is the root of all
evil.
2015-09-28 12:29:20 +02:00
Andreas Lauser
535746e178 Merge pull request #64 from blattms/do-not-store-compressedToCartesian-in-ECLMaterialLawManager
Do not store compressed to cartesian in ecl material law manager
2015-09-23 18:55:33 +02:00
Markus Blatt
1292fbdb43 Prevent missing return statement warning. 2015-09-23 17:11:58 +02:00
Markus Blatt
418c4a5c57 Prevent yet another signed-unsigned warning. 2015-09-23 17:11:08 +02:00
Markus Blatt
d0751b7ff4 Do not store compressedToCartesianIndex mapping
It is only needed during initialization and not afterwards.
Therefore we can save some space here.
2015-09-23 17:09:39 +02:00
Tor Harald Sandve
0526614fef Merge pull request #44 from andlaus/implement_twophase_ecl_satfuncs
various improvements to the ECL satfuncs
2015-09-23 14:50:57 +02:00
Andreas Lauser
b1f9d86974 make it work with single precision scalars 2015-09-23 12:53:13 +02:00
Andreas Lauser
17b7b3b7f3 EclDefaultMaterial: improve the division-by-zero avoidance logic 2015-09-23 12:53:13 +02:00
Andreas Lauser
7dffa66f96 EclDefaultMaterial: calculate the oil relperm according to the ECL technical description
the differences are not huge, but they can be seen...

(note that the "almost" match of the summary files with Eclipse is
still accomplished, but the "spot-on" match with the current opm-core
saturation functions goes away.)
2015-09-23 12:53:13 +02:00
Andreas Lauser
7faa1a8844 Merge pull request #63 from andlaus/fix_masochistic_warnings
Fix masochistic warnings
2015-09-23 12:37:31 +02:00
Andreas Lauser
a6499a01aa fix most of the warnings enabled by masochists
most of these people like to inflict pain on themselfs (i.e., warnings
in their own code), but they usually don't like if pain is inflicted
on them by others (i.e., warnings produced by external code which they
use). This patch should make these kinds of people happy. I'm not
really sure if the code is easier to understand with this, but at
least clang does not complain for most of the warnings of
"-Weverything" anymore.
2015-09-23 12:36:52 +02:00
Andreas Lauser
be1fd178f1 do not squelch unused argument warnings using casts to void
casts to void are not very explicit (in particular if they do not come
with a comment about their purpose). Instead, the names of unused
argument are now simply commented out or the OPM_UNUSED macro is used
for the few cases where this is not possible.
2015-09-23 12:35:45 +02:00
Andreas Lauser
9778a853e3 Merge pull request #61 from osae/fix-index-mixup
Buxfix - compressed versus cartesian index.
2015-09-23 12:34:51 +02:00
osae
4c08b6e5f4 Buxfix - compressed versus cartesian index. 2015-09-21 13:03:29 +02:00
Atgeirr Flø Rasmussen
044edeac4f Merge pull request #60 from atgeirr/silence-warning
Comment out unused argument.
2015-09-17 15:05:39 +02:00
Atgeirr Flø Rasmussen
337cf41d96 Comment out unused argument. 2015-09-17 15:04:46 +02:00
Atgeirr Flø Rasmussen
fd4b4bf6d1 Merge pull request #57 from atgeirr/silence-warnings
Silence warnings
2015-09-15 17:43:56 +02:00
Atgeirr Flø Rasmussen
1ebec84bd1 Remove unused code. 2015-09-15 17:41:09 +02:00
Atgeirr Flø Rasmussen
4768861535 Merge pull request #58 from totto82/fix_fam2
Use tabulated oil saturations directly in KROG for familyII
2015-09-15 14:37:39 +02:00
Tor Harald Sandve
ace6a25210 Use tabulated oil saturations directly in KROG for familyII
Revert bug introduced when refactoring the code in the process of
supporting two-phase simulations.
2015-09-15 13:35:09 +02:00
Atgeirr Flø Rasmussen
bba5e33973 Suppressed more warnings. 2015-09-14 17:15:04 +02:00
Atgeirr Flø Rasmussen
a5ecbd765c Silence unused argument warnings. 2015-09-11 14:32:59 +02:00
Atgeirr Flø Rasmussen
a15fa4444e Delete unused argument. 2015-09-11 14:32:36 +02:00
Atgeirr Flø Rasmussen
b3f6740a68 Silence more unused argument warnings. 2015-09-11 13:46:45 +02:00
Atgeirr Flø Rasmussen
db3d60eeae Avoid shadowing variables. 2015-09-11 13:38:09 +02:00
Atgeirr Flø Rasmussen
1f42957755 Silence some unused argument warnings. 2015-09-11 13:37:31 +02:00
Andreas Lauser
1b794a44f6 Merge pull request #55 from andlaus/wet_gas_fixes
blackoil: fix some screw ups with wet gas
2015-09-04 18:14:35 +02:00
Andreas Lauser
fb79b732d8 blackoil: fix some screw ups with wet gas 2015-09-04 14:33:19 +02:00