mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove old serialization support for Action::Condition
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include "ParallelRestart.hpp"
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/FaceDir.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/Action/Actions.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/Action/Condition.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/MSW/icd.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/MSW/SpiralICD.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/MSW/Valve.hpp>
|
||||
@@ -663,16 +662,6 @@ std::size_t packSize(const Deck& data,
|
||||
packSize(data.unitSystemAccessCount(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const Action::Condition& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.lhs, comm) +
|
||||
packSize(data.rhs, comm) +
|
||||
packSize(data.logic, comm) +
|
||||
packSize(data.cmp, comm) +
|
||||
packSize(data.cmp_string, comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const Action::Actions& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@@ -1319,17 +1308,6 @@ void pack(const Deck& data,
|
||||
pack(data.unitSystemAccessCount(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const Action::Condition& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.lhs, buffer, position, comm);
|
||||
pack(data.rhs, buffer, position, comm);
|
||||
pack(data.logic, buffer, position, comm);
|
||||
pack(data.cmp, buffer, position, comm);
|
||||
pack(data.cmp_string, buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const Action::Actions& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
@@ -2214,16 +2192,6 @@ void unpack(Deck& data, std::vector<char>& buffer, int& position,
|
||||
activeUnitSystem.get(), dataFile, inputPath, accessCount);
|
||||
}
|
||||
|
||||
void unpack(Action::Condition& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
unpack(data.lhs, buffer, position, comm);
|
||||
unpack(data.rhs, buffer, position, comm);
|
||||
unpack(data.logic, buffer, position, comm);
|
||||
unpack(data.cmp, buffer, position, comm);
|
||||
unpack(data.cmp_string, buffer, position, comm);
|
||||
}
|
||||
|
||||
void unpack(Action::Actions& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
|
||||
@@ -45,9 +45,7 @@ namespace Opm
|
||||
|
||||
namespace Action {
|
||||
class Actions;
|
||||
class Condition;
|
||||
}
|
||||
|
||||
class Connection;
|
||||
class Dimension;
|
||||
template<class T> class IOrderSet;
|
||||
@@ -385,7 +383,6 @@ void unpack(char* str, std::size_t length, std::vector<char>& buffer, int& posit
|
||||
Dune::MPIHelper::MPICommunicator comm);
|
||||
|
||||
ADD_PACK_PROTOTYPES(Action::Actions)
|
||||
ADD_PACK_PROTOTYPES(Action::Condition)
|
||||
ADD_PACK_PROTOTYPES(Connection)
|
||||
ADD_PACK_PROTOTYPES(data::CellData)
|
||||
ADD_PACK_PROTOTYPES(data::Connection)
|
||||
|
||||
@@ -2030,7 +2030,7 @@ BOOST_AUTO_TEST_CASE(Condition)
|
||||
{
|
||||
#ifdef HAVE_MPI
|
||||
Opm::Action::Condition val1 = getCondition();
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(Action::Condition)
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user