PetscSynchronizedPrintf#
Prints synchronized output from multiple MPI processes. Output of the first processor is followed by that of the second, etc.
Synopsis#
PetscErrorCode PetscSynchronizedPrintf(MPI_Comm comm, const char format[], ...)
Not Collective
Input Parameters#
comm - the MPI communicator
format - the usual
printf()format string
Note#
REQUIRES a call to PetscSynchronizedFlush() by all the processes after the completion of the calls to PetscSynchronizedPrintf() for the information
from all the processors to be printed.
Fortran Note#
The call sequence is PetscSynchronizedPrintf(MPI_Comm, character(*), PetscErrorCode ierr).
That is, you can only pass a single character string from Fortran.
See Also#
PetscSynchronizedFlush(), PetscSynchronizedFPrintf(), PetscFPrintf(),
PetscPrintf(), PetscViewerASCIIPrintf(), PetscViewerASCIISynchronizedPrintf(),
PetscFFlush()
Level#
intermediate
Location#
Examples#
src/sys/tutorials/ex2.c
src/sys/tutorials/ex2f.F90
src/sys/tests/ex11.c
src/sys/tests/ex16.c
src/sys/tests/ex17f.F90
src/sys/tests/ex37.c
src/sys/tests/ex63.c
src/sys/tests/ex8.c
src/dm/tutorials/ex22.c
src/dm/tutorials/ex5.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages