barrier_comm Subroutine

private subroutine barrier_comm(comm)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: comm

Contents

Source Code


Source Code

  subroutine barrier_comm(comm)
    implicit none
    integer,intent(in)::comm
# ifdef MPI
    integer :: ierror
!$OMP MASTER
    call time_message(.false., time_mp_sync, ' MPI Sync')
!$OMP END MASTER
    call mpi_barrier (comm, ierror)
!$OMP MASTER
    call time_message(.false., time_mp_sync, ' MPI Sync')
!$OMP END MASTER
# else
    UNUSED_DUMMY(comm)
# endif
  end subroutine barrier_comm