:orphan:
# KSPGuessFormGuess
Form the initial guess
## Synopsis
```
#include "petscksp.h"
PetscErrorCode KSPGuessFormGuess(KSPGuess guess, Vec rhs, Vec sol)
```
Collective
## Input Parameters
- ***guess -*** the initial guess context
- ***rhs -*** the current rhs vector
- ***sol -*** the initial guess vector
## See Also
[](ch_ksp), `KSPGuessCreate()`, `KSPGuess`
## Level
developer
## Location
src/ksp/ksp/interface/iguess.c
## Implementations
KSPGuessFormGuess_POD in src/ksp/ksp/guess/impls/pod/pod.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/interface/iguess.c)
[Index of all KSP routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)