mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 09:22:05 -05:00
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:
1 parent
6f0b06715e
commit
24e252f46d
1 file changed
+6
@@ -385,6 +385,7 @@ void variadic_unpack(int& pos, std::vector<char>& buffer, Parallel::Communicatio
|
|||||||
variadic_unpack(pos, buffer, comm, std::forward<Args>(args)...);
|
variadic_unpack(pos, buffer, comm, std::forward<Args>(args)...);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAVE_MPI
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
void broadcast(Parallel::Communication comm, int root, Args&&... 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)...);
|
variadic_unpack(pos, buffer, comm, std::forward<Args>(args)...);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
template<typename... Args>
|
||||||
|
void broadcast(Parallel::Communication, int, Args&&...)
|
||||||
|
{}
|
||||||
|
#endif
|
||||||
|
|
||||||
} // end namespace Mpi
|
} // end namespace Mpi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user