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/snes/tutorials/ex17.c
src/snes/tutorials/ex26.c
src/snes/tutorials/ex63.c
src/mat/tutorials/ex10.c
src/snes/tutorials/ex36.c
src/snes/tutorials/ex12.c
src/snes/tutorials/ex8.c
src/snes/tutorials/ex71.c
src/snes/tutorials/ex23.c
src/mat/tutorials/ex3.c


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