]> AND Private Git Repository - loba.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Check for real_load being null *after* sending loop.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 7 Mar 2011 14:56:45 +0000 (15:56 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 7 Mar 2011 14:56:45 +0000 (15:56 +0100)
process.cpp

index cbf512b6b66d2fde431d060030cf072868b942e2..c519cd85320ffb7575603f70eb23decf9238dad4 100644 (file)
@@ -179,13 +179,13 @@ void process::compute_loop()
 
         comm.data_flush(false);
 
 
         comm.data_flush(false);
 
-        if (real_load == 0.0)
-            continue;
-
         // send
         std::for_each(neigh.begin(), neigh.end(),
                       bind(&process::data_send, this, _1));
 
         // send
         std::for_each(neigh.begin(), neigh.end(),
                       bind(&process::data_send, this, _1));
 
+        if (real_load == 0.0)
+            continue;
+
         // compute
         ++comp_iter;
         double flops = opt::comp_cost(real_load);
         // compute
         ++comp_iter;
         double flops = opt::comp_cost(real_load);