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