:orphan:
# MatISRestoreLocalMat
Restores the local matrix obtained with `MatISGetLocalMat()`
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatISRestoreLocalMat(Mat mat, Mat *local)
```
## Input Parameters
- ***mat -*** the matrix
- ***local -*** the local matrix
## See Also
[](ch_matrices), `Mat`, `MATIS`, `MatISGetLocalMat()`
## Level
advanced
## Location
src/mat/impls/is/matis.c
## Examples
src/ksp/ksp/tutorials/ex71.c
## Implementations
MatISRestoreLocalMat_IS in src/mat/impls/is/matis.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/is/matis.c)
[Index of all Mat routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)