ComputeGridSize Subroutine

public subroutine ComputeGridSize(total_processors, set_slices, rows, columns)

Sometimes we only want to specify for a process grid the number of slices and then automatically compute the right number of rows and columns.

Arguments

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

Total processors in the grid

integer, intent(in) :: set_slices

Desired number of slices

integer, intent(out) :: rows

Computed number of rows

integer, intent(out) :: columns

Computed number of columns


Contents