#include "petscsys.h" PetscErrorCode PetscOptionsRangeInt(const char opt[],const char text[],const char man[],PetscInt currentvalue,PetscInt *value,PetscBool *flg,PetscInt lb,PetscInt ub)
| opt | - option name | |
| text | - short string that describes the option | |
| man | - manual page with additional information on option | |
| currentvalue | - the current value; caller is responsible for setting this value correctly. Normally this is done with either | |
| lb | - the lower bound, provided value must be greater than or equal to this value or an error is generated | |
| ub | - the upper bound, provided value must be less than or equal to this value or an error is generated |
| value | - the integer value to return | |
| flg | - PETSC_TRUE if found, else PETSC_FALSE |
The default/currentvalue passed into this routine does not get transferred to the output value variable automatically.
Must be between a PetscOptionsBegin() and a PetscOptionsEnd()