mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove old serialization support for PvtgTable, PvtoTable, PvtxTable
This commit is contained in:
parent
5c5afb1b4a
commit
2784dc5800
@ -54,8 +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/PvtgTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/PvtoTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/Regdims.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/Rock2dTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/Rock2dtrTable.hpp>
|
||||
@ -417,26 +415,6 @@ std::size_t packSize(const RestartConfig& data, Dune::MPIHelper::MPICommunicator
|
||||
packSize(data.saveKeywords(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const PvtxTable& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.getOuterColumnSchema(), comm) +
|
||||
packSize(data.getOuterColumn(), comm) +
|
||||
packSize(data.getUnderSaturatedSchema(), comm) +
|
||||
packSize(data.getSaturatedSchema(), comm) +
|
||||
packSize(data.getUnderSaturatedTables(), comm) +
|
||||
packSize(data.getSaturatedTable(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const PvtgTable& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(static_cast<const PvtxTable&>(data), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const PvtoTable& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(static_cast<const PvtxTable&>(data), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const SkprpolyTable& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(static_cast<const PolyInjTable&>(data), comm) +
|
||||
@ -1499,29 +1477,6 @@ void pack(const RestartConfig& data, std::vector<char>& buffer, int& position,
|
||||
pack(data.saveKeywords(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const PvtxTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.getOuterColumnSchema(), buffer, position, comm);
|
||||
pack(data.getOuterColumn(), buffer, position, comm);
|
||||
pack(data.getUnderSaturatedSchema(), buffer, position, comm);
|
||||
pack(data.getSaturatedSchema(), buffer, position, comm);
|
||||
pack(data.getUnderSaturatedTables(), buffer, position, comm);
|
||||
pack(data.getSaturatedTable(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const PvtgTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(static_cast<const PvtxTable&>(data), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const PvtoTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(static_cast<const PvtxTable&>(data), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const SkprpolyTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@ -2637,37 +2592,6 @@ void unpack(RestartConfig& data, std::vector<char>& buffer, int& position,
|
||||
restart_keyw, save_keyw);
|
||||
}
|
||||
|
||||
template<class PVTType>
|
||||
void unpack_pvt(PVTType& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
ColumnSchema outer_schema;
|
||||
TableColumn outer_column;
|
||||
TableSchema undersat_schema, sat_schema;
|
||||
std::vector<SimpleTable> undersat_tables;
|
||||
SimpleTable sat_table;
|
||||
unpack(outer_schema, buffer, position, comm);
|
||||
unpack(outer_column, buffer, position, comm);
|
||||
unpack(undersat_schema, buffer, position, comm);
|
||||
unpack(sat_schema, buffer, position, comm);
|
||||
unpack(undersat_tables, buffer, position, comm);
|
||||
unpack(sat_table, buffer, position, comm);
|
||||
data = PVTType(outer_schema, outer_column, undersat_schema, sat_schema,
|
||||
undersat_tables, sat_table);
|
||||
}
|
||||
|
||||
void unpack(PvtgTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
unpack_pvt(data, buffer, position, comm);
|
||||
}
|
||||
|
||||
void unpack(PvtoTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
unpack_pvt(data, buffer, position, comm);
|
||||
}
|
||||
|
||||
void unpack(SkprpolyTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
|
@ -70,8 +70,6 @@ class MLimits;
|
||||
class OilVaporizationProperties;
|
||||
class PlyvmhRecord;
|
||||
class PlyvmhTable;
|
||||
class PvtgTable;
|
||||
class PvtoTable;
|
||||
class Regdims;
|
||||
class RestartConfig;
|
||||
class RestartSchedule;
|
||||
@ -464,8 +462,6 @@ ADD_PACK_PROTOTYPES(MLimits)
|
||||
ADD_PACK_PROTOTYPES(OilVaporizationProperties)
|
||||
ADD_PACK_PROTOTYPES(PlyvmhRecord)
|
||||
ADD_PACK_PROTOTYPES(PlyvmhTable)
|
||||
ADD_PACK_PROTOTYPES(PvtgTable)
|
||||
ADD_PACK_PROTOTYPES(PvtoTable)
|
||||
ADD_PACK_PROTOTYPES(Regdims)
|
||||
ADD_PACK_PROTOTYPES(RestartConfig)
|
||||
ADD_PACK_PROTOTYPES(RestartKey)
|
||||
|
@ -1011,7 +1011,7 @@ BOOST_AUTO_TEST_CASE(PvtgTable)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
Opm::PvtgTable val1 = getPvtgTable();
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(PvtgTable)
|
||||
#endif
|
||||
}
|
||||
@ -1021,7 +1021,7 @@ BOOST_AUTO_TEST_CASE(PvtoTable)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
Opm::PvtoTable val1 = getPvtoTable();
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(PvtoTable)
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user