Gets an array of integer values for a particular option in the database. The values must be separated with commas with no intervening spaces.


#include "petsc.h"   
PetscErrorCode  PetscOptionsGetIntArray(const char pre[],const char name[],PetscInt dvalue[],PetscInt *nmax,PetscTruth *flg)
Not Collective

Input Parameters

pre - string to prepend to each name or PETSC_NULL
name - the option one is seeking
nmax - maximum number of values to retrieve

Output Parameter

dvalue - the integer values to return
nmax - actual number of values retreived
flg - PETSC_TRUE if found, else PETSC_FALSE

C++ variants

  PetscOptionsGetIntArray(const char b[],PetscInt i[],PetscInt *ii,PetscTruth *f)->PetscOptionsGetIntArray(PETSC_NULL,b,i,ii,f)

See Also

PetscOptionsGetInt(), PetscOptionsHasName(),
PetscOptionsGetString(), PetscOptionsGetRealArray(), PetscOptionsTruth(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHead(), PetscOptionsStringArray(),PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsTruthGroupBegin(), PetscOptionsTruthGroup(), PetscOptionsTruthGroupEnd(), PetscOptionsList(), PetscOptionsEList()

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages