mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 18:21:00 -06:00
Merge pull request #589 from akva2/serialization_brine_module
add mpi serialization for BlackoilBrineModule
This commit is contained in:
commit
32bb94624a
@ -316,6 +316,29 @@ public:
|
|||||||
return !bdensityTable_.empty();
|
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:
|
private:
|
||||||
static std::vector<TabulatedFunction> bdensityTable_;
|
static std::vector<TabulatedFunction> bdensityTable_;
|
||||||
static std::vector<Scalar> referencePressure_;
|
static std::vector<Scalar> referencePressure_;
|
||||||
|
Loading…
Reference in New Issue
Block a user