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

Initialise particles.

parent 5145b5ea
No related branches found
No related tags found
1 merge request!341New addition to the test suite: A perturbed version of the 125 cells case
......@@ -618,6 +618,12 @@ int main(int argc, char *argv[]) {
/* Initialise the particles */
for (int j = 0; j < 125; ++j)
runner_do_drift_particles(&runner, cells[j], 0);
/* Reset particles. */
for (int i = 0; i < 125; ++i) {
for (int n = 0; n < cells[i]->count; ++n)
hydro_init_part(&cells[i]->parts[n], &space.hs);
}
/* First, sort stuff */
for (int j = 0; j < 125; ++j) runner_do_sort(&runner, cells[j], 0x1FFF, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment