Merge pull request #589 from akva2/serialization_brine_module

add mpi serialization for BlackoilBrineModule
This commit is contained in:
Tor Harald Sandve 2020-02-17 14:16:21 +01:00 committed by GitHub
commit 32bb94624a

View File

@ -316,6 +316,29 @@ public:
return !bdensityTable_.empty();
}
template<class Serializer>
static std::size_t packSize(Serializer& serializer)
{
return serializer.packSize(bdensityTable_) +
serializer.packSize(referencePressure_);
}
template<class Serializer>
static void pack(std::vector<char>& buffer, int& position,
Serializer& serializer)
{
serializer.pack(bdensityTable_, buffer, position);
serializer.pack(referencePressure_, buffer, position);
}
template<class Serializer>
static void unpack(std::vector<char>& buffer, int& position,
Serializer& serializer)
{
serializer.unpack(bdensityTable_, buffer, position);
serializer.unpack(referencePressure_, buffer, position);
}
private:
static std::vector<TabulatedFunction> bdensityTable_;
static std::vector<Scalar> referencePressure_;