FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(out), | dimension (:) | :: | i | ||
integer, | intent(in) | :: | src | |||
integer, | intent(in), | optional | :: | tag |
subroutine receive_integer_array (i, src, tag)
implicit none
integer, dimension (:), intent (out) :: i
integer, intent (in) :: src
integer, intent (in), optional :: tag
# ifdef MPI
integer :: ierror
integer :: tagp
integer, dimension (mp_status_size) :: status
tagp = 0
if (present(tag)) tagp = tag
!$OMP MASTER
call time_message(.false., time_mp_ptp, ' MPI Point-to-point')
!$OMP END MASTER
call mpi_recv (i, size(i), MPI_INTEGER, src, tagp, mp_comm, &
status, ierror)
!$OMP MASTER
call time_message(.false., time_mp_ptp, ' MPI Point-to-point')
!$OMP END MASTER
# else
call mp_abort ("receive")
UNUSED_DUMMY(src); UNUSED_DUMMY(tag)
i = 0
# endif
end subroutine receive_integer_array