Commit dac0b613 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fixes in MPI mode

parent ccd154b1
......@@ -209,7 +209,7 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
* global partition is recomputed and the particles redistributed.
* Be prepared to do that. */
#ifdef WITH_MPI
double oldh[3];
double oldwidth[3];
double oldcdim[3];
int *oldnodeIDs = NULL;
if (cdim[0] < s->cdim[0] || cdim[1] < s->cdim[1] || cdim[2] < s->cdim[2]) {
......@@ -305,7 +305,7 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
"basic cell dimensions have increased - recalculating the "
"global partition.");
if (!partition_space_to_space(oldh, oldcdim, oldnodeIDs, s)) {
if (!partition_space_to_space(oldwidth, oldcdim, oldnodeIDs, s)) {
/* Failed, try another technique that requires no settings. */
message("Failed to get a new partition, trying less optimal method");
......
Markdown is supported
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