PetscPrintf

Prints to standard out, only from the first processor in the communicator.

Synopsis

PetscErrorCode  PetscPrintf(MPI_Comm comm,const char format[],...)
Not Collective

Input Parameters

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

Fortran Note

The call sequence is PetscPrintf(MPI_Comm, character(*), PetscErrorCode ierr) from Fortran. That is, you can only pass a single character string from Fortran.

Notes: The %A format specifier is special. It assumes an argument of type PetscReal and is replaced with %G unless the absolute value is < 1.e-12 when it is replaced with "< 1.e-12" (1.e-6 for single precision).

See Also

PetscFPrintf(), PetscSynchronizedPrintf()

Level:intermediate
Location:
src/sys/fileio/mprint.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/random/examples/tutorials/ex1.c.html
src/sys/random/examples/tutorials/ex2.c.html
src/sys/examples/tutorials/ex1.c.html
src/sys/examples/tutorials/ex2.c.html
src/sys/examples/tutorials/ex4.c.html
src/sys/examples/tutorials/ex5.c.html
src/sys/examples/tutorials/ex7.c.html
src/vec/vec/examples/tutorials/ex1.c.html
src/vec/vec/examples/tutorials/ex1e.c.html
src/vec/vec/examples/tutorials/ex5.c.html
src/vec/vec/examples/tutorials/ex6.c.html