petsc-3.12.5 2020-03-29
Report Typos and Errors

PetscFileMode

Access mode for a file.

Synopsis

typedef enum {FILE_MODE_READ, FILE_MODE_WRITE, FILE_MODE_APPEND, FILE_MODE_UPDATE, FILE_MODE_APPEND_UPDATE} PetscFileMode;

 FILE_MODE_READ - open a file at its beginning for reading
 FILE_MODE_WRITE - open a file at its beginning for writing (will create if the file does not exist)
 FILE_MODE_APPEND - open a file at end for writing
 FILE_MODE_UPDATE - open a file for updating, meaning for reading and writing
 FILE_MODE_APPEND_UPDATE - open a file for updating, meaning for reading and writing, at the end

See Also

PetscViewerFileSetMode()

Level

beginner

Location

include/petscsystypes.h

Examples

src/sys/classes/viewer/examples/tutorials/ex1.c.html
src/sys/classes/viewer/examples/tutorials/ex1f90.F90.html
src/sys/examples/tutorials/ex5.c.html
src/sys/examples/tutorials/ex5f90.F90.html
src/vec/vec/examples/tutorials/ex5.c.html
src/vec/vec/examples/tutorials/ex6.c.html
src/vec/vec/examples/tutorials/ex10.c.html
src/vec/vec/examples/tutorials/ex19.c.html
src/vec/vec/examples/tutorials/ex5f.F90.html
src/vec/vec/examples/tutorials/ex6f.F90.html
src/mat/examples/tutorials/ex1.c.html

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