:orphan: # KSPGetInitialGuessKnoll Determines whether the `KSP` solver is using the Knoll trick (using PCApply(pc,b,...) to compute the initial guess ## Synopsis ``` #include "petscksp.h" #include "petscmat.h" PetscErrorCode KSPGetInitialGuessKnoll(KSP ksp, PetscBool *flag) ``` Not Collective ## Input Parameter - ***ksp -*** iterative context obtained from `KSPCreate()` ## Output Parameter - ***flag -*** `PETSC_TRUE` if using Knoll trick, else `PETSC_FALSE` ## See Also [](ch_ksp), `KSPSetInitialGuessKnoll()`, `KSPSetInitialGuessNonzero()`, `KSPGetInitialGuessNonzero()`, `KSP` ## Level advanced ## Location src/ksp/ksp/interface/itfunc.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/interface/itfunc.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)