#include "petscsys.h" PetscErrorCode PetscObjectGetClassId(PetscObject obj,PetscClassId *classid)Not Collective
obj | - any PETSc object, for example a Vec, Mat or KSP. Thus must be cast with a (PetscObject), for example, PetscObjectGetClassId((PetscObject)mat,&classid); |
classid | - the classid |