Skip to main content
Ctrl+K
PETSc 3.23.1 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
  • PetscObject

PetscObject#

any PETSc object, for example: PetscViewer, Mat, Vec, KSP, DM

Synopsis#

typedef struct _p_PetscObject *PetscObject;

Notes#

This is the base class from which all PETSc objects are derived.

In certain situations one can cast an object, for example a Vec, to a PetscObject with (PetscObject)vec

See Also#

PetscObjectDestroy(), PetscObjectView(), PetscObjectGetName(), PetscObjectSetName(), PetscObjectReference(), PetscObjectDereference()

Level#

beginner

Location#

include/petscsystypes.h

Examples#

src/snes/tutorials/ex63.c
src/sys/tutorials/ex7.c
src/snes/tutorials/ex69.c
src/dm/impls/plex/tutorials/ex4f90.F90
src/snes/tutorials/ex56.c
src/ksp/ksp/tutorials/ex43.c
src/ts/tutorials/ex46.c
src/snes/tutorials/ex77.c
src/snes/tutorials/ex62.c
src/sys/tutorials/ex6.c

Implementations#

_p_PetscObject in include/petsc/private/petscimpl.h


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

On this page
  • Synopsis
  • Notes
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
Edit on GitLab
Show Source

© Copyright 1991-2025, 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 2025-04-30T13:10:40-0500 (v3.23.1).