From 063e5658b060975dbcf63b59a57ff1f69f7725da Mon Sep 17 00:00:00 2001 From: Berk Hess Date: Wed, 27 Mar 2013 10:19:41 +0100 Subject: [PATCH] corrected log file wall time breakdown 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mdlib/gmx_wallcycle.c b/src/mdlib/gmx_wallcycle.c index 819260e622..b76697bd4a 100644 --- a/src/mdlib/gmx_wallcycle.c +++ b/src/mdlib/gmx_wallcycle.c @@ -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]; -- 2.22.0