# PetscSubcommSetOptionsPrefix
Sets the prefix used for searching for options in the options database for this object 
## Synopsis
```
#include "petscsys.h"    
PetscErrorCode PetscSubcommSetOptionsPrefix(PetscSubcomm psubcomm, const char pre[])
```
Logically collective




## Input Parameters

- ***psubcomm -*** `PetscSubcomm` context
- ***prefix -*** the prefix to prepend all PetscSubcomm item names with.



## See Also
 `PetscSubcomm`, `PetscSubcommCreate()`

## Level
Intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/subcomm.c.html#PetscSubcommSetOptionsPrefix">src/sys/objects/subcomm.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/subcomm.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
