if (!keepLocalAtomIndices)
{
/* Clear the whole list without the overhead of searching */
- ga2la.clear();
+ ga2la.clear(true);
}
else
{
state_change_natoms(state_local, comm->atomRanges.numHomeAtoms());
/* Rebuild all the indices */
- dd->ga2la->clear();
+ dd->ga2la->clear(false);
ncgindex_set = 0;
wallcycle_sub_stop(wcycle, WallCycleSubCounter::DDGrid);
{
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,
fr,
state_local->x,
top_global,
+ fr->atomInfo,
top_local);
dd->localTopologyChecker->scheduleCheckOfLocalTopology(numBondedInteractionsToReduce);