mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove old serialization support for MULTREGTScanner
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/Fault.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/FaultCollection.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/FaultFace.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/MULTREGTScanner.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/TransMult.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/InitConfig/Equil.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/InitConfig/FoamConfig.hpp>
|
||||
@@ -1549,27 +1548,6 @@ std::size_t packSize(const GuideRateConfig::GroupTarget& data,
|
||||
packSize(data.target, comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const MULTREGTRecord& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.src_value, comm) +
|
||||
packSize(data.target_value, comm) +
|
||||
packSize(data.trans_mult, comm) +
|
||||
packSize(data.directions, comm) +
|
||||
packSize(data.nnc_behaviour, comm) +
|
||||
packSize(data.region_name, comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const MULTREGTScanner& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.getSize(), comm) +
|
||||
packSize(data.getRecords(), comm) +
|
||||
packSize(data.getSearchMap(), comm) +
|
||||
packSize(data.getRegions(), comm) +
|
||||
packSize(data.getDefaultRegion(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const EclipseConfig& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@@ -3099,29 +3077,6 @@ void pack(const GuideRateConfig::GroupTarget& data,
|
||||
pack(data.target, buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const MULTREGTRecord& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.src_value, buffer, position, comm);
|
||||
pack(data.target_value, buffer, position, comm);
|
||||
pack(data.trans_mult, buffer, position, comm);
|
||||
pack(data.directions, buffer, position, comm);
|
||||
pack(data.nnc_behaviour, buffer, position, comm);
|
||||
pack(data.region_name, buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const MULTREGTScanner& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.getSize(), buffer, position, comm);
|
||||
pack(data.getRecords(), buffer, position, comm);
|
||||
pack(data.getSearchMap(), buffer, position, comm);
|
||||
pack(data.getRegions(), buffer, position, comm);
|
||||
pack(data.getDefaultRegion(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const EclipseConfig& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
@@ -5275,37 +5230,6 @@ void unpack(GuideRateConfig::GroupTarget& data,
|
||||
unpack(data.target, buffer, position, comm);
|
||||
}
|
||||
|
||||
void unpack(MULTREGTRecord& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
unpack(data.src_value, buffer, position, comm);
|
||||
unpack(data.target_value, buffer, position, comm);
|
||||
unpack(data.trans_mult, buffer, position, comm);
|
||||
unpack(data.directions, buffer, position, comm);
|
||||
unpack(data.nnc_behaviour, buffer, position, comm);
|
||||
unpack(data.region_name, buffer, position, comm);
|
||||
}
|
||||
|
||||
void unpack(MULTREGTScanner& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
std::array<size_t, 3> size;
|
||||
std::vector<MULTREGTRecord> records;
|
||||
MULTREGTScanner::ExternalSearchMap searchMap;
|
||||
std::map<std::string, std::vector<int>> regions;
|
||||
std::string defaultRegion;
|
||||
|
||||
unpack(size, buffer, position, comm);
|
||||
unpack(records, buffer, position, comm);
|
||||
unpack(searchMap, buffer, position, comm);
|
||||
unpack(regions, buffer, position, comm);
|
||||
unpack(defaultRegion, buffer, position, comm);
|
||||
|
||||
data = MULTREGTScanner(size, records, searchMap, regions, defaultRegion);
|
||||
}
|
||||
|
||||
void unpack(EclipseConfig& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
|
||||
@@ -94,8 +94,6 @@ class JFunc;
|
||||
class Location;
|
||||
class MessageLimits;
|
||||
class MLimits;
|
||||
class MULTREGTRecord;
|
||||
class MULTREGTScanner;
|
||||
class OilVaporizationProperties;
|
||||
class Phases;
|
||||
class PlymwinjTable;
|
||||
@@ -551,8 +549,6 @@ ADD_PACK_PROTOTYPES(JFunc)
|
||||
ADD_PACK_PROTOTYPES(Location)
|
||||
ADD_PACK_PROTOTYPES(MessageLimits)
|
||||
ADD_PACK_PROTOTYPES(MLimits)
|
||||
ADD_PACK_PROTOTYPES(MULTREGTRecord)
|
||||
ADD_PACK_PROTOTYPES(MULTREGTScanner)
|
||||
ADD_PACK_PROTOTYPES(OilVaporizationProperties)
|
||||
ADD_PACK_PROTOTYPES(Phases)
|
||||
ADD_PACK_PROTOTYPES(PlmixparRecord)
|
||||
|
||||
@@ -2232,7 +2232,7 @@ BOOST_AUTO_TEST_CASE(MULTREGTRecord)
|
||||
{
|
||||
#ifdef HAVE_MPI
|
||||
Opm::MULTREGTRecord val1{1, 2, 3.0, 4, Opm::MULTREGT::ALL, "test"};
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(MULTREGTRecord)
|
||||
#endif
|
||||
}
|
||||
@@ -2251,7 +2251,7 @@ BOOST_AUTO_TEST_CASE(MULTREGTScanner)
|
||||
{{"test3", {7,8}}},
|
||||
"test4");
|
||||
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(MULTREGTScanner)
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user