From f4af5fd947be6b3987c3e355c86089d42440a296 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 2 Sep 2022 18:12:09 +0200 Subject: [PATCH] data::Connection: add serializer support --- opm/output/data/Wells.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/opm/output/data/Wells.hpp b/opm/output/data/Wells.hpp index 1aaf4eeda..e466555da 100644 --- a/opm/output/data/Wells.hpp +++ b/opm/output/data/Wells.hpp @@ -233,6 +233,27 @@ namespace Opm { friend struct Mpi::Packing; inline void init_json(Json::JsonObject& json_data) const; + + template + void serializeOp(Serializer& serializer) + { + serializer(index); + rates.serializeOp(serializer); + serializer(pressure); + serializer(reservoir_rate); + serializer(cell_pressure); + serializer(cell_saturation_water); + serializer(cell_saturation_gas); + serializer(effective_Kh); + serializer(trans_factor); + } + + static Connection serializeObject() + { + return Connection{1, Rates::serializeObject(), + 2.0, 3.0, 4.0, 5.0, + 6.0, 7.0, 8.0}; + } }; class SegmentPressures {