PetscBinaryOpen#

Opens a PETSc binary file.

Synopsis#

PetscErrorCode PetscBinaryOpen(const char name[], PetscFileMode mode, int *fd)

Not Collective

Input Parameters#

Output Parameter#

  • fd - the file

Note#

Files access with PetscBinaryRead()andPetscBinaryWrite()are ALWAYS written in big-endian format. This means the file can be accessed usingPetscBinaryOpen()andPetscBinaryRead()andPetscBinaryWrite()` on any machine.

See Also#

PetscBinaryRead(), PetscBinaryWrite(), PetscFileMode, PetscViewerFileSetMode(), PetscViewerBinaryGetDescriptor(), PetscBinarySynchronizedWrite(), PetscBinarySynchronizedRead(), PetscBinarySynchronizedSeek()

Level#

advanced

Location#

src/sys/fileio/sysio.c

Examples#

src/dm/tutorials/ex15.c.html


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages