recv_init_complex_array Subroutine

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

Routine to initialise a persistent recv operation

Arguments

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

Contents


Source Code

  subroutine recv_init_complex_array(z,dest,tag,handle)
    implicit none
    complex, dimension(:), intent(inout) :: z
    integer, intent(in) :: dest, 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_recv_init(z,size(z),mpicmplx,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(z); UNUSED_DUMMY(dest); UNUSED_DUMMY(tag)
    handle = 0
#endif
  end subroutine recv_init_complex_array