1 | /* |
2 | * vector_dist_operators_apply_kernel_unit_tests.hpp |
3 | * |
4 | * Created on: Jun 19, 2016 |
5 | * Author: i-bird |
6 | */ |
7 | |
8 | #include "config.h" |
9 | #define BOOST_TEST_DYN_LINK |
10 | #include <boost/test/unit_test.hpp> |
11 | |
12 | #include "Vector/vector_dist.hpp" |
13 | #include "Operators/Vector/vector_dist_operators.hpp" |
14 | #include "Operators/Vector/tests/vector_dist_operators_tests_util.hpp" |
15 | |
16 | BOOST_AUTO_TEST_SUITE( vector_dist_operators_apply_kernel_test_cpu ) |
17 | |
18 | BOOST_AUTO_TEST_CASE( vector_dist_operators_apply_kernel_test ) |
19 | { |
20 | if (create_vcluster().getProcessingUnits() > 3) |
21 | return; |
22 | |
23 | Box<3,float> box({0.0,0.0,0.0},{1.0,1.0,1.0}); |
24 | |
25 | // Boundary conditions |
26 | size_t bc[3]={PERIODIC,PERIODIC,PERIODIC}; |
27 | |
28 | // ghost |
29 | Ghost<3,float> ghost(0.05); |
30 | |
31 | vector_dist<3,float,aggregate<float,float,float,VectorS<3,float>,VectorS<3,float>,VectorS<3,float>,float>> vd(512,box,bc,ghost); |
32 | |
33 | check_all_apply_ker<comp_host>::check(vd); |
34 | } |
35 | |
36 | BOOST_AUTO_TEST_SUITE_END() |
37 | |
38 | |
39 | |