Move RestartConfig from EclipseState to Schedule

This commit is contained in:
Joakim Hove
2020-02-16 20:00:16 +01:00
parent 269802ae48
commit aed8c78af5
39 changed files with 148 additions and 173 deletions

View File

@@ -308,7 +308,7 @@ BOOST_AUTO_TEST_CASE( NorneRestartConfig ) {
EclipseState state(deck);
Schedule schedule(deck, state);
verifyRestartConfig(schedule.getTimeMap(), state.cfg().restart(), rptConfig);
verifyRestartConfig(schedule.getTimeMap(), schedule.restart(), rptConfig);
}
@@ -353,8 +353,8 @@ BOOST_AUTO_TEST_CASE( RestartConfig2 ) {
auto deck = parser.parseFile(path_prefix() + "IOConfig/RPT_TEST2.DATA");
EclipseState state( deck);
Schedule schedule(deck, state);
const auto& rstConfig = state.cfg().restart();
verifyRestartConfig(schedule.getTimeMap(), state.cfg().restart(), rptConfig);
const auto& rstConfig = schedule.restart();
verifyRestartConfig(schedule.getTimeMap(), rstConfig, rptConfig);
BOOST_CHECK_EQUAL( rstConfig.getFirstRestartStep() , 0 );
}