Add data container PerfData to use in WellState

This commit is contained in:
Joakim Hove
2021-06-04 13:53:13 +02:00
parent ed131190eb
commit 34481e48c3
4 changed files with 113 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
#include <opm/simulators/wells/WellState.hpp>
#include <opm/simulators/wells/SegmentState.hpp>
#include <opm/simulators/wells/WellContainer.hpp>
#include <opm/simulators/wells/PerfData.hpp>
#include <opm/parser/eclipse/Python/Python.hpp>
#include <boost/test/unit_test.hpp>
@@ -529,5 +530,19 @@ BOOST_AUTO_TEST_CASE(TESTSegmentState2) {
}
BOOST_AUTO_TEST_CASE(TESTPerfData) {
const auto& deck_string = R"(
RUNSPEC
OIL
WATER
GAS
)";
Opm::PhaseUsage pu = Opm::phaseUsageFromDeck(Opm::Parser{}.parseString(deck_string));
Opm::PerfData pd(100,pu);
}
BOOST_AUTO_TEST_SUITE_END()