S3L_zero_elements sets to zero all elements of the S3L array whose array handle is A.
The C and Fortran syntax for S3L_zero_elements are illustrated below.
#include <s3l/s3l-c.h> #include <s3l/s3l_errno-c.h> int S3L_zero_elements(A) S3L_array_t A |
include `s3l/s3l-f.h' include `s3l/s3l_errno-f.h' subroutine S3L_zero_elements(A, ier) integer*8 A integer*4 ier |
A - S3L internal array handle for the parallel array that is to be initialized to zero.
This function uses the following argument for output:
ier (Fortran only) - When called from a Fortran program, this function returns error status in ier.
On success, S3L_zero_elements returns S3L_SUCCESS.
S3L_zero_elements checks the arrays it accepts as argument. If the array argument contains an invalid or corrupted value, the function terminates and an error code indicating which value of the array handle was invalid is returned. See Appendix A of this manual for a detailed list of these error codes.
In addition, the following condition will cause the function to terminate and return the associated code:
S3L_ERR_ARG_DTYPE - The data type of A is invalid.
../examples/s3l/utils/zero_elements.c ../examples/s3l/utils-f/zero_elements.f