1 #include "Grid/grid_dist_id.hpp"
2 #include "data_type/aggregate.hpp"
33 int main(
int argc,
char* argv[])
52 openfpm_init(&argc,&argv);
58 size_t sz[3] = {100,100,100};
109 auto dom = g_dist.getDomainIterator();
135 auto key = dom.get();
206 auto key_g = g_dist.getGKey(
key);
224 g_dist.template get<0>(
key)[0] = key_g.get(0);
225 g_dist.template get<0>(
key)[1] = key_g.get(1);
226 g_dist.template get<0>(
key)[2] = key_g.get(2);
254 g_dist.template ghost_get<0>();
282 if (vcl.getProcessUnitID() == 0)
283 std::cout <<
"Number of points: " << count <<
"\n";
306 g_dist.write(
"output");
333 g_dist.getDecomposition().write(
"out_dec");
Implementation of VCluster class.
This is a distributed grid.
This class is a trick to indicate the compiler a specific specialization pattern. ...