# PetscFVLeastSquaresSetMaxFaces
Set the maximum number of cell faces for gradient reconstruction 
## Synopsis
```
#include "petscfv.h" 
PetscErrorCode PetscFVLeastSquaresSetMaxFaces(PetscFV fvm, PetscInt maxFaces)
```
Not collective


## Input parameters

- ***fvm      -*** The `PetscFV` object
- ***maxFaces -*** The maximum number of cell faces





## See Also
 `PetscFV`, `PetscFVCreate()`, `PETSCFVLEASTSQUARES`, `PetscFVComputeGradient()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fv/interface/fv.c.html#PetscFVLeastSquaresSetMaxFaces">src/dm/dt/fv/interface/fv.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/fv/interface/fv.c)


[Index of all FV routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
