MatISRestoreLocalMat#

Restores the local matrix obtained with MatISGetLocalMat()

Synopsis#

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

Not Collective.

Input Parameters#

  • mat - the matrix

  • local - the local matrix

Notes#

This call does not update the state of mat. After changing the local matrix entries or nonzero structure, call MatAssemblyBegin() and MatAssemblyEnd() on mat to propagate the change.

See Also#

Matrices, Mat, MATIS, MatISGetLocalMat()

Level#

intermediate

Location#

src/mat/impls/is/matis.c

Examples#

src/mat/tests/ex23.c
src/mat/tests/ex321.c
src/ksp/ksp/tutorials/ex71.c

Implementations#

MatISRestoreLocalMat_IS() in src/mat/impls/is/matis.c


Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages