xref: /petsc/include/petscoptions.h (revision a7a1495cff6e7d7f13bcb4a602de4e22c1c115f6)
1 /* $Id: options.h,v 1.36 2000/01/11 21:04:04 bsmith Exp bsmith $ */
2 /*
3    Routines to determine options set in the options database.
4 */
5 #if !defined(__OPTIONS_H)
6 #define __OPTIONS_H
7 #include "petsc.h"
8 
9 extern int  OptionsHasName(const char[],const char[],PetscTruth*);
10 extern int  OptionsGetInt(const char[],const char [],int *,PetscTruth*);
11 extern int  OptionsGetLogical(const char[],const char [],PetscTruth *,PetscTruth*);
12 extern int  OptionsGetDouble(const char[],const char[],double *,PetscTruth*);
13 extern int  OptionsGetScalar(const char[],const char[],Scalar *,PetscTruth*);
14 extern int  OptionsGetIntArray(const char[],const char[],int[],int *,PetscTruth*);
15 extern int  OptionsGetDoubleArray(const char[],const char[],double[],int *,PetscTruth*);
16 extern int  OptionsGetString(const char[],const char[],char[],int,PetscTruth*);
17 extern int  OptionsGetStringArray(const char[],const char[],char**,int*,PetscTruth*);
18 
19 extern int  OptionsSetAlias(const char[],const char[]);
20 extern int  OptionsSetValue(const char[],const char[]);
21 extern int  OptionsClearValue(const char[]);
22 
23 extern int  OptionsAllUsed(int *);
24 extern int  OptionsLeft(void);
25 extern int  OptionsPrint(FILE *);
26 
27 extern int  OptionsCreate(void);
28 extern int  OptionsInsert(int *,char ***,const char[]);
29 extern int  OptionsInsertFile(const char[]);
30 extern int  OptionsDestroy(void);
31 
32 extern int  OptionsReject(const char[],const char[]);
33 extern int  OptionsGetAll(char*[]);
34 
35 extern int  OptionsGetenv(MPI_Comm,const char *,char[],int,PetscTruth *);
36 extern int  OptionsAtoi(const char[],int*);
37 extern int  OptionsAtod(const char[],double*);
38 
39 extern PetscTruth PetscPublishOptions;
40 extern int        OptionsSelectBegin(MPI_Comm,char*,char*);
41 extern int        OptionsSelectInt(MPI_Comm,char*,char*,int);
42 extern int        OptionsSelectDouble(MPI_Comm,char*,char*,double);
43 extern int        OptionsSelectName(MPI_Comm,char*,char*);
44 extern int        OptionsSelectList(MPI_Comm,char*,char*,char**,int,char*);
45 extern int        OptionsSelectEnd(MPI_Comm);
46 #endif
47