#include "petsc.h" PetscErrorCode PetscViewerBinaryOpen(MPI_Comm comm,const char name,PetscFileMode type,PetscViewer *binv)Collective on MPI_Comm
|comm||- MPI communicator|
|name||- name of file|
|type||- type of file|
FILE_MODE_WRITE - create new file for binary output
FILE_MODE_READ - open existing file for binary input
FILE_MODE_APPEND - open existing file for binary output
For reading files, the filename may begin with ftp:// or http:// and/or end with .gz; in this case file is brought over and uncompressed.
For creating files, if the file name ends with .gz it is automatically compressed when closed.
For writing files it only opens the file on processor 0 in the communicator. For readable files it opens the file on all nodes that have the file. If node 0 does not have the file it generates an error even if other nodes do have the file.
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages