FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(out), | dimension (:,:) | :: | z | ||
integer, | intent(in) | :: | src | |||
integer, | intent(in), | optional | :: | tag |
subroutine receive_complex_2array (z, src, tag)
implicit none
# ifdef MPI
complex, dimension (:,:), intent (out) :: z
# else
complex, dimension (:,:) :: z
# endif
integer, intent (in) :: src
integer, intent (in), optional :: tag
# ifdef MPI
integer :: ierror
integer :: tagp
integer, dimension (MPI_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 (z, size(z), mpicmplx, 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")
# endif
end subroutine receive_complex_2array