From 6bf2f8e285b95ae73c520b2c207801da69810eb0 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 13 Jan 2020 11:57:19 +0100 Subject: [PATCH] add missing Connection serialization in Well --- opm/simulators/utils/ParallelRestart.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opm/simulators/utils/ParallelRestart.cpp b/opm/simulators/utils/ParallelRestart.cpp index ab7b47db3..5e1d1f8c6 100644 --- a/opm/simulators/utils/ParallelRestart.cpp +++ b/opm/simulators/utils/ParallelRestart.cpp @@ -1406,6 +1406,7 @@ std::size_t packSize(const Well& data, packSize(data.getPolymerProperties(), comm) + packSize(data.getBrineProperties(), comm) + packSize(data.getTracerProperties(), comm) + + packSize(data.getConnections(), comm) + packSize(data.getProductionProperties(), comm) + packSize(data.getInjectionProperties(), comm) + packSize(data.hasSegments(), comm); @@ -3114,6 +3115,7 @@ void pack(const Well& data, pack(data.getPolymerProperties(), buffer, position, comm); pack(data.getBrineProperties(), buffer, position, comm); pack(data.getTracerProperties(), buffer, position, comm); + pack(data.getConnections(), buffer, position, comm); pack(data.getProductionProperties(), buffer, position, comm); pack(data.getInjectionProperties(), buffer, position, comm); pack(data.hasSegments(), buffer, position, comm); @@ -5379,6 +5381,7 @@ void unpack(Well& data, unpack(*polymerProperties, buffer, position, comm); unpack(*brineProperties, buffer, position, comm); unpack(*tracerProperties, buffer, position, comm); + unpack(*connection, buffer, position, comm); unpack(*production, buffer, position, comm); unpack(*injection, buffer, position, comm); bool hasSegments;