next up previous index
Next: MPI Analysis and Profiling Up: Fortran Interface Previous: Dividing the Pie

Exercise

Translate program ``Bank Queue'', section 8.2.4, page [*], from C to Fortran.

hints
$\,$
1.
There is no flush in Fortran, but you can use a utility routine from module xlfutility called flush_. See ``XL Fortran for AIX, Language Reference, Version 4, Release 1'', pages 471 and 474 for more information. You can view this manual with ghostview. It lives on
/afs/ovpit.indiana.edu/common/www/htdocs/gustav/SP-docs/xlf/xlflr.ps
2.
Use the same manual as a reference regarding any other Fortran queries.
3.
Check carefully every MPI call against the on-line documentation for correct order of parameters, and especially ierror.
4.
If you forget to put ierror in CALL mpi_init(ierror) your MPI program will crash instantaneously. Similarly remember to put ierror in CALL mpi_finalize(ierror).



Zdzislaw Meglicki
2001-02-26