Skip to main content

gpu_neighbor_search_kernel

Function gpu_neighbor_search_kernel 

Source
pub fn gpu_neighbor_search_kernel(
    cl: &GpuCellList,
    positions: &[[f64; 3]],
    cutoff: f64,
) -> Vec<(usize, usize)>
Expand description

Return all particle pairs (i, j) with i < j and dist(i, j) < cutoff.

Uses the GpuCellList for candidate acceleration, filtering by exact distance afterward. The returned pairs are in undefined order.