bcastfrom_logical Subroutine

private subroutine bcastfrom_logical(f, src)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
logical, intent(inout) :: f
integer, intent(in) :: src

Contents

Source Code


Source Code

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