ViewerFileOpenBinary

Opens a file for binary input/output.

Synopsis

int ViewerFileOpenBinary(MPI_Comm comm,char *name,ViewerBinaryType type,Viewer *binv)

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

Collective on MPI_Comm

Note

This viewer can be destroyed with ViewerDestroy().

Keywords

binary, file, open, input, output

See Also

ViewerFileOpenASCII(), ViewerSetFormat(), ViewerDestroy(),
VecView(), MatView(), VecLoad(), MatLoad(), ViewerBinaryGetDescriptor()

Examples

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

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