SKIPREST: Make sure e.g. VFP tables are loaded even under SKIPREST
This commit is contained in:
@@ -3817,3 +3817,20 @@ END
|
||||
BOOST_CHECK_EQUAL(eclipseControlMode(sched.getWell("W7", 10), st), 7);
|
||||
BOOST_CHECK_EQUAL(eclipseControlMode(sched.getWell("W8", 10), st), 6);
|
||||
}
|
||||
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_CASE(SKIPREST_VFP) {
|
||||
auto python = std::make_shared<Python>();
|
||||
Parser parser;
|
||||
auto deck = parser.parseFile("MODEL2_RESTART.DATA");
|
||||
EclipseState es{ deck };
|
||||
const auto& init_config = es.getInitConfig();
|
||||
auto report_step = init_config.getRestartStep();
|
||||
const auto& rst_filename = es.getIOConfig().getRestartFileName( init_config.getRestartRootName(), report_step, false );
|
||||
Opm::EclIO::ERst rst_file(rst_filename);
|
||||
const auto& rst = Opm::RestartIO::RstState::load(rst_file, report_step);
|
||||
const auto sched = Schedule{ deck, es, python , &rst};
|
||||
const auto& tables = sched.getVFPProdTables(3);
|
||||
BOOST_CHECK( !tables.empty() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user