ECP-copa / Cabana

Performance-portable library for particle-based simulations
Other
188 stars 51 forks source link

Enable indexing into neighbor views #711

Open streeve opened 6 months ago

streeve commented 6 months ago

In most cases, it is most convenient to call user kernels with (const int i, const int j), directly using the neighbor index j. However, if external neighbor-based properties are stored, then the neighborlist index n is needed (referred to here as indirect indexing). This then requires calling getNeighbor on the user side