waitany_stat Subroutine

private subroutine waitany_stat(count, requests, requestindex, status)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: count
integer, intent(inout), dimension(:) :: requests
integer, intent(out) :: requestindex
integer, intent(out), dimension(mp_status_size) :: status

Contents

Source Code


Source Code

  subroutine waitany_stat (count, requests, requestindex, status)
    implicit none
    integer, intent(in) :: count
    integer, dimension(:), intent(inout) :: requests
    integer, intent(out) :: requestindex
    integer, dimension(mp_status_size), intent(out) :: status
# ifdef MPI
    integer :: ierror
!$OMP MASTER
    call time_message(.false., time_mp_sync, ' MPI Sync')
!$OMP END MASTER
    call mpi_waitany(count, requests, requestindex, status, ierror)
!$OMP MASTER
    call time_message(.false., time_mp_sync, ' MPI Sync')
!$OMP END MASTER
# else
    UNUSED_DUMMY(count); UNUSED_DUMMY(requests)
    status = 0 ; requestindex = 0
# endif
  end subroutine waitany_stat