PetscObjectGetName#

Gets a string name associated with a PETSc object.

Synopsis#

#include "petscsys.h"   
PetscErrorCode PetscObjectGetName(PetscObject obj, const char *name[])

Not Collective unless object has not been named yet

Input Parameters#

Note#

Calls PetscObjectName() if a name has not yet been provided to the object.

See Also#

PetscObjectSetName(), PetscObjectName()

Level#

intermediate

Location#

src/sys/objects/pgname.c

Examples#

src/dm/impls/plex/tutorials/ex11.c.html
src/dm/impls/plex/tutorials/ex8.c.html
src/dm/tutorials/ex10.c.html
src/dm/label/tutorials/ex1.c.html
src/snes/tutorials/ex36.c.html


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages