diff --git a/opm/output/data/Wells.hpp b/opm/output/data/Wells.hpp index e466555da..22d3db068 100644 --- a/opm/output/data/Wells.hpp +++ b/opm/output/data/Wells.hpp @@ -381,6 +381,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 {