.TH "communicator" 4rheolef "Version 7.2" "rheolef" \" -*- nroff -*- .ad l .nh .SH NAME communicator \- MPI communicator for C++ (rheolef-7\&.2) .SH "DESCRIPTION" .PP In a distributed environment, this class wraps the MPI usual communicator for C++, as provided by the boost::mpi library\&. In a sequential environment, a dummy class is provided for compatibility purpose\&. .SH "EXAMPLE" .PP .PP .nf communicator comm; cout << 'my_proc = ' << comm\&.rank() << endl << 'nb_proc = ' << comm\&.size() << endl; .fi .PP .SH "IMPLEMENTATION" .PP This documentation has been generated from file linalg/lib/communicator\&.h .PP .PP .nf struct communicator { typedef std::vector::size_type size_type; int size() const; int rank() const; }; .fi .PP .SH AUTHOR Pierre Saramito .SH COPYRIGHT Copyright (C) 2000-2018 Pierre Saramito GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.