petsc-3.13.6 2020-09-29
Report Typos and Errors

PetscFPrintf

Prints to a file, only from the first processor in the communicator.

Synopsis

PetscErrorCode PetscFPrintf(MPI_Comm comm,FILE* fd,const char format[],...)
Not Collective

Input Parameters

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

Fortran Note

This routine is not supported in Fortran.

See Also

PetscPrintf(), PetscSynchronizedPrintf(), PetscViewerASCIIPrintf(),
PetscViewerASCIISynchronizedPrintf(), PetscSynchronizedFlush()

Level

intermediate

Location

src/sys/fileio/mprint.c

Examples

src/ksp/ksp/tutorials/ex2.c.html
src/ksp/ksp/tutorials/ex18.c.html
src/ksp/ksp/tutorials/ex42.c.html
src/ksp/ksp/tutorials/ex43.c.html
src/ksp/ksp/tutorials/ex46.c.html
src/ksp/ksp/tutorials/ex49.c.html
src/ksp/ksp/tutorials/ex52.c.html

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages