1f26ada1bSBarry Smith /* 237f753daSBarry Smith Routines to determine options set in the options database. 3f26ada1bSBarry Smith */ 40a835dfdSSatish Balay #if !defined(__PETSCOPTIONS_H) 50a835dfdSSatish Balay #define __PETSCOPTIONS_H 62c8e378dSBarry Smith #include <petscsys.h> 7c619b03eSJed Brown #include <petscviewertypes.h> 83a3b2205SBarry Smith 9014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsHasName(const char[],const char[],PetscBool *); 10014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetInt(const char[],const char [],PetscInt *,PetscBool *); 11014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetBool(const char[],const char [],PetscBool *,PetscBool *); 12014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetReal(const char[],const char[],PetscReal *,PetscBool *); 13014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetScalar(const char[],const char[],PetscScalar *,PetscBool *); 14014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetIntArray(const char[],const char[],PetscInt[],PetscInt *,PetscBool *); 15014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetRealArray(const char[],const char[],PetscReal[],PetscInt *,PetscBool *); 16eb4ae41dSBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsGetScalarArray(const char[],const char[],PetscScalar[],PetscInt *,PetscBool *); 17014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetBoolArray(const char[],const char[],PetscBool [],PetscInt *,PetscBool *); 18014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetString(const char[],const char[],char[],size_t,PetscBool *); 19014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetStringArray(const char[],const char[],char*[],PetscInt*,PetscBool *); 20014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetEList(const char[],const char[],const char*const*,PetscInt,PetscInt*,PetscBool *); 21014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetEnum(const char[],const char[],const char*const*,PetscEnum*,PetscBool *); 22014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsValidKey(const char[],PetscBool *); 233a3b2205SBarry Smith 24014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsSetAlias(const char[],const char[]); 25014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsSetValue(const char[],const char[]); 26014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsClearValue(const char[]); 273a3b2205SBarry Smith 28014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsAllUsed(PetscInt*); 29014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsUsed(const char *,PetscBool*); 30014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsLeft(void); 31014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsView(PetscViewer); 324b0e389bSBarry Smith 33014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsCreate(void); 34014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsInsert(int*,char ***,const char[]); 35014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsInsertFile(MPI_Comm,const char[],PetscBool ); 363bcbd388SSean Farley #if defined(PETSC_HAVE_YAML) 37826011d7SBlaise Bourdin PETSC_EXTERN PetscErrorCode PetscOptionsInsertFileYAML(MPI_Comm,const char[],PetscBool); 383bcbd388SSean Farley #endif 39014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsInsertString(const char[]); 40014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsDestroy(void); 41014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsClear(void); 42014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsPrefixPush(const char[]); 43014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsPrefixPop(void); 445d0dffe5SBarry Smith 45014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsReject(const char[],const char[]); 46014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetAll(char*[]); 475d0dffe5SBarry Smith 48014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsGetenv(MPI_Comm,const char[],char[],size_t,PetscBool *); 49014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsStringToInt(const char[],PetscInt*); 50014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsStringToReal(const char[],PetscReal*); 51014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsStringToBool(const char[],PetscBool*); 522e8a6d31SBarry Smith 53014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsMonitorSet(PetscErrorCode (*)(const char[], const char[], void*), void *, PetscErrorCode (*)(void**)); 54014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsMonitorCancel(void); 55014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsMonitorDefault(const char[], const char[], void *); 56081c24baSBoyana Norris 57014dd563SJed Brown PETSC_EXTERN PetscBool PetscOptionsPublish; 58e55864a3SBarry Smith 59e55864a3SBarry Smith 60e55864a3SBarry Smith /* 61e55864a3SBarry Smith See manual page for PetscOptionsBegin() 62e55864a3SBarry Smith */ 63*050cccc3SHong Zhang typedef enum {OPTION_INT,OPTION_BOOL,OPTION_REAL,OPTION_FLIST,OPTION_STRING,OPTION_REAL_ARRAY,OPTION_SCALAR_ARRAY,OPTION_HEAD,OPTION_INT_ARRAY,OPTION_ELIST,OPTION_BOOL_ARRAY,OPTION_STRING_ARRAY} PetscOptionType; 648c34d3f5SBarry Smith typedef struct _n_PetscOption* PetscOption; 658c34d3f5SBarry Smith struct _n_PetscOption{ 66e55864a3SBarry Smith char *option; 67e55864a3SBarry Smith char *text; 68e55864a3SBarry Smith void *data; /* used to hold the default value and then any value it is changed to by GUI */ 69e55864a3SBarry Smith PetscFunctionList flist; /* used for available values for PetscOptionsList() */ 70e55864a3SBarry Smith const char *const *list; /* used for available values for PetscOptionsEList() */ 71e55864a3SBarry Smith char nlist; /* number of entries in list */ 72e55864a3SBarry Smith char *man; 73e55864a3SBarry Smith size_t arraylength; /* number of entries in data in the case that it is an array (of PetscInt etc) */ 74e55864a3SBarry Smith PetscBool set; /* the user has changed this value in the GUI */ 75e55864a3SBarry Smith PetscOptionType type; 768c34d3f5SBarry Smith PetscOption next; 77e55864a3SBarry Smith char *pman; 78e55864a3SBarry Smith void *edata; 79e55864a3SBarry Smith }; 80e55864a3SBarry Smith 8140af2deaSMatthew G. Knepley typedef struct _p_PetscOptions { 82e55864a3SBarry Smith PetscInt count; 838c34d3f5SBarry Smith PetscOption next; 84e55864a3SBarry Smith char *prefix,*pprefix; 85e55864a3SBarry Smith char *title; 86e55864a3SBarry Smith MPI_Comm comm; 87e55864a3SBarry Smith PetscBool printhelp,changedmethod,alreadyprinted; 88e55864a3SBarry Smith PetscObject object; 898c34d3f5SBarry Smith } PetscOptions; 9030de9b25SBarry Smith 9130de9b25SBarry Smith /*MC 9230de9b25SBarry Smith PetscOptionsBegin - Begins a set of queries on the options database that are related and should be 931957e957SBarry Smith displayed on the same window of a GUI that allows the user to set the options interactively. Often one should 941957e957SBarry Smith use PetscObjectOptionsBegin() rather than this call. 9530de9b25SBarry Smith 96f2ba6396SBarry Smith Synopsis: 97aaa7dc30SBarry Smith #include <petscoptions.h> 98f2ba6396SBarry Smith PetscErrorCode PetscOptionsBegin(MPI_Comm comm,const char prefix[],const char title[],const char mansec[]) 9930de9b25SBarry Smith 10030de9b25SBarry Smith Collective on MPI_Comm 10130de9b25SBarry Smith 10230de9b25SBarry Smith Input Parameters: 10330de9b25SBarry Smith + comm - communicator that shares GUI 10430de9b25SBarry Smith . prefix - options prefix for all options displayed on window 10530de9b25SBarry Smith . title - short descriptive text, for example "Krylov Solver Options" 10630de9b25SBarry Smith - mansec - section of manual pages for options, for example KSP 10730de9b25SBarry Smith 10830de9b25SBarry Smith Level: intermediate 10930de9b25SBarry Smith 11030de9b25SBarry Smith Notes: Needs to be ended by a call the PetscOptionsEnd() 11130de9b25SBarry Smith Can add subheadings with PetscOptionsHead() 11230de9b25SBarry Smith 113e78c4b8cSBarry Smith Developer notes: PetscOptionsPublish is set in PetscOptionsCheckInitial_Private() with -saws_options. When PetscOptionsPublish is set the 114aee2cecaSBarry Smith $ loop between PetscOptionsBegin() and PetscOptionsEnd() is run THREE times with PetscOptionsPublishCount of values -1,0,1 otherwise 115aee2cecaSBarry Smith $ the loop is run ONCE with a PetscOptionsPublishCount of 1. 116aee2cecaSBarry Smith $ = -1 : The PetscOptionsInt() etc just call the PetscOptionsGetInt() etc 117aee2cecaSBarry Smith $ = 0 : The GUI objects are created in PetscOptionsInt() etc and displayed in PetscOptionsEnd() and the options 118c8e70145SBarry Smith $ database updated updated with user changes; PetscOptionsGetInt() etc are also called 119c8e70145SBarry Smith $ = 1 : The PetscOptionsInt() etc again call the PetscOptionsGetInt() etc (possibly getting new values), in addition the help message and 120c8e70145SBarry Smith $ default values are printed if -help was given. 121538aa990SBarry Smith $ When PetscOptionsObject.changedmethod is set this causes PetscOptionsPublishCount to be reset to -2 (so in the next loop iteration it is -1) 122538aa990SBarry Smith $ and the whole process is repeated. This is to handle when, for example, the KSPType is changed thus changing the list of 123538aa990SBarry Smith $ options available so they need to be redisplayed so the user can change the. Chaning PetscOptionsObjects.changedmethod is never 124538aa990SBarry Smith $ currently set. 125aee2cecaSBarry Smith 126aee2cecaSBarry Smith 12730de9b25SBarry Smith .seealso: PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetInt(), 128acfcf0e5SJed Brown PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool() 129acfcf0e5SJed Brown PetscOptionsInt(), PetscOptionsString(), PetscOptionsReal(), PetscOptionsBool(), 13030de9b25SBarry Smith PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHead(), 13130de9b25SBarry Smith PetscOptionsStringArray(),PetscOptionsRealArray(), PetscOptionsScalar(), 132acfcf0e5SJed Brown PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), 133a264d7a6SBarry Smith PetscOptionsFList(), PetscOptionsEList(), PetscObjectOptionsBegin() 13430de9b25SBarry Smith 13530de9b25SBarry Smith M*/ 1363194b578SJed Brown #define PetscOptionsBegin(comm,prefix,mess,sec) 0; do {\ 1378c34d3f5SBarry Smith PetscOptions PetscOptionsObjectBase;\ 1388c34d3f5SBarry Smith PetscOptions *PetscOptionsObject = &PetscOptionsObjectBase; \ 1398c34d3f5SBarry Smith PetscMemzero(PetscOptionsObject,sizeof(PetscOptions)); \ 140e55864a3SBarry Smith for (PetscOptionsObject->count=(PetscOptionsPublish?-1:1); PetscOptionsObject->count<2; PetscOptionsObject->count++) {\ 141e55864a3SBarry Smith PetscErrorCode _5_ierr = PetscOptionsBegin_Private(PetscOptionsObject,comm,prefix,mess,sec);CHKERRQ(_5_ierr); 14230de9b25SBarry Smith 1435fefd1ebSJed Brown /*MC 1445fefd1ebSJed Brown PetscObjectOptionsBegin - Begins a set of queries on the options database that are related and should be 1455fefd1ebSJed Brown displayed on the same window of a GUI that allows the user to set the options interactively. 1465fefd1ebSJed Brown 147f2ba6396SBarry Smith Synopsis: 148aaa7dc30SBarry Smith #include <petscoptions.h> 149f2ba6396SBarry Smith PetscErrorCode PetscObjectOptionsBegin(PetscObject obj) 1505fefd1ebSJed Brown 1515fefd1ebSJed Brown Collective on PetscObject 1525fefd1ebSJed Brown 1535fefd1ebSJed Brown Input Parameters: 1545fefd1ebSJed Brown . obj - object to set options for 1555fefd1ebSJed Brown 1565fefd1ebSJed Brown Level: intermediate 1575fefd1ebSJed Brown 1585fefd1ebSJed Brown Notes: Needs to be ended by a call the PetscOptionsEnd() 1595fefd1ebSJed Brown Can add subheadings with PetscOptionsHead() 1605fefd1ebSJed Brown 1615fefd1ebSJed Brown .seealso: PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetInt(), 1625fefd1ebSJed Brown PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool() 1635fefd1ebSJed Brown PetscOptionsInt(), PetscOptionsString(), PetscOptionsReal(), PetscOptionsBool(), 1645fefd1ebSJed Brown PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHead(), 1655fefd1ebSJed Brown PetscOptionsStringArray(),PetscOptionsRealArray(), PetscOptionsScalar(), 1665fefd1ebSJed Brown PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), 167a264d7a6SBarry Smith PetscOptionsFList(), PetscOptionsEList() 1685fefd1ebSJed Brown 1695fefd1ebSJed Brown M*/ 1703194b578SJed Brown #define PetscObjectOptionsBegin(obj) 0; do { \ 1718c34d3f5SBarry Smith PetscOptions PetscOptionsObjectBase;\ 1728c34d3f5SBarry Smith PetscOptions *PetscOptionsObject = &PetscOptionsObjectBase; \ 173e55864a3SBarry Smith for (PetscOptionsObject->count=(PetscOptionsPublish?-1:1); PetscOptionsObject->count<2; PetscOptionsObject->count++) {\ 174e55864a3SBarry Smith PetscErrorCode _5_ierr = PetscObjectOptionsBegin_Private(PetscOptionsObject,obj);CHKERRQ(_5_ierr); 1753194b578SJed Brown 17630de9b25SBarry Smith /*MC 17730de9b25SBarry Smith PetscOptionsEnd - Ends a set of queries on the options database that are related and should be 17830de9b25SBarry Smith displayed on the same window of a GUI that allows the user to set the options interactively. 17930de9b25SBarry Smith 18030de9b25SBarry Smith Collective on the MPI_Comm used in PetscOptionsBegin() 18130de9b25SBarry Smith 182f2ba6396SBarry Smith Synopsis: 183aaa7dc30SBarry Smith #include <petscoptions.h> 184f2ba6396SBarry Smith PetscErrorCode PetscOptionsEnd(void) 18530de9b25SBarry Smith 18630de9b25SBarry Smith Level: intermediate 18730de9b25SBarry Smith 1881957e957SBarry Smith Notes: Needs to be preceded by a call to PetscOptionsBegin() or PetscObjectOptionsBegin() 18930de9b25SBarry Smith 19030de9b25SBarry Smith .seealso: PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetInt(), 191acfcf0e5SJed Brown PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool() 192acfcf0e5SJed Brown PetscOptionsInt(), PetscOptionsString(), PetscOptionsReal(), PetscOptionsBool(), 19330de9b25SBarry Smith PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHead(), 19430de9b25SBarry Smith PetscOptionsStringArray(),PetscOptionsRealArray(), PetscOptionsScalar(), 195acfcf0e5SJed Brown PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), 196a264d7a6SBarry Smith PetscOptionsFList(), PetscOptionsEList(), PetscObjectOptionsBegin() 19730de9b25SBarry Smith 19830de9b25SBarry Smith M*/ 199e55864a3SBarry Smith #define PetscOptionsEnd() _5_ierr = PetscOptionsEnd_Private(PetscOptionsObject);CHKERRQ(_5_ierr);}} while (0) 20030de9b25SBarry Smith 2018c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsBegin_Private(PetscOptions *,MPI_Comm,const char[],const char[],const char[]); 2028c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscObjectOptionsBegin_Private(PetscOptions *,PetscObject); 2038c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsEnd_Private(PetscOptions *); 2048c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsHead(PetscOptions *,const char[]); 20530de9b25SBarry Smith 20630de9b25SBarry Smith /*MC 20730de9b25SBarry Smith PetscOptionsTail - Ends a section of options begun with PetscOptionsHead() 20830de9b25SBarry Smith See, for example, KSPSetFromOptions_GMRES(). 20930de9b25SBarry Smith 21030de9b25SBarry Smith Collective on the communicator passed in PetscOptionsBegin() 21130de9b25SBarry Smith 212f2ba6396SBarry Smith Synopsis: 213aaa7dc30SBarry Smith #include <petscoptions.h> 214f2ba6396SBarry Smith PetscErrorCode PetscOptionsTail(void) 21530de9b25SBarry Smith 21630de9b25SBarry Smith Level: intermediate 21730de9b25SBarry Smith 2181957e957SBarry Smith Notes: Must be between a PetscOptionsBegin()/PetscObjectOptionsBegin() and a PetscOptionsEnd() 21930de9b25SBarry Smith 22030de9b25SBarry Smith Must be preceded by a call to PetscOptionsHead() in the same function. 22130de9b25SBarry Smith 222b52f573bSBarry Smith This needs to be used only if the code below PetscOptionsTail() can be run ONLY once. 223b52f573bSBarry Smith See, for example, PCSetFromOptions_Composite(). This is a return(0) in it for early exit 224b52f573bSBarry Smith from the function. 225b52f573bSBarry Smith 22656752e42SBarry Smith This is only for use with the PETSc options GUI 227b52f573bSBarry Smith 22830de9b25SBarry Smith Concepts: options database^subheading 22930de9b25SBarry Smith 23030de9b25SBarry Smith .seealso: PetscOptionsGetInt(), PetscOptionsGetReal(), 231acfcf0e5SJed Brown PetscOptionsHasName(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), 23230de9b25SBarry Smith PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHead(), 23330de9b25SBarry Smith PetscOptionsStringArray(),PetscOptionsRealArray(), PetscOptionsScalar(), 234acfcf0e5SJed Brown PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), 235a264d7a6SBarry Smith PetscOptionsFList(), PetscOptionsEList(), PetscOptionsEnum() 23630de9b25SBarry Smith M*/ 237e55864a3SBarry Smith #define PetscOptionsTail() 0; {if (PetscOptionsObject->count != 1) PetscFunctionReturn(0);} 238186905e3SBarry Smith 239e55864a3SBarry Smith #define PetscOptionsEnum(a,b,c,d,e,f,g) PetscOptionsEnum_Private(PetscOptionsObject,a,b,c,d,e,f,g) 240e55864a3SBarry Smith #define PetscOptionsInt(a,b,c,d,e,f) PetscOptionsInt_Private(PetscOptionsObject,a,b,c,d,e,f) 241e55864a3SBarry Smith #define PetscOptionsReal(a,b,c,d,e,f) PetscOptionsReal_Private(PetscOptionsObject,a,b,c,d,e,f) 242e55864a3SBarry Smith #define PetscOptionsScalar(a,b,c,d,e,f) PetscOptionsScalar_Private(PetscOptionsObject,a,b,c,d,e,f) 243e55864a3SBarry Smith #define PetscOptionsName(a,b,c,d) PetscOptionsName_Private(PetscOptionsObject,a,b,c,d) 244e55864a3SBarry Smith #define PetscOptionsString(a,b,c,d,e,f,g) PetscOptionsString_Private(PetscOptionsObject,a,b,c,d,e,f,g) 245e55864a3SBarry Smith #define PetscOptionsBool(a,b,c,d,e,f) PetscOptionsBool_Private(PetscOptionsObject,a,b,c,d,e,f) 246e55864a3SBarry Smith #define PetscOptionsBoolGroupBegin(a,b,c,d) PetscOptionsBoolGroupBegin_Private(PetscOptionsObject,a,b,c,d) 247e55864a3SBarry Smith #define PetscOptionsBoolGroup(a,b,c,d) PetscOptionsBoolGroup_Private(PetscOptionsObject,a,b,c,d) 248e55864a3SBarry Smith #define PetscOptionsBoolGroupEnd(a,b,c,d) PetscOptionsBoolGroupEnd_Private(PetscOptionsObject,a,b,c,d) 24983355fc5SBarry Smith #define PetscOptionsFList(a,b,c,d,e,f,g,h) PetscOptionsFList_Private(PetscOptionsObject,a,b,c,d,e,f,g,h) 250e55864a3SBarry Smith #define PetscOptionsEList(a,b,c,d,e,f,g,h) PetscOptionsEList_Private(PetscOptionsObject,a,b,c,d,e,f,g,h) 251e55864a3SBarry Smith #define PetscOptionsRealArray(a,b,c,d,e,f) PetscOptionsRealArray_Private(PetscOptionsObject,a,b,c,d,e,f) 252*050cccc3SHong Zhang #define PetscOptionsScalarArray(a,b,c,d,e,f) PetscOptionsScalarArray_Private(PetscOptionsObject,a,b,c,d,e,f) 253e55864a3SBarry Smith #define PetscOptionsIntArray(a,b,c,d,e,f) PetscOptionsIntArray_Private(PetscOptionsObject,a,b,c,d,e,f) 254e55864a3SBarry Smith #define PetscOptionsStringArray(a,b,c,d,e,f) PetscOptionsStringArray_Private(PetscOptionsObject,a,b,c,d,e,f) 255e55864a3SBarry Smith #define PetscOptionsBoolArray(a,b,c,d,e,f) PetscOptionsBoolArray_Private(PetscOptionsObject,a,b,c,d,e,f) 256e55864a3SBarry Smith 257e55864a3SBarry Smith 2588c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsEnum_Private(PetscOptions *,const char[],const char[],const char[],const char *const*,PetscEnum,PetscEnum*,PetscBool *); 2598c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsInt_Private(PetscOptions *,const char[],const char[],const char[],PetscInt,PetscInt*,PetscBool *); 2608c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsReal_Private(PetscOptions *,const char[],const char[],const char[],PetscReal,PetscReal*,PetscBool *); 2618c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsScalar_Private(PetscOptions *,const char[],const char[],const char[],PetscScalar,PetscScalar*,PetscBool *); 2628c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsName_Private(PetscOptions *,const char[],const char[],const char[],PetscBool *); 2638c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsString_Private(PetscOptions *,const char[],const char[],const char[],const char[],char*,size_t,PetscBool *); 2648c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsBool_Private(PetscOptions *,const char[],const char[],const char[],PetscBool ,PetscBool *,PetscBool *); 2658c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsBoolGroupBegin_Private(PetscOptions *,const char[],const char[],const char[],PetscBool *); 2668c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsBoolGroup_Private(PetscOptions *,const char[],const char[],const char[],PetscBool *); 2678c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsBoolGroupEnd_Private(PetscOptions *,const char[],const char[],const char[],PetscBool *); 2688c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsFList_Private(PetscOptions *,const char[],const char[],const char[],PetscFunctionList,const char[],char[],size_t,PetscBool *); 2698c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsEList_Private(PetscOptions *,const char[],const char[],const char[],const char*const*,PetscInt,const char[],PetscInt*,PetscBool *); 2708c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsRealArray_Private(PetscOptions *,const char[],const char[],const char[],PetscReal[],PetscInt*,PetscBool *); 271*050cccc3SHong Zhang PETSC_EXTERN PetscErrorCode PetscOptionsScalarArray_Private(PetscOptions *,const char[],const char[],const char[],PetscScalar[],PetscInt*,PetscBool *); 2728c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsIntArray_Private(PetscOptions *,const char[],const char[],const char[],PetscInt[],PetscInt*,PetscBool *); 2738c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsStringArray_Private(PetscOptions *,const char[],const char[],const char[],char*[],PetscInt*,PetscBool *); 2748c34d3f5SBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsBoolArray_Private(PetscOptions *,const char[],const char[],const char[],PetscBool [],PetscInt*,PetscBool *); 275cffb1e40SBarry Smith 276e9fa29b7SSatish Balay 277014dd563SJed Brown PETSC_EXTERN PetscErrorCode PetscOptionsSetFromOptions(void); 278e04113cfSBarry Smith PETSC_EXTERN PetscErrorCode PetscOptionsSAWsDestroy(void); 279f8d0b74dSMatthew Knepley 2803a3b2205SBarry Smith #endif 281