:orphan: # KSPGetOptionsPrefix Gets the prefix used for searching for all `KSP` options in the database. ## Synopsis ``` #include "petscksp.h" PetscErrorCode KSPGetOptionsPrefix(KSP ksp, const char *prefix[]) ``` Not Collective ## Input Parameter - ***ksp -*** the Krylov context ## Output Parameter - ***prefix -*** pointer to the prefix string used is returned ## Notes On the fortran side, the user should pass in a string 'prefix' of sufficient length to hold the prefix. ## See Also [](ch_ksp), `KSP`, `KSPSetFromOptions()`, `KSPSetOptionsPrefix()`, `KSPAppendOptionsPrefix()` ## Level advanced ## 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)