Routine for nonblocking send of z (size=count) to dest. Use tag to label message and return handle for later checking.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension(:) | :: | z | ||
integer, | intent(in) | :: | count | |||
integer, | intent(in) | :: | dest | |||
integer, | intent(in) | :: | tag | |||
integer, | intent(out) | :: | handle |
subroutine nbsend_real_array_count(z,count,dest,tag,handle)
implicit none
real, dimension(:), intent(in) :: z
integer, intent(in) :: count
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_isend(z,count,mpireal,dest,tag,mp_comm,handle,ierror)
!$OMP MASTER
call time_message(.false., time_mp_ptp, ' MPI Point-to-point')
!$OMP END MASTER
# else
UNUSED_DUMMY(dest) ; UNUSED_DUMMY(tag); UNUSED_DUMMY(count); UNUSED_DUMMY(z)
handle = 0
# endif
end subroutine nbsend_real_array_count