mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove old serialization support for SkprpolyTable
This commit is contained in:
parent
d9e28a7129
commit
c409f7a084
@ -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/SkprpolyTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/StandardCond.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/TableColumn.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/TableContainer.hpp>
|
||||
@ -390,12 +389,6 @@ std::size_t packSize(const RestartConfig& data, Dune::MPIHelper::MPICommunicator
|
||||
packSize(data.saveKeywords(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const SkprpolyTable& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(static_cast<const PolyInjTable&>(data), comm) +
|
||||
packSize(data.referenceConcentration(), comm);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
struct SplitSimpleTables {
|
||||
@ -1424,13 +1417,6 @@ void pack(const RestartConfig& data, std::vector<char>& buffer, int& position,
|
||||
pack(data.saveKeywords(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const SkprpolyTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(static_cast<const PolyInjTable&>(data), buffer, position, comm);
|
||||
pack(data.referenceConcentration(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const TableManager& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@ -2500,15 +2486,6 @@ void unpack(RestartConfig& data, std::vector<char>& buffer, int& position,
|
||||
restart_keyw, save_keyw);
|
||||
}
|
||||
|
||||
void unpack(SkprpolyTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
unpack(static_cast<PolyInjTable&>(data), buffer, position, comm);
|
||||
double refConcentration;
|
||||
unpack(refConcentration, buffer, position, comm);
|
||||
data.setReferenceConcentration(refConcentration);
|
||||
}
|
||||
|
||||
void unpack(TableManager& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
|
@ -74,7 +74,6 @@ class RestartConfig;
|
||||
class RestartSchedule;
|
||||
class RFTConfig;
|
||||
class Segment;
|
||||
class SkprpolyTable;
|
||||
class SolventDensityTable;
|
||||
class SpiralICD;
|
||||
class StandardCond;
|
||||
@ -463,7 +462,6 @@ ADD_PACK_PROTOTYPES(RestartSchedule)
|
||||
ADD_PACK_PROTOTYPES(RestartValue)
|
||||
ADD_PACK_PROTOTYPES(RFTConfig)
|
||||
ADD_PACK_PROTOTYPES(Segment)
|
||||
ADD_PACK_PROTOTYPES(SkprpolyTable)
|
||||
ADD_PACK_PROTOTYPES(SolventDensityTable)
|
||||
ADD_PACK_PROTOTYPES(SpiralICD)
|
||||
ADD_PACK_PROTOTYPES(std::string)
|
||||
|
@ -1152,7 +1152,7 @@ BOOST_AUTO_TEST_CASE(SkprpolyTable)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
Opm::SkprpolyTable val1({1.0}, {2.0}, 1, {{1.0}, {2.0}}, 3.0);
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(SkprpolyTable)
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user