8#ifndef OPENFPM_NUMERICS_SRC_UTIL_UTIL_NUM_UNIT_TESTS_HPP_
9#define OPENFPM_NUMERICS_SRC_UTIL_UTIL_NUM_UNIT_TESTS_HPP_
11#include "util_num.hpp"
22 float val() {
return 1.0;}
61BOOST_AUTO_TEST_SUITE( util_num_suite )
63BOOST_AUTO_TEST_CASE( util_num )
68 BOOST_REQUIRE_EQUAL(ret,
true);
71 BOOST_REQUIRE_EQUAL(ret,
false);
78 BOOST_REQUIRE_EQUAL(ret,
true);
81 BOOST_REQUIRE_EQUAL(ret,
false);
88 BOOST_REQUIRE_EQUAL(ret,
true);
91 BOOST_REQUIRE_EQUAL(ret,
false);
97 ret = std::is_same<stub_or_real<on_test,2,float,CartDecomposition<2,float>>::type,
grid_dist_testing<2>>::value ;
98 BOOST_REQUIRE_EQUAL(ret,
true);
101 BOOST_REQUIRE_EQUAL(ret,
true);
106BOOST_AUTO_TEST_SUITE_END()
This class decompose a space into sub-sub-domains and distribute them across processors.
This is a distributed grid.
grid_key_dx is the key to access any element in the grid
define a non-constant (in space) field
void with_position
It define that is not constant in space.
void const_field
It define that is a constant field.
float val_pos(grid_key_dx< 2 > &pos)
Evaluate the field in one point.
[Constant fields struct definition]
void const_field
define that is a constant field
float val()
Evaluate the constant field (in this case always return 1.0)
[Constant fields struct definition]
void testing
specify testing mode