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
This commit is contained in:
Arne Morten Kvarving committed 2021-11-10 10:41:24 +01:00
1 parent 6f0b06715e
commit 24e252f46d
1 file changed
+6
+6
View File
@@ -385,6 +385,7 @@ void variadic_unpack(int& pos, std::vector<char>& buffer, Parallel::Communicatio
variadic_unpack(pos, buffer, comm, std::forward<Args>(args)...);
}
#if HAVE_MPI
template<typename... Args>
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>(args)...);
}
}
#else
template<typename... Args>
void broadcast(Parallel::Communication, int, Args&&...)
{}
#endif
} // end namespace Mpi