Send rank-1 data to another process
Note
see mp_send_d
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | CONTIGUOUS | :: | msg(:) |
Rank-1 data to send |
||
integer | :: | dest | ||||
integer | :: | tag | ||||
type(mp_comm_type), | intent(in) | :: | gid |
SUBROUTINE mp_send_dv(msg, dest, tag, gid) !! Send rank-1 data to another process !! @note see mp_send_d REAL(kind=real_8), CONTIGUOUS :: msg(:) !! Rank-1 data to send INTEGER :: dest, tag TYPE(mp_comm_type), INTENT(IN) :: gid CHARACTER(LEN=*), PARAMETER :: routineN = 'mp_send_dv' INTEGER :: handle, ierr, msglen ierr = 0 CALL timeset(routineN, handle) msglen = SIZE(msg) #if defined(__parallel) CALL mpi_send(msg, msglen, MPI_DOUBLE_PRECISION, dest, tag, gid%handle, ierr) IF (ierr /= 0) CALL mp_stop(ierr, "mpi_send @ "//routineN) CALL add_perf(perf_id=13, msg_size=msglen*real_8_size) #else MARK_USED(msg) MARK_USED(dest) MARK_USED(tag) MARK_USED(gid) ! only defined in parallel DBCSR_ABORT("not in parallel mode") #endif CALL timestop(handle) END SUBROUTINE mp_send_dv