PetscSynchronizedPrintf

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

Synopsis

#include "sys.h"   
int PetscSynchronizedPrintf(MPI_Comm comm,const char format[],...)
Not Collective

Input Parameters

comm - the communicator
format - the usual printf() format string

Notes

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

See Also

PetscSynchronizedFlush(), PetscSynchronizedFPrintf(), PetscFPrintf(),
PetscPrintf(), ViewerASCIIPrintf(), ViewerASCIISynchronizedPrintf()

Examples

src/sys/examples/tutorials/ex2.c
src/vec/examples/tutorials/ex9f.F
src/vec/examples/tutorials/ex14f.F
src/vec/examples/tutorials/ex9.c

Level:intermediate
Location:src/sys/src/fileio/mprint.c
System Index
Table of Contents