Scatters data from one processes to all others
MPI mapping mpi_scatter
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | intent(in), | CONTIGUOUS | :: | msg_scatter(:) |
Data to scatter (for root process) |
|
integer, | intent(in), | CONTIGUOUS | :: | sendcounts(:) | ||
integer, | intent(in), | CONTIGUOUS | :: | displs(:) | ||
complex(kind=real_8), | intent(inout), | CONTIGUOUS | :: | msg(:) | ||
integer, | intent(in) | :: | recvcount |
Process which scatters data Message passing environment identifier |
||
integer, | intent(in) | :: | root |
Process which scatters data Message passing environment identifier |
||
integer, | intent(in) | :: | gid |
Process which scatters data Message passing environment identifier |
||
integer, | intent(inout) | :: | request |
SUBROUTINE mp_iscatterv_zv(msg_scatter, sendcounts, displs, msg, recvcount, root, gid, request)
!! Scatters data from one processes to all others
!!
!! MPI mapping
!! mpi_scatter
COMPLEX(kind=real_8), CONTIGUOUS, INTENT(IN) :: msg_scatter(:)
!! Data to scatter (for root process)
INTEGER, CONTIGUOUS, INTENT(IN) :: sendcounts(:), displs(:)
COMPLEX(kind=real_8), CONTIGUOUS, INTENT(INOUT) :: msg(:)
INTEGER, INTENT(IN) :: recvcount, root, gid
!! Process which scatters data
!! Message passing environment identifier
INTEGER, INTENT(INOUT) :: request
CHARACTER(LEN=*), PARAMETER :: routineN = 'mp_iscatterv_zv'
INTEGER :: handle, ierr
ierr = 0
CALL timeset(routineN, handle)
#if defined(__parallel)
CALL mpi_iscatterv(msg_scatter, sendcounts, displs, MPI_DOUBLE_COMPLEX, msg, &
recvcount, MPI_DOUBLE_COMPLEX, root, gid, request, ierr)
IF (ierr /= 0) CALL mp_stop(ierr, "mpi_iscatterv @ "//routineN)
CALL add_perf(perf_id=24, msg_size=1*(2*real_8_size))
#else
MARK_USED(sendcounts)
MARK_USED(displs)
MARK_USED(recvcount)
MARK_USED(root)
MARK_USED(gid)
msg(1:recvcount) = msg_scatter(1 + displs(1):1 + displs(1) + sendcounts(1))
request = mp_request_null
#endif
CALL timestop(handle)
END SUBROUTINE mp_iscatterv_zv