Refactor gmx_reverse_top_t
[alexxy/gromacs.git] / src / gromacs / domdec / partition.cpp
index 9a9409422c21accab930841751f0f0a07e4c4291..84713d0aa64986b4f1b41ba480eafeb8da3351b6 100644 (file)
@@ -3191,16 +3191,17 @@ void dd_partition_system(FILE*                     fplog,
     {
         numPulses[dd->dim[i]] = comm->cd[i].numPulses();
     }
-    dd_make_local_top(dd,
-                      &comm->zones,
-                      dd->unitCellInfo.npbcdim,
-                      state_local->box,
-                      comm->cellsize_min,
-                      numPulses,
-                      fr,
-                      state_local->x,
-                      top_global,
-                      top_local);
+    int numBondedInteractionsToReduce = dd_make_local_top(dd,
+                                                          &comm->zones,
+                                                          dd->unitCellInfo.npbcdim,
+                                                          state_local->box,
+                                                          comm->cellsize_min,
+                                                          numPulses,
+                                                          fr,
+                                                          state_local->x,
+                                                          top_global,
+                                                          top_local);
+    scheduleCheckOfLocalTopology(dd, numBondedInteractionsToReduce);
 
     wallcycle_sub_stop(wcycle, WallCycleSubCounter::DDMakeTop);