diff --git a/opm/simulators/utils/ParallelRestart.cpp b/opm/simulators/utils/ParallelRestart.cpp index fe5993169..1e5cf9b07 100644 --- a/opm/simulators/utils/ParallelRestart.cpp +++ b/opm/simulators/utils/ParallelRestart.cpp @@ -511,7 +511,6 @@ std::size_t packSize(const WellConnections& data, return packSize(data.ordering(), comm) + packSize(data.getHeadI(), comm) + packSize(data.getHeadJ(), comm) + - packSize(data.getNumRemoved(), comm) + packSize(data.getConnections(), comm); } @@ -1414,7 +1413,6 @@ void pack(const WellConnections& data, pack(data.ordering(), buffer, position, comm); pack(data.getHeadI(), buffer, position, comm); pack(data.getHeadJ(), buffer, position, comm); - pack(data.getNumRemoved(), buffer, position, comm); pack(data.getConnections(), buffer, position, comm); } @@ -2454,17 +2452,15 @@ void unpack(WellConnections& data, Dune::MPIHelper::MPICommunicator comm) { int headI, headJ; - size_t numRemoved; Connection::Order ordering; std::vector connections; unpack(ordering, buffer, position, comm), unpack(headI, buffer, position, comm), unpack(headJ, buffer, position, comm), - unpack(numRemoved, buffer, position, comm), unpack(connections, buffer, position, comm), - data = WellConnections(ordering, headI, headJ, numRemoved, connections); + data = WellConnections(ordering, headI, headJ, connections); } void unpack(Well::WellProductionProperties& data, diff --git a/tests/test_ParallelRestart.cpp b/tests/test_ParallelRestart.cpp index 4c9105524..1805f1549 100644 --- a/tests/test_ParallelRestart.cpp +++ b/tests/test_ParallelRestart.cpp @@ -1473,7 +1473,7 @@ BOOST_AUTO_TEST_CASE(WellConnections) {9, 10, 11}, Opm::Connection::CTFKind::Defaulted, 12, 13.0, 14.0, true, 15, 16, 17.0); - Opm::WellConnections val1(Opm::Connection::Order::TRACK, 1, 2, 3, {conn, conn}); + Opm::WellConnections val1(Opm::Connection::Order::TRACK, 1, 2, {conn, conn}); auto val2 = PackUnpack(val1); DO_CHECKS(WellConnections) #endif