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