#[unsafe(no_mangle)]pub unsafe extern "C" fn lc_partition_weights(
nxyz: *const c_int,
weight: *const u64,
ncell: usize,
parts: usize,
method: u8,
balance: f64,
out_domain: *mut c_int,
) -> c_intExpand description
Domain of each cell from caller-supplied weights.
nxyz is nx, ny, nz. weight has one count per cell, in the
order ((iz * ny) + iy) * nx + ix. method and balance follow
lc_partition. A plain bisection reads the weights and not the
pair arcs. out_domain receives one domain per cell.
ยงSafety
nxyz is readable for 3 ints. weight is readable for ncell
counts. out_domain is writable for ncell ints.