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)

View File

@ -48,7 +48,6 @@ class UDAValue;
class UnitSystem;
class VFPInjTable;
class VFPProdTable;
class WellSegments;
namespace Mpi
{
@ -379,7 +378,6 @@ ADD_PACK_PROTOTYPES(VFPInjTable)
ADD_PACK_PROTOTYPES(VFPProdTable)
ADD_PACK_PROTOTYPES(Well)
ADD_PACK_PROTOTYPES(WellType)
ADD_PACK_PROTOTYPES(WellSegments)
} // end namespace Mpi

View File

@ -1568,7 +1568,7 @@ BOOST_AUTO_TEST_CASE(WellSegments)
Opm::WellSegments val1(Opm::WellSegments::CompPressureDrop::HF_,
{seg, seg});
auto val2 = PackUnpack(val1);
auto val2 = PackUnpack2(val1);
DO_CHECKS(WellSegments)
#endif
}