Commit 231eb533 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fixed typos in MPI mode

parent b5419c46
......@@ -182,7 +182,7 @@ void engine_redistribute(struct engine *e) {
dest[k] = cells[cid].nodeID;
counts[nodeID * nr_nodes + dest[k]] += 1;
}
space_parts_sort(s, dest, s->nr_parts, 0, nr_nodes - 1);
space_parts_sort(s, dest, s->nr_parts, 0, nr_nodes - 1, e->verbose);
/* Get all the counts from all the nodes. */
if (MPI_Allreduce(MPI_IN_PLACE, counts, nr_nodes * nr_nodes, MPI_INT, MPI_SUM,
......
......@@ -39,8 +39,8 @@
extern int engine_rank;
#define error(s, ...) \
{ \
fprintf(stderr, "[%04i] %s %s:%s():%i: " s "\n", clocks_get_timeofday(), \
engine_rank, __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
fprintf(stderr, "[%04i] %s %s:%s():%i: " s "\n", engine_rank , \
clocks_get_timeofday(), __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
MPI_Abort(MPI_COMM_WORLD, -1); \
}
#else
......
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