+= does not exist in scilab ^^ 97/12597/2
Antoine ELIAS [Thu, 19 Sep 2013 13:39:07 +0000 (15:39 +0200)]
Change-Id: I95bfc27ebfabfc4bac9ade3fb1879a9aed7d63cb

scilab/modules/mpi/macros/MPIPi.sci

index 53435aa..30327c7 100644 (file)
@@ -78,7 +78,7 @@ select mod
       for slv=1:siz-1                  // collect in any order
 //     MPI_Recv(lsum,MPI_ANY_SOURCE,TAG,MPI_COMM_WORLD);
                MPI_Recv(lsum,TAG);
-           Sum += lsum;                        // and accumulate
+           Sum = Sum + lsum;                   // and accumulate
       end                              // order: slv or MPI_ANY_SOURCE
     end
   case 'r',            Sum=0;          // reduction master = rank 0 @ WORLD