Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Updated expected output.
[simgrid.git] / examples / smpi / alltoall_basic.c
index 12bc44d..56aa80e 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
 #include "mpi.h"
 #include <stdlib.h>
 #include <stdio.h>
@@ -15,7 +21,7 @@ int main( int argc, char *argv[] )
     int i;
     int *sb;
     int *rb;
-    int status, gstatus;
+    int status;
 
     MPI_Init(&argc,&argv);
     MPI_Comm_rank(MPI_COMM_WORLD,&rank);
@@ -45,8 +51,8 @@ int main( int argc, char *argv[] )
 
 
     if (rank == 0) {
-        if (gstatus != 0) {
-            printf("all_to_all returned %d\n",gstatus);fflush(stdout);
+        if (status != 0) {
+            printf("all_to_all returned %d\n",status);fflush(stdout);
         }
     }
     free(sb);