bcastfrom_complex Subroutine

private subroutine bcastfrom_complex(z, src)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
complex, intent(inout) :: z
integer, intent(in) :: src

Contents

Source Code


Source Code

  subroutine bcastfrom_complex (z, src)
    implicit none
    complex, intent (in out) :: z
    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 (z, 1, mpicmplx, src, mp_comm, ierror)
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# else
    UNUSED_DUMMY(z)
    if (src /= 0) call mp_abort ("broadcast from")
# endif
  end subroutine bcastfrom_complex