Parallel Restart: Chase RFTConfig API Update

The RFTConfig object gained a new data member and constructor
argument, in addition to altering the type of the data member
well_open_rft_name from an unordered_set to an unordered_map.

Update serialization code accordingly.
This commit is contained in:
Bård Skaflestad
2020-01-13 16:23:20 +01:00
parent 0e9535319b
commit b455faf067
2 changed files with 11 additions and 5 deletions

View File

@@ -2076,8 +2076,9 @@ BOOST_AUTO_TEST_CASE(RFTConfig)
{
#ifdef HAVE_MPI
Opm::RFTConfig val1(getTimeMap(),
std::size_t{1729},
{true, 1},
{"test1", "test2"},
{{"test1", 2}, {"test2", 3}},
{{"test3", 2}},
{{"test1", {{{Opm::RFTConfig::RFT::TIMESTEP, 3}}, 4}}},
{{"test2", {{{Opm::RFTConfig::PLT::REPT, 5}}, 6}}});
@@ -2309,8 +2310,9 @@ BOOST_AUTO_TEST_CASE(Schedule)
Opm::Action::Actions acnts({getActionX()});
Opm::RFTConfig rftc(getTimeMap(),
std::size_t{1729},
{true, 1},
{"test1", "test2"},
{{"test1", 2}, {"test2", 3}},
{{"test3", 2}},
{{"test1", {{{Opm::RFTConfig::RFT::TIMESTEP, 3}}, 4}}},
{{"test2", {{{Opm::RFTConfig::PLT::REPT, 5}}, 6}}});