ViewerBinaryOpen

Opens a file for binary input/output.

Synopsis

int ViewerBinaryOpen(MPI_Comm comm,const char name[],ViewerBinaryType type,Viewer *binv)
Collective on MPI_Comm

Input Parameters

comm - MPI communicator
name - name of file
type - type of file
   BINARY_CREATE - create new file for binary output
   BINARY_RDONLY - open existing file for binary input
   BINARY_WRONLY - open existing file for binary output

Output Parameter

binv -viewer for binary input/output to use with the specified file

Note

This viewer can be destroyed with ViewerDestroy().

Keywords

binary, file, open, input, output

See Also

ViewerASCIIOpen(), ViewerSetFormat(), ViewerDestroy(),
VecView(), MatView(), VecLoad(), MatLoad(), ViewerBinaryGetDescriptor(), ViewerBinaryGetInfoPointer()

Examples

src/mat/examples/tutorials/ex1.c
src/sles/examples/tutorials/ex10.c

Level:beginner
Location:src/sys/src/viewer/impls/binary/binv.c
Viewer Index
Table of Contents