:orphan: # PetscObjectSAWsGrantAccess Grants access of the data fields that have been published to SAWs called when the changes made during `PetscObjectSAWsTakeAccess()` are complete. This allows the webserve to change the published values. ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscObjectSAWsGrantAccess(PetscObject obj) ``` Collective ## Input Parameter - ***obj -*** the `PetscObject` variable. This must be cast with a (`PetscObject`), for example, `PetscObjectSAWSRestoreAccess`((`PetscObject`)mat); ## See Also `PetscObjectSetName()`, `PetscObjectSAWsViewOff()`, `PetscObjectSAWsTakeAccess()` ## 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)