From: Arnaud Giersch Date: Mon, 7 Mar 2011 14:56:45 +0000 (+0100) Subject: Check for real_load being null *after* sending loop. X-Git-Tag: v0.1~90 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/3ca418ecc742d8447431f44380d6da38541edb2e?hp=0937139e87c30c5643a5ee0fb260025831636156 Check for real_load being null *after* sending loop. --- diff --git a/process.cpp b/process.cpp index cbf512b..c519cd8 100644 --- a/process.cpp +++ b/process.cpp @@ -179,13 +179,13 @@ void process::compute_loop() comm.data_flush(false); - if (real_load == 0.0) - continue; - // 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);