:orphan:
# KSPGuessGetType
Gets the `KSPGuessType` as a string from the `KSPGuess` object. 
## Synopsis
```
#include "petscksp.h"  
PetscErrorCode KSPGuessGetType(KSPGuess guess, KSPGuessType *type)
```
Not Collective


## Input Parameter

- ***guess -*** the initial guess context



## Output Parameter

- ***name -*** type of `KSPGuess` method





## See Also
 [](ch_ksp), `KSPGuess`, `KSPGuessSetType()`

## Level
developer

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


---
[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)  
