---
name: "communicator"
section: "4rheolef"
platform: "linux"
package: "librheolef-dev"
version: "7.2-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/communicator"
---

# communicator(4rheolef)

MPI communicator for C++ (rheolef-7.2)

## NAME

communicator - MPI communicator for C++ (rheolef-7.2)

## DESCRIPTION

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.

## EXAMPLE

```
communicator comm;
cout << 'my_proc = ' << comm.rank() << endl
     << 'nb_proc = ' << comm.size() << endl;
```

## IMPLEMENTATION

This documentation has been generated from file linalg/lib/communicator.h

```
struct communicator {
  typedef std::vector<int>::size_type size_type;
  int size() const;
  int rank() const;
};
```

## AUTHOR

Pierre  Saramito  \<Pierre.Saramito@imag.fr\>

## COPYRIGHT

Copyright   (C)  2000-2018  Pierre  Saramito  \<Pierre.Saramito@imag.fr\> GPLv3+: GNU GPL version 3 or later  \<http://gnu.org/licenses/gpl.html\>. This  is  free  software:  you  are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
