Send character array from root node to all nodes
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| complex(kind=dp), | intent(inout) | :: | array | |||
| integer, | intent(in) | :: | size | |||
| type(w90_error_type), | intent(out), | allocatable | :: | error | ||
| type(w90_comm_type), | intent(in) | :: | comm |
subroutine comms_no_sync_bcast_cmplx(array, size, error, comm) !! Send character array from root node to all nodes implicit none complex(kind=dp), intent(inout) :: array integer, intent(in) :: size type(w90_comm_type), intent(in) :: comm type(w90_error_type), allocatable, intent(out) :: error #ifdef W90_MPI integer :: ierr call mpi_bcast(array, size, MPI_DOUBLE_COMPLEX, root_id, comm%comm, ierr) if (ierr .ne. MPI_SUCCESS) then call set_base_error(error, 'Error in comms_bcast_cmplx', code_mpi) return end if #endif end subroutine comms_no_sync_bcast_cmplx