S3L_reduce uses the following arguments for output:
res - Contains the result of the reduction function.
ier (Fortran only) - When called from a Fortran program, S3L_reduce returns error status in ier.