mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-15 02:12:02 -05:00
Merge pull request #2482 from joakim-hove/remove-removed
Remove numRemoved member from WellConnections
This commit is contained in:
2 files changed
+2
-6
No files matched your search
@@ -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<Connection> 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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user