:orphan: # PetscContainerSetPointer Sets the pointer value contained in the container. ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscContainerSetPointer(PetscContainer obj, void *ptr) ``` Logically Collective ## Input Parameters - ***obj -*** the object created with `PetscContainerCreate()` - ***ptr -*** the pointer value ## See Also `PetscContainerCreate()`, `PetscContainerDestroy()`, `PetscObjectCompose()`, `PetscObjectQuery()`, `PetscObject`, `PetscContainerGetPointer()` ## Level advanced ## Location src/sys/objects/inherit.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/inherit.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)