8#ifndef OPENFPM_DATA_SRC_NN_CELLLIST_TESTS_NNC_ARRAY_TESTS_HPP_
9#define OPENFPM_DATA_SRC_NN_CELLLIST_TESTS_NNC_ARRAY_TESTS_HPP_
11#include "NN/CellList/NNc_array.hpp"
13BOOST_AUTO_TEST_SUITE( NNc_array_tests )
15BOOST_AUTO_TEST_CASE( NNc_array_tests_use )
21 size_t sz[2] = {13,17};
28 for (
size_t i = 0 ; i < 9 ; i++)
30 BOOST_REQUIRE_EQUAL(nnc[i],nnc2[i]);
38 size_t sz[3] = {13,17,11};
45 for (
size_t i = 0 ; i < 27 ; i++)
47 BOOST_REQUIRE_EQUAL(nnc[i],nnc2[i]);
55 size_t sz[5] = {13,17,11,7,7};
62 for (
size_t i = 0 ; i < 243 ; i++)
64 BOOST_REQUIRE_EQUAL(nnc[i],nnc2[i]);
73 size_t sz[2] = {13,17};
80 for (
size_t i = 0 ; i < 5 ; i++)
82 BOOST_REQUIRE_EQUAL(nnc[i],nnc2[i]);
90 size_t sz[3] = {13,17,11};
97 for (
size_t i = 0 ; i < 27 ; i++)
99 BOOST_REQUIRE_EQUAL(nnc[i],nnc2[i]);
107 size_t sz[5] = {13,17,11,7,7};
114 for (
size_t i = 0 ; i < 243 ; i++)
116 BOOST_REQUIRE_EQUAL(nnc[i],nnc2[i]);
121BOOST_AUTO_TEST_SUITE_END()
void init_sym()
Initialize the NNc array with symmetric neighborhood cells indexes.
void init_full()
Initialize the NNc array with full neighborhood cells indexes.
void set_size(const size_t(&sz)[dim])
Set the size in each.