# PetscConvEstSetSolver
Sets the solver used to produce discrete solutions 
## Synopsis
```
#include "petscconvest.h" 
PetscErrorCode PetscConvEstSetSolver(PetscConvEst ce, PetscObject solver)
```
Not collective


## Input Parameters

- ***ce     -*** The PetscConvEst object
- ***solver -*** The solver




Note: The solver MUST have an attached DM/DS, so that we know the exact solution


## See Also
 `PetscConvEstGetSNES()`, `PetscConvEstCreate()`, `PetscConvEstGetConvRate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/utils/convest.c.html#PetscConvEstSetSolver">src/snes/utils/convest.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/utils/convest.c)


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