comm_recv_integer_array_n Subroutine

public subroutine comm_recv_integer_array_n(comm, data, count, source, tag, status)

Blocking receive into a pre-allocated int32 array.

Arguments

Type IntentOptional Attributes Name
type(comm_t), intent(in) :: comm
integer(kind=int32), intent(out) :: data(:)
integer(kind=int32), intent(in) :: count
integer(kind=int32), intent(in) :: source
integer(kind=int32), intent(in) :: tag
type(MPI_Status), intent(out), optional :: status

Calls

proc~~comm_recv_integer_array_n~~CallsGraph proc~comm_recv_integer_array_n comm_recv_integer_array_n mpi_recv mpi_recv proc~comm_recv_integer_array_n->mpi_recv

Called by

proc~~comm_recv_integer_array_n~~CalledByGraph proc~comm_recv_integer_array_n comm_recv_integer_array_n interface~recv recv interface~recv->proc~comm_recv_integer_array_n

Variables

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

Source Code

   subroutine comm_recv_integer_array_n(comm, data, count, source, tag, status)
      !! Blocking receive into a pre-allocated int32 array.
      type(comm_t), intent(in) :: comm
      integer(int32), intent(out) :: data(:)
      integer(int32), intent(in) :: count
      integer(int32), intent(in) :: source
      integer(int32), intent(in) :: tag
      type(MPI_Status), intent(out), optional :: status
      integer(int32) :: ierr

      if (present(status)) then
         call MPI_Recv(data, count, MPI_INTEGER, source, tag, &
                       comm%m_comm, status, ierr)
      else
         call MPI_Recv(data, count, MPI_INTEGER, source, tag, &
                       comm%m_comm, MPI_STATUS_IGNORE, ierr)
      end if
   end subroutine comm_recv_integer_array_n