#include "petscsys.h" PetscErrorCode PetscObjectSetName(PetscObject obj,const char name[])Not Collective
obj | - the Petsc variable Thus must be cast with a (PetscObject), for example, PetscObjectSetName((PetscObject)mat,name); | |
name | - the name to give obj |