comm_bcast_real_sp_array Subroutine

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

Broadcasts single-precision array from root process to all processes in communicator

Arguments

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

Calls

proc~~comm_bcast_real_sp_array~2~~CallsGraph proc~comm_bcast_real_sp_array~2 comm_bcast_real_sp_array mpi_bcast mpi_bcast proc~comm_bcast_real_sp_array~2->mpi_bcast

Called by

proc~~comm_bcast_real_sp_array~2~~CalledByGraph proc~comm_bcast_real_sp_array~2 comm_bcast_real_sp_array interface~bcast~2 bcast interface~bcast~2->proc~comm_bcast_real_sp_array~2

Variables

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

Source Code

   subroutine comm_bcast_real_sp_array(comm, buffer, count, root)
      !! Broadcasts single-precision array from root process to all processes in communicator
      type(comm_t), intent(in) :: comm
      real(sp), intent(inout) :: buffer(:)
      integer(int32), intent(in) :: count
      integer(int32), intent(in) :: root
      integer(int32) :: ierr

      call MPI_Bcast(buffer, count, MPI_REAL, root, comm%m_comm, ierr)
   end subroutine comm_bcast_real_sp_array