petsc-3.13.6 2020-09-29
Report Typos and Errors

PetscObjectSetName

Sets a string name associated with a PETSc object.

Synopsis

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

Input Parameters

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().

See Also

PetscObjectGetName(), PetscObjectName()

Level

advanced

Location

src/sys/objects/pname.c

Examples

src/vec/vec/utils/tagger/tutorials/ex1.c.html
src/vec/vec/tutorials/ex3.c.html
src/vec/vec/tutorials/ex10.c.html
src/vec/vec/tutorials/ex19.c.html
src/vec/vec/tutorials/ex4f.F.html
src/vec/vec/tutorials/ex4f90.F90.html
src/mat/tutorials/ex10.c.html
src/dm/impls/plex/tutorials/ex2.c.html
src/dm/impls/plex/tutorials/ex5.c.html
src/dm/impls/plex/tutorials/ex7.c.html
src/dm/impls/plex/tutorials/ex3f90.F90.html

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