# PetscStackSAWsGrantAccess
Grants access of the PETSc stack frames to the SAWs publisher 
## Synopsis
```
#include "petscsys.h"   
void PetscStackSAWsGrantAccess(void)
```
Collective on `PETSC_COMM_WORLD`?




## Developers Note
Cannot use `PetscFunctionBegin`/`PetrscFunctionReturn()` or `PetscCallSAWs()` since it may be used within those routines


## See Also
 `PetscObjectSetName()`, `PetscObjectSAWsViewOff()`, `PetscObjectSAWsTakeAccess()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/error/pstack.c.html#PetscStackSAWsGrantAccess">src/sys/error/pstack.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/error/pstack.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
