From db734c3003cdfbbff4a69c04885b83b0db9deab3 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 2 Aug 2016 01:24:00 -0400 Subject: [PATCH] disable debug output and include bond cost as well (cherry picked from commit 9ea86965c57a58c2871ba410fd44b86b008cf2c5) --- src/balance.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/balance.cpp b/src/balance.cpp index a4d76eaabd..36ac71b36f 100644 --- a/src/balance.cpp +++ b/src/balance.cpp @@ -478,7 +478,8 @@ void Balance::imbalance_clock(double factor) for (int i = 0; i <= nprocs; ++i) clock_cost[i] = 0.0; cost += timer->get_wall(Timer::PAIR); cost += timer->get_wall(Timer::NEIGH); - if (force->kspace) cost += timer->get_wall(Timer::KSPACE); + cost += timer->get_wall(Timer::BOND); + cost += timer->get_wall(Timer::KSPACE); clock_cost[me] = cost; clock_cost[nprocs] = cost; @@ -493,7 +494,7 @@ void Balance::imbalance_clock(double factor) clock_imbalance[i] = 1.0; } -#if 1 // BALANCE_DEBUG +#if BALANCE_DEBUG if (me == 0) { printf("clock imbalance scaled using factor %g\n",factor); for (int i = 0; i < nprocs; ++i)