Opm::Parallel::MpiSerializer Class Reference

Class for serializing and broadcasting data using MPI. More...

#include <MPISerializer.hpp>

Inheritance diagram for Opm::Parallel::MpiSerializer:
Inheritance graph

Public Member Functions

 MpiSerializer (Parallel::Communication comm)
 
template<typename... Args>
void broadcast (RootRank rootrank, Args &&... args)
 
template<class T >
void append (T &data, int root=0)
 Serialize and broadcast on root process, de-serialize and append on others. More...
 

Detailed Description

Class for serializing and broadcasting data using MPI.

Constructor & Destructor Documentation

◆ MpiSerializer()

Opm::Parallel::MpiSerializer::MpiSerializer ( Parallel::Communication  comm)
inlineexplicit

Member Function Documentation

◆ 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
TType of class to broadcast
Parameters
dataClass to broadcast
rootProcess to broadcast from

References broadcast().

Referenced by Opm::EclGenericWriter< Grid, EquilGrid, GridView, ElementMapper, Scalar >::evalSummary().

◆ broadcast()


The documentation for this class was generated from the following file: