petsc-3.14.6 2021-03-30
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/tutorials/ex1.c.html
src/sys/classes/viewer/tutorials/ex1f90.F90.html
src/sys/tutorials/ex5.c.html
src/sys/tutorials/ex5f90.F90.html
src/vec/vec/tutorials/ex5.c.html
src/vec/vec/tutorials/ex6.c.html
src/vec/vec/tutorials/ex10.c.html
src/vec/vec/tutorials/ex19.c.html
src/vec/vec/tutorials/ex5f.F90.html
src/vec/vec/tutorials/ex6f.F90.html
src/mat/tutorials/ex1.c.html

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