Fix DD bonded interaction range print
[alexxy/gromacs.git] / 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)