mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove old serialization support for DeckItem
This commit is contained in:
@@ -656,21 +656,6 @@ std::size_t packSize(const Group& data,
|
||||
packSize(data.productionProperties(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const DeckItem& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.dVal(), comm) +
|
||||
packSize(data.iVal(), comm) +
|
||||
packSize(data.sVal(), comm) +
|
||||
packSize(data.uVal(), comm) +
|
||||
packSize(data.getType(), comm) +
|
||||
packSize(data.name(), comm) +
|
||||
packSize(data.valueStatus(), comm) +
|
||||
packSize(data.rawData(), comm) +
|
||||
packSize(data.activeDimensions(), comm) +
|
||||
packSize(data.defaultDimensions(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const DeckRecord& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@@ -1388,22 +1373,6 @@ void pack(const Group& data,
|
||||
pack(data.productionProperties(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const DeckItem& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.dVal(), buffer, position, comm);
|
||||
pack(data.iVal(), buffer, position, comm);
|
||||
pack(data.sVal(), buffer, position, comm);
|
||||
pack(data.uVal(), buffer, position, comm);
|
||||
pack(data.getType(), buffer, position, comm);
|
||||
pack(data.name(), buffer, position, comm);
|
||||
pack(data.valueStatus(), buffer, position, comm);
|
||||
pack(data.rawData(), buffer, position, comm);
|
||||
pack(data.activeDimensions(), buffer, position, comm);
|
||||
pack(data.defaultDimensions(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const DeckRecord& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
@@ -2360,34 +2329,6 @@ void unpack(Group& data,
|
||||
injection, production);
|
||||
}
|
||||
|
||||
void unpack(DeckItem& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
std::vector<double> dVal;
|
||||
std::vector<int> iVal;
|
||||
std::vector<std::string> sVal;
|
||||
std::vector<UDAValue> uVal;
|
||||
type_tag type;
|
||||
std::string name;
|
||||
std::vector<value::status> valueStatus;
|
||||
bool rawData;
|
||||
std::vector<Dimension> activeDimensions, defaultDimensions;
|
||||
|
||||
unpack(dVal, buffer, position, comm);
|
||||
unpack(iVal, buffer, position, comm);
|
||||
unpack(sVal, buffer, position, comm);
|
||||
unpack(uVal, buffer, position, comm);
|
||||
unpack(type, buffer, position, comm);
|
||||
unpack(name, buffer, position, comm);
|
||||
unpack(valueStatus, buffer, position, comm);
|
||||
unpack(rawData, buffer, position, comm);
|
||||
unpack(activeDimensions, buffer, position, comm);
|
||||
unpack(defaultDimensions, buffer, position, comm);
|
||||
data = DeckItem(dVal, iVal, sVal, uVal, type, name,
|
||||
valueStatus, rawData, activeDimensions, defaultDimensions);
|
||||
}
|
||||
|
||||
void unpack(DeckRecord& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
|
||||
@@ -53,7 +53,6 @@ namespace Action {
|
||||
}
|
||||
|
||||
class Connection;
|
||||
class DeckItem;
|
||||
class DeckRecord;
|
||||
class Dimension;
|
||||
template<class T> class IOrderSet;
|
||||
@@ -407,7 +406,6 @@ ADD_PACK_PROTOTYPES(data::Solution)
|
||||
ADD_PACK_PROTOTYPES(data::Well)
|
||||
ADD_PACK_PROTOTYPES(data::WellRates)
|
||||
ADD_PACK_PROTOTYPES(Deck)
|
||||
ADD_PACK_PROTOTYPES(DeckItem)
|
||||
ADD_PACK_PROTOTYPES(DeckKeyword)
|
||||
ADD_PACK_PROTOTYPES(DeckRecord)
|
||||
ADD_PACK_PROTOTYPES(Dimension)
|
||||
|
||||
@@ -1929,7 +1929,7 @@ BOOST_AUTO_TEST_CASE(DeckItem)
|
||||
{Opm::Dimension(7.0, 8.0)},
|
||||
{Opm::Dimension(10.0, 11.0)});
|
||||
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(DeckItem)
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user