This routine waits for the communication, given by the message request, to complete. We ignore the status information
mpi_wait will set the request handle to MPI_NULL (or similar) when message complete so have to set requests as inout
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | request |
subroutine wait_nostat (request)
implicit none
integer, intent (inout) :: request
# ifdef MPI
integer :: ierror
!$OMP MASTER
call time_message(.false., time_mp_sync, ' MPI Sync')
!$OMP END MASTER
call mpi_wait(request,MPI_STATUS_IGNORE,ierror)
!$OMP MASTER
call time_message(.false., time_mp_sync, ' MPI Sync')
!$OMP END MASTER
# else
UNUSED_DUMMY(request)
# endif
end subroutine wait_nostat