Skip to content
Snippets Groups Projects
Commit 11de7fe7 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Corrected typo in MPI mode.

parent b57dd387
No related branches found
No related tags found
2 merge requests!136Master,!94Integer timeline
...@@ -1833,7 +1833,7 @@ void engine_step(struct engine *e) { ...@@ -1833,7 +1833,7 @@ void engine_step(struct engine *e) {
/* Aggregate the data from the different nodes. */ /* Aggregate the data from the different nodes. */
#ifdef WITH_MPI #ifdef WITH_MPI
int in_i[4], out_i[4]; 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) != if (MPI_Allreduce(out_i, in_i, 1, MPI_INT, MPI_MIN, MPI_COMM_WORLD) !=
MPI_SUCCESS) MPI_SUCCESS)
error("Failed to aggregate t_end_min."); error("Failed to aggregate t_end_min.");
...@@ -1843,7 +1843,7 @@ void engine_step(struct engine *e) { ...@@ -1843,7 +1843,7 @@ void engine_step(struct engine *e) {
MPI_SUCCESS) MPI_SUCCESS)
error("Failed to aggregate t_end_max."); error("Failed to aggregate t_end_max.");
ti_end_max = in_i[0]; 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[0] = updates;
out_d[1] = e_kin; out_d[1] = e_kin;
out_d[2] = e_int; out_d[2] = e_int;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment