Skip to content

Commit

Permalink
#443 Doxygen fix
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitri Baron <[email protected]>
  • Loading branch information
barondim authored and rosiereflo committed Dec 19, 2024
1 parent 4d59689 commit 3041367
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sources/Common/DYNMultiProcessingContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,25 @@ class Context {
}
#endif

#ifdef _MPI_
/**
* @brief Broadcast data from root rank to all process
*
* @tparam T the data type to broadcast
* @param data the data to broadcast
*/
#ifdef _MPI_
template<class T>
void broadcast(T& data) const {
broadcastImpl(Tag<T>(), data);
}
#else
/**
* @brief No-op broadcast function for builds without MPI
*
* When MPI is not enabled, this function does nothing. It is provided to maintain interface compatibility.
*
* @tparam T the data type to broadcast
*/
template<class T>
void broadcast(T&) const {
// do nothing
Expand Down

0 comments on commit 3041367

Please sign in to comment.