xref: /petsc/include/petscoptions.h (revision 2f8a729c95982efb3e50c82c45a5cc0e4d951579)
1 /* $Id: options.h,v 1.12 1995/10/17 21:43:12 bsmith Exp bsmith $ */
2 /*
3    Application callable routines to determine options set in the options database.
4 */
5 #if !defined(__OPTIONS_PACKAGE)
6 #define __OPTIONS_PACKAGE
7 #include "petsc.h"
8 
9 int OptionsPrint(FILE *);
10 
11 /* returns -1 on error, 0 on not found and 1 on found */
12 int OptionsHasName(char*,char *);
13 int OptionsGetInt(char*,char *,int *);
14 int OptionsGetDouble(char *,char *,double *);
15 int OptionsGetScalar(char *,char *,Scalar *);
16 int OptionsGetIntArray(char*,char *,int *,int *nmax);
17 int OptionsGetDoubleArray(char *,char *,double *,int *nmax);
18 int OptionsGetString(char*,char *,char *,int);
19 int OptionsAllUsed();
20 
21 int OptionsSetValue(char*,char*);
22 
23 #endif
24