32void link_cell(CellIterator first, CellIterator last,
33 PairKernel &&pair_kernel) {
34 for (
auto cell = first; cell != last; ++cell) {
35 auto &local_particles = cell->particles();
36 for (
auto it = local_particles.begin(); it != local_particles.end(); ++it) {
40 for (
auto jt = std::next(it); jt != local_particles.end(); ++jt) {
45 for (
auto &neighbor : cell->neighbors().red()) {
46 for (
auto &p2 : neighbor->particles()) {