PetscObjectSetOptionsPrefix#

Sets the prefix used for searching for all options for the given object in the database.

Synopsis#

#include "petscsys.h"    
PetscErrorCode PetscObjectSetOptionsPrefix(PetscObject obj, const char prefix[])

Collective on obj

Input Parameters#

  • obj - any PETSc object, for example a Vec, Mat or KSP.

  • prefix - the prefix string to prepend to option requests of the object.

Note#

A hyphen (-) must NOT be given at the beginning of the prefix name. The first character of all runtime options is AUTOMATICALLY the hyphen.

See Also#

PetscOptionsCreate(), PetscOptionsDestroy(), PetscObjectAppendOptionsPrefix(), PetscObjectPrependOptionsPrefix(), PetscObjectGetOptionsPrefix(), TSSetOptionsPrefix(), SNESSetOptionsPrefix(), KSPSetOptionsPrefix()

Level#

advanced

Location#

src/sys/objects/prefix.c

Examples#

src/dm/impls/plex/tutorials/ex10.c.html
src/snes/tutorials/ex13.c.html
src/snes/tutorials/ex36.c.html
src/snes/tutorials/ex56.c.html
src/snes/tutorials/ex69.c.html
src/ts/tutorials/ex11.c.html
src/ts/tutorials/ex18.c.html
src/ts/tutorials/ex77.c.html


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages