diff --git a/opm/output/data/Wells.hpp b/opm/output/data/Wells.hpp index 3ce3a6aff..d4074b8b1 100644 --- a/opm/output/data/Wells.hpp +++ b/opm/output/data/Wells.hpp @@ -284,6 +284,22 @@ namespace Opm { template void read(MessageBufferType& buffer); + + template + void serializeOp(Serializer& serializer) + { + serializer(isProducer); + serializer(prod); + serializer(inj); + } + + static CurrentControl serializeObject() + { + return CurrentControl{false, + ::Opm::Well::ProducerCMode::BHP, + ::Opm::Well::InjectorCMode::GRUP + }; + } }; struct Well {