mp_send_d Subroutine

private subroutine mp_send_d(msg, dest, tag, gid)

Send one datum to another process

MPI mapping mpi_send

Arguments

TypeIntentOptionalAttributesName
real(kind=real_8) :: msg

Scalar to send

integer :: dest

Destination process Transfer identifier Message passing environment identifier

integer :: tag

Destination process Transfer identifier Message passing environment identifier

integer :: gid

Destination process Transfer identifier Message passing environment identifier


Contents

Source Code


Source Code

      SUBROUTINE mp_send_d (msg, dest, tag, gid)
      !! Send one datum to another process
      !!
      !! MPI mapping
      !! mpi_send

         REAL(kind=real_8)                                :: msg
         !! Scalar to send
         INTEGER                                  :: dest, tag, gid
         !! Destination process
         !! Transfer identifier
         !! Message passing environment identifier

         CHARACTER(LEN=*), PARAMETER :: routineN = 'mp_send_d'

         INTEGER                                  :: handle, ierr, msglen

         ierr = 0
         CALL timeset(routineN, handle)

         msglen = 1
#if defined(__parallel)
         CALL mpi_send(msg, msglen, MPI_DOUBLE_PRECISION, dest, tag, gid, 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_d