#include "petscsys.h" PetscErrorCode PetscOptionsSetValue(PetscOptions options,const char name[],const char value[])Logically Collective
options | - options database, use NULL for the default global database | |
name | - name of option, this SHOULD have the - prepended | |
value | - the option value (not used for all options, so can be NULL) |
The collectivity of this routine is complex; only the MPI processes that call this routine will have the affect of these options. If some processes that create objects call this routine and others do not the code may fail in complicated ways because the same parallel solvers may incorrectly use different options on different ranks.
Developers Note: Uses malloc() directly because PETSc may not be initialized yet.