Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Teshsuite SMPI : execute from build dir.
[simgrid.git] / teshsuite / smpi / io-simple-at / io-simple-at.c
index 9ad28f1..fecb251 100644 (file)
@@ -11,7 +11,6 @@ int main( int argc, char *argv[] )
     int errs = 0;
     int size;
     int rank;
-    int i;
     int* buf;
     int count;
     MPI_File fh;
@@ -54,7 +53,8 @@ int main( int argc, char *argv[] )
 
     MPI_Barrier( comm );
 
-    for (i=0; i<size; i++) buf[i] = -1;
+    for (int i = 0; i < size; i++)
+      buf[i] = -1;
     MPI_File_read_at( fh, sizeof(int)*rank, buf, 1, MPI_INT, &status );
     // if (buf[0] != rank) {
         // errs++;