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"
15template<
typename T,
typename Sfinae =
void>
32template<
typename T,
typename Sfinae =
void>
48struct has_val_pos<T, typename
Void<typename T::with_position >::type> : std::true_type
53template<
typename T,
typename Sfinae =
void>
68struct is_testing<T, typename
Void<typename T::testing >::type> : std::true_type
82template<typename T, unsigned int dims, typename stype, typename decomposition, bool stub=is_testing<T>::value>
90template<
typename T,
unsigned int dims,
typename stype,
typename decomposition>
This is a distributed grid.
grid_dist_id< dims, stype, aggregate< size_t >, decomposition > type
switch type if we are on testing or not
In case of testing return a stub grid.
grid_dist_testing< dims > type
switch type if we are on testing or not