From 11de7fe710186c3e265dabb2fbbdfe69cca673b9 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Sat, 20 Feb 2016 23:58:11 +0000
Subject: [PATCH] Corrected typo in MPI mode.

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

diff --git a/src/engine.c b/src/engine.c
index 4334dc934a..c7a51bdbc3 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -1833,7 +1833,7 @@ void engine_step(struct engine *e) {
 /* Aggregate the data from the different nodes. */
 #ifdef WITH_MPI
   int in_i[4], out_i[4];
-  out_t[0] = ti_end_min;
+  out_i[0] = ti_end_min;
   if (MPI_Allreduce(out_i, in_i, 1, MPI_INT, MPI_MIN, MPI_COMM_WORLD) !=
       MPI_SUCCESS)
     error("Failed to aggregate t_end_min.");
@@ -1843,7 +1843,7 @@ void engine_step(struct engine *e) {
       MPI_SUCCESS)
     error("Failed to aggregate t_end_max.");
   ti_end_max = in_i[0];
-  doubles in_d[4], out_d[4];
+  double in_d[4], out_d[4];
   out_d[0] = updates;
   out_d[1] = e_kin;
   out_d[2] = e_int;
-- 
GitLab