Fixing ovnisync tool

This commit is contained in:
Kevin Sala 2021-08-16 12:29:54 +02:00
parent 755f2e84f3
commit cf829f3630

View File

@ -66,7 +66,7 @@ get_offset(double *timetable, char (*hosttable)[OVNI_MAX_HOSTNAME], int nproc, i
mean = 0.0; mean = 0.0;
var = 0.0; var = 0.0;
qsort(delta, sizeof(*delta), nsamples, cmp_double); qsort(delta, nsamples, sizeof(*delta), cmp_double);
median = delta[nsamples / 2]; median = delta[nsamples / 2];
@ -138,7 +138,9 @@ main(int argc, char *argv[])
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
MPI_Gather(hosttable[rank], sizeof(*hosttable), MPI_CHAR, void *sendbuff = (rank > 0) ? hosttable[rank] : MPI_IN_PLACE;
MPI_Gather(sendbuff, sizeof(*hosttable), MPI_CHAR,
hosttable[0], sizeof(*hosttable), MPI_CHAR, hosttable[0], sizeof(*hosttable), MPI_CHAR,
0, MPI_COMM_WORLD); 0, MPI_COMM_WORLD);