1#include "Grid/grid_dist_id.hpp"
32int main(
int argc,
char* argv[])
51 openfpm_init(&argc,&argv);
57 size_t sz[3] = {100,100,100};
108 auto dom = g_dist.getDomainIterator();
134 auto key = dom.get();
205 auto key_g = g_dist.getGKey(key);
223 g_dist.template get<0>(key)[0] = key_g.get(0);
224 g_dist.template get<0>(key)[1] = key_g.get(1);
225 g_dist.template get<0>(key)[2] = key_g.get(2);
253 g_dist.template ghost_get<0>();
282 std::cout <<
"Number of points: " << count <<
"\n";
305 g_dist.write(
"output");
332 g_dist.getDecomposition().write(
"out_dec");
This class represent an N-dimensional box.
void execute()
Execute all the requests.
void sum(T &num)
Sum the numbers across all processors and get the result.
size_t getProcessUnitID()
Get the process unit id.
Implementation of VCluster class.
This is a distributed grid.