13 #define THROW_ON_ERROR 
   14 #include "Memleak_check.hpp" 
   15 #include "Vector/vector_dist.hpp" 
   16 #include "Decomposition/CartDecomposition.hpp" 
   17 #include "Point_test.hpp" 
   24 int main(
int argc, 
char* argv[])
 
   33     std::cout << 
"Allocated memory before initializing \n";
 
   45     openfpm_init(&argc,&argv);
 
   51         size_t bc[2]={NON_PERIODIC,NON_PERIODIC};
 
   62         std::cout << 
"Allocated memory after initialization \n";
 
  101             auto it = vd.getPos(vt);
 
  105             std::cerr << 
"Error notification of overflow \n";
 
  115     vector_dist<2,float, Point_test<float>, 
CartDecomposition<2,float> > * vd1 = 
new vector_dist<2,float, Point_test<float>, 
CartDecomposition<2,float> >(4096,box,bc,g);
 
  116     vector_dist<2,float, Point_test<float>, CartDecomposition<2,float> > * vd2 = 
new vector_dist<2,float, Point_test<float>, CartDecomposition<2,float> >(4096,box,bc,g);
 
  130         std::cout << 
"Allocated memory with 2 vectors \n";
 
  143     std::cout << 
"Vector id: " << vd1->
who() << 
"\n";
 
  144     std::cout << 
"Vector id: " << vd2->
who() << 
"\n";
 
  156         std::cout << 
"Allocated memory with 1 vector \n";
 
  173         std::cout << 
"Allocated memory with 1 vector \n";
 
  188         auto it = vd1->
getPos(vt);
 
  190     catch (std::exception & e)
 
  192         std::cerr << 
"Error notification of invalid usage of deleted object \n";
 
size_t getProcessUnitID()
Get the process unit id. 
 
auto getPos(vect_dist_key_dx vec_key) -> decltype(v_pos.template get< 0 >(vec_key.getKey()))
Get the position of an element. 
 
This class implement the point shape in an N-dimensional space. 
 
Grid key for a distributed grid. 
 
long int who()
It return the id of structure in the allocation list. 
 
Implementation of VCluster class. 
 
This class decompose a space into sub-sub-domains and distribute them across processors. 
 
This class represent an N-dimensional box.