if(mpi_rank.eq.master)then
call mpi_bcast(a, 1, mpi_integer, mpi_rank, mpi_comm_world, ierr)
endif
The above will not work since in fact not all processors are calling mpi_bcast. We can only use send receive
in this case?
In this case, only the master processor knows he is the master advisor. Others do not know. I have tried many approaches. This seems difficult for me. Only the master knows he is the master processor and he is gonna share some value with all the other processors.