mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-03 21:16:54 -06:00
remove old serialization support for WellSegments
This commit is contained in:
parent
fde0e42e8d
commit
9aa464c4ac
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user