# KSPGuessCreate
Creates the default `KSPGuess` context. 
## Synopsis
```
#include "petscksp.h"  
PetscErrorCode KSPGuessCreate(MPI_Comm comm, KSPGuess *guess)
```
Collective


## Input Parameter

- ***comm -*** MPI communicator



## Output Parameter

- ***guess -*** location to put the `KSPGuess` context





## See Also
 [](chapter_ksp), `KSPSolve()`, `KSPGuessDestroy()`, `KSPGuess`, `KSPGuessType`, `KSP`

## Level
developer

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/guess/impls/fischer/fischer.c.html#KSPGuessCreate_Fischer">KSPGuessCreate_Fischer in src/ksp/ksp/guess/impls/fischer/fischer.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/guess/impls/pod/pod.c.html#KSPGuessCreate_POD">KSPGuessCreate_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)  
