Bård Skaflestad a886a2334b GridProperty: Collect Paired Assignment in Single Operation
This commit introduces a new helper function

    void GridProperty<>::setElement(i, val, dflt)

that handles paired assignments to 'm_data' and 'm_defaulted'[%].
This simplifies the bookkeeping and implementation of the various
assignment and value operations.

While here, also add a unit test to demonstrate expected behaviour
of the m_defaulted flag.  The only really questionable setting is
what happens if the deck applies a relative operator (e.g., ADD or
MULTIPLY) to a value that would otherwise be defaulted.  In the
current implementation the m_defaulted flag will remain set in this
case, but it arguably should be switched to unset (false).

[%]: Suggested by [at]akva2
2019-07-15 13:03:21 +02:00
2019-07-09 14:39:11 +02:00
2018-10-02 15:43:01 +02:00
2015-06-18 12:06:38 +02:00
2019-06-26 07:51:36 +02:00
2019-07-15 06:01:44 +02:00
2019-03-06 11:14:05 +01:00
2018-03-05 10:30:59 +01:00
2017-01-03 10:48:10 +01:00
2015-03-18 01:59:50 -05:00

opm-common

Contains common components used throughout all of OPM, in particular CMake modules for the build system.

Description
Common components for OPM, in particular build system (cmake).
Readme 74 MiB
Languages
C++ 79%
ECL 13.4%
Scheme 3.1%
CMake 2.4%
Python 1%
Other 1%