9.1 Output functions

mpi_pprint( msg)

Synchronized print.

[lunix@lunix ~/examples]$ mpirun -np 2 python scripts/mpi_pprint.py
[0] : hi !
[1] : hi !

mpi_rprint( msg)

Rooted print.

[lunix@lunix ~/examples]$ mpirun -np 2 python scripts/mpi_rprint.py
hi !
hi !

mpi_iprint( msg)

Synchronized print, including info on node.

[lunix@lunix ~/examples]$ mpirun -np 2 python scripts/mpi_rprint.py
hi, I am the master !

See About this document... for information on suggesting changes.