# MatISRestoreLocalMat
Restores the local matrix obtained with `MatISGetLocalMat()` 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatISRestoreLocalMat(Mat mat, Mat *local)
```

## Input Parameter

- ***mat -*** the matrix



## Output Parameter

- ***local -*** the local matrix





## See Also
 `MATIS`, `MatISGetLocalMat()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/is/matis.c.html#MatISRestoreLocalMat">src/mat/impls/is/matis.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex71.c.html">src/ksp/ksp/tutorials/ex71.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/is/matis.c.html#MatISRestoreLocalMat_IS">MatISRestoreLocalMat_IS in src/mat/impls/is/matis.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
