min_allreduce_integer Subroutine

private subroutine min_allreduce_integer(i)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
integer, intent(inout) :: i

Contents

Source Code


Source Code

  subroutine min_allreduce_integer (i)
    implicit none
    integer, intent (in out) :: i
# 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, mp_comm, ierror)
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# endif
  end subroutine min_allreduce_integer