OpenFPM_pdata
1.1.0
Project that contain the implementation of distributed structures
All
Data Structures
Namespaces
Functions
Variables
Typedefs
Enumerations
Friends
Pages
test_multiple_o.cpp
1
/*
2
* test_multiple_o.cpp
3
*
4
* Created on: Feb 5, 2016
5
* Author: i-bird
6
*
7
*
8
* It just test that the compilation with multiple translation unit (*.o) does not
9
* produce error, if we have duplicated symbol in the translation unit we will get error
10
*
11
*/
12
13
#include "Vector/vector_dist.hpp"
14
#include "Grid/grid_dist_id.hpp"
15
#include "data_type/aggregate.hpp"
16
#include "Decomposition/CartDecomposition.hpp"
17
18
void
f()
19
{
20
// Ghost
21
Ghost<3,float>
g(0.01);
22
23
size_t
bc[3]={PERIODIC,PERIODIC,PERIODIC};
24
25
Box<3,float>
domain({0.0,0.0,0.0},{1.0,1.0,1.0});
26
size_t
sz[3];
27
sz[0] = 100;
28
sz[1] = 100;
29
sz[2] = 100;
30
31
vector_dist<3,float, aggregate<float>
,
CartDecomposition<3,float>
> vd(4096,domain,bc,g);
32
grid_dist_id<3, float, aggregate<float[3]>
,
CartDecomposition<3,float>
> g_dist(sz,domain,g);
33
}
34
35
Ghost
Definition:
Ghost.hpp:39
CartDecomposition
This class decompose a space into sub-sub-domains and distribute them across processors.
Definition:
CartDecomposition.hpp:132
grid_dist_id
This is a distributed grid.
Definition:
grid_dist_id.hpp:69
Box< 3, float >
vector_dist
Distributed vector.
Definition:
vector_dist.hpp:202
src
test_multiple_o.cpp
Generated by
1.8.6