Create WellTestState object from restart file

This commit is contained in:
Joakim Hove
2021-10-11 11:24:29 +02:00
parent ee92f53b72
commit 06fd01c6ba
3 changed files with 38 additions and 3 deletions

View File

@@ -817,10 +817,12 @@ BOOST_AUTO_TEST_CASE (Declared_Well_Data)
{
Opm::WellTestConfig wtest_config{rst_state, rptStep};
Opm::WellTestState wtest_state;
Opm::WellTestState ws{simCase.sched.runspec().start_time(), rst_state};
BOOST_CHECK(wtest_config.has("OP_1", Opm::WellTestConfig::Reason::PHYSICAL));
BOOST_CHECK(wtest_config.has("OP_1", Opm::WellTestConfig::Reason::GROUP));
BOOST_CHECK(wtest_config.has("OP_1", Opm::WellTestConfig::Reason::THP_DESIGN));
BOOST_CHECK(ws.well_is_closed("OP_1"));
}
}