Send complex array to specified node
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=dp), | intent(inout) | :: | array | |||
integer, | intent(in) | :: | size | |||
integer, | intent(in) | :: | to |
subroutine comms_send_cmplx(array, size, to)
!! Send complex array to specified node
implicit none
complex(kind=dp), intent(inout) :: array
integer, intent(in) :: size
integer, intent(in) :: to
#ifdef MPI
integer :: error
call MPI_send(array, size, MPI_double_complex, to, &
mpi_send_tag, mpi_comm_world, error)
if (error .ne. MPI_success) then
call io_error('Error in comms_send_cmplx')
end if
#endif
return
end subroutine comms_send_cmplx