bcastfrom_character Subroutine

private subroutine bcastfrom_character(c, src)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(inout) :: c
integer, intent(in) :: src

Contents

Source Code


Source Code

  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