S3L_set_process_grid uses the following arguments for output:
pgrid - The process grid handle returned by the function.
ier (Fortran only) - When called from a Fortran program, S3L_set_process_grid returns error status in ier.