PetscSynchronizedFPrintf

Prints synchronized output to the specified file from several processors. Output of the first processor is followed by that of the second, etc.

Synopsis

int PetscSynchronizedFPrintf(MPI_Comm comm,FILE* fp,char *format,...)
Not Collective

Input Parameters

comm - the communicator
fd - the file pointer
format - the usual printf() format string

Notes

Usage of PetscSynchronizedFPrintf() with different MPI communicatorsREQUIRES an intervening call to PetscSynchronizedFlush(). The length of the formatted message cannot exceed 256 charactors.

Contributed by: Matthew Knepley

See Also

PetscSynchronizedPrintf(), PetscSynchronizedFlush(), PetscFPrintf(),
PetscFOpen()

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