8 #ifndef OPENFPM_NUMERICS_SRC_UTIL_GRID_DIST_TESTING_HPP_ 
    9 #define OPENFPM_NUMERICS_SRC_UTIL_GRID_DIST_TESTING_HPP_ 
   11 #include "Grid/grid_dist_key.hpp" 
   13 template<
unsigned int dim>
 
   28         grid_test.setMemory();
 
   32         auto dom = grid_test.getIterator();
 
   33         const auto & gs = grid_test.getGrid();
 
   39             grid_test.template get<0>(
key) = gs.LinId(
key);
 
   53             std::cerr << 
"Error: " << __FILE__ << 
":" << __LINE__ << 
" mapping grid is suppose to have only one scalar size_t \n";
 
   55         return grid_test.template get<0>(
key.getKey());
 
grid_key_dx is the key to access any element in the grid 
 
Grid key for a distributed grid. 
 
grid_dist_testing(const size_t(&g_sz)[dim])
It create a test map suitable for testing. 
 
This class is a trick to indicate the compiler a specific specialization pattern. ...
 
grid_key_dx< dim > getGKey(const grid_dist_key_dx< dim > &key) const 
Return the global key. 
 
grid_key_dx< dim > getKey() const 
Get the key.