pub fn bdiv_inplace(
div: &mut [f64],
gx: &[f64],
gy: &[f64],
gz: &[f64],
nx: usize,
ny: usize,
nz: usize,
vsx: f64,
vsy: f64,
vsz: f64,
)Expand description
Backward divergence operator (in-place)
Computes backward divergence with periodic boundary conditions. Writes result directly into pre-allocated output buffer.
ยงArguments
div- Output divergence (must be pre-allocated to nxnynz)gx,gy,gz- Gradient componentsnx,ny,nz- Array dimensionsvsx,vsy,vsz- Voxel sizes