From 36a9edebe3adc1c4f687986f1f990f330046b712 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Fri, 25 Mar 2016 22:30:20 +0000
Subject: [PATCH] Left-overs

---
 src/runner_doiact.h | 2 +-
 src/scheduler.c     | 1 -
 src/space.h         | 3 ---
 3 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/runner_doiact.h b/src/runner_doiact.h
index cf5d56e941..de339db613 100644
--- a/src/runner_doiact.h
+++ b/src/runner_doiact.h
@@ -1235,7 +1235,7 @@ void DOPAIR2(struct runner *r, struct cell *ci, struct cell *cj) {
 #else
 
           /* Does pi need to be updated too? */
-          if (pi->dt <= dt_step) {
+          if (pi->ti_end <= ti_current) {
 
             /* Add this interaction to the symmetric queue. */
             r2q2[icount2] = r2;
diff --git a/src/scheduler.c b/src/scheduler.c
index 722e344b5a..386b0e27a2 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -99,7 +99,6 @@ void scheduler_splittasks(struct scheduler *s) {
   struct cell *ci, *cj;
   double hi, hj, shift[3];
   struct task *t, *t_old;
-  // float dt_step = s->dt_step;
   int pts[7][8] = {{-1, 12, 10, 9, 4, 3, 1, 0},
                    {-1, -1, 11, 10, 5, 4, 2, 1},
                    {-1, -1, -1, 12, 7, 6, 4, 3},
diff --git a/src/space.h b/src/space.h
index 91485ff7e2..20f8656201 100644
--- a/src/space.h
+++ b/src/space.h
@@ -64,9 +64,6 @@ struct space {
   /* The minimum and maximum cutoff radii. */
   double h_max, cell_min;
 
-  /* Current time step for particles. */
-  float dt_step;
-
   /* Current maximum displacement for particles. */
   float dx_max;
 
-- 
GitLab