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

Get properly random positions in the testSymmetry.

parent c9e180b7
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,8 @@ void test(void) {
}
/* Make the particle smoothing length and position reasonable */
for (size_t i = 0; i < 3; ++i) pi.x[0] = random_uniform(-1., 1.);
for (size_t i = 0; i < 3; ++i) pj.x[0] = random_uniform(-1., 1.);
for (size_t i = 0; i < 3; ++i) pi.x[i] = random_uniform(-1., 1.);
for (size_t i = 0; i < 3; ++i) pj.x[i] = random_uniform(-1., 1.);
pi.h = 2.f;
pj.h = 2.f;
pi.id = 1ll;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment