#include "petscsys.h" PetscErrorCode PetscOptionsInsert(PetscOptions options,int *argc,char ***args,const char file[])Collective on PETSC_COMM_WORLD
| options | - options database or NULL for the default global database | |
| argc | - count of number of command line arguments | |
| args | - the command line arguments | |
| file | - [optional] PETSc database file, append ":yaml" to filename to specify YAML options format. Use NULL or empty string to not check for code specific file. Also checks ~/.petscrc, .petscrc and petscrc. Use -skip_petscrc in the code specific file (or command line) to skip ~/.petscrc, .petscrc and petscrc files. |
| -options_file <filename> | - read options from a file | |
| -options_file_yaml <filename> | - read options from a YAML file |
See PetscInitialize() for options related to option database monitoring.