diff --git a/sources/Common/DYNMultiProcessingContext.h b/sources/Common/DYNMultiProcessingContext.h index eaf3d31..190d6fb 100644 --- a/sources/Common/DYNMultiProcessingContext.h +++ b/sources/Common/DYNMultiProcessingContext.h @@ -99,9 +99,8 @@ class Context { static Context* instance_; ///< Unique instance static bool finalized_; ///< Instance is already finalized -#ifdef _MPI_ - public: +#ifdef _MPI_ /** * @brief Gather all data into root rank * @@ -113,6 +112,7 @@ class Context { void gather(const T& data, std::vector& recvData) const { gatherImpl(Tag(), data, recvData); } +#endif /** * @brief Broadcast data from root rank to all process @@ -122,9 +122,12 @@ class Context { */ template void broadcast(T& data) const { +#ifdef _MPI_ broadcastImpl(Tag(), data); +#endif } +#ifdef _MPI_ /** * @brief Retrieve the rank of the current process *