From e102105d2875fa255403307df485c50c7776cbff Mon Sep 17 00:00:00 2001
From: James Willis <james.s.willis@durham.ac.uk>
Date: Fri, 12 May 2017 19:00:19 +0100
Subject: [PATCH] Initialise particles.

---
 tests/test125cells.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/test125cells.c b/tests/test125cells.c
index ca7a66da96..bd7409333b 100644
--- a/tests/test125cells.c
+++ b/tests/test125cells.c
@@ -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);
-- 
GitLab