# PETSC_VIEWER_DRAW_
Creates a window `PETSCVIEWERDRAW` `PetscViewer` shared by all processors in a communicator. 
## Synopsis
```
#include "petscdraw.h" 
#include "petscviewer.h" 
PetscViewer PETSC_VIEWER_DRAW_(MPI_Comm comm)
```
Collective


## Input Parameter

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





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


## See Also
 `PETSCVIEWERDRAW`, `PetscViewer`, `PETSC_VIEWER_DRAW_WORLD`, `PETSC_VIEWER_DRAW_SELF`, `PetscViewerDrawOpen()`,

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/draw/drawv.c.html#PETSC_VIEWER_DRAW_">src/sys/classes/viewer/impls/draw/drawv.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex2.c.html">src/ts/tutorials/ex2.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex21.c.html">src/ts/tutorials/ex21.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/draw/drawv.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)  
