land_allreduce_single_element Subroutine

private subroutine land_allreduce_single_element(l)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
logical, intent(inout) :: l

Contents


Source Code

  subroutine land_allreduce_single_element (l)
    implicit none
    logical, intent (in out) :: l
# ifdef MPI
    integer :: ierror
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
    call mpi_allreduce &
         (MPI_IN_PLACE, l, 1, MPI_LOGICAL, MPI_LAND, mp_comm, ierror)
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# else
    UNUSED_DUMMY(l)
# endif
  end subroutine land_allreduce_single_element