broadcast_integer Subroutine

private subroutine broadcast_integer(i)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
integer, intent(inout) :: i

Contents

Source Code


Source Code

  subroutine broadcast_integer (i)
    implicit none
    integer, intent (in out) :: i
# ifdef MPI
    integer :: ierror
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
    call mpi_bcast (i, 1, MPI_INTEGER, 0, mp_comm, ierror)
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# endif
  end subroutine broadcast_integer