Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
functioning MPI_Comm_get_name, MPI_Comm_set_name
[simgrid.git] / teshsuite / smpi / mpich3-test / comm / cmsplit2.c
index e711d29..985b5c9 100644 (file)
@@ -105,11 +105,12 @@ int main(int argc, char **argv)
                         /* there's probably a better way to write these loop bounds and
                          * indices, but this is the first (correct) way that occurred to me */
                         for (j = 0; j < (size / modulus + (i < size % modulus ? 1 : 0)); ++j) {
-                            if (errs < ERRLIMIT && oldranks[pos] != i+modulus*j) {
-                                printf("size=%d i=%d j=%d modulus=%d pos=%d i+modulus*j=%d oldranks[pos]=%d\n",
-                                       size, i, j, modulus, pos, i+modulus*j, oldranks[pos]);
+                            if (errs < ERRLIMIT && oldranks[pos] != i + modulus * j) {
+                                printf
+                                    ("size=%d i=%d j=%d modulus=%d pos=%d i+modulus*j=%d oldranks[pos]=%d\n",
+                                     size, i, j, modulus, pos, i + modulus * j, oldranks[pos]);
                             }
-                            my_assert(oldranks[pos] == i+modulus*j);
+                            my_assert(oldranks[pos] == i + modulus * j);
                             ++pos;
                         }
                     }
@@ -134,4 +135,3 @@ int main(int argc, char **argv)
     MPI_Finalize();
     return 0;
 }
-