Minor tweaks to the DD setup
[alexxy/gromacs.git] / src / gromacs / mdlib / domdec_setup.c
index 5da2d3a58ee71a39beec0880a9a561e06af0348a..5056a97e85472c5d4a1a41df2c27fa29f048dbd8 100644 (file)
@@ -719,7 +719,7 @@ real dd_choose_grid(FILE *fplog,
             cr->npmenodes = 0;
         }
 
-        if (cr->nnodes > 12)
+        if (nnodes_div > 12)
         {
             ldiv = largest_divisor(nnodes_div);
             /* Check if the largest divisor is more than nnodes^2/3 */