Send integar array from root node to all nodes
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | array | |||
| integer, | intent(in) | :: | size | |||
| type(w90_error_type), | intent(out), | allocatable | :: | error | ||
| type(w90_comm_type), | intent(in) | :: | comm |
subroutine comms_bcast_int(array, size, error, comm) !! Send integar array from root node to all nodes implicit none integer, intent(inout) :: array integer, intent(in) :: size type(w90_comm_type), intent(in) :: comm type(w90_error_type), allocatable, intent(out) :: error call comms_sync_error(comm, error, 0) if (allocated(error)) return call comms_no_sync_bcast_int(array, size, error, comm) end subroutine comms_bcast_int