classdescMP

classdescMP is a class library supporting the use of the MPI library. It consists of three main concepts, MPIbuf, MPIslave and MPISPMD.

Warning: Do not use MPISPMD as a global variable. Both of these types call MPI_Finalize() in their destructors. Some MPI implementations require MPI_Finalize() to be called before main() exits (although MPICH is quite happy to call MPI_Finalize() after main() exits). For maximum portability, declare the MPIslave or MPISPMD object as a local variable in main(), and initialise a global pointer to refer to this object elsewhere in the code.



Subsections