Clean up index handing in make_bondeds_zone
[alexxy/gromacs.git] / src / gromacs / domdec / partition.cpp
index eccf1475ee33ba39f17a0a8f3292868a103b21d0..473ab3f92682470a1dbb7ed12a217727a1894a03 100644 (file)
@@ -3198,8 +3198,8 @@ void dd_partition_system(FILE*                     fplog,
     {
         numPulses[dd->dim[i]] = comm->cd[i].numPulses();
     }
-    int numBondedInteractionsToReduce = dd_make_local_top(dd,
-                                                          &comm->zones,
+    int numBondedInteractionsToReduce = dd_make_local_top(*dd,
+                                                          comm->zones,
                                                           dd->unitCellInfo.npbcdim,
                                                           state_local->box,
                                                           comm->cellsize_min,