:orphan:
# PETSC_VIEWER_SAWS_
Creates a SAWs `PetscViewer` shared by all MPI processes in a communicator. 
## Synopsis
```
PetscViewer PETSC_VIEWER_SAWS_(MPI_Comm comm)
```
Collective


## Input Parameter

- ***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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
