# PetscOptionsUsed
Indicates if PETSc has used a particular option set in the database 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscOptionsUsed(PetscOptions options, const char *name, PetscBool *used)
```
Not Collective


## Input Parameters

- ***options -*** options database, use NULL for default global database
- ***name -*** string name of option



## Output Parameter

- ***used -*** `PETSC_TRUE` if the option was used, otherwise false, including if option was not found in options database





## Note
The value returned may be different on each process and depends on which options have been processed
on the given process


## See Also
 `PetscOptionsView()`, `PetscOptionsLeft()`, `PetscOptionsAllUsed()`

## Level
advanced

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/options.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)  
