58 #include "Vector/vector_dist.hpp"
61 int main(
int argc,
char* argv[])
97 openfpm_init(&argc,&argv);
103 size_t bc[2]={PERIODIC,PERIODIC};
153 const int scalar = 0;
156 const int vector = 1;
187 auto it = vd.getDomainIterator();
194 vd.getPos(
key)[0] = (float)rand() / RAND_MAX;
197 vd.getPos(
key)[1] = (float)rand() / RAND_MAX;
266 it = vd.getDomainIterator();
277 vd.template getProp<scalar>(p) = 1.0;
279 vd.template getProp<vector>(p)[0] = 1.0;
280 vd.template getProp<vector>(p)[1] = 1.0;
281 vd.template getProp<vector>(p)[2] = 1.0;
283 vd.template getProp<tensor>(p)[0][0] = 1.0;
284 vd.template getProp<tensor>(p)[0][1] = 1.0;
285 vd.template getProp<tensor>(p)[0][2] = 1.0;
286 vd.template getProp<tensor>(p)[1][0] = 1.0;
287 vd.template getProp<tensor>(p)[1][1] = 1.0;
288 vd.template getProp<tensor>(p)[1][2] = 1.0;
289 vd.template getProp<tensor>(p)[2][0] = 1.0;
290 vd.template getProp<tensor>(p)[2][1] = 1.0;
291 vd.template getProp<tensor>(p)[2][2] = 1.0;
318 auto & v_cl = create_vcluster();
354 vd.setPropNames(names);
357 vd.write(
"particles");
360 vd.write(
"particles_bin",VTK_WRITER | FORMAT_BINARY);
This class represent an N-dimensional box.
This class is a trick to indicate the compiler a specific specialization pattern. ...