Skip to content
Snippets Groups Projects
Commit ba46ebd7 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

No need to initialise the gravity tensors when getting a cell. This happens later on.

parent aaf82a68
Branches
Tags
No related merge requests found
......@@ -2311,7 +2311,6 @@ void space_getcells(struct space *s, int nr_cells, struct cell **cells) {
if (cells[j]->sort[k] != NULL) free(cells[j]->sort[k]);
struct gravity_tensors *temp = cells[j]->multipole;
bzero(cells[j], sizeof(struct cell));
bzero(temp, sizeof(struct gravity_tensors));
cells[j]->multipole = temp;
cells[j]->nodeID = -1;
if (lock_init(&cells[j]->lock) != 0 || lock_init(&cells[j]->glock) != 0 ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment