mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove old serialization support for Phases
This commit is contained in:
@@ -551,11 +551,6 @@ std::size_t packSize(const RestartConfig& data, Dune::MPIHelper::MPICommunicator
|
||||
packSize(data.saveKeywords(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const Phases& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.getBits(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const EndpointScaling& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.getBits(), comm);
|
||||
@@ -1943,12 +1938,6 @@ void pack(const RestartConfig& data, std::vector<char>& buffer, int& position,
|
||||
pack(data.saveKeywords(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const Phases& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.getBits(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const EndpointScaling& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@@ -3483,14 +3472,6 @@ void unpack(RestartConfig& data, std::vector<char>& buffer, int& position,
|
||||
restart_keyw, save_keyw);
|
||||
}
|
||||
|
||||
void unpack(Phases& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
unsigned long bits;
|
||||
unpack(bits, buffer, position, comm);
|
||||
data = Phases(std::bitset<NUM_PHASES_IN_ENUM>(bits));
|
||||
}
|
||||
|
||||
void unpack(EndpointScaling& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
|
||||
@@ -85,7 +85,6 @@ class Location;
|
||||
class MessageLimits;
|
||||
class MLimits;
|
||||
class OilVaporizationProperties;
|
||||
class Phases;
|
||||
class PlymwinjTable;
|
||||
class PlyshlogTable;
|
||||
class PlyvmhRecord;
|
||||
@@ -529,7 +528,6 @@ ADD_PACK_PROTOTYPES(Location)
|
||||
ADD_PACK_PROTOTYPES(MessageLimits)
|
||||
ADD_PACK_PROTOTYPES(MLimits)
|
||||
ADD_PACK_PROTOTYPES(OilVaporizationProperties)
|
||||
ADD_PACK_PROTOTYPES(Phases)
|
||||
ADD_PACK_PROTOTYPES(PlmixparRecord)
|
||||
ADD_PACK_PROTOTYPES(PlmixparTable)
|
||||
ADD_PACK_PROTOTYPES(PlymwinjTable)
|
||||
|
||||
@@ -911,7 +911,7 @@ BOOST_AUTO_TEST_CASE(Phases)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
Opm::Phases val1(true, true, true, false, true, false, true, false);
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(Phases)
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user