This sparse utility subroutine allocates space for an array descriptor, which is needed to establish a mapping between the global general sparse matrix A and its corresponding distributed memory location. This subroutine also initializes the components of the array descriptor desc_a.
Fortran | CALL PADALL (n, parts, desc_a, icontxt) |
Scope: global
Type: required
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
Type: required
Specified as: parts must be declared as an external subroutine in your application program. It can be whatever name you choose.
Scope: global
Type: required
Specified as: a fullword integer that was returned in a prior call to BLACS_GRIDINIT or BLACS_GRIDMAP.
Table 25 describes some of the elements of MATRIX_DATA, which is one component of the array descriptor, that you may want to reference. However, your application programs should not modify the components of the array descriptor directly. These components should only be updated with calls to PSPINS and PSPASB.
Type: required
Returned as: the derived data type DESC_TYPE.
None