Skip to content

Commit

Permalink
#443 Windows without MPI CI build fix on DFL
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitri Baron <[email protected]>
  • Loading branch information
barondim committed Dec 18, 2024
1 parent dc7c9fa commit 98f4d5c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sources/Common/DYNMultiProcessingContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,17 @@ class Context {
* @tparam T the data type to broadcast
* @param data the data to broadcast
*/
#ifdef _MPI_
template<class T>
void broadcast(T& data) const {
#ifdef _MPI_
broadcastImpl(Tag<T>(), data);
#endif
}
#else
template<class T>
void broadcast(T&) const {
// do nothing
}
#endif

#ifdef _MPI_
/**
Expand Down

0 comments on commit 98f4d5c

Please sign in to comment.