Reference documentation for deal.II version 9.0.0
|
#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< CellId > | cell_ids |
std::vector< T > | data |
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 2515 of file grid_tools.h.
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.
data
equal to the size as cell_ids
. 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.
std::vector<CellId> GridTools::CellDataTransferBuffer< dim, T >::cell_ids |
A vector to store IDs of cells to be transferred.
Definition at line 2520 of file grid_tools.h.
std::vector<T> GridTools::CellDataTransferBuffer< dim, T >::data |
A vector of cell data to be transferred.
Definition at line 2525 of file grid_tools.h.