comm_recv_real_dp_array_2d_n Subroutine

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

Blocking receive of a contiguous 2D double-precision array with explicit count. No dim-prefix protocol — the caller has already shaped data. Mirrors comm_send_real_dp_array_2d_n.

Arguments

Type IntentOptional Attributes Name
type(comm_t), intent(in) :: comm
real(kind=dp), 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

Called by

proc~~comm_recv_real_dp_array_2d_n~2~~CalledByGraph proc~comm_recv_real_dp_array_2d_n~2 comm_recv_real_dp_array_2d_n interface~recv~2 recv interface~recv~2->proc~comm_recv_real_dp_array_2d_n~2

Variables

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

Source Code

   subroutine comm_recv_real_dp_array_2d_n(comm, data, count, source, tag, status)
      !! Blocking receive of a contiguous 2D double-precision array
      !! with explicit `count`.  No dim-prefix protocol — the caller
      !! has already shaped `data`.  Mirrors `comm_send_real_dp_array_2d_n`.
      type(comm_t), intent(in)    :: comm
      real(dp), 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

      ! A single rank has no peer. Reaching this means the caller
      ! did not take its `size() == 1` path -- which is a bug worth
      ! stopping for, not one to hide by returning quietly.
      error stop "pic_mpi_serial: comm_recv_real_dp_array_2d_n needs a peer rank"
   end subroutine comm_recv_real_dp_array_2d_n