comm_bcast_integer Subroutine

private subroutine comm_bcast_integer(comm, buffer, count, root)

Broadcasts integer data from root process to all processes in communicator

Arguments

Type IntentOptional Attributes Name
type(comm_t), intent(in) :: comm
integer(kind=int32), intent(inout) :: buffer
integer(kind=int32), intent(in) :: count
integer(kind=int32), intent(in) :: root

Calls

proc~~comm_bcast_integer~~CallsGraph proc~comm_bcast_integer comm_bcast_integer mpi_bcast mpi_bcast proc~comm_bcast_integer->mpi_bcast

Called by

proc~~comm_bcast_integer~~CalledByGraph proc~comm_bcast_integer comm_bcast_integer interface~bcast bcast interface~bcast->proc~comm_bcast_integer

Variables

Type Visibility Attributes Name Initial
integer(kind=int32), private :: ierr

Source Code

   subroutine comm_bcast_integer(comm, buffer, count, root)
      !! Broadcasts integer data from root process to all processes in communicator
      type(comm_t), intent(in) :: comm
      integer(int32), intent(inout) :: buffer
      integer(int32), intent(in) :: count
      integer(int32), intent(in) :: root
      integer(int32) :: ierr

      call MPI_Bcast(buffer, count, MPI_INTEGER, root, comm%m_comm, ierr)
   end subroutine comm_bcast_integer