remove old serialization support for WellSegments

This commit is contained in:
Arne Morten Kvarving
2020-03-18 09:29:02 +01:00
parent fde0e42e8d
commit 9aa464c4ac
3 changed files with 1 additions and 31 deletions

View File

@@ -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)