# PetscViewersGetViewer

Gets a PetscViewer from a PetscViewer collection

### Synopsis

    int PetscViewersGetViewer(PetscViewers viewers,int n,PetscViewer *viewer)

Not Collective, but PetscViewer will be collective object on PetscViewers

### Input Parameter

| viewers | - object created with PetscViewersCreate()
| n | - number of PetscViewer you want

### Output Parameter

viewer -the PetscViewer

### See Also

PetscViewersCreate(), PetscViewersDestroy()

Level:intermediate
Location: src/sys/src/viewer/interface/viewers.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages