OptionsGetInt
Gets the integer value for a particular option in the database.
Synopsis
#include "petsc.h"
int OptionsGetInt(const char pre[],const char name[],int *ivalue,PetscTruth *flg)
Not Collective
Input Parameters
| name | - the option one is seeking
|
| pre | - the string to prepend to the name or PETSC_NULL
|
Output Parameter
| ivalue | - the integer value to return
|
| flg | - PETSC_TRUE if found, else PETSC_FALSE
|
See Also
OptionsGetDouble(), OptionsHasName(), OptionsGetString(),
OptionsGetIntArray(), OptionsGetDoubleArray()
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/ex1.c
src/vec/examples/tutorials/ex1e.c
src/vec/examples/tutorials/ex3.c
src/vec/examples/tutorials/ex5.c
src/vec/examples/tutorials/ex6.c
src/vec/examples/tutorials/ex10.c
src/vec/examples/tutorials/ex11.c
src/vec/examples/tutorials/ex12.c
src/vec/examples/tutorials/ex1f.F
src/vec/examples/tutorials/ex3f.F
src/vec/examples/tutorials/ex1f90.F