PetscSynchronizedFlush#
Flushes to the screen output from all processors involved in previous PetscSynchronizedPrintf()/PetscSynchronizedFPrintf() calls.
Synopsis#
PetscErrorCode PetscSynchronizedFlush(MPI_Comm comm, FILE *fd)
Collective
Input Parameters#
comm - the MPI communicator
fd - the file pointer (valid on MPI rank 0 of the communicator),
PETSC_STDOUTor value obtained fromPetscFOpen()
Note#
If PetscSynchronizedPrintf() and/or PetscSynchronizedFPrintf() are called with
different MPI communicators there must be an intervening call to PetscSynchronizedFlush() between the calls with different MPI communicators.
See Also#
PetscSynchronizedPrintf(), PetscFPrintf(), PetscPrintf(), PetscViewerASCIIPrintf(),
PetscViewerASCIISynchronizedPrintf()
Level#
intermediate
Location#
Examples#
src/sys/tutorials/ex2.c
src/sys/tutorials/ex2f.F90
src/sys/tests/ex1.c
src/sys/tests/ex11.c
src/sys/tests/ex16.c
src/sys/tests/ex17.c
src/sys/tests/ex17f.F90
src/sys/tests/ex2.c
src/sys/tests/ex37.c
src/sys/tests/ex63.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages