FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | i | |||
integer, | intent(in) | :: | sub_comm |
subroutine min_allreduce_sub_integer (i, sub_comm)
implicit none
integer, intent (in out) :: i
integer, intent(in) :: sub_comm
# ifdef MPI
integer :: ierror
!$OMP MASTER
call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
call mpi_allreduce &
(MPI_IN_PLACE, i, 1, MPI_INTEGER, MPI_MIN, sub_comm, ierror)
!$OMP MASTER
call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# else
UNUSED_DUMMY(i); UNUSED_DUMMY(sub_comm)
# endif
end subroutine min_allreduce_sub_integer