Skip to content
Snippets Groups Projects
Commit 7d8c3cfc authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Zero the velocity in the testPair test

parent 36a9edeb
No related branches found
No related tags found
2 merge requests!136Master,!133Updated vectorisation tests
......@@ -56,9 +56,9 @@ struct cell *make_cell(size_t n, double *offset, double h,
part->x[0] = x + offset[0] + 0.5 + random_uniform(-0.5, 0.5) * pert;
part->x[1] = y + offset[1] + 0.5 + random_uniform(-0.5, 0.5) * pert;
part->x[2] = z + offset[2] + 0.5 + random_uniform(-0.5, 0.5) * pert;
part->v[0] = 1.0f;
part->v[1] = 1.0f;
part->v[2] = 1.0f;
part->v[0] = 0.0f;
part->v[1] = 0.0f;
part->v[2] = 0.0f;
part->h = h;
part->id = ++(*partId);
part->mass = 1.0f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment