FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | i | |||
integer, | intent(in) | :: | src |
subroutine bcastfrom_integer (i, src)
implicit none
integer, intent (in out) :: i
integer, intent (in) :: src
# ifdef MPI
integer :: ierror
!$OMP MASTER
call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
call mpi_bcast (i, 1, MPI_INTEGER, src, mp_comm, ierror)
!$OMP MASTER
call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# else
UNUSED_DUMMY(i)
if (src /= 0) call mp_abort ("broadcast from")
# endif
end subroutine bcastfrom_integer