Include perforation data in SingleWellState

This commit is contained in:
Joakim Hove
2021-08-06 13:14:00 +02:00
parent 46f45e3999
commit 579aba8d08
9 changed files with 45 additions and 62 deletions

View File

@@ -294,8 +294,8 @@ BOOST_AUTO_TEST_CASE(Pressure)
}
}
const auto& perf_data = wstate.perfData("PROD01");
const auto& ws = wstate.well("PROD01");
const auto& perf_data = ws.perf_data;
(void) perf_data;
}
@@ -362,7 +362,8 @@ BOOST_AUTO_TEST_CASE(STOP_well)
std::vector<Opm::ParallelWellInfo> pinfos;
auto wstate = buildWellState(setup, 0, pinfos);
for (std::size_t well_index = 0; well_index < setup.sched.numWells(0); well_index++) {
const auto& perf_data = wstate.perfData(well_index);
const auto& ws = wstate.well(well_index);
const auto& perf_data = ws.perf_data;
for (const auto& p : perf_data.pressure)
BOOST_CHECK(p > 0);
}
@@ -541,13 +542,6 @@ BOOST_AUTO_TEST_CASE(TESTSegmentState2) {
BOOST_AUTO_TEST_CASE(TESTPerfData) {
const auto& deck_string = R"(
RUNSPEC
OIL
WATER
GAS
)";
Opm::PerfData pd1(3, true, 3);
Opm::PerfData pd2(3, true, 3);
Opm::PerfData pd3(2, true, 3);