From 9cf815ab95c5c11ea8b3ccb75080d016b2ebe676 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 12 Mar 2020 12:15:41 +0100 Subject: [PATCH] remove unused templates --- opm/simulators/utils/ParallelRestart.hpp | 25 ------------------------ 1 file changed, 25 deletions(-) diff --git a/opm/simulators/utils/ParallelRestart.hpp b/opm/simulators/utils/ParallelRestart.hpp index 4fee48679..3e4db769e 100644 --- a/opm/simulators/utils/ParallelRestart.hpp +++ b/opm/simulators/utils/ParallelRestart.hpp @@ -659,31 +659,6 @@ ADD_PACK_PROTOTYPES(WellTracerProperties) ADD_PACK_PROTOTYPES(WList) ADD_PACK_PROTOTYPES(WListManager) -template -const T& packAndSend(const T& in, const C& comm) -{ - if (comm.size() == 1) - return in; - - std::size_t size = packSize(in, comm); - std::vector buffer(size); - int pos = 0; - Mpi::pack(in, buffer, pos, comm); - comm.broadcast(&pos, 1, 0); - comm.broadcast(buffer.data(), pos, 0); - return in; -} - -template -void receiveAndUnpack(T& result, const C& comm) -{ - int size; - comm.broadcast(&size, 1, 0); - std::vector buffer(size); - comm.broadcast(buffer.data(), size, 0); - int pos = 0; - unpack(result, buffer, pos, comm); -} } // end namespace Mpi RestartValue loadParallelRestart(const EclipseIO* eclIO, SummaryState& summaryState,