From d5bc4d539c8c7d3b5cebc578d76205660b955dcd Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Tue, 15 Sep 2020 16:25:11 +0200 Subject: [PATCH] Distribute transmissibility calculator of the FieldPropsManager --- opm/simulators/utils/PropsCentroidsDataHandle.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opm/simulators/utils/PropsCentroidsDataHandle.hpp b/opm/simulators/utils/PropsCentroidsDataHandle.hpp index fbbea7bb7..cb31b916a 100644 --- a/opm/simulators/utils/PropsCentroidsDataHandle.hpp +++ b/opm/simulators/utils/PropsCentroidsDataHandle.hpp @@ -81,6 +81,11 @@ public: int position = 0; Mpi::pack(m_intKeys, buffer, position, comm); Mpi::pack(m_doubleKeys, buffer, position, comm); + { + std::vector tran_buffer = globalProps.serialize_tran(); + position += tran_buffer.size(); + buffer.insert(buffer.end(), std::make_move_iterator(tran_buffer.begin()), std::make_move_iterator(tran_buffer.end())); + } comm.broadcast(&position, 1, 0); comm.broadcast(buffer.data(), position, 0); @@ -121,6 +126,7 @@ public: int position{}; Mpi::unpack(m_intKeys, buffer, position, comm); Mpi::unpack(m_doubleKeys, buffer, position, comm); + m_distributed_fieldProps.deserialize_tran( std::vector(buffer.begin() + position, buffer.end()) ); m_no_data = m_intKeys.size() + m_doubleKeys.size() + Grid::dimensionworld; }