xref: /petsc/include/petscoptions.h (revision df60cc224878ed2ef3f52954bb2c505c4f71966d)
1 
2 #if !defined(__OPTIONS_PACKAGE)
3 #define __OPTIONS_PACKAGE
4 #include "petsc.h"
5 
6 #include <stdio.h>
7 int OptionsPrint(FILE *);
8 
9 /* returns -1 on error, 0 on not found and 1 on found */
10 int OptionsHasName(char*,char *);
11 int OptionsGetInt(char*,char *,int *);
12 int OptionsGetDouble(char *,char *,double *);
13 int OptionsGetIntArray(char*,char *,int *,int *nmax);
14 int OptionsGetDoubleArray(char *,char *,double *,int *nmax);
15 int OptionsGetString(char*,char *,char *,int);
16 int OptionsGetScalar(char*,char *,Scalar *);
17 int OptionsAllUsed();
18 
19 int OptionsSetValue(char*,char*);
20 
21 #endif
22