Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
schnellerhase committed Nov 3, 2024
1 parent da98370 commit 1cf84d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/dolfinx/common/MPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ struct dependent_false : std::false_type
};

/// MPI Type

/// @brief Type trait for MPI type conversions.
template <typename T>
struct mpi_type_mapping;

Expand All @@ -277,6 +279,8 @@ struct mpi_type_mapping;
template <typename T>
MPI_Datatype mpi_t = mpi_type_mapping<T>::type;

/// @brief Registers for cpp_t the correpsonding mpi_t which can then be
/// retrieved with mpi_t<cpp_t> form here on.
#define MAP_TO_MPI_TYPE(cpp_t, mpi_t) \
template <> \
struct mpi_type_mapping<cpp_t> \
Expand Down

0 comments on commit 1cf84d3

Please sign in to comment.