Add Parser argument to restart loader

This commit is contained in:
Joakim Hove
2021-09-09 12:48:41 +02:00
parent 6e13564832
commit 54e1345d45
8 changed files with 13 additions and 8 deletions

View File

@@ -205,6 +205,7 @@ struct SimulationCase
Opm::EclipseState es;
Opm::EclipseGrid grid;
Opm::Schedule sched;
Opm::Parser parser;
};
// =====================================================================
@@ -348,7 +349,7 @@ BOOST_AUTO_TEST_CASE(State_test) {
auto rst_file = std::make_shared<Opm::EclIO::ERst>("TEST_UDQRST.UNRST");
auto rstView = std::make_shared<Opm::EclIO::RestartFileView>(std::move(rst_file), rptStep);
auto state = Opm::RestartIO::RstState::load(std::move(rstView), simCase.es.runspec());
auto state = Opm::RestartIO::RstState::load(std::move(rstView), simCase.es.runspec(), simCase.parser);
const auto& well = state.get_well("OP_3");
BOOST_CHECK_THROW(well.segment(10), std::invalid_argument);