From e44d0632b706d7c65a077fbd90c9f3b4503ffa51 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Wed, 14 Nov 2018 17:46:37 +0100 Subject: [PATCH] Version that can survive the addition of one particle. --- src/cell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cell.c b/src/cell.c index 925b6422a8..5873616d74 100644 --- a/src/cell.c +++ b/src/cell.c @@ -3685,8 +3685,8 @@ void cell_recursively_shift_sparts(struct cell *c, struct cell *const target_cel if( c->stars.parts < start || (c->stars.parts == start && c < target_cell)) { - if(c->stars.parts + c->stars.count > start) - c->stars.parts++; + /* if(c->stars.parts + c->stars.count > start) */ + /* c->stars.parts++; */ /* Abort if we are in a cell before the point where we want to start the memory shift */ -- GitLab