SKIPREST: Make sure e.g. VFP tables are loaded even under SKIPREST

This commit is contained in:
Joakim Hove
2020-03-30 10:38:15 +02:00
parent 7aaf68fbc4
commit 07843654b1
2 changed files with 29 additions and 4 deletions

View File

@@ -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() );
}