Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
Public Member Functions | Public Attributes | List of all members
GridTools::CellDataTransferBuffer< dim, T > Struct Template Reference

#include <deal.II/grid/grid_tools.h>

Public Member Functions

template<class Archive >
void save (Archive &ar, const unsigned int version) const
 
template<class Archive >
void load (Archive &ar, const unsigned int version)
 

Public Attributes

std::vector< CellIdcell_ids
 
std::vector< T > data
 

Detailed Description

template<int dim, typename T>
struct GridTools::CellDataTransferBuffer< dim, T >

A structure that allows the transfer of cell data of type T from one processor to another. It corresponds to a packed buffer that stores a vector of CellId and a vector of type T.

This class facilitates the transfer by providing the save/load functions that are able to pack up the vector of CellId's and the associated data of type T into a stream.

Type T is assumed to be serializable by boost::serialization (for example unsigned int or std::vector<double>).

Definition at line 2898 of file grid_tools.h.

Member Function Documentation

◆ save()

template<int dim, typename T >
template<class Archive >
void GridTools::CellDataTransferBuffer< dim, T >::save ( Archive &  ar,
const unsigned int  version 
) const

Write the data of this object to a stream for the purpose of serialization.

Precondition
The user is responsible to keep the size of data equal to the size as cell_ids .

◆ load()

template<int dim, typename T >
template<class Archive >
void GridTools::CellDataTransferBuffer< dim, T >::load ( Archive &  ar,
const unsigned int  version 
)

Read the data of this object from a stream for the purpose of serialization. Throw away the previous content.

Member Data Documentation

◆ cell_ids

template<int dim, typename T >
std::vector<CellId> GridTools::CellDataTransferBuffer< dim, T >::cell_ids

A vector to store IDs of cells to be transferred.

Definition at line 2903 of file grid_tools.h.

◆ data

template<int dim, typename T >
std::vector<T> GridTools::CellDataTransferBuffer< dim, T >::data

A vector of cell data to be transferred.

Definition at line 2908 of file grid_tools.h.


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