Commit Graph

3052 Commits

Author SHA1 Message Date
Atgeirr Flø Rasmussen
d8de94a5da Bugfix: use sufficient quadrature order. 2012-12-18 14:12:56 +01:00
osae
d1aada8d81 Support for keywords ENPTVD and ENKRVD. 2012-12-17 14:02:30 +01:00
osae
cf5eab8794 Loop index. 2012-12-17 13:58:20 +01:00
Atgeirr Flø Rasmussen
b66920203d Ensure correct output in case of Lapack error.
Make sure that we output the original values, since Lapack may overwrite those
used in the call.
2012-12-17 11:07:40 +01:00
Atgeirr Flø Rasmussen
389a943f34 Bugfix: multiply by edge length in 2d face quadrature weights. 2012-12-14 13:17:36 +01:00
Atgeirr Flø Rasmussen
ff1bfc810a Implemented 2d quadrature rules for degree 1 and 2 (order 2 and 3).
Also added cartesian 2d cell testcase.
2012-12-14 12:22:56 +01:00
osae
7510ded183 Fixed loop index and added parameter check. 2012-12-07 14:52:00 +01:00
osae
d5edb42b31 Removed tabs. 2012-12-07 14:52:00 +01:00
osae
f41b82da3d Scaling of relperm functions - oil/water systems.
opm/core/eclipse/EclipseGridParser.cpp
opm/core/eclipse/EclipseGridParser.hpp
- New keywords: ENDSCALE SCALECRS SWCR SWL SWU SOWCR KRW KRWR KRO KRORW

opm/core/eclipse/SpecialEclipseFields.hpp
- Parsers for ENDSCALE and SCALECRS.

opm/core/fluid/BlackoilPropertiesFromDeck.cpp
- Consistency check: ENDSCALE implemented for SatFuncSimple only.

opm/core/fluid/SatFuncGwseg.hpp
opm/core/fluid/SatFuncSimple.hpp
opm/core/fluid/SatFuncStone2.hpp
- Accomodate "default" values for scalable parameters.
- For SatFuncGwseg and SatFuncStone2 the associated functionality not
  yet supported and the variables are dummies to satisfy the compiler.

opm/core/fluid/SatFuncSimple.cpp
- Initialisation for scalable parameters.
- Evaluation of relperms: Use (1-so) for evaluation of oil-relperms.
  (For scaled arguments sw and so do not necessarily add to one.)
- TODO: SatFuncGwseg.cpp and SatFuncStone2.cpp for oil-water systems.

opm/core/fluid/SaturationPropsFromDeck.hpp
- Struct to accomodate cell-wise scaling factors.
- Two flags indicating scaling and method.
- Methods for parameter initialisation and scaled relperm computation.

opm/core/fluid/SaturationPropsFromDeck_impl.hpp
- Initialize scaling options and relevant cell-wise scaling factors.
- Relperm evaluation modified for possible end point scaling.
2012-12-07 14:52:00 +01:00
Atgeirr Flø Rasmussen
91f9b3c2de Modify precision for quadrature depending on use of CVI method. 2012-12-06 10:18:57 +01:00
Bård Skaflestad
a8e5986649 Merge pull request #108 from atgeirr/separate-quadrature-from-dg
Separate quadrature from dg
2012-12-05 10:53:09 -08:00
Atgeirr Flø Rasmussen
ec716fe1d8 No longer ignores boundary fluxes.
This means that the class does expect source terms that are just that, and not
'transport source' terms that include boundary inflows (like the transport
solvers expect). This is also consistent with the behaviour of the DG version.
2012-12-05 10:39:00 +01:00
Atgeirr Flø Rasmussen
1c51623f48 Add test program for quadratures.
So far only tests on a single cartesian 3D cell.
2012-12-04 20:57:09 +01:00
Atgeirr Flø Rasmussen
980d6eb482 CellQuadrature works only for 3D, enforce it. 2012-12-04 20:56:05 +01:00
Atgeirr Flø Rasmussen
8132cb21b9 Adapt to moved [Cell|Face]Quadrature classes.
Also fix a minor issue with potentially buggy error output after LAPACK failure.
2012-12-04 16:11:05 +01:00
Atgeirr Flø Rasmussen
d347d86f82 Moved FaceQuadrature and CellQuadrature classes to their own files. 2012-12-04 16:10:07 +01:00
Bård Skaflestad
8741c93a1a Merge pull request #107 from blattms/issue-106-superlu
Make superlu available in all OPM modules again.
2012-12-03 15:04:06 -08:00
Markus Blatt
2c63359542 Added a guard to the SuperLU test. If HAVE_SUPERLU is 1 from a run of the
SuperLU test within DUNE, we skip testing for it again as the additional test
would fail in some cases.
2012-12-03 16:47:04 +01:00
Bård Skaflestad
3419c69623 Merge pull request #104 from atgeirr/no-ert-conditional
Made compilation of writeECLData.[ch]pp unconditional.
2012-12-03 00:13:10 -08:00
Atgeirr Flø Rasmussen
696d038ebc Bugfix: update prototype of no-ert writeECLData(). 2012-12-03 08:55:58 +01:00
Atgeirr Flø Rasmussen
eeed5ca337 Include writeECLData.[ch]pp with the rest of the files.
Removed all traces of the ert conditional.
2012-12-03 08:54:43 +01:00
Bård Skaflestad
bcfdd8698c Merge pull request #105 from rolk/dash
Package files (.pc and -config.cmake) consistent with DUNE
2012-12-02 05:26:58 -08:00
Roland Kaufmann
76fb33037a Provide CMake config mode file on par with pkg-config
Rename the module from 'opmcore' to 'opm-core' to be consistent with
DUNE, retrieve the settings from pkg-config instead of having them
written by Autotools, as the PkgConfig module does all untangling of
options for us.
2012-11-30 13:36:45 +01:00
Roland Kaufmann
ea2bb23bf8 Include all libraries and headers necessary to build
List all dependencies of opm-core as well as the library itself;
otherwise the user must generate the list of dependencies, including
all the probes.
2012-11-30 13:36:45 +01:00
Atgeirr Flø Rasmussen
013c7dc162 Made compilation of writeECLData.[ch]pp unconditional. 2012-11-30 12:26:34 +01:00
Atgeirr Flø Rasmussen
2d8610d773 Merge pull request #101 from atgeirr/new-interface-for-ecl-output
Made saveEGRID() method available unconditionally.
2012-11-26 05:03:31 -08:00
Atgeirr Flø Rasmussen
26b3053989 Made saveEGRID() method available unconditionally.
Will throw if called without ERT support, though.
2012-11-26 14:01:06 +01:00
Atgeirr Flø Rasmussen
63bed78c11 Merge pull request #100 from atgeirr/new-interface-for-ecl-output
New interface for ecl output
2012-11-26 03:25:59 -08:00
Atgeirr Flø Rasmussen
205f8c887b Changed interface of writeECLData(). 2012-11-26 10:51:20 +01:00
Atgeirr Flø Rasmussen
81c022e79a Make DataMap.hpp properly include its dependencies. 2012-11-26 10:50:09 +01:00
Atgeirr Flø Rasmussen
0526657355 Document function currentDateTime(). 2012-11-26 10:49:15 +01:00
Bård Skaflestad
a2dccf7a8f Merge pull request #99 from atgeirr/binary_io
Add missing header file to distribution.
2012-11-15 03:28:59 -08:00
Atgeirr Flø Rasmussen
96f941b840 Merge branch 'master' into binary_io 2012-11-15 09:28:37 +01:00
Atgeirr Flø Rasmussen
3bf22a67b2 Merge pull request #97 from atgeirr/relax-function-call-semantics
Remove unneeded assert.
2012-11-14 23:55:43 -08:00
Atgeirr Flø Rasmussen
2b0e570842 Make explicit intention to do nothing on empty input. 2012-11-15 08:54:45 +01:00
Atgeirr Flø Rasmussen
d58dded067 Merge pull request #98 from bska/use-standard-lin-index
Derive 'start' from traditional linear index expression
2012-11-14 23:51:20 -08:00
Bård Skaflestad
0d1603d705 Derive 'start' from traditional linear index expression
In particular, this replaces the opaque 'off'-based expression with one
that is easier to verify on inspection.
2012-11-14 21:33:45 +01:00
Atgeirr Flø Rasmussen
e17d5e6499 Remove unneeded assert().
Function is safe to call with empty vectors.
2012-11-14 15:30:25 +01:00
Bård Skaflestad
800b20b70c Merge pull request #96 from atgeirr/bugfix-preprocessing
Fix bug in computing correct ZCORN indices for grid cell.
2012-11-14 06:09:14 -08:00
Atgeirr Flø Rasmussen
ebf9514686 Improve clarity of previous bugfix (no functional change). 2012-11-14 15:05:53 +01:00
Atgeirr Flø Rasmussen
0a6a723ae9 Fix bug in computing correct ZCORN indices for grid cell. 2012-11-14 14:31:51 +01:00
Atgeirr Flø Rasmussen
fab3ea9723 Merge pull request #93 from bska/ert-nondefault-location-build-fix
Fix build if ERT is installed in a non-default location
2012-11-08 23:31:48 -08:00
Atgeirr Flø Rasmussen
8af339d6be Merge pull request #92 from bska/signed-vs-unsigned-ert
Fix signed-vs-unsigned comparison warning
2012-11-08 23:30:45 -08:00
Atgeirr Flø Rasmussen
a53b71233a Add missing header file to distribution. 2012-11-08 14:15:15 +01:00
Bård Skaflestad
55263da177 Fix build if ERT is installed in non-default location
The existing description did not properly account for ERT (or, more
appropriately, the "libecl" part of ERT) being installed in a
non-default location (e.g., somewhere below ${HOME}).

As EclipseGridParser.hpp declares various ERT-dependent types and
functions if a build configuration supports ERT (activated by the
`--with-ert' configure option), we need a proper include path to
reference the ERT headers.  The fix is simple--just insert the
$(ERT_CPPFLAGS) into the already existing $(AM_CPPFLAGS).
2012-11-08 13:59:19 +01:00
Bård Skaflestad
44f54cb712 Fix signed-vs-unsigned comparison warning
The existing code compared the output of data->size(), which is a
std::vector<double>::size_type (typically std::size_t) and therefore an
unsigned integer type to the number 'grid.number_of_cells' which is a
(signed) 'int'.  This leads to an annoying warning when increasing the
warning level in GCC.

While here, also insert code to verify that the 'stride' is a positive
number lest the subsequent assignment loop reference (*data) elements
out of bounds.
2012-11-07 17:23:45 +01:00
Bård Skaflestad
eb4bf0a373 Merge pull request #91 from joakim-hove/writeEclActive
Write ecl active
2012-11-07 06:40:00 -08:00
Joakim Hove
43adfaeda5 Added start_date_ property to the SimulatorTimer class 2012-11-07 14:53:26 +01:00
Joakim Hove
a3efb49de2 Added comments + make sure to only export active cells in writeEclData 2012-11-07 13:31:46 +01:00
Bård Skaflestad
d399b2d7cc Merge pull request #89 from atgeirr/gravity-in-wells
Gravity in wells
2012-11-07 03:53:04 -08:00