:orphan: # PetscObjectSAWsTakeAccess Take access of the data fields that have been published to SAWs by a `PetscObject` so their values may be changed in the computation ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscObjectSAWsTakeAccess(PetscObject obj) ``` Collective ## Input Parameter - ***obj -*** the `PetscObject` variable. This must be cast with a (`PetscObject`), for example, `PetscObjectSAWSTakeAccess`((`PetscObject`)mat); ## Developer Note The naming should perhaps be changed to `PetscObjectSAWsGetAccess()` and `PetscObjectSAWsRestoreAccess()` ## See Also `PetscObjectSetName()`, `PetscObjectSAWsViewOff()`, `PetscObjectSAWsGrantAccess()` ## Level advanced ## Location src/sys/ams/pams.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/ams/pams.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)