#include "petscsys.h" PetscErrorCode PetscOptionsBoundInt(const char opt[],const char text[],const char man[],PetscInt currentvalue,PetscInt *value,PetscBool *flg,PetscInt bound)
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 | |
bound | - the requested value should be greater than or equal this bound 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()