PetscObjectTypeCompareAny#

Determines whether a PETSc object is of any of a list of types.

Synopsis#

#include "petscsys.h"    
PetscErrorCode PetscObjectTypeCompareAny(PetscObject obj, PetscBool *match, const char type_name[], ...)

Not Collective

Input Parameters#

Output Parameter#

See Also#

VecGetType(), KSPGetType(), PCGetType(), SNESGetType(), PetscObjectTypeCompare(), PetscObjectBaseTypeCompare()

Level#

intermediate

Location#

src/sys/objects/destroy.c

Examples#

src/ksp/ksp/tutorials/ex79.c
src/dm/partitioner/tests/ex33.c
src/ksp/ksp/utils/lmvm/tests/ex1.c
src/mat/tests/ex217.c
src/mat/tests/ex237.c
src/mat/tests/ex267.c
src/mat/tests/ex318.c
src/mat/tests/ex62.c
src/ts/tests/ex2.c
src/vec/vec/tests/ex38.c


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