Hello everyone,
Is Utilities::MPI::broadcast supposed to do the same as MPI_Bcast? I wanted an integer to be sent to all the ranks. So this is what I wrote:
Utilities::MPI::broadcast(mpi_communicator,rand_seed,0);
However, it seems to be not sending the variable.
Using MPI_Bcast as follows does the job.
MPI_Bcast(&rand_seed, 1, MPI_INT, 0, mpi_communicator);
Is my usage wrong or is it a bug?
Regards,
Rahul