nbsend_complex_array_sub Subroutine

private subroutine nbsend_complex_array_sub(z, dest, tag, sub, handle)

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

Arguments

Type IntentOptional Attributes Name
complex, intent(in), dimension(:) :: z
integer, intent(in) :: dest
integer, intent(in) :: tag
type(comm_type), intent(in) :: sub
integer, intent(out) :: handle

Contents


Source Code

  subroutine nbsend_complex_array_sub(z,dest,tag,sub,handle)
    implicit none
    complex, dimension(:), intent(in) :: z
    integer, intent(in) :: dest
    integer, intent(in) :: tag
    type(comm_type), intent(in) :: sub
    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,size(z),mpicmplx,dest,tag,sub%id,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(z); UNUSED_DUMMY(sub)
    handle = 0
# endif
  end subroutine nbsend_complex_array_sub