Skip to main content

pcisph_gpu_correction

Function pcisph_gpu_correction 

Source
pub fn pcisph_gpu_correction(
    solver: &mut GpuSphPressureSolver,
    max_iter: usize,
    tol: f64,
) -> usize
Expand description

PCISPH pressure correction loop.

Iteratively updates pressure until the density error drops below tol or max_iter iterations are reached. Returns the number of iterations.