Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Needless XBT_ATTRIB_UNUSED.
[simgrid.git] / examples / smpi / NAS / ep.c
index a7b8d50..da910c8 100644 (file)
@@ -15,7 +15,6 @@ int nprocs;
 int main(int argc, char **argv) {
   double dum[3] = {1.,1.,1.};
   double x1, x2, sx, sy, tm, an, gc;
-  XBT_ATTRIB_UNUSED double tt;
   double Mops;
   double epsilon=1.0E-8, a = 1220703125., s=271828183.;
   double t1, t2, t3, t4;
@@ -118,9 +117,7 @@ int main(int argc, char **argv) {
     t2 = randlc(&t1, &t1);
   }
   an = t1;
-  tt = s;
   gc = 0;
-  tt = 0.;
   sx = 0.;
   sy = 0.;
   for (i=0; i < nq ; i++) {
@@ -135,7 +132,7 @@ int main(int argc, char **argv) {
     k_offset = no_large_nodes*(np+1) + (node-no_large_nodes)*np -1;
 
   int stop = FALSE;
-  for(k = 1; k <= np; k++) { SMPI_SAMPLE_GLOBAL(0.25 * np, 0.03) {
+  SMPI_SAMPLE_GLOBAL(k = 1, k <= np, k++, 0.25 * np, 0.03){
     stop = FALSE;
     kk = k_offset + k ;
     t1 = s;
@@ -181,7 +178,7 @@ int main(int argc, char **argv) {
       }
     }
     timer_stop(2);
-    } }
+  }
 
   TRACE_smpi_set_category ("finalize");