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
In most cases, it is most convenient to call user kernels with
(const int i, const int j)
, directly using the neighbor indexj
. However, if external neighbor-based properties are stored, then the neighborlist indexn
is needed (referred to here as indirect indexing). This then requires callinggetNeighbor
on the user side