# PetscOptionsHasName

Determines whether a certain option is given in the database.

### Synopsis

    #include "petsc.h"
    int PetscOptionsHasName(const char pre[],const char name[],PetscTruth *flg)

Not Collective

### Input Parameters

| name | - the option one is seeking
| pre | - string to prepend to the name or PETSC_NULL

### Output Parameters

flg -PETSC_TRUE if found else PETSC_FALSE.

### See Also

PetscOptionsGetInt(), PetscOptionsGetReal(),
PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsLogical(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHead(), PetscOptionsStringArray(),PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsLogicalGroupBegin(), PetscOptionsLogicalGroup(), PetscOptionsLogicalGroupEnd(), PetscOptionsList(), PetscOptionsEList()

Level:beginner
Location: src/sys/src/objects/options.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/vec/examples/tutorials/ex9.c.html
src/vec/examples/tutorials/ex9f.F.html
src/vec/examples/tutorials/ex14f.F.html
src/ksp/examples/tutorials/ex2.c.html
src/ksp/examples/tutorials/ex5.c.html
src/ksp/examples/tutorials/ex7.c.html
src/ksp/examples/tutorials/ex8.c.html
src/ksp/examples/tutorials/ex9.c.html
src/ksp/examples/tutorials/ex10.c.html
src/ksp/examples/tutorials/ex11.c.html
src/ksp/examples/tutorials/ex15.c.html