From 4975c9c5cfe40e09cc175ebcd04430001f52eff6 Mon Sep 17 00:00:00 2001
From: Pedro Gonnet <gonnet@google.com>
Date: Tue, 25 Apr 2017 23:24:56 +0200
Subject: [PATCH] don't mess with sort flags in the drift.

---
 src/cell.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/cell.c b/src/cell.c
index acb890f74d..82bc269265 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -1456,12 +1456,6 @@ void cell_drift_particles(struct cell *c, const struct engine *e) {
         dx_max = max(dx_max, cp->dx_max);
         dx_max_sort = max(dx_max_sort, cp->dx_max_sort);
         cell_h_max = max(cell_h_max, cp->h_max);
-
-        /* Deal with the sort flag */
-        if (cp->ti_sort > c->ti_sort)
-          c->sorted = 0;
-        else
-          c->sorted &= cp->sorted;
       }
 
   } else if (ti_current > ti_old) {
-- 
GitLab