Common components for OPM, in particular build system (cmake).
Go to file
Bård Skaflestad ef5a9e8e1a Refactor WellProductionProperties manipulation code
This commit splits the creation of WellProductionProperties objects,
and especially the ad-hoc helper functions historyProperties()
and predictionProperties() out to a separate module,
WellProductionProperties.[hc]pp.  Creating the properties object
from a DeckRecordConstPtr is deferred to two named constructors,

    WellProductionProperties::history() and
    WellProductionProperties::prediction()

that, respectively, assume the roles of historyProperties() and
predictionProperties().  Reimplement handleWCONProducer() in terms
of these named constructors and remove the producerProperties()
helper whose task, inspecting the status and retrieving/setting the
CMODE if not SHUT, can be assumed by handleWCONProducer().

Add a simple test module, WellPropertiesTest.cpp, to enforce the
rather peculiar semantics of the WCONHIST keyword.  Control modes
{O,W,G}RAT, LRAT, and RESV are *always* (unconditionally) supported
in WCONHIST but there is no control mode switching.  The latter is
deferred to client code, depending on the '.predictionMode' flag.

Suggested by: [at] joakim-hove
2014-07-08 13:22:46 +02:00
cmake use extended regular expressions in the test for std::regex 2014-07-08 13:01:20 +02:00
docs Added more documentation 2013-08-25 21:49:28 +02:00
opm Refactor WellProductionProperties manipulation code 2014-07-08 13:22:46 +02:00
testdata Added Parser test of deck with TOPS keyword. 2014-06-11 16:42:37 +02:00
.dir-locals.el remove the emacs and vim modelines 2014-01-15 12:52:12 +01:00
.gitignore Added external testdata to .gitignore 2013-12-09 20:15:09 +01:00
configure make the module buildable using dunecontrol 2013-12-10 16:12:39 +01:00