39 auto const ids_set = std::set<int>{ids.begin(), ids.end()};
40 auto const local_particles = system.cell_structure->local_particles();
42 std::copy_if(local_particles.begin(), local_particles.end(),
43 std::back_inserter(local_particle_refs),
44 [&ids_set](
Particle &p) { return ids_set.count(p.id()) != 0; });
45 return local_particle_refs;
auto fetch_particles(std::vector< int > const &ids)
Fetch a group of particles.
Struct holding all information for one particle.