From: Arnaud Giersch Date: Mon, 24 Jan 2011 17:01:49 +0000 (+0100) Subject: Move final outputs into destructor. X-Git-Tag: v0.1~188^2~20 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/7c16f589594608d2269921e11d5298c09fe2512b?ds=inline;hp=--cc Move final outputs into destructor. --- 7c16f589594608d2269921e11d5298c09fe2512b diff --git a/process.cpp b/process.cpp index 03c1734..acd7aed 100644 --- a/process.cpp +++ b/process.cpp @@ -64,6 +64,17 @@ process::process(int argc, char* argv[]) process::~process() { total_load_exit += load; + if (opt::bookkeeping) { + INFO4("Final load after %d:%d iterations: %g ; expected: %g", + lb_iter, comp_iter, load, expected_load); + } else { + INFO2("Final load after %d iterations: %g", + lb_iter, load); + if (lb_iter != comp_iter) + WARN2("lb_iter (%d) and comp_iter (%d) differ!", + lb_iter, comp_iter); + } + VERB1("Total computation for this process: %g", comp); } int process::run() @@ -161,16 +172,6 @@ int process::run() */ VERB0("Done."); - if (opt::bookkeeping) { - INFO4("Final load after %d:%d iterations: %g ; expected: %g", - lb_iter, comp_iter, load, expected_load); - } else { - INFO2("Final load after %d iterations: %g", - lb_iter, load); - if (lb_iter != comp_iter) - WARN2("lb_iter (%d) and comp_iter (%d) differ!", - lb_iter, comp_iter); - } return 0; }