:orphan: # PetscObjectAppendOptionsPrefix Appends to the prefix used for searching for options for the given object in the database. ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscObjectAppendOptionsPrefix(PetscObject obj, const char prefix[]) ``` ## Input Parameters - ***obj -*** any PETSc object, for example a `Vec`, `Mat` or `KSP`. - ***prefix -*** the prefix string to prepend to option requests of the object. ## Note 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 `PetscOptionsCreate()`, `PetscOptionsDestroy()`, `PetscObjectSetOptionsPrefix()`, `PetscObjectPrependOptionsPrefix()`, `PetscObjectGetOptionsPrefix()`, `TSAppendOptionsPrefix()`, `SNESAppendOptionsPrefix()`, `KSPAppendOptionsPrefix()` ## Level advanced ## Location src/sys/objects/prefix.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/prefix.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)