# MatISFixLocalEmpty
Compress out zero local rows from the local matrices 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatISFixLocalEmpty(Mat A, PetscBool fix)
```
Collective


## Input Parameters

- ***A -*** the matrix
- ***fix -*** the boolean flag





## Note
When fix is true, new local matrices and l2g maps are generated during the final assembly process.


## See Also
 `MATIS`, `MatCreate()`, `MatCreateIS()`, `MatISSetPreallocation()`, `MatAssemblyEnd()`, `MAT_FINAL_ASSEMBLY`

## Level
advanced

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/is/matis.c.html#MatISFixLocalEmpty_IS">MatISFixLocalEmpty_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)  
