From dac0b613b6e37f854e21144ca0aae6ae61276a5f Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Mon, 25 Jul 2016 15:35:51 +0100
Subject: [PATCH] Fixes in MPI mode

---
 src/space.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/space.c b/src/space.c
index 823d9d4406..d251139ee4 100644
--- a/src/space.c
+++ b/src/space.c
@@ -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");
-- 
GitLab