:orphan: # KSPGetGuess Gets the initial guess generator for the `KSP`. ## Synopsis ``` #include "petscksp.h" PetscErrorCode KSPGetGuess(KSP ksp, KSPGuess *guess) ``` Not Collective ## Input Parameter - ***ksp -*** the Krylov context ## Output Parameter - ***guess -*** the object ## See Also [](ch_ksp), `KSPGuess`, `KSP`, `KSPSetOptionsPrefix()`, `KSPAppendOptionsPrefix()`, `KSPSetUseFischerGuess()`, `KSPSetGuess()` ## Level developer ## Location src/ksp/ksp/interface/itcl.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/interface/itcl.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)