petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscFOpen

Has the first process in the communicator open a file; all others do nothing.

Synopsis

PetscErrorCode  PetscFOpen(MPI_Comm comm,const char name[],const char mode[],FILE **fp)
Logically Collective on MPI_Comm Many br

Input Parameters

comm - the communicator Many br
name - the filename Many br
mode - the mode for fopen(), usually "w" Many br

Output Parameter

fp -the file pointer Many br

Many br

Notes

NULL (0), "stderr" or "stdout" may be passed in as the filename Many br

Fortran Note

This routine is not supported in Fortran. Many br

See Also

PetscFClose(), PetscSynchronizedFGets(), PetscSynchronizedPrintf(), PetscSynchronizedFlush(),
PetscFPrintf() Many br

Level:developer
Location:
src/sys/fileio/mpiuopen.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/classes/random/examples/tutorials/ex2.c.html
src/ksp/ksp/examples/tutorials/ex43.c.html
src/ksp/ksp/examples/tutorials/ex49.c.html