comm_recv_real_dp Subroutine

private subroutine comm_recv_real_dp(comm, data, source, tag, status)

Blocking receive of a single double precision real from specified source.

Arguments

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

Calls

proc~~comm_recv_real_dp~~CallsGraph proc~comm_recv_real_dp comm_recv_real_dp mpi_recv mpi_recv proc~comm_recv_real_dp->mpi_recv

Called by

proc~~comm_recv_real_dp~~CalledByGraph proc~comm_recv_real_dp comm_recv_real_dp interface~recv recv interface~recv->proc~comm_recv_real_dp

Variables

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

Source Code

   subroutine comm_recv_real_dp(comm, data, source, tag, status)
      !! Blocking receive of a single double precision real from specified source.
      type(comm_t), intent(in) :: comm
      real(dp), intent(out) :: data
      integer(int32), intent(in) :: source
      integer(int32), intent(in) :: tag
      integer(int32) :: ierr
      type(MPI_Status), intent(out), optional :: status

      if (present(status)) then
         call MPI_Recv(data, 1, MPI_DOUBLE_PRECISION, source, tag, comm%m_comm, status, ierr)
      else
         call MPI_Recv(data, 1, MPI_DOUBLE_PRECISION, source, tag, comm%m_comm, MPI_STATUS_IGNORE, ierr)
      end if
   end subroutine comm_recv_real_dp