Skip to content
Snippets Groups Projects
Commit fe71e319 authored by James Willis's avatar James Willis
Browse files

Set particle velocities to 1.0

parent 8fb8b69d
Branches
Tags
1 merge request!64Agreed upon version of the density vectorization test
...@@ -27,6 +27,9 @@ struct cell *make_cell(size_t n, double *offset, double h, unsigned long long *p ...@@ -27,6 +27,9 @@ struct cell *make_cell(size_t n, double *offset, double h, unsigned long long *p
part->x[0] = x + offset[0] + 0.5; part->x[0] = x + offset[0] + 0.5;
part->x[1] = y + offset[1] + 0.5; part->x[1] = y + offset[1] + 0.5;
part->x[2] = z + offset[2] + 0.5; part->x[2] = z + offset[2] + 0.5;
part->v[0] = 1.0f;
part->v[1] = 1.0f;
part->v[2] = 1.0f;
part->dt = 0.01; part->dt = 0.01;
part->h = h; part->h = h;
part->id = ++(*partId); part->id = ++(*partId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment