diff --git a/opm/simulators/wells/SingleWellState.cpp b/opm/simulators/wells/SingleWellState.cpp index 947cae4e2..04a44a647 100644 --- a/opm/simulators/wells/SingleWellState.cpp +++ b/opm/simulators/wells/SingleWellState.cpp @@ -58,6 +58,7 @@ SingleWellState::SingleWellState(const std::string& name_, SingleWellState SingleWellState::serializationTestObject(const ParallelWellInfo& pinfo) { SingleWellState result("testing", pinfo, true, 1.0, {}, PhaseUsage{}, 2.0); + result.perf_data = PerfData::serializationTestObject(); return result; } diff --git a/opm/simulators/wells/SingleWellState.hpp b/opm/simulators/wells/SingleWellState.hpp index 3790f7c8b..7978b978c 100644 --- a/opm/simulators/wells/SingleWellState.hpp +++ b/opm/simulators/wells/SingleWellState.hpp @@ -71,6 +71,7 @@ public: serializer(events); serializer(injection_cmode); serializer(production_cmode); + serializer(perf_data); } bool operator==(const SingleWellState&) const;