21 #ifndef _aspect_compat_h 22 #define _aspect_compat_h 34 #if DEAL_II_VERSION_GTE(9,4,0) 54 const unsigned int root,
57 Assert(root < ::Utilities::MPI::n_mpi_processes(comm),
58 ::ExcMessage(
"Invalid root rank specified."));
62 const size_t max_send_count = std::numeric_limits<signed int>::max();
64 size_t total_sent_count = 0;
65 while (total_sent_count < count)
67 const size_t current_count =
68 std::min(count - total_sent_count, max_send_count);
70 const int ierr = MPI_Bcast(buffer + total_sent_count,
76 total_sent_count += current_count;
void broadcast(T *buffer, const size_t count, const unsigned int root, const MPI_Comm &comm)
MPI_Datatype mpi_type_id(const char *)