PetscObject#

any PETSc object, PetscViewer, Mat, Vec, KSP etc

Synopsis#

typedef struct _p_PetscObject *PetscObject;

Notes#

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

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/vec/vec/utils/tagger/tutorials/ex1.c.html
src/vec/vec/tutorials/ex10.c.html
src/vec/vec/tutorials/ex19.c.html
src/vec/vec/tutorials/ex21.c.html
src/vec/vec/tutorials/ex31.c.html
src/vec/vec/tutorials/ex3.c.html
src/vec/is/is/tutorials/ex3.c.html
src/vec/is/sf/tutorials/ex1.c.html
src/mat/tutorials/ex10.c.html
src/mat/tutorials/ex18.c.html
src/mat/tutorials/ex3.c.html

Implementations#

_p_PetscObject in include/petsc/private/petscimpl.h


Edit on GitLab

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