optimal_process_grid

Function optimal_process_grid 

Source
pub fn optimal_process_grid(
    nz: usize,
    nr: usize,
    nranks: usize,
) -> (usize, usize)
Expand description

Optimal process-grid factorisation for a given (nz, nr) global grid and total number of available ranks. Minimises the surface-to-volume ratio of each tile (i.e. the halo communication overhead).