PetscObjectExists

Determines whether a PETSc object has been destroyed.

Synopsis

int PetscObjectExists(PetscObject obj,int *exists)
Not Collective

Input Parameter

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

Output Parameter

exists -0 if object does not exist; 1 if object does exist.

Keywords

object, exists

Location: src/sys/src/objectsgcookie.c
System Index
Table of Contents