petsc-3.7.7 2017-09-25
Report Typos and Errors

MatISGetLocalMat

Gets the local matrix stored inside a MATIS matrix.

Synopsis

#include "petscmat.h" 
PetscErrorCode MatISGetLocalMat(Mat mat,Mat *local)

Input Parameter

mat -the matrix

Output Parameter

local -the local matrix

Notes

This can be called if you have precomputed the nonzero structure of the matrix and want to provide it to the inner matrix object to improve the performance of the MatSetValues() operation.

This function does not increase the reference count for the local Mat. Do not destroy it and do not attempt to use your reference after destroying the parent mat.

See Also

MATIS

Level:advanced
Location:
src/mat/impls/is/matis.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages