PABLO
0.1
PArallel Balanced Linear Octree
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Pages
test
User_Data_Comm.tpp
1
/*
2
* User_Data_Comm.tpp
3
*
4
* Created on: 18/mar/2014
5
* Author: Marco Cisternino
6
*/
7
8
template
<
class
Data>
9
User_Data_Comm<Data>::User_Data_Comm
(Data & data_, Data & ghostData_) : data(data_), ghostData(ghostData_){};
10
11
template
<
class
Data>
12
User_Data_Comm<Data>::~User_Data_Comm
() {};
13
14
template
<
class
Data>
15
inline
size_t
User_Data_Comm<Data>::fixedSize
()
const
{
16
return
0;
17
};
18
19
template
<
class
Data>
20
inline
size_t
User_Data_Comm<Data>::size
(
const
uint32_t e)
const
{
21
return
sizeof
(double);
22
};
23
24
template
<
class
Data>
25
template
<
class
Buffer>
26
inline
void
User_Data_Comm<Data>::gather
(Buffer& buff,
const
uint32_t e) {
27
buff.write(data[e]);
28
};
29
30
template
<
class
Data>
31
template
<
class
Buffer>
32
inline
void
User_Data_Comm<Data>::scatter
(Buffer& buff,
const
uint32_t e) {
33
buff.read(ghostData[e]);
34
};
35
User_Data_Comm
Definition:
User_Data_Comm.hpp:14
Generated on Mon Oct 5 2015 15:12:11 for PABLO by
1.8.8