Receive one datum from another process
MPI mapping mpi_send
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| complex(kind=real_4), | intent(inout) | :: | msg |
Place received data into this variable |
||
| integer, | intent(inout) | :: | source |
Process to receive from Transfer identifier |
||
| integer, | intent(inout) | :: | tag |
Process to receive from Transfer identifier |
||
| type(mp_comm_type), | intent(in) | :: | gid |
Message passing environment identifier |
SUBROUTINE mp_recv_c (msg, source, tag, gid) # 3093 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" !! Receive one datum from another process !! !! MPI mapping !! mpi_send COMPLEX(kind=real_4), INTENT(INOUT) :: msg # 3099 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" !! Place received data into this variable INTEGER, INTENT(INOUT) :: source, tag !! Process to receive from !! Transfer identifier TYPE(mp_comm_type), INTENT(IN) :: gid !! Message passing environment identifier CHARACTER(LEN=*), PARAMETER :: routineN = 'mp_recv_c' # 3107 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" INTEGER :: handle, ierr, msglen #if defined(__parallel) MPI_STATUS_TYPE :: status #endif ierr = 0 CALL timeset(routineN, handle) msglen = 1 #if defined(__parallel) CALL mpi_recv(msg, msglen, MPI_COMPLEX, source, tag, gid%handle, status, ierr) # 3119 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" IF (ierr /= 0) CALL mp_stop(ierr, "mpi_recv @ "//routineN) CALL add_perf(perf_id=14, msg_size=msglen*(2*real_4_size)) # 3121 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" source = status MPI_STATUS_EXTRACT(MPI_SOURCE) tag = status MPI_STATUS_EXTRACT(MPI_TAG) #else MARK_USED(msg) MARK_USED(source) MARK_USED(tag) MARK_USED(gid) ! only defined in parallel DBCSR_ABORT("not in parallel mode") #endif CALL timestop(handle) END SUBROUTINE mp_recv_c