:orphan:
# PetscSynchronizedFPrintf
Prints synchronized output to the specified file from several MPI processes.  Output of the first process is followed by that of the second, etc. 
## Synopsis
```
PetscErrorCode PetscSynchronizedFPrintf(MPI_Comm comm, FILE *fp, const char format[], ...)
```
Not Collective


## Input Parameters

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





## Note
REQUIRES a intervening call to `PetscSynchronizedFlush()` for the information
from all the processors to be printed.


## See Also
 `PetscSynchronizedPrintf()`, `PetscSynchronizedFlush()`, `PetscFPrintf()`,
`PetscFOpen()`, `PetscViewerASCIISynchronizedPrintf()`, `PetscViewerASCIIPrintf()`,
`PetscFFlush()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/fileio/mprint.c.html#PetscSynchronizedFPrintf">src/sys/fileio/mprint.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/fileio/mprint.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
