From 3ca418ecc742d8447431f44380d6da38541edb2e Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 7 Mar 2011 15:56:45 +0100 Subject: [PATCH] Check for real_load being null *after* sending loop. --- process.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.5