Skip to main content
Ctrl+K
PETSc v3.25.2-314-gac270b178004 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • PetscObjectG...

PetscObjectGetOptionsPrefix#

Gets the prefix of the PetscObject used for searching in the options database

Synopsis#

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

Input Parameter#

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

Output Parameter#

  • prefix - pointer to the prefix string used is returned

See Also#

PetscOptionsCreate(), PetscOptionsDestroy(), PetscObjectSetOptionsPrefix(), PetscObjectAppendOptionsPrefix(), PetscObjectPrependOptionsPrefix(), TSGetOptionsPrefix(), SNESGetOptionsPrefix(), KSPGetOptionsPrefix()

Level#

advanced

Location#

src/sys/objects/prefix.c

Examples#

src/ts/tutorials/ex53.c
src/ml/da/tutorials/ex4.c
src/snes/tutorials/ex36.c
src/ml/da/tutorials/ex3.c
src/ml/da/tutorials/ex2.c
src/ts/tutorials/ex18.c


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

On this page
  • Synopsis
  • Input Parameter
  • Output Parameter
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-06-18T03:49:22-0500 (v3.25.2-314-gac270b178004).