Fix DD bonded interaction range print
authorBerk Hess <hess@kth.se>
Fri, 17 Oct 2014 13:33:46 +0000 (15:33 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 12 Nov 2014 01:53:49 +0000 (02:53 +0100)
A recent fix caused the DD setup printing of the maximum bonded
distance to instead print the max of the bonded and the list buffer
to the log file. This was a printing issue only.
Refs #1607.

Change-Id: I685e2e5e07f2f1a0a39c5eef4264a77ddfcecb31

src/gromacs/mdlib/domdec.c

index 6cc6b73895d08a33eadcd83abcb492bd2dffcbef..307276d49dc73c35e2c6c5320c3311d54330bb52 100644 (file)
@@ -6821,13 +6821,13 @@ gmx_domdec_t *init_domain_decomposition(FILE *fplog, t_commrec *cr,
                 comm->cutoff       = max(comm->cutoff, comm->cutoff_mbody);
             }
         }
-        comm->cellsize_limit = max(comm->cellsize_limit, r_bonded_limit);
         if (fplog)
         {
             fprintf(fplog,
                     "Minimum cell size due to bonded interactions: %.3f nm\n",
-                    comm->cellsize_limit);
+                    r_bonded_limit);
         }
+        comm->cellsize_limit = max(comm->cellsize_limit, r_bonded_limit);
     }
 
     if (dd->bInterCGcons && rconstr <= 0)