1 #include "../internal/monolish_internal.hpp"
2 #include "../internal/mpi/mpi_util.hpp"
7 template <
typename T>
void Bcast_core(T &val,
int root,
MPI_Comm comm) {
11 #if defined MONOLISH_USE_MPI
12 MPI_Bcast(&val, 1, internal::mpi::get_type(val), root, comm);
20 void Bcast_core(std::vector<T> &vec,
int root,
MPI_Comm comm) {
24 #if defined MONOLISH_USE_MPI
25 MPI_Bcast(vec.data(), vec.size(), internal::mpi::get_type(vec.data()[0]),
38 #if defined MONOLISH_USE_MPI
39 MPI_Bcast(vec.
data(), vec.
size(), internal::mpi::get_type(vec.
data()[0]),