get_opt_nsplit Function

private function get_opt_nsplit(numproc, nsplit, split_pgrid, pdim_nonsplit)

Heuristic to get good split factor for a given process grid OR a given number of processes \return split factor consistent with process grid or number of processes

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: numproc

total number of processes or (if split_pgrid) process grid dimension to split Desired split factor

integer, intent(in) :: nsplit

total number of processes or (if split_pgrid) process grid dimension to split Desired split factor

logical, intent(in) :: split_pgrid

whether to split process grid

integer, intent(in), optional :: pdim_nonsplit

if split_pgrid: other process grid dimension

Return Value integer