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