From 7670a0c2480e159fa6eec7ed44dd3ec109981117 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 2 Sep 2022 18:12:09 +0200 Subject: [PATCH] RestartKey: add serializer support --- opm/output/eclipse/RestartValue.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/opm/output/eclipse/RestartValue.hpp b/opm/output/eclipse/RestartValue.hpp index 36f351961..875093abd 100644 --- a/opm/output/eclipse/RestartValue.hpp +++ b/opm/output/eclipse/RestartValue.hpp @@ -60,6 +60,19 @@ namespace Opm { dim == key2.dim && required == key2.required; } + + template + void serializeOp(Serializer& serializer) + { + serializer(key); + serializer(dim); + serializer(required); + } + + static RestartKey serializeObject() + { + return RestartKey{"test_key", UnitSystem::measure::effective_Kh, true}; + } }; /*