mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06: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:
parent
6f0b06715e
commit
24e252f46d
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user