FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(inout), | dimension (:) | :: | a | ||
integer, | intent(in) | :: | src |
subroutine bcastfrom_real_array (a, src)
implicit none
real, dimension (:), intent (in out) :: a
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 (a, size(a), mpireal, src, mp_comm, ierror)
!$OMP MASTER
call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# else
UNUSED_DUMMY(a)
if (src /= 0) call mp_abort ("broadcast from")
# endif
end subroutine bcastfrom_real_array