Add Parser argument to restart loader
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user