Re-enable accidentally lost DD warning
authorSzilárd Páll <pall.szilard@gmail.com>
Mon, 19 Jun 2017 21:35:38 +0000 (23:35 +0200)
committerBerk Hess <hess@kth.se>
Tue, 20 Jun 2017 19:49:56 +0000 (21:49 +0200)
After the message got refactored in 147de64 the dd_warn() call was left
out and therefore a DD warning message would get assembled but never
printed.

NOTE: skip when merging into master, the fix has been added together
with modernization (Change-Id I860f52cf)

Change-Id: Ieaeae3bae69e029b671bf18a3cce6b1d2aebcea9

src/gromacs/domdec/domdec.cpp

index 90170937f0ae1ea811c48661fa714807289412cf..1d0d81eaf272c34d2775bdfe0e636e571549bc98 100644 (file)
@@ -6724,7 +6724,8 @@ static void turn_on_dlb(FILE *fplog, t_commrec *cr, gmx_int64_t step)
     if (cellsize_min < comm->cellsize_limit*1.05)
     {
         char buf[STRLEN];
-        sprintf(buf, "step %" GMX_PRId64 " Measured %.1f %% performance load due to load imbalance, but the minimum cell size is smaller than 1.05 times the cell size limit. Will no longer try dynamic load balancing.\n", step, dd_force_imb_perf_loss(dd)*100);
+        sprintf(buf, "step %" GMX_PRId64 " Measured %.1f %% performance loss due to load imbalance, but the minimum cell size is smaller than 1.05 times the cell size limit. Will no longer try dynamic load balancing.\n", step, dd_force_imb_perf_loss(dd)*100);
+        dd_warning(cr, fplog, buf);
 
         /* Change DLB from "auto" to "no". */
         comm->dlbState = edlbsOffForever;