PetscObjectDestroy

Destroys any PetscObject, regardless of the type.

Synopsis

#include "petsc.h"    
int PetscObjectDestroy(PetscObject obj)
Collective on PetscObject

Input Parameter

obj -any PETSc object, for example a Vec, Mat or KSP. This 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