mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove old serialization support for WellSegments
This commit is contained in:
@@ -383,13 +383,6 @@ std::size_t packSize(const UnitSystem& data,
|
||||
packSize(data.use_count(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const WellSegments& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.compPressureDrop(), comm) +
|
||||
packSize(data.segments(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const Well& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@@ -821,14 +814,6 @@ void pack(const UnitSystem& data,
|
||||
pack(data.use_count(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const WellSegments& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.compPressureDrop(), buffer, position, comm);
|
||||
pack(data.segments(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const Well& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
@@ -1324,19 +1309,6 @@ void unpack(UnitSystem& data,
|
||||
data = UnitSystem(name, type, dimensions, use_count);
|
||||
}
|
||||
|
||||
void unpack(WellSegments& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
WellSegments::CompPressureDrop compPressureDrop;
|
||||
std::vector<Segment> segments;
|
||||
|
||||
unpack(compPressureDrop, buffer, position, comm);
|
||||
unpack(segments, buffer, position, comm);
|
||||
|
||||
data = WellSegments(compPressureDrop, segments);
|
||||
}
|
||||
|
||||
void unpack(Well& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
|
||||
Reference in New Issue
Block a user