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(:)

Called by

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

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

      ! One rank: the gathered/reduced result is this
      ! rank's own contribution.
      recvbuf = sendbuf
   end subroutine comm_allgather_integer