From 24e252f46d19786395bcfbaebda5cb6701dba7cb Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 10 Nov 2021 10:41:24 +0100 Subject: [PATCH] fix serial build after PR #3675 annoyingly, dune has a casting operator for mpicollectivecommunication -> MPIComm but for some reason does not have a casting operator for the dummy collectivecommunication -> No_Comm --- opm/simulators/utils/ParallelRestart.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opm/simulators/utils/ParallelRestart.hpp b/opm/simulators/utils/ParallelRestart.hpp index ffbd84353..15b4b6be5 100644 --- a/opm/simulators/utils/ParallelRestart.hpp +++ b/opm/simulators/utils/ParallelRestart.hpp @@ -385,6 +385,7 @@ void variadic_unpack(int& pos, std::vector& buffer, Parallel::Communicatio variadic_unpack(pos, buffer, comm, std::forward(args)...); } +#if HAVE_MPI template void broadcast(Parallel::Communication comm, int root, Args&&... args) { @@ -407,6 +408,11 @@ void broadcast(Parallel::Communication comm, int root, Args&&... args) variadic_unpack(pos, buffer, comm, std::forward(args)...); } } +#else +template +void broadcast(Parallel::Communication, int, Args&&...) +{} +#endif } // end namespace Mpi