Skip to content
Snippets Groups Projects
Commit 86936811 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

pointer to cell list might change after space_regrid.

Former-commit-id: f2eb0b0f61cab6fd4a1fd0ca05e88968fb6f8049
parent be5295ea
No related branches found
No related tags found
No related merge requests found
......@@ -290,7 +290,7 @@ void space_regrid ( struct space *s , double cell_max ) {
void space_rebuild ( struct space *s , double cell_max ) {
int j, k, cdim[3], nr_parts = s->nr_parts, nr_gparts = s->nr_gparts;
struct cell *restrict c, *restrict cells = s->cells;
struct cell *restrict c, *restrict cells;
struct part *restrict finger, *restrict p, *parts = s->parts;
struct xpart *xfinger, *xparts = s->xparts;
struct gpart *gp, *gparts = s->gparts, *gfinger;
......@@ -303,6 +303,7 @@ void space_rebuild ( struct space *s , double cell_max ) {
/* Re-grid if necessary, or just re-set the cell data. */
space_regrid( s , cell_max );
cells = s->cells;
/* Run through the particles and get their cell index. */
// tic = getticks();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment