Send logical array from root node to all nodes
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | 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_logical(array, size, error, comm) !! Send logical array from root node to all nodes implicit none logical, 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_LOGICAL, root_id, comm%comm, ierr) if (ierr .ne. MPI_SUCCESS) then call set_base_error(error, 'Error in comms_bcast_logical', code_mpi) return end if #endif end subroutine comms_no_sync_bcast_logical