# rank

integer variable used to contain the number of this processor relative to all in the relevent MPI_Comm

### See Also

size, comm

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/ex1f.F.html
src/vec/is/examples/tutorials/ex1f90.F.html
src/vec/examples/tutorials/ex2.c.html
src/vec/examples/tutorials/ex3.c.html
src/vec/examples/tutorials/ex5.c.html
src/vec/examples/tutorials/ex8.c.html
src/vec/examples/tutorials/ex9.c.html
src/vec/examples/tutorials/ex13.c.html