Reduce integer data to root node
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | array | |||
| integer, | intent(in) | :: | size | |||
| character(len=*), | intent(in) | :: | op | |||
| type(w90_error_type), | intent(out), | allocatable | :: | error | ||
| type(w90_comm_type), | intent(in) | :: | comm |
subroutine comms_reduce_int(array, size, op, error, comm) !! Reduce integer data to root node implicit none integer, intent(inout) :: array integer, intent(in) :: size character(len=*), intent(in) :: op type(w90_comm_type), intent(in) :: comm type(w90_error_type), allocatable, intent(out) :: error call comms_sync_error(comm, error, 0) ! sync error state across comm if (allocated(error)) return call comms_no_sync_reduce_int(array, size, op, error, comm) end subroutine comms_reduce_int