# KSPGuessFormGuess
Form the initial guess 
## Synopsis
```
#include "petscksp.h"  
PetscErrorCode KSPGuessFormGuess(KSPGuess guess, Vec rhs, Vec sol)
```
Collective on guess


## Input Parameters

- ***guess -*** the initial guess context
- ***rhs   -*** the current rhs vector
- ***sol   -*** the initial guess vector





## See Also
 [](chapter_ksp), `KSPGuessCreate()`, `KSPGuess`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/interface/iguess.c.html#KSPGuessFormGuess">src/ksp/ksp/interface/iguess.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/guess/impls/pod/pod.c.html#KSPGuessFormGuess_POD">KSPGuessFormGuess_POD in src/ksp/ksp/guess/impls/pod/pod.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
