#include "petscsys.h" PetscErrorCode PetscObjectTypeCompare(PetscObject obj,const char type_name[],PetscBool *same)Not Collective
obj | - any PETSc object, for example a Vec, Mat or KSP. This must be cast with a (PetscObject), for example, PetscObjectTypeCompare((PetscObject)mat); | |
type_name | - string containing a type name |
same | - PETSC_TRUE if they are the same, else PETSC_FALSE |