mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add mpi serialization for PlymwinjTable
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/ColumnSchema.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/FlatTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/JFunc.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/PlymwinjTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/PolyInjTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/PvtgTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/PvtoTable.hpp>
|
||||
@@ -486,6 +487,11 @@ std::size_t packSize(const PolyInjTable& data, Dune::MPIHelper::MPICommunicator
|
||||
packSize(data.getTableData(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const PlymwinjTable& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(static_cast<const PolyInjTable&>(data), comm);
|
||||
}
|
||||
|
||||
////// pack routines
|
||||
|
||||
template<class T>
|
||||
@@ -958,6 +964,12 @@ void pack(const PolyInjTable& data, std::vector<char>& buffer, int& position,
|
||||
pack(data.getTableData(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const PlymwinjTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(static_cast<const PolyInjTable&>(data), buffer, position, comm);
|
||||
}
|
||||
|
||||
/// unpack routines
|
||||
|
||||
template<class T>
|
||||
@@ -1555,6 +1567,12 @@ void unpack(PolyInjTable& data, std::vector<char>& buffer, int& position,
|
||||
data = PolyInjTable(throughputs, velocities, tableNumber, tableData);
|
||||
}
|
||||
|
||||
void unpack(PlymwinjTable& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
unpack(static_cast<PolyInjTable&>(data), buffer, position, comm);
|
||||
}
|
||||
|
||||
} // end namespace Mpi
|
||||
RestartValue loadParallelRestart(const EclipseIO* eclIO, SummaryState& summaryState,
|
||||
const std::vector<Opm::RestartKey>& solutionKeys,
|
||||
|
||||
Reference in New Issue
Block a user