mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove old serialization support for SimpleTable
This commit is contained in:
parent
4ad1353e53
commit
d9e28a7129
@ -54,7 +54,6 @@
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/Well/WListManager.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/Aqudims.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/FlatTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/SimpleTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/SkprpolyTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/StandardCond.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/TableColumn.hpp>
|
||||
@ -364,13 +363,6 @@ std::size_t packSize(const TableColumn& data, Dune::MPIHelper::MPICommunicator c
|
||||
packSize(data.defaultCount(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const SimpleTable& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.schema(), comm) +
|
||||
packSize(data.columns(), comm) +
|
||||
packSize(data.jfunc(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const TableContainer& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
size_t res = 2*packSize(data.max(), comm);
|
||||
@ -1396,14 +1388,6 @@ void pack(const TableColumn& data, std::vector<char>& buffer, int& position,
|
||||
pack(data.defaultCount(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const SimpleTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.schema(), buffer, position, comm);
|
||||
pack(data.columns(), buffer, position, comm);
|
||||
pack(data.jfunc(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const TableContainer& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@ -2471,18 +2455,6 @@ void unpack(TableColumn& data, std::vector<char>& buffer, int& position,
|
||||
data = TableColumn(schema, name, values, defaults, defaultCount);
|
||||
}
|
||||
|
||||
void unpack(SimpleTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
TableSchema schema;
|
||||
OrderedMap<std::string, TableColumn> columns;
|
||||
bool jf;
|
||||
unpack(schema, buffer, position, comm);
|
||||
unpack(columns, buffer, position, comm);
|
||||
unpack(jf, buffer, position, comm);
|
||||
data = SimpleTable(schema, columns, jf);
|
||||
}
|
||||
|
||||
void unpack(TableContainer& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
|
@ -74,7 +74,6 @@ class RestartConfig;
|
||||
class RestartSchedule;
|
||||
class RFTConfig;
|
||||
class Segment;
|
||||
class SimpleTable;
|
||||
class SkprpolyTable;
|
||||
class SolventDensityTable;
|
||||
class SpiralICD;
|
||||
@ -464,7 +463,6 @@ ADD_PACK_PROTOTYPES(RestartSchedule)
|
||||
ADD_PACK_PROTOTYPES(RestartValue)
|
||||
ADD_PACK_PROTOTYPES(RFTConfig)
|
||||
ADD_PACK_PROTOTYPES(Segment)
|
||||
ADD_PACK_PROTOTYPES(SimpleTable)
|
||||
ADD_PACK_PROTOTYPES(SkprpolyTable)
|
||||
ADD_PACK_PROTOTYPES(SolventDensityTable)
|
||||
ADD_PACK_PROTOTYPES(SpiralICD)
|
||||
|
@ -769,7 +769,7 @@ BOOST_AUTO_TEST_CASE(SimpleTable)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
Opm::SimpleTable val1 = getSimpleTable();
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(SimpleTable)
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user