Commit 7d8c3cfc authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Zero the velocity in the testPair test

parent 36a9edeb
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment