Skip to main content

pairs_within_into

Function pairs_within_into 

Source
pub fn pairs_within_into(
    xyz: &[[f64; 3]],
    simbox: &Cell,
    cutoff: f64,
    mask: Option<&[bool]>,
    cell_hint: Option<f64>,
    half: bool,
    out: &mut Vec<Pair>,
) -> Result<(), Error>
Expand description

Write pairs_within into out, keeping its allocation.

A rank that calls this twice reuses the pages from the first call. A fresh Vec on every call is unmapped and faulted again, which on a half-frame list costs more than walking the pairs.