mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
update mpi serialization for Runspec
add stonetype
This commit is contained in:
@@ -774,7 +774,8 @@ std::size_t packSize(const Runspec& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
packSize(data.udqParams(), comm) +
|
||||
packSize(data.hysterPar(), comm) +
|
||||
packSize(data.actdims(), comm) +
|
||||
packSize(data.saturationFunctionControls(), comm);
|
||||
packSize(data.saturationFunctionControls(), comm) +
|
||||
packSize(data.stoneType(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const PvtxTable& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
@@ -2484,6 +2485,7 @@ void pack(const Runspec& data, std::vector<char>& buffer, int& position,
|
||||
pack(data.hysterPar(), buffer, position, comm);
|
||||
pack(data.actdims(), buffer, position, comm);
|
||||
pack(data.saturationFunctionControls(), buffer, position, comm);
|
||||
pack(data.stoneType(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const PvtxTable& data, std::vector<char>& buffer, int& position,
|
||||
@@ -4425,6 +4427,8 @@ void unpack(Runspec& data, std::vector<char>& buffer, int& position,
|
||||
EclHysterConfig hystPar;
|
||||
Actdims actdims;
|
||||
SatFuncControls sfuncctrl;
|
||||
Runspec::StoneType stonetype;
|
||||
|
||||
unpack(phases, buffer, position, comm);
|
||||
unpack(tabdims, buffer, position, comm);
|
||||
unpack(endScale, buffer, position, comm);
|
||||
@@ -4434,8 +4438,9 @@ void unpack(Runspec& data, std::vector<char>& buffer, int& position,
|
||||
unpack(hystPar, buffer, position, comm);
|
||||
unpack(actdims, buffer, position, comm);
|
||||
unpack(sfuncctrl, buffer, position, comm);
|
||||
unpack(stonetype, buffer, position, comm);
|
||||
data = Runspec(phases, tabdims, endScale, wellDims, wsegDims,
|
||||
udqparams, hystPar, actdims, sfuncctrl);
|
||||
udqparams, hystPar, actdims, sfuncctrl, stonetype);
|
||||
}
|
||||
|
||||
template<class PVTType>
|
||||
|
||||
Reference in New Issue
Block a user