PetscBarrier#

Blocks until this routine is executed by all processors owning the object obj.

Synopsis#

#include "petscsys.h" 
PetscErrorCode PetscBarrier(PetscObject obj)

Input Parameter#

Notes#

The object must be cast with a (PetscObject). NULL can be used to indicate the barrier should be across PETSC_COMM_WORLD.

Developer Notes#

This routine calls MPI_Barrier() with the communicator of the PetscObject

Fortran Notes#

You may pass PETSC_NULL_VEC or any other PETSc null object, such as PETSC_NULL_MAT, to indicate the barrier should be across PETSC_COMM_WORLD. You can also pass in any PETSc object, Vec, Mat, etc.

See Also#

PetscObject

Level#

intermediate

Location#

src/sys/utils/pbarrier.c

Examples#

src/tao/pde_constrained/tutorials/hyperbolic.c
src/tao/pde_constrained/tutorials/elliptic.c
src/vec/vec/tutorials/performance.c
src/snes/tutorials/ex63.c
src/tao/pde_constrained/tutorials/parabolic.c
src/dm/tutorials/ex22.c


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages