Commit 0eb6bf61 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

oops.

parent 28b96e65
......@@ -1644,14 +1644,14 @@ void engine_makeproxies(struct engine *e) {
#ifdef WITH_MPI
const int *cdim = e->s->cdim;
const struct space *s = e->s;
const struct cell *cells = s->cells;
struct cell *cells = s->cells;
struct proxy *proxies = e->proxies;
/* Prepare the proxies and the proxy index. */
if (e->proxy_ind == NULL)
if ((e->proxy_ind = (int *)malloc(sizeof(int) * e->nr_nodes)) == NULL)
error("Failed to allocate proxy index.");
for (k = 0; k < e->nr_nodes; k++) e->proxy_ind[k] = -1;
for (int k = 0; k < e->nr_nodes; k++) e->proxy_ind[k] = -1;
e->nr_proxies = 0;
/* The following loop is super-clunky, but it's necessary
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment