PetscObjectSetName#

Sets a string name for a PETSc object.

Synopsis#

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

Not Collective

Input Parameters#

Note#

If this routine is not called then obj may end up being named by PetscObjectName().

See Also#

PetscObjectGetName(), PetscObjectName()

Level#

advanced

Location#

src/sys/objects/pname.c

Examples#

src/dm/tutorials/ex7.c
src/dm/tutorials/ex10.c
src/dm/tutorials/ex22.c
src/dm/tutorials/ex20.c
src/dm/tutorials/swarm_ex2.c
src/dm/tutorials/swarm_ex3.c
src/dm/tutorials/swarm_ex1.c
src/dm/tutorials/ex9.c
src/dm/field/tutorials/ex1.c
src/dm/label/tutorials/ex1.c


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