#include "petscsys.h" PetscErrorCode PetscObjectName(PetscObject obj)Collective
Notes: This is used in a small number of places when an object NEEDS a name, for example when it is saved to MATLAB with that variable name. Use PetscObjectSetName() to set the name of an object to what you want. The SAWs viewer requires that no two published objects share the same name.
Developer Note: this needs to generate the exact same string on all ranks that share the object. The current algorithm may not always work.