# MatFactorGetErrorZeroPivot
returns the pivot value that was determined to be zero and the row it occurred in 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatFactorGetErrorZeroPivot(Mat mat, PetscReal *pivot, PetscInt *row)
```
Logically Collective


## Input Parameter

- ***mat -*** the factored matrix



## Output Parameters

- ***pivot -*** the pivot value computed
- ***row -*** the row that the zero pivot occurred. Note that this row must be interpreted carefully due to row reorderings and which processes
the share the matrix





## Notes
This routine does not work for factorizations done with external packages.

This routine should only be called if `MatGetFactorError()` returns a value of `MAT_FACTOR_NUMERIC_ZEROPIVOT`

This can be called on non-factored matrices that come from, for example, matrices used in SOR.


## See Also
 `MatZeroEntries()`, `MatFactor()`, `MatGetFactor()`, `MatLUFactorSymbolic()`, `MatCholeskyFactorSymbolic()`, `MatFactorClearError()`, `MatFactorGetErrorZeroPivot()`,
`MAT_FACTOR_NUMERIC_ZEROPIVOT`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatFactorGetErrorZeroPivot">src/mat/interface/matrix.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matrix.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)  
