Commit Graph
38 Commits
Author SHA1 Message Date
Arne Morten Kvarving e41517a68e bump required dune version to 2.6
remove compatiblity code for older versions
2020-02-06 16:29:35 +01:00
Arne Morten Kvarving bfbf727c92 fixed: avoid unnecessary assignments 2019-07-10 10:02:21 +02:00
Arne Morten Kvarving e3ddc5b184 changed: relocate the remaining files in opm/core/utility
move to opm/common/utility/numeric# On branch master
2018-01-30 14:07:04 +01:00
Jørgen Kvalsvik d3f08246b0 Get CornerpointChopper.hpp; remove shared_ptrs
opm-parser no longer exposes shared_ptr or shared_ptr aliases.
2016-10-20 15:35:20 +02:00
Andreas Lauser 8af1929965 adapt to the removal of the unit system of opm-core
the one which is in opm-parser is now a drop-in replacement.
2016-10-10 17:31:02 +02:00
Bård Skaflestad ba0174ccd6 Upscaling Examples: Centralise ECLIPSE File Parsing
This commit moves the parseEclipseFile() function from the
upscale_relperm.cpp example to the RelPermUpscalerHelper class[%].
This, in turn, enables using the same implementation in most
relevant example utilities.

While here, also call the centralised {get,set}VoigtValue()
functions rather than local implementations.

[%] Suggested by: Arne Morten Kvarving
2016-04-20 10:12:14 +02:00
Bård Skaflestad 17fe369853 Upscaling Examples: Spring cleaning
Mostly:
  - Sort headers
  - Re-indent to fix white-space
  - Remove long-disabled code
2016-04-19 17:51:08 +02:00
Bård Skaflestad 4b461fa7f5 Extra Keywords: Use Reference Rather Than Pointer API
This commit switches function addNonStandardUpscalingKeywords() to
using a reference to a modifiable Parser rather than ParserPtr.
While here, also switch to using std::make_shared<>() when
constructing the parser object.
2016-04-18 13:59:25 +02:00
Bård Skaflestad 9fe93eea71 Examples: Adjust White-space and Sort Includes
No functional changes.
2016-04-18 13:59:25 +02:00
Bård Skaflestad 3a7573370a Chase ParseMode -> ParseContext Renaming in Examples 2016-03-17 10:34:59 +01:00
Jørgen Kvalsvik a5c9b39c8f Change Deck access methods/types to references
opm-parser#677 changes the return types for the Deck family of classes.
This patch fixes all broken code from that patch set.

https://github.com/OPM/opm-parser/pull/677
2016-02-16 16:52:28 +01:00
Jørgen Kvalsvik 30fe95e3d0 Improve includes from opm-parser
Adopting to opm-parser PR#661, add previously missing includes.

http://github.com/OPM/opm-parser/pull/661
2016-01-26 13:36:12 +01:00
Joakim Hove bb18fe0208 Added ParseMode argument 2015-07-27 15:00:25 +02:00
Bård Skaflestad 4a3544e3af Upscaling utilities: Don't hard-code numeric conversion factor
This commit replaces the hard-coded conversion factor from mD to
m**2 (metres squared) with an expression based on the Units.hpp
facility of module opm-core.

Note: This may introduce slight changes to the upscaling result due
to reduced rounding error in the unit conversions.
2014-10-20 11:15:50 +02:00
Atgeirr Flø Rasmussen 009bf57f29 Revert "Restore upscaling utility results" 2014-10-20 10:23:29 +02:00
Bård Skaflestad 85e6d32704 Upscaling utilities: Don't hard-code numeric conversion factor
This commit replaces the hard-coded conversion factor from mD to
m**2 (metres squared) with an expression based on the Units.hpp
facility of module opm-core.

Note: This may introduce slight changes to the upscaling result due
to reduced rounding error in the unit conversions.
2014-10-15 15:19:35 +02:00
Atgeirr Flø Rasmussen 886c463d9f Convert all upscaling programs to new pinch behaviour.
This means that PINCH must be used in the input deck,
whereas before, z_tolerance was available as a program
parameter (but only for some programs). A benefit is that
all programs will now uniformly accept PINCH in the input
decks.
2014-08-20 14:15:17 +02:00
Andreas Lauser 731dc9e687 add possibility to use ad-hoc upscaling keywords
this is currently just "RHO", an non-standard addition for
opm-upscaling and needs to be added to the Eclipse parser manually
before it is set loose on the deck file...
2014-05-19 12:03:11 +02:00
Andreas Lauser e138bd461d convert the module away from EclipseGridParser to opm-parser 2014-05-19 12:03:11 +02:00
Arne Morten Kvarving 24e2dff7c4 fixed: MPI handling across all apps
we need to call mpi_init when compiled against mpi (in particular mpich)
even if running with a single node.

this fixes this across all apps in a uniform way (the dune-intended approach)
2013-10-08 13:44:56 +02:00
Andreas Lauser 1908e1bf8f Add exception handlers to all unit tests, tutorials and examples 2013-09-03 14:59:13 +02:00
Bård Skaflestad a486d15a6e Disable build kluge that is no longer pertinent
The <have_boost_redef.hpp> header was introduced (commit
OPM/opm-core@82369f9) as a work-around for a particular interaction
in the Autotools-based setup of OPM-Core and the Dune core modules.
Notably, Dune's "Enable" trick for Boost failed on some older
Autoconf systems.  Now that we're using CMake, however, that kluge
is no longer needed because OPM-Core always

  #define HAVE_BOOST 1

i.e., as an explict true/false value.

Therefore, we need no longer include <have_boost_redef.hpp> .  The
header will be removed at a later time.
2013-06-20 23:24:33 +02:00
Roland Kaufmann 2e578426e9 Remove unused variable from example
The value set to this variable is never used, not even in comments
describing what one could do with it. Thus, it has no value as an
example. I want remove it to avoid the unnecessary warning when
compiling the project (currently the only one).
2013-03-07 10:28:54 +01:00
Andreas Lauser c4f0bb5680 change namespace from 'Dune' to 'Opm'
everything still compiles.
2013-02-05 16:05:02 +01:00
Bård Skaflestad 70a908c0fa Override Dune-ISTL's HAVE_BOOST symbol.
Use OPM-Core's `have_boost_redef.hpp' facility to effect the symbol
overriding.  Using Boost in OPM-Uscaling is non-optional.
2012-07-12 15:38:20 +02:00
Roland Kaufmann c4d99e3ea1 Specify namespace of math functions to avoid name clashes
In the 4.6.x range of GNU compilers, the cmath header include math.h, adding
isinf() and isnan() to the global namespace as well as std. When used in if
statements, there is then an ambiguity between the std version which returns
bool and the global function which returns int; for more details see:
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48891>

If we qualify the functions explicitly with their namespace, this error goes
away.
2012-06-27 15:04:41 +02:00
Bjørn Spjelkavik f49c249b35 Use common files from Opm instead of Dune. #3 2012-02-07 12:20:50 +01:00
Kari B. Skjerve 2f31cfa8d0 changed linsolver_tolerance to 1e-12, added check on swir/swor 2012-01-24 13:07:04 +01:00
Håvard Berland 3ff84b947a Bugfix upscale_cap: Crashed due to division by zero
upscale_cap crashed if there were unused SATNUM values, e.g
you only used SATNUM 1 and 3 in your grid. Then it would crash
trying to calculate Sw-values for the rocktype with zero
porevolume.
2011-09-29 14:35:23 +02:00
Håvard Berland ec721b8f96 Change handling of non-monotoneness in upscale_cap versus upscale_relperm
(revert of two last commits)

We now allow for pc vs sw to be non-strictly-monotone, because all
we need it for is to print a table.

Even better solution would be to use chopFlatEndpoints() and
shrinkFlatAreas() as in upscale_relperm.cpp, but this requires more
bookkeeping in upscale_cap.cpp due to watersaturation_rocktype[satidx]
2011-06-29 14:48:41 +02:00
Håvard Berland 43d5d59c5a fix bug in last commit (did not compile, it was only a partial port) 2011-06-29 13:33:14 +02:00
Håvard Berland 5bd47a9ba4 increase robustness of upscale_cap similarly to upscale_relperm 2011-06-29 13:30:01 +02:00
Håvard Berland 51d764b93e cleanup in version strings that has not been updated since svn-times 2011-06-24 14:13:40 +02:00
Håvard Berland 0105984a5f fix regression on SI units handling in upscale_cap 2011-06-24 14:00:55 +02:00
Håvard Berland e3328a19c4 replace all uints by 'unsigned int's 2011-05-26 10:47:57 +02:00
Håvard Berland 727100e060 cleanup: avoid compiler warnings 2011-05-12 19:55:32 +02:00
Atgeirr Flø Rasmussen 0acbe77be6 Changed nonstandard uint->unsigned int. 2011-03-24 07:37:46 +01:00
Håvard Berland 8182c85b49 Add new program for doing water saturation upscaling
Represents a subset of the functionality in upscale_relperm
that can upscale capillary pressure as a function of global
water saturation in model. Also prints out water saturation
pr. rocktype alongside global capillary pressure
2011-03-01 18:22:18 +01:00