send_integer_array Subroutine

private subroutine send_integer_array(i, dest, tag)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
integer, intent(in), dimension (:) :: i
integer, intent(in) :: dest
integer, intent(in), optional :: tag

Contents

Source Code


Source Code

  subroutine send_integer_array (i, dest, tag)
    implicit none
    integer, dimension (:), intent (in) :: i
    integer, intent (in) :: dest
    integer, intent (in), optional :: tag
# ifdef MPI
    integer :: ierror
    integer :: tagp
    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_send (i, size(i), MPI_INTEGER, dest, tagp, mp_comm, ierror)
!$OMP MASTER
    call time_message(.false., time_mp_ptp, ' MPI Point-to-point')
!$OMP END MASTER
# else
    call mp_abort ("send")
# endif
  end subroutine send_integer_array