diff --git a/src/space.c b/src/space.c index 6d4c256d502e121448238cadbe179d0000f00e88..4a01b3b7a7ed80efa52ede5e7d20e5d595e49fa5 100644 --- a/src/space.c +++ b/src/space.c @@ -475,15 +475,11 @@ void space_rebuild(struct space *s, double cell_max, int verbose) { /* Exchange the strays, note that this potentially re-allocates the parts arrays. */ - /* TODO: This function also exchanges gparts, but this is shorted-out - until they are fully implemented. */ size_t nr_parts_exchanged = s->nr_parts - nr_parts; size_t nr_gparts_exchanged = s->nr_gparts - nr_gparts; engine_exchange_strays(s->e, nr_parts, &ind[nr_parts], &nr_parts_exchanged, nr_gparts, &gind[nr_gparts], &nr_gparts_exchanged); - /* Add post-processing, i.e. re-linking/creating of gparts here. */ - /* Set the new particle counts. */ s->nr_parts = nr_parts + nr_parts_exchanged; s->nr_gparts = nr_gparts + nr_gparts_exchanged;