waitany_nostat Subroutine

private subroutine waitany_nostat(count, requests, requestindex)

Arguments

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

Contents

Source Code


Source Code

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