#[unsafe(no_mangle)]pub unsafe extern "C" fn lc_partition(
xyz: *const f64,
n: usize,
simbox: *const lc_cell,
cutoff: f64,
mask: *const c_int,
cell_hint: f64,
parts: usize,
method: u8,
balance: f64,
device: c_int,
out_domain: *mut c_int,
cap: usize,
out_ncell: *mut usize,
) -> c_intExpand description
Domain id of each cell.
method is 0 Morton, 1 Hilbert, 2 recursive coordinate bisection,
3 Hilbert plus Fiduccia-Mattheyses, 4 bisection plus that pass,
5 Scotch, 6 multilevel, 7 PT-Scotch. balance <= 0 selects
1 + parts * w_max / total, where w_max is the heaviest cell
weight and total is the sum of the cell weights. device nonzero runs the
curve split on the CUDA device and returns nonzero when that device
is absent. A null out_domain queries *out_ncell.
ยงSafety
Same point contract as lc_cell_grid. On a fill, out_domain is
writable for ncell ints.