MpiFx 1.4.0
Functions/Subroutines
mpifx_barrier_module Module Reference

Contains wrapper for MPI_BARRIER. More...

Functions/Subroutines

subroutine, public mpifx_barrier (mycomm, error)
 Sets a barrier.
 

Detailed Description

Contains wrapper for MPI_BARRIER.

Function/Subroutine Documentation

◆ mpifx_barrier()

subroutine, public mpifx_barrier_module::mpifx_barrier ( type(mpifx_comm), intent(in) mycomm,
integer, intent(out), optional error )

Sets a barrier.

Parameters
mycommMPI communicator.
errorOptional error flag.

Example:

program test_barrier
  use libmpifx_module
  implicit none

  type(mpifx_comm) :: mycomm

  call mpifx_init()
  call mycomm%init()
  :
  ! Processes will wait until all processes arrive here.
  call mpifx_barrier(mycomm)
  :

end program test_barrier