comm_allgather_integer Subroutine

private subroutine comm_allgather_integer(comm, sendbuf, recvbuf)

Gathers integer values from all processes in the communicator

Arguments

Type IntentOptional Attributes Name
type(comm_t), intent(in) :: comm
integer(kind=int32), intent(in) :: sendbuf
integer(kind=int32), intent(out) :: recvbuf(:)

Calls

proc~~comm_allgather_integer~~CallsGraph proc~comm_allgather_integer comm_allgather_integer mpi_allgather mpi_allgather proc~comm_allgather_integer->mpi_allgather

Called by

proc~~comm_allgather_integer~~CalledByGraph proc~comm_allgather_integer comm_allgather_integer interface~allgather allgather interface~allgather->proc~comm_allgather_integer

Variables

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

Source Code

   subroutine comm_allgather_integer(comm, sendbuf, recvbuf)
      !! Gathers integer values from all processes in the communicator
      type(comm_t), intent(in) :: comm
      integer(int32), intent(in) :: sendbuf
      integer(int32), intent(out) :: recvbuf(:)
      integer(int32) :: ierr

      call MPI_Allgather(sendbuf, 1, MPI_INTEGER, recvbuf, 1, MPI_INTEGER, comm%m_comm, ierr)
   end subroutine comm_allgather_integer