100 Commits
Author SHA1 Message Date
Bård Skaflestad efc2915b74 Merge pull request #1195 from akva2/quell_unhandled_warning
fixed: add ENERGY to switch to quell unhandled enum value warning
2017-12-05 19:51:17 +01:00
Bård Skaflestad 28a02f6953 Merge pull request #1118 from atgeirr/remove-redundant-tests
Remove redundant tests.
2016-12-05 13:43:05 +01:00
Bård Skaflestad 1429046029 Merge pull request #1105 from andlaus/fix_valgrind_errors
fix some valgrind errors in the init code
2016-11-16 19:08:48 +01:00
Bård Skaflestad bc0977ec3d Merge pull request #1054 from qilicun/fix-output-well-iterations
Drop useage of std::numeric_limits
2016-07-22 00:47:23 +02:00
Bård Skaflestad bb387e16f9 Merge pull request #1055 from andlaus/fix_rock_compressibility
fix incorrect derivative  of rock compressibility w.r.t. pressure
2016-07-20 11:32:19 +02:00
Bård Skaflestad c1b4ed8bc8 Merge pull request #1050 from blattms/make-wells_equal-work-for-null-wells
Make wells_equal work for null wells.
2016-06-27 15:18:09 +02:00
Bård Skaflestad 8f4d65a0c2 Merge pull request #1037 from atgeirr/add-phasepresence-ops
Add operator== and operator!= to PhasePresence.
2016-06-15 19:56:11 +02:00
Bård Skaflestad 6fdfcefaa0 Merge pull request #1040 from atgeirr/fix-linsolverfactory-default-solver
Set default solver depending on configuration.
2016-06-15 17:34:41 +02:00
Bård Skaflestad bbd6a5f03d Merge pull request #1035 from akva2/revert_umfpack
Revert "Check for HAVE_UMFPACK in LinearSolverFactory"
2016-06-13 12:37:58 +02:00
Bård Skaflestad b307259ce2 Merge pull request #995 from atgeirr/remove-sims
Update CMake list with deleted files, and delete files moved to opm-simulators.
2016-04-14 12:47:43 +02:00
Bård Skaflestad 8f042081f7 Merge pull request #963 from jokva/missing-headers-parser-695
Add missing opm-parser headers
2016-02-26 07:39:55 -06:00
Bård Skaflestad 893e6c851f Merge pull request #954 from joakim-hove/set-component
Changes in SimulatorState:
2016-02-24 07:11:36 -06:00
Bård Skaflestad 089229adf4 Merge pull request #959 from andlaus/fix_build
Fix build
2016-02-21 12:47:22 -06:00
Bård Skaflestad 279799ee80 Merge pull request #949 from joakim-hove/build-fixup
Build fixup
2016-02-04 11:46:56 -06:00
Bård Skaflestad 6365167109 Merge pull request #946 from jokva/clean-up-header
Improve includes from opm-parser
2016-01-26 15:58:25 +01:00
Bård Skaflestad d738138afa Merge pull request #943 from qilicun/update_relperm_diagnostics
Update relperm diagnostics
2016-01-26 15:12:28 +01:00
Bård Skaflestad 1686b45221 Merge pull request #944 from jokva/fix-header-include-parser656
Fixes includes wrt opm-parser PR-656
2016-01-21 11:13:32 +01:00
Bård Skaflestad 51111aa845 Merge pull request #932 from joakim-hove/test-norne-pvt
Added regression test for Norne PVT.
2015-12-03 17:07:02 +01:00
Bård Skaflestad d4ca0d8c00 Merge pull request #931 from andlaus/fix_build
fix build for newish boost versions
2015-11-27 16:17:27 +01:00
Bård Skaflestad 14a4b00695 Merge pull request #926 from andlaus/update_cdash_drop_site
cdash: update dropsite
2015-11-11 20:28:43 +01:00
Bård Skaflestad 0184d4a71d Merge pull request #900 from qilicun/actnum_cart_grid
fix actnum with cartesian grid issue.

This resolves #898
2015-10-09 15:08:19 +02:00
Bård Skaflestad 28a793c448 Merge pull request #896 from joakim-hove/relocate-warning-headers
Relocated warning headers.
2015-10-06 15:56:23 +02:00
Bård Skaflestad a0766ce11d Merge pull request #893 from atgeirr/data-error-workaround
Make grid in test-deck have larger number of cells.
2015-10-02 09:57:13 +02:00
Bård Skaflestad 559ce51d87 Merge pull request #890 from blattms/prevent-wellsmanager-supscripting-empty-vectors
Prevent WellsManager from subscripting empty container.
2015-09-23 09:38:08 +02:00
Bård Skaflestad c010d4c3e2 RegionMapping<>: Support arbitrary region IDs
This commit introduces a new public method, activeRegions(), that
retrieves those region IDs that contain at least one active cell.
We furthermore extend the cells() method to support lookup of
arbitrary region IDs.  Non-active region IDs produce empty cell
ranges.

Intended use case is

    for (const auto& reg : rmap.activeRegions()) {
        const auto& c = rmap.cells(reg);

        // use c
    }
2015-09-15 15:33:22 +02:00
Bård Skaflestad a439f7bd88 convertSats(): Transpose loop nest for locality of data 2015-09-15 15:33:22 +02:00
Bård Skaflestad 234377fe72 Mark non-template functions in headers as 'inline' 2015-09-15 15:33:22 +02:00
Bård Skaflestad 228032d196 Merge pull request #883 from atgeirr/fix-null-globalcell
Account for possible null global_cell
2015-09-15 15:32:14 +02:00
Bård Skaflestad f8e1526903 Merge pull request #879 from atgeirr/remove-args
Remove arguments from BlackoilPropertiesFromDeck constructors.
2015-09-14 17:07:37 +02:00
Bård Skaflestad db2dfbf047 Merge pull request #828 from atgeirr/fix-failing-test
Do not use pressure() until after init() in BlackoilState.
2015-07-08 18:02:12 +02:00
Bård Skaflestad 6265b0a94b Merge pull request #826 from atgeirr/fix-warnings
Fix unused argument warnings.
2015-07-08 12:39:36 +02:00
Bård Skaflestad 5965b7246c Merge pull request #824 from andlaus/fix_SatFuncMultiplexer_on_gcc44
fix SatFuncMultiplexer on old compilers
2015-07-02 12:27:26 +02:00
Bård Skaflestad 59bcfef5d3 Use <tab> as indentation character in file lists
Mostly for consistency with the rest of the file.
2015-06-17 10:25:30 +02:00
Bård Skaflestad 34d4dc4ec6 Merge pull request #818 from joakim-hove/mem-leak
Added missing free( ) to malloc() memory.
2015-06-12 11:02:43 +02:00
Bård Skaflestad 6d55f313ed Merge pull request #810 from akva2/shared_check_commits
changed: use common check-commits target from opm-cmake
2015-05-28 16:38:57 +02:00
Bård Skaflestad 4545ab5b31 Merge pull request #808 from atgeirr/fix-warning
Suppress a warning in serial mode.
2015-05-27 12:49:46 +02:00
Bård Skaflestad bcb3e8b8e5 Merge pull request #794 from akva2/update_redhat_packaging
update redhat packaging
2015-04-24 19:04:18 +02:00
Bård Skaflestad 25a0857fd5 Merge pull request #789 from atgeirr/minor-output-fixes
Minor output fixes
2015-04-21 11:37:18 +02:00
Bård Skaflestad aea968877f Merge pull request #786 from atgeirr/unhandled-arguments
Store unhandled command-line arguments
2015-04-14 16:59:45 +02:00
Bård Skaflestad 5830194474 Merge pull request #779 from andlaus/reduce_default_optimization_level
reduce the default optimization level from -O3 to -O2
2015-04-09 19:48:50 +02:00
Bård Skaflestad 1b540ff962 Merge pull request #771 from atgeirr/fix-init-celldeps
Fix property method calls.
2015-03-24 09:45:10 +01:00
Bård Skaflestad 91dc1ccc47 Merge pull request #769 from dr-robertk/PR/eclipsewriter-only-summary-in-substeps
Eclipsewriter: only write summary in substeps
2015-03-10 12:32:00 +01:00
Bård Skaflestad 7a5f188dd3 Merge pull request #768 from chflo/OPM_157_RFT_write
OPM 157 write RFT data
2015-03-07 14:58:04 +01:00
Bård Skaflestad 9755eb4887 Merge pull request #764 from blattms/uggridhelpers-completion
Moves all functions that do not depend on Eigen to Opm::UgGridHelpers.  [1/3]
2015-03-02 18:49:49 +01:00
Bård Skaflestad ef2f4257bf Merge pull request #744 from atgeirr/rename-tof-flowdiagnostics
Rename directory opm/core/tof -> opm/core/flowdiagnostics.
2015-02-03 20:37:05 -06:00
Bård Skaflestad 6c25e04c9f Merge pull request #728 from blattms/global-reductions
Added methods for computing global reductions.
2015-01-23 17:28:12 +01:00
Bård Skaflestad 8f0b4714a5 Merge pull request #725 from atgeirr/minpv-use-actnum
Make MinpvProcessor ignore inactive cells.
2015-01-23 11:27:13 +01:00
Bård Skaflestad 114b64f23d Merge pull request #730 from atgeirr/compute-tof
More features for flow diagnostics
2015-01-23 10:40:43 +01:00
Bård Skaflestad 0820cab627 Merge pull request #711 from atgeirr/eikonal-solver
Solver for the anisotropic Eikonal equation using fast marching method
2015-01-07 11:00:51 +01:00
Bård Skaflestad 18cc1c8cb5 Merge pull request #707 from andlaus/enable_experimental_grid_extensions
Finddune-grid.cmake: always enable the experimental grid extensions
2014-12-16 12:50:19 +01:00
Bård Skaflestad e9eb1b8b61 Merge pull request #703 from andlaus/remove_strict_parsing
adapt to the removal of the "strict parsing" concept
2014-12-11 13:39:26 +01:00
Bård Skaflestad 2a4a7eb61e Merge pull request #685 from atgeirr/vertex-neighbours
Add free function vertexNeighbours() and test.
2014-12-01 17:10:07 +01:00
Bård Skaflestad fcf8c156aa Merge pull request #687 from blattms/remove-superlfluous-if-in-wellstate-check
[cleanup] Removes a superfluous if-check of the well state.
2014-11-20 14:53:36 +01:00
Bård Skaflestad d26363db52 Merge pull request #684 from blattms/fixes-missing-return-value-in-wellsmanager
Fixes missing return value in non-void function of WellsManager.
2014-11-20 12:29:45 +01:00
Bård Skaflestad a27b9a785d Merge pull request #680 from akva2/debian_packaging
update debian packaging
2014-11-17 17:39:14 +01:00
Bård Skaflestad bc862c8125 Merge pull request #663 from akva2/check_commits
add check-commits target
2014-10-21 13:43:48 +02:00
Bård Skaflestad e056289200 Merge pull request #651 from andlaus/EclipseWriter_use_deck_pressure_units
use the same units for pressure output as for pressure input from the deck
2014-09-10 13:30:09 +02:00
Bård Skaflestad 9591aec757 effectiveRadius: Fix numerator formula
We must take the square root of the permeability ratios, not use them
as is.  This was lost in the refactorisation commit 96cf137.

Pointy hat: @bska.
2014-09-02 15:12:50 +02:00
Bård Skaflestad 7f874c0d64 effectiveExtent: Fix out-of-bounds indexing
Commit 96cf137 introduced support for Peaceman index calculation
that honoured general completion directions (X,Y,Z).  This was
accomplished through a permutation index that reordered the
permeability and geometric extent components according to a local
coordinate system along the completion.

In a complete breakdown of logic, however, the d-component extent
vector was indexed as though it were a d-by-d matrix.  This commit
restores sanity to the processing.

Pointy hat: @bska.
2014-09-01 13:30:32 +02:00
Bård Skaflestad 3fbb201e52 Merge pull request #644 from atgeirr/fix-braces-warning
Use double braces for std::array init to avoid warning.
2014-09-01 10:27:27 +02:00
Bård Skaflestad 96cf137e4c WellsManager: Support NTG and horizontal completions
This commit extends the feature set of the WellsManager to support
horizontal ("X" and "Y") completions and include the net-to-gross
ratio in the Peaceman index ("Completion Transmissibility Factor,
CTF") of a well completion.  The NTG factor is included if present
in the input deck represented by the "eclipseState".

There are two separate, though related, parts to this commit.  The
first part splits the calculation of Peaceman's "effective radius"
out to a separate utility function, effectiveRadius(), and
generalises WellsManagerDetail::computeWellIndex() to account for
arbitrary directions and NTG factors.  The second part uses
GridPropertyAccess::Compressed<> to extract the NTG vector from the
input if present while providing a fall-back value of 1.0 if no such
vector is available.

Note: We may wish to make the extraction policy configurable at some
point in the future.
2014-08-31 21:24:37 +02:00
Bård Skaflestad 8adeb5f56c Annotate namespace closing brace with namespace name 2014-08-29 12:31:35 +02:00
Bård Skaflestad c3375da14f Adjust white-space for readability
This is mostly just splitting long lines and aligning parameters where
appropriate.  No functional changes.
2014-08-29 12:22:26 +02:00
Bård Skaflestad b35362f1e9 createWellsFromSpecs: Assert three space dimensions
Method WellsManager::createWellsFromSpecs() is only supported in
three space dimensions.  Assert that we don't use anything else.
2014-08-29 12:18:59 +02:00
Bård Skaflestad fda49df8a8 createWellsFromSpecs: Use ref-to-const cart2active
This commit tightens the function header of method

    WellsManager::createWellsFromSpecs()

to accept a reference-to-const 'cartesian_to_compressed' map.  It
used to be a complete, copy-constructed object, so this is a slight
performance enhancement as we no longer need to copy a (somewhat)
large object on every call to the method.
2014-08-29 12:13:38 +02:00
Bård Skaflestad 97a8ee630e getCubeDim: Support arbitrary number of dimensions
This commit generalises the implementation of utility function
'getCubeDim' to support arbitrary number of space dimensions.  In
actual practice there's no change in features as we only really use
a compile-time constant (= 3) to specify the number of space
dimensions.
2014-08-29 11:39:24 +02:00
Bård Skaflestad 7933d87605 Merge pull request #638 from totto82/fix_GOC_below
Currectly handling GOC below and WOC above the reservoir
2014-08-29 09:27:56 +02:00
Bård Skaflestad 1a3f7b230f Merge pull request #639 from atgeirr/threshold-pressure
Threshold pressure function
2014-08-29 09:13:27 +02:00
Bård Skaflestad 9784df8024 Merge pull request #641 from atgeirr/fix-warnings
Fix warnings
2014-08-28 16:11:12 +02:00
Bård Skaflestad 1ce427433b Move local type tags out of individual tests.
This fixes build on GCC 4.4.
2014-08-28 15:00:49 +02:00
Bård Skaflestad e77ebf8d22 Use less restrictive test predicate
This commit replaces uses of BOOST_REQUIRE_* with corresponding
BOOST_CHECK_* facilitites.  This allows greater test coverage if an
individual test fails.

Suggested by: [at] atgeirr
2014-08-28 14:15:57 +02:00
Bård Skaflestad 59205f2e65 Add missing 'not' in documentation. 2014-08-28 10:20:07 +02:00
Bård Skaflestad 7f875a6c34 Use correct name in name-space closing comment
Pointed out by [at] atgeirr.
2014-08-28 10:14:55 +02:00
Bård Skaflestad f22bd0c208 Fix class reference in documentation
CompressedAccess<> was the former name of class template Compressed<>.
2014-08-27 22:55:15 +02:00
Bård Skaflestad 58f55f3c90 Reimplement assign* in terms of Compressed<>
This is a demonstration of using the

    GridPropertyAccess::Compressed<>

class template.  We save (some) memory by not creating the zero
fall-back vector in assignPermeability(), preferring instead to use
the fall-back/default mechanism of ArrayPolicy::ExtractFromDeck<>.

While here, adjust vector<PermComponent>::reserve() capacity to
reflect actual requirements.
2014-08-27 21:19:41 +02:00
Bård Skaflestad 37dfc4a3b5 Add facility for accessing active subset of global data array
This commit introduces a fairly general mechanism for accessing the
active subset of a global grid (property) array.  Essentially, this
takes on the role of translating the active cell index through the
"global_cell" mapping when accessing, e.g., the net-to-gross data
value.

The primary component is class template

    Opm::GridPropertyAccess::Compressed<DataArray,Tag>

which implements a read-only

    value_type operator[](const int c)

that encapsulates and performs the compressed-to-global cell index
translation.  Template parameter "DataArray" is intended as a policy
parameter that for instance wraps access to a "GridProperty<T>" from
module opm-parser (with a fall-back default value if the data is not
specified on input).  The "Tag" parameter is a provision for type
safety--e.g., to prevent passing a region ID into a function that
requires a porosity value.
2014-08-27 21:19:41 +02:00
Bård Skaflestad 7f07964e0c assignPermeability: Remark on storage order
Clients expect column-major (Fortran) ordering of the contiguous
"permeability_" array so that's what we create despite "tensor"
being row-major.

Suggested by: [at] atgeirr
2014-08-27 21:19:40 +02:00
Bård Skaflestad 008702817d Merge pull request #637 from atgeirr/add-minpv
Add MINPV processing to GridManager
2014-08-27 19:34:34 +02:00
Bård Skaflestad bcec9fd0f6 Simplify diagonal component thresholding
This commit switches the assignment

    diagonal = max(diagonal, minval)

to using a reference in the "diagonal" expression.  This guarantees
that the indexing is done once which eases maintainability.  While
here, replace the hard-coded dimension stride ('3') with the current
run-time dimension.  This is mostly for symmetry because the overall
code is only really supported in three space dimension.
2014-08-26 23:50:05 +02:00
Bård Skaflestad 2ae64c1df2 Remove obsolete comment
This comment was needed when the code was first developed, but
subsequent development has rendered it obsolete.  Remove it to avoid
confusion.
2014-08-26 23:50:05 +02:00
Bård Skaflestad 194b6eda7a Fix semantics of permeability assignment
Calling code relies on permeability tensors being stored in column
major order (row index cycling the most rapidly).  Honour that
requirement.  The previous assignment implied row major ordering
(column index cycling the most rapidly).  This, however, is a
pedantic rather than visible change because the surrounding code
enforces symmetric tensors whence both orderings produce the same
results when the array is viewed contiguously.
2014-08-26 23:50:04 +02:00
Bård Skaflestad 492b64faac CornerpointChopper::writeGrdecl(): Increase vector precision
This commit increases the precision of the (floating-point) vector
output (e.g., permeabilities) from method writeGrdecl().  This
reduces the impact of rounding errors when the sub-set sample is
output to disk for subsequent processing (e.g., property upscaling).
2014-08-25 14:01:03 +02:00
Bård Skaflestad 71596fe8a3 CornerpointChopper::writeGrdecl(): Write fewer items per line
This is in preparation of increasing the vector output precision to
reduce the impact of rounding errors in subsequent upscaling.  The
change impacts floating-point vectors only.

Background: The ECL simulator stipulates an upper bound on the
number of characters in a record (i.e., one line) and while we don't
have such limits, there's no reason to emit lines that can't be
input by other tools.
2014-08-25 14:01:03 +02:00
Bård Skaflestad d3d38d2d6f Merge pull request #634 from osae/satFunc-eclState
Provide eclipse state to saturation property init.
2014-08-25 13:55:44 +02:00
Bård Skaflestad c6c66c58c6 Merge pull request #633 from atgeirr/use-pinch
Unify grid construction, allow PINCH
2014-08-22 20:36:01 +02:00
Bård Skaflestad 6b36dab2ee swatInitScaling(): Abide by OPM coding conventions
This commit attaches the reference-signifying ampersand to the type
as is preferred in the OPM code base.

Suggested by: [at] atgeirr
2014-08-07 18:50:07 +02:00
Bård Skaflestad c047a6c9dc swatInitScaling(): Remove EOL whitespace
This commit removes several instances of EOL whitespace in function
'swatInitScaling()'.  Aesthetic only.  No functional changes.

Suggested by: [at] atgeirr
2014-08-07 18:50:07 +02:00
Bård Skaflestad f8492aeb64 swatInitScaling(): Name magic constant
The constant 1.0e-8 was used as a threshold to distinguish "low"
from "high" capillary pressure values.  Introduce acutual constant
"pc_low_threshold" to clarify that role.

Suggested by: [at] atgeirr
2014-08-07 18:50:07 +02:00
Bård Skaflestad e8901775cd swatInitScaling(): Rename array size parameter
This commit renames the 'np' parameter used to allocate small arrays
for saturations and capillary pressures to 'max_np' to better
reflect its purpose.

Suggested by: [at] atgeirr
2014-08-07 18:50:06 +02:00
Bård Skaflestad 4da2c5862d Initialise saturation points for Pc scaling
This gives predictable failure modes although the actual behaviour
is (probably) unchanged.
2014-08-07 18:50:06 +02:00
Bård Skaflestad 6f75afc62b Consistently refer to BlackoilPhases::Aqua
This avoids confusion.
2014-08-07 18:50:06 +02:00
Bård Skaflestad 62f654b52c Don't use variable-length arrays
We only support up to 'BlackoilPhases::MaxNumPhases' different
phases (and components), so there's no need to pretend otherwise.
2014-08-07 18:50:06 +02:00
Bård Skaflestad 871160b7a0 Merge pull request #624 from atgeirr/default-wellrefdepth
Properly handle defaulted well reference depths.
2014-08-07 18:47:21 +02:00
Bård Skaflestad 115914119b Merge pull request #621 from andlaus/support_dune_alugrid
add support for the new DUNE-ALUGrid module
2014-07-30 14:20:10 +02:00
Bård Skaflestad 427e53b69b Disable "test_equil" test
This test breaks the Continuous Integration system (Jenkins).  While
we investigate the underlying causes it is better to restore the
build to pristine order.
2014-07-08 22:30:49 +02:00
Bård Skaflestad 98523baca5 Merge pull request #616 from andlaus/test_for_extended_std__regex
use extended regular expressions in the test for std::regex
2014-07-08 13:40:11 +02:00
Bård Skaflestad 8e4b9e1f6a Merge pull request #615 from andlaus/use_std__regex_if_available
FindCXX11Features: check for a usable std::regex
2014-07-07 23:02:22 +02:00
Bård Skaflestad 24524e0137 Reimplement clone_wells() in terms of well_controls_clone() 2014-07-03 16:09:56 +02:00
Bård Skaflestad 841192c605 wells.h: Document several function
This commit adds Doxygen-style documentation to functions

  - clear_well_controls()
  - set_current_control()
  - wells_equal()

No functional changes.
2014-07-03 16:09:56 +02:00
Bård Skaflestad 83b1cc7438 well_controls: Add deep-copy (clone) support
New function well_controls_clone(), implemented in terms of the
public API only, mirrors the objective of function clone_wells(),
only for well control sets.  Add a basic test to demonstrate the
function too.
2014-07-03 16:09:56 +02:00