#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 |
Notes: If this routine is not called then the object may end up being name by PetscObjectName().