Add friend declarations to enable writing out of class packing functions.

This commit is contained in:
Atgeirr Flø Rasmussen
2022-08-23 16:27:07 +02:00
parent e4346da3ea
commit 8754a59d38

View File

@@ -36,6 +36,8 @@
namespace Opm {
namespace Mpi { template <class T> struct Packing; }
namespace data {
class Rates {
@@ -101,6 +103,8 @@ namespace Opm {
template <class MessageBufferType>
void read(MessageBufferType& buffer);
friend struct Mpi::Packing<Rates>;
bool operator==(const Rates& rat2) const;
inline void init_json(Json::JsonObject& json_data) const;
@@ -167,6 +171,8 @@ namespace Opm {
template <class MessageBufferType>
void read(MessageBufferType& buffer);
friend struct Mpi::Packing<Connection>;
inline void init_json(Json::JsonObject& json_data) const;
};
@@ -207,6 +213,8 @@ namespace Opm {
}
}
friend struct Mpi::Packing<SegmentPressures>;
private:
constexpr static std::size_t numvals = 5;
@@ -235,6 +243,8 @@ namespace Opm {
template <class MessageBufferType>
void read(MessageBufferType& buffer);
friend struct Mpi::Packing<Segment>;
};
struct CurrentControl {