corrected log file wall time breakdown
authorBerk Hess <hess@kth.se>
Wed, 27 Mar 2013 09:19:41 +0000 (10:19 +0100)
committerBerk Hess <hess@kth.se>
Wed, 27 Mar 2013 09:19:41 +0000 (10:19 +0100)
The recent commit 873b9854 doubled the wall times in the breakdown
table in the log file when not using separate PME nodes.
Note that this didn't affect cycle count or total timing prints.
Fixes #1210

Change-Id: Ia2b1d5e6c21543990465b7c7a4a8a1e687c41528

src/mdlib/gmx_wallcycle.c

index 819260e622921b20fa705262edc6423cc2a05346..b76697bd4a235b4beb215816d15950452f0a8d01 100644 (file)
@@ -608,13 +608,16 @@ void wallcycle_print(FILE *fplog, int nnodes, int npme, double realtime,
     if (npme > 0)
     {
         npp = nnodes - npme;
+
+        nth_tot = npp*nth_pp + npme*nth_pme;
     }
     else
     {
         npp  = nnodes;
         npme = nnodes;
+
+        nth_tot = npp*nth_pp;
     }
-    nth_tot = npp*nth_pp + npme*nth_pme;
 
     tot = cycles[ewcRUN];