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
18void 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
36