# PetscViewerSetFilename

Sets the name of the file the PetscViewer uses.

### Synopsis

    #include "petsc.h"
    int PetscViewerSetFilename(PetscViewer viewer,const char name[])

Collective on PetscViewer

### Input Parameters

| viewer | - the PetscViewer; either ASCII or binary
| name | - the name of the file it should use

### See Also

PetscViewerCreate(), PetscViewerSetType(), PetscViewerASCIIOpen(), PetscViewerBinaryOpen(), PetscViewerDestroy(),
PetscViewerASCIIGetPointer(), PetscViewerASCIIPrintf(), PetscViewerASCIISynchronizedPrintf()

Level:advanced
Location: src/sys/src/viewer/impls/ascii/filev.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages