S3L_set_process_grid accepts the following arguments as input:
rank - Specifies the number of dimensions the array will have. The range of legal values for rank is 1 <= rank <= 31.
majorness - Use one of the following predefined values to specify the order of loop execution:
S3L_MAJOR_ROW - Rightmost axis varies fastest.
S3L_MAJOR_COLUMN - Leftmost axis varies fastest.
grid_extents - Integer array whose length equals the rank of the process grid. It contains a list of process grid extents. Each element in the array specifies the extent of the corresponding process grid axis. Note that axis indexing is zero-based for the C/C++ interface and one-based for the F77/F90 interface, as follows:
When called from a C or C++ application, the first element of grid_extents corresponds to axis 0, the second element to axis 1, and so forth.
When called from an F77 or F90 application, the first element corresponds to axis 1, the second to axis 2, and so forth.
plist_length - Specifies the length of the process. In C/C++ programs, if the process_list argument is a NULL pointer, plist_length must be 0.
process_list - Integer array whose length equals the number of processes in the grid. It contains a list of processes. For C/C++ programs, if process_list is a NULL pointer, plist_length must be 0.