xref: /petsc/include/petscoptions.h (revision d5bc1036675f4b812457cd4a97ce5e27072faa1a)
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