#include "petscsys.h" PetscErrorCode PetscOptionsGetEList(const char pre[],const char opt[],const char *const*list,PetscInt ntext,PetscInt *value,PetscBool *set)Not Collective
pre | - the string to prepend to the name or PETSC_NULL | |
opt | - option name | |
list | - the possible choices | |
ntext | - number of choices |
value | - the index of the value to return (defaults to zero if the option name is given but choice is listed) | |
set | - PETSC_TRUE if found, else PETSC_FALSE |
See PetscOptionsList() for when the choices are given in a PetscFList()
Level:intermediate
Location:src/sys/objects/options.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages