Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factoring cmake for smpi tests
[simgrid.git] / teshsuite / smpi / type-hvector / type-hvector.c
similarity index 85%
rename from teshsuite/smpi/hvector/hvector_test.c
rename to teshsuite/smpi/type-hvector/type-hvector.c
index f37f234..ef277ac 100644 (file)
@@ -9,7 +9,6 @@
 #define SIZE 4
 
 int main(int argc, char **argv) {
-
   int rank, i, j;
   double a[SIZE][SIZE] = {{0}};
 
@@ -28,19 +27,16 @@ int main(int argc, char **argv) {
           a[i][j] = i*SIZE+j;
     }
 
-    /* only one column is send
-     * this is an exemple for non-contignous data*/
+    /* only one column is send this is an exemple for non-contignous data*/
     MPI_Bcast(a, 1, columntype, 0, MPI_COMM_WORLD);
 
     for(i=0; i<SIZE; i++){
       for (j=0; j < SIZE; j++) {
-        printf("rank= %d, a[%d][%d]=%f\n",
-               rank, i, j, a[i][j]);
+        printf("rank= %d, a[%d][%d]=%f\n", rank, i, j, a[i][j]);
       }
       printf("\n");
     }
 
-
   MPI_Type_free(&columntype);
   MPI_Finalize();
   return 0;