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