OptionsSetValue

Sets an option name-value pair in the options database, overriding whatever is already present.

Synopsis

#include "petsc.h"   
int OptionsSetValue(const char iname[],const char value[])
Not collective, but setting values on certain processors could cause problems for parallel objects looking for options.

Input Parameters

name - name of option, this SHOULD have the - prepended
value - the option value (not used for all options)

Note

Only some options have values associated with them, such as -ksp_rtol tol. Other options stand alone, such as -ksp_monitor.

See Also

OptionsInsert()

Level:intermediate
Location:
src/sys/src/objects/options.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages