diff --git a/opm/models/blackoil/blackoilbrinemodules.hh b/opm/models/blackoil/blackoilbrinemodules.hh index 7e23973d8..0eb1adad0 100644 --- a/opm/models/blackoil/blackoilbrinemodules.hh +++ b/opm/models/blackoil/blackoilbrinemodules.hh @@ -316,6 +316,29 @@ public: return !bdensityTable_.empty(); } + template + static std::size_t packSize(Serializer& serializer) + { + return serializer.packSize(bdensityTable_) + + serializer.packSize(referencePressure_); + } + + template + static void pack(std::vector& buffer, int& position, + Serializer& serializer) + { + serializer.pack(bdensityTable_, buffer, position); + serializer.pack(referencePressure_, buffer, position); + } + + template + static void unpack(std::vector& buffer, int& position, + Serializer& serializer) + { + serializer.unpack(bdensityTable_, buffer, position); + serializer.unpack(referencePressure_, buffer, position); + } + private: static std::vector bdensityTable_; static std::vector referencePressure_;