PetscObjectDestroy

Destroys any PetscObject, regardless of the type.

Synopsis

int PetscObjectDestroy(PetscObject obj)
Collective on PetscObject

Input Parameter

obj -any PETSc object, for example a Vec, Mat or KSP. Thus must be cast with a (PetscObject), for example, PetscObjectDestroy((PetscObject) mat);

Keywords

object, destroy

Level:intermediate
Location:src/sys/src/objects/destroy.c
System Index
Table of Contents