8 #ifndef OPENFPM_NUMERICS_SRC_UTIL_UTIL_NUM_HPP_ 9 #define OPENFPM_NUMERICS_SRC_UTIL_UTIL_NUM_HPP_ 11 #include "util/common.hpp" 12 #include "grid_dist_testing.hpp" 13 #include "Grid/grid_dist_id.hpp" 15 template<
typename T,
typename Sfinae =
void>
32 template<
typename T,
typename Sfinae =
void>
48 struct has_val_pos<T, typename
Void<typename T::with_position >::type> : std::true_type
53 template<
typename T,
typename Sfinae =
void>
68 struct is_testing<T, typename
Void<typename T::testing >::type> : std::true_type
82 template<typename T, unsigned int dims, typename stype, typename decomposition, bool stub=is_testing<T>::value>
90 template<
typename T,
unsigned int dims,
typename stype,
typename decomposition>
In case of testing return a stub grid.
grid_dist_id< dims, stype, aggregate< size_t >, decomposition > type
switch type if we are on testing or not
grid_dist_testing< dims > type
switch type if we are on testing or not
This is a distributed grid.