further corrections of unit tests and code clean up

This commit is contained in:
Jostein Alvestad
2020-06-15 09:55:38 +02:00
parent 862b7b7591
commit fea794ee17
7 changed files with 36 additions and 14 deletions
+3 -2
View File
@@ -1059,6 +1059,7 @@ BOOST_AUTO_TEST_CASE(WELL_POD) {
const auto rptStep = std::size_t{2};
const auto sim_step = rptStep - 1;
Opm::SummaryState sumState(std::chrono::system_clock::now());
const auto xw = well_rates_1();
const auto ih = Opm::RestartIO::Helpers::createInteHead(simCase.es,
simCase.grid,
@@ -1070,10 +1071,10 @@ BOOST_AUTO_TEST_CASE(WELL_POD) {
auto wellData = Opm::RestartIO::Helpers::AggregateWellData(ih);
wellData.captureDeclaredWellData(simCase.sched, units, sim_step, sumState, ih);
wellData.captureDynamicWellData(simCase.sched, sim_step, {} , sumState);
wellData.captureDynamicWellData(simCase.sched, sim_step, xw , sumState);
auto connectionData = Opm::RestartIO::Helpers::AggregateConnectionData(ih);
connectionData.captureDeclaredConnData(simCase.sched, simCase.grid, units, {} , sim_step);
connectionData.captureDeclaredConnData(simCase.sched, simCase.grid, units, xw , sim_step);
const auto& iwel = wellData.getIWell();
const auto& swel = wellData.getSWell();