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

Private GIT Repository
Move final outputs into destructor.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 24 Jan 2011 17:01:49 +0000 (18:01 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 24 Jan 2011 17:01:49 +0000 (18:01 +0100)
process.cpp

index 03c173432cbfee93576d6dfc6ca65909b6ab0da0..acd7aed7a9b37c523069dda420331f08c12b1b58 100644 (file)
@@ -64,6 +64,17 @@ process::process(int argc, char* argv[])
 process::~process()
 {
     total_load_exit += load;
 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()
 }
 
 int process::run()
@@ -161,16 +172,6 @@ int process::run()
      */
 
     VERB0("Done.");
      */
 
     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;
 }
 
     return 0;
 }