# KSPAppendOptionsPrefix
Appends to the prefix used for searching for all `KSP` options in the database. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPAppendOptionsPrefix(KSP ksp, const char prefix[])
```
Logically Collective


## Input Parameters

- ***ksp -*** the Krylov context
- ***prefix -*** the prefix string to prepend to all `KSP` option requests



## Notes
A hyphen (-) must NOT be given at the beginning of the prefix name.
The first character of all runtime options is AUTOMATICALLY the hyphen.




## See Also
 [](chapter_ksp), `KSP`, `KSPSetOptionsPrefix()`, `KSPGetOptionsPrefix()`, `KSPSetFromOptions()`

## Level
advanced

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex9.c.html">src/ksp/ksp/tutorials/ex9.c.html</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
