PetscFOpen

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

Synopsis

FILE *PetscFOpen(MPI_Comm comm,char *name,char *mode)
Collective on MPI_Comm

Input Parameters

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

Fortran Note

This routine is not supported in Fortran.

Keywords

file, open

See Also

PetscFClose()

Location: src/sys/src/fileiompiuopen.c
System Index
Table of Contents