diff --git a/opm/simulators/utils/ParallelRestart.hpp b/opm/simulators/utils/ParallelRestart.hpp index 29e496e87..224f33002 100644 --- a/opm/simulators/utils/ParallelRestart.hpp +++ b/opm/simulators/utils/ParallelRestart.hpp @@ -755,8 +755,8 @@ ADD_PACK_PROTOTYPES(WellTracerProperties) ADD_PACK_PROTOTYPES(WList) ADD_PACK_PROTOTYPES(WListManager) -template -const T& packAndSend(const T& in, const auto& comm) +template +const T& packAndSend(const T& in, const C& comm) { if (comm.size() == 0) return in; @@ -770,8 +770,8 @@ const T& packAndSend(const T& in, const auto& comm) return in; } -template -void receiveAndUnpack(T& result, const auto& comm) +template +void receiveAndUnpack(T& result, const C& comm) { int size; comm.broadcast(&size, 1, 0);