From 98f4d5c34eb4c2006d592f9a12164131c45bfc86 Mon Sep 17 00:00:00 2001 From: Dimitri Baron Date: Wed, 18 Dec 2024 17:10:34 +0100 Subject: [PATCH] #443 Windows without MPI CI build fix on DFL Signed-off-by: Dimitri Baron --- sources/Common/DYNMultiProcessingContext.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sources/Common/DYNMultiProcessingContext.h b/sources/Common/DYNMultiProcessingContext.h index 190d6fb4..2c6a275c 100644 --- a/sources/Common/DYNMultiProcessingContext.h +++ b/sources/Common/DYNMultiProcessingContext.h @@ -120,12 +120,17 @@ class Context { * @tparam T the data type to broadcast * @param data the data to broadcast */ +#ifdef _MPI_ template void broadcast(T& data) const { -#ifdef _MPI_ broadcastImpl(Tag(), data); -#endif } +#else + template + void broadcast(T&) const { + // do nothing + } +#endif #ifdef _MPI_ /**