:orphan:
# PetscEnum
datatype used to pass enum types within PETSc functions.
## See Also
`PetscOptionsGetEnum()`, `PetscOptionsEnum()`, `PetscBagRegisterEnum()`
## Level
intermediate
## Location
include/petscsystypes.h
## Examples
src/dm/impls/plex/tutorials/ex13.c
src/dm/impls/plex/tutorials/ex5.c
src/dm/tutorials/ex22.c
src/ksp/ksp/tutorials/ex10.c
src/ksp/ksp/tutorials/ex74.c
src/snes/tutorials/ex15.c
src/snes/tutorials/ex24.c
src/snes/tutorials/ex48.c
src/sys/tutorials/ex5.c
src/tao/tutorials/ex4.c
src/ts/tutorials/ex10.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscsystypes.h)
[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)