bcastfrom_real_array Subroutine

private subroutine bcastfrom_real_array(a, src)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
real, intent(inout), dimension (:) :: a
integer, intent(in) :: src

Contents

Source Code


Source Code

  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