PetscObjectSetName#
Sets a string name for a PETSc object.
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscObjectSetName(PetscObject obj, const char name[])
Not Collective
Input Parameters#
obj - the PETSc object. It must be cast with a (
PetscObject
), for example,PetscObjectSetName
((PetscObject
)mat,name);name - the name to give obj
Note#
If this routine is not called then obj
may end up being named by PetscObjectName()
.
See Also#
Level#
advanced
Location#
Examples#
src/vec/vec/utils/tagger/tutorials/ex1.c
src/vec/vec/tutorials/ex4f.F90
src/vec/vec/tutorials/ex3.c
src/vec/vec/tutorials/ex10.c
src/vec/vec/tutorials/ex31.c
src/tao/tutorials/ex3.c
src/tao/tutorials/ex1.c
src/vec/vec/tutorials/ex4f90.F90
src/vec/vec/tutorials/ex19.c
src/tao/tutorials/ex2.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages