# PETSC_COMM_SELF

a duplicate of the MPI_COMM_SELF communicator which represents the current process

Notes: PETSC_COMM_SELF and MPI_COMM_SELF are equivalent except that passint MPI_COMM_SELF into PETSc object constructors will result in using more MPI resources since an MPI_Comm_dup() will be done on it internally. We recommend always using PETSC_COMM_SELF

### See Also

PETSC_COMM_WORLD

Level:beginner
Location: include/petsc.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/sys/examples/tutorials/ex1.c.html
src/sys/examples/tutorials/ex2.c.html
src/vec/is/examples/tutorials/ex1.c.html
src/vec/is/examples/tutorials/ex2.c.html
src/vec/is/examples/tutorials/ex3.c.html
src/vec/is/examples/tutorials/ex1f.F.html
src/vec/is/examples/tutorials/ex2f.F.html
src/vec/is/examples/tutorials/ex1f90.F.html
src/vec/is/examples/tutorials/ex3f90.F.html
src/vec/examples/tutorials/ex6.c.html
src/vec/examples/tutorials/ex8.c.html