Receive real array from specified node
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(inout) | :: | array | |||
| integer, | intent(in) | :: | size | |||
| integer, | intent(in) | :: | from | |||
| type(w90_error_type), | intent(out), | allocatable | :: | error | ||
| type(w90_comm_type), | intent(in) | :: | comm |
subroutine comms_no_sync_recv_real(array, size, from, error, comm) !! Receive real array from specified node implicit none real(kind=dp), intent(inout) :: array integer, intent(in) :: size integer, intent(in) :: from type(w90_comm_type), intent(in) :: comm type(w90_error_type), allocatable, intent(out) :: error #ifdef W90_MPI type(w90stat_type) :: status integer :: ierr call mpi_recv(array, size, MPI_DOUBLE_PRECISION, from, mpi_send_tag, comm%comm, & status%stat, ierr) if (ierr .ne. MPI_SUCCESS) then call set_base_error(error, 'Error in comms_recv_real', code_mpi) return end if #endif end subroutine comms_no_sync_recv_real