comm_bcast_real_sp Subroutine

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

Broadcasts single-precision data 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~~CallsGraph proc~comm_bcast_real_sp comm_bcast_real_sp mpi_bcast mpi_bcast proc~comm_bcast_real_sp->mpi_bcast

Called by

proc~~comm_bcast_real_sp~~CalledByGraph proc~comm_bcast_real_sp comm_bcast_real_sp interface~bcast bcast interface~bcast->proc~comm_bcast_real_sp

Variables

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

Source Code

   subroutine comm_bcast_real_sp(comm, buffer, count, root)
      !! Broadcasts single-precision data 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