PetscObjectSetName

Sets a string name associated with a PETSc object.

Synopsis

#include "petsc.h"   
int 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

Keywords

object, set, name

See Also

PetscObjectGetName()

Examples

src/sles/examples/tutorials/ex3.c
src/snes/examples/tutorials/ex2.c
src/snes/examples/tutorials/ex3.c

Level:advanced
Location:src/sys/src/objects/pname.c
System Index
Table of Contents