TextFileWriteOpenFromFH
Associate a TextFile with an open FILE handle
Synopsis
int TextFileWriteOpenFromFH(MPI_Comm comm, int root, FILE *fp, MPI_Info info,
TextFile *fh_p)
Input Parameters
- comm
- MPI Communicator of all processes that will perform text writes
- root
- Rank of process (in comm) that will perform I/O to the file
- fp
- Already open for writing FILE. A common use is with stdout
- info
- MPI Info object that may be used for opening the file. Use
MPI_INFO_NULL for no special behavior.
Output Parameter
- fh_p
- Pointer to a TextFile
Return value
An error code. Currently, MPI_SUCCESS is returned on success and an
MPI error class is returned on failure. A future implementation may
return a user-defined MPI error code.