nbrecv_real_array Subroutine

private subroutine nbrecv_real_array(z, dest, tag, handle)

Routine for nonblocking recv of z to dest. Use tag to label message and return handle for later checking.

Arguments

Type IntentOptional Attributes Name
real, intent(out), dimension(:) :: z
integer, intent(in) :: dest
integer, intent(in) :: tag
integer, intent(out) :: handle

Contents

Source Code


Source Code

  subroutine nbrecv_real_array(z,dest,tag,handle)
    implicit none
    real, dimension(:), intent(out) :: z
    integer, intent(in) :: dest
    integer, intent(in) :: tag
    integer,intent(out) :: handle
# ifdef MPI
    integer :: ierror
!$OMP MASTER
    call time_message(.false., time_mp_ptp, ' MPI Point-to-point')
!$OMP END MASTER
    call mpi_irecv(z,size(z),mpireal,dest,tag,mp_comm,handle,ierror)
!$OMP MASTER
    call time_message(.false., time_mp_ptp, ' MPI Point-to-point')
!$OMP END MASTER
# else
    handle = 0
    z = 0.
# endif
  end subroutine nbrecv_real_array