MatGetOwnershipRange

Returns the range of matrix rows owned by this processor, assuming that the matrix is laid out with the first n1 rows on the first processor, the next n2 rows on the second, etc. For certain parallel layouts this range may not be well defined.

Synopsis

#include "petscmat.h" 
int MatGetOwnershipRange(Mat mat,int *m,int* n)
Not Collective

Input Parameters

mat -the matrix

Output Parameters

m - the global index of the first local row
n - one more than the global index of the last local row

Level:beginner
Location:
src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sles/examples/tutorials/ex2.c.html
src/sles/examples/tutorials/ex4.c.html
src/sles/examples/tutorials/ex5.c.html
src/sles/examples/tutorials/ex7.c.html
src/sles/examples/tutorials/ex8.c.html
src/sles/examples/tutorials/ex9.c.html
src/sles/examples/tutorials/ex11.c.html
src/sles/examples/tutorials/ex12.c.html
src/sles/examples/tutorials/ex15.c.html
src/sles/examples/tutorials/ex16.c.html
src/sles/examples/tutorials/ex2f.F.html