Reference documentation for deal.II version 9.4.1
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
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) const
 
template<class Archive >
void load (Archive &ar, const unsigned int)
 
template<class Archive >
void serialize (Archive &archive, 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>).

Deprecated:
The implementation in deal.II has been rewritten, making this class obsolete for use within deal.II. Use your own data structures instead.

Definition at line 3306 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   
) const
inline

Write the data of this object to a stream for the purpose of serialization using the BOOST serialization library

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

Definition at line 3328 of file grid_tools.h.

◆ load()

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

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

Definition at line 3354 of file grid_tools.h.

◆ serialize()

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

Read or write the data of this object to or from a stream for the purpose of serialization using the BOOST serialization library.

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 3311 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 3316 of file grid_tools.h.


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