Receive character array from specified node
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | 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_char(array, size, from, error, comm) !! Receive character array from specified node implicit none character(len=*), 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_CHARACTER, from, mpi_send_tag, comm%comm, status%stat, ierr) if (ierr .ne. MPI_SUCCESS) then call set_base_error(error, 'Error in comms_recv_char', code_mpi) return end if #endif end subroutine comms_no_sync_recv_char