PetscObjectTypeCompare#

Determines whether a PETSc object is of a particular type.

Synopsis#

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

Not Collective

Input Parameters#

Output Parameter#

See Also#

PetscObject, VecGetType(), KSPGetType(), PCGetType(), SNESGetType(), PetscObjectBaseTypeCompare(), PetscObjectTypeCompareAny(), PetscObjectBaseTypeCompareAny(), PetscObjectObjectTypeCompare()

Level#

intermediate

Location#

src/sys/objects/destroy.c

Examples#

src/ksp/ksp/tutorials/ex8.c
src/ksp/ksp/tutorials/ex72.c
src/ksp/ksp/tutorials/ex75f.F90
src/ksp/ksp/tutorials/ex7f.F90
src/ksp/ksp/tutorials/ex71.c
src/snes/tutorials/ex16.c
src/ksp/ksp/tutorials/ex82.c
src/ksp/ksp/tutorials/ex70.c
src/snes/tutorials/ex28.c
src/ksp/ksp/tutorials/ex43.c


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