petsc-3.14.6 2021-03-30
MatGetLocalSize
Returns the number of local rows and local columns of a matrix, that is the local size of the left and right vectors as returned by MatCreateVecs().
Synopsis
#include "petscmat.h"
PetscErrorCode MatGetLocalSize(Mat mat,PetscInt *m,PetscInt *n)
Not Collective
Input Parameters
Output Parameters
| m | - the number of local rows
|
| n | - the number of local columns
|
Note: both output parameters can be NULL on input.
See Also
MatGetSize()
Level
beginner
Location
src/mat/interface/matrix.c
Examples
src/ksp/ksp/tutorials/ex10.c.html
src/ksp/ksp/tutorials/ex27.c.html
src/ksp/ksp/tutorials/ex72.c.html
src/ksp/ksp/tutorials/ex77.c.html
src/ksp/ksp/tutorials/ex77f.F90.html
src/snes/tutorials/ex12.c.html
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages