Class for serializing and broadcasting data using MPI.
More...
#include <MPISerializer.hpp>
|
| MpiSerializer (Parallel::Communication comm) |
|
template<class T > |
void | broadcast (T &data, int root=0) |
| Serialize and broadcast on root process, de-serialize on others.
|
|
template<typename... Args> |
void | broadcast (int root, Args &&... args) |
|
template<class T > |
void | append (T &data, int root=0) |
| Serialize and broadcast on root process, de-serialize and append on others.
|
|
Class for serializing and broadcasting data using MPI.
◆ append()
template<class T >
void Opm::Parallel::MpiSerializer::append |
( |
T & | data, |
|
|
int | root = 0 ) |
|
inline |
Serialize and broadcast on root process, de-serialize and append on others.
- Template Parameters
-
T | Type of class to broadcast |
- Parameters
-
data | Class to broadcast |
root | Process to broadcast from |
◆ broadcast()
template<class T >
void Opm::Parallel::MpiSerializer::broadcast |
( |
T & | data, |
|
|
int | root = 0 ) |
|
inline |
Serialize and broadcast on root process, de-serialize on others.
- Template Parameters
-
T | Type of class to broadcast |
- Parameters
-
data | Class to broadcast |
root | Process to broadcast from |
The documentation for this class was generated from the following file: