Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #193 from Takishipp/signals
[simgrid.git] / teshsuite / smpi / isp / umpire / op-no-error.c
index 1cf7bb7..41d5864 100644 (file)
@@ -20,8 +20,8 @@ typedef struct {
   double real, imag;
 } Complex;
 
-void 
-myProd (void *inp, void *inoutp, int *len, MPI_Datatype *dptr) 
+void
+myProd (void *inp, void *inoutp, int *len, MPI_Datatype *dptr)
 {
   int i;
   Complex c;
@@ -44,7 +44,7 @@ main (int argc, char **argv)
 {
   int nprocs = -1;
   int rank = -1;
-  int comm = MPI_COMM_WORLD;
+  MPI_Comm comm = MPI_COMM_WORLD;
   int i;
   char processor_name[128];
   int namelen = 128;
@@ -61,16 +61,16 @@ main (int argc, char **argv)
 
   MPI_Barrier (comm);
 
-  for (i = 0; i < OP_COUNT; i++) 
+  for (i = 0; i < OP_COUNT; i++)
     MPI_Op_create (myProd, 1, &newop[i]);
 
-  for (i = 0; i < OP_COUNT; i++) 
+  for (i = 0; i < OP_COUNT; i++)
     MPI_Op_free (&newop[i]);
 
   MPI_Barrier (comm);
 
   /* now with an alias... */
-  for (i = 0; i < OP_COUNT; i++) 
+  for (i = 0; i < OP_COUNT; i++)
     MPI_Op_create (myProd, 1, &newop[i]);
 
   for (i = 0; i < OP_COUNT; i++) {