Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more clean code
[simgrid.git] / examples / smpi / allreduce.c
index eddb7252c4c8dee3a4a696fb2f83f279e078173a..83e6b10c0b1d986ff65c09ee9cd1728a6b5adc3a 100644 (file)
@@ -29,7 +29,7 @@ static int ibm_test(int rank, int size)
          int success = 1;
 #define MAXLEN  10000
 
-         int root, i, j, k;
+         int root = 0, i, j, k;
          int out[MAXLEN];
          int in[MAXLEN];