This sparse utility subroutine initializes an array descriptor, which is needed to establish a mapping between the global general sparse matrix A and its corresponding distributed memory location.
Fortran | CALL PADINIT (n, parts, desc_a, icontxt) |
C and C++ | padinit (n, parts, desc_a, icontxt); |
Scope: global
Specified as: a fullword integer, where: n > 0.
Sample parts subroutines for common types of data distributions are shown in Sample PARTS Subroutine.
For details about how you must define the PARTS subroutine, see Programming Considerations for the Parts Subroutine (Fortran 90 and Fortran 77).
Scope: global
Specified as: parts must be declared as an external subroutine in your application program. It can be whatever name you choose.
is the array descriptor for the global general sparse matrix A. DESC_A(11), which is the length of the array descriptor, DLEN, is the only element that you must specify. To determine a sufficient value, see Array Descriptor.
Specified as: an array of length DLEN, containing fullword integers.
Scope: global
Specified as: a fullword integer that was returned in a prior call to BLACS_GRIDINIT or BLACS_GRIDMAP.
Table 28 describes some of the elements of the array descriptor that you may want to reference. Your application programs should not modify the elements of the array descriptor directly. The elements should only be updated with calls to PDSPINS and PDSPASB.
Returned as: an array of length DLEN, containing fullword integers.
None.
None.