# PETSC_VIEWER_SAWS_
Creates an SAWs `PetscViewer` shared by all processors in a communicator. 
## Synopsis
```
PetscViewer PETSC_VIEWER_SAWS_(MPI_Comm comm)
```
Collective


## Input Parameters

- ***comm -*** the MPI communicator to share the `PetscViewer`





## Note
Unlike almost all other PETSc routines, `PETSC_VIEWER_SAWS_()` does not return
an error code.  The resulting `PetscViewer` is usually used in the form
```none
XXXView(XXX object,PETSC_VIEWER_SAWS_(comm));
```


## See Also
 [](sec_viewers), `PetscViewer`, `PETSC_VIEWER_SAWS_WORLD`, `PETSC_VIEWER_SAWS_SELF`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/ams/ams.c.html#PETSC_VIEWER_SAWS_">src/sys/classes/viewer/impls/ams/ams.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/ams/ams.c)


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