PetscViewerSetFileType

Sets the type of file to be open

Synopsis

#include "petsc.h"   
PetscErrorCode PetscViewerSetFileType(PetscViewer viewer,PetscViewerFileType type)
Collective on PetscViewer

Input Parameters

viewer - the PetscViewer; must be a binary, Matlab, hdf, or netcdf PetscViewer
type - type of file
   PETSC_FILE_CREATE - create new file for binary output
   PETSC_FILE_RDONLY - open existing file for binary input
   PETSC_FILE_WRONLY - open existing file for binary output

See Also

PetscViewerCreate(), PetscViewerSetType(), PetscViewerBinaryOpen()

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