This sparse utility subroutine uses the output from PSPINS to assemble the global general sparse matrix A and its array descriptor desc_a.
Fortran | CALL PSPASB (a, desc_a)
CALL PSPASB (a, desc_a, mtype, stor, dupflag, info) |
Scope: local
Type: required
Specified as: the derived data type D_SPMAT.
Type: required
Specified as: the derived data type DESC_TYPE.
If mtype = 'GEN', A is a general sparse matrix.
Scope: global
Type: optional
Specified as: a character variable of length 5; mtype = 'GEN'. The default value is 'GEN'.
If stor = 'DEF', this subroutine chooses an appropriate storage mode, which is an internal format accepted by the preconditioner and solver subroutines, for storing the global general sparse matrix A on output.
If stor = 'CSR', the global general sparse matrix A is stored in the storage-by-rows storage mode on output.
Scope: global
Type: optional
Specified as: a character variable of length 5; stor = 'DEF' or 'CSR'. The default value is 'DEF'.
If dupflag = 0, this subroutine uses the first of the duplicate coefficients.
If dupflag = 1, this subroutine adds all the duplicate coefficients with the same indices.
If dupflag = 2, this subroutine raises an error condition indicating that there are unexpected duplicate coefficients.
Scope: global
Type: optional
Specified as: a fullword integer; dupflag = 0, 1, or 2. The default value is 0.
If stor = 'DEF', this subroutine chooses an appropriate storage mode, which is an internal format accepted by the preconditioner and solver subroutines, for storing the global general sparse matrix A on output.
If stor = 'CSR', the global general sparse matrix A is stored in the storage-by-rows storage mode on output.
Scope: local
Type: required
Returned as: the derived data type D_SPMAT.
Type: required
Returned as: the derived data type DESC_TYPE.
If info = 0, then no input-argument errors or computational errors occurred. This indicates a normal exit.
If info > 0, then one or more of the following computational errors occurred and the appropriate error messages were issued, indicating an error exit, where:
Scope: global
Type: optional
Returned as: a fullword integer; info >= 0.
The sparse matrix A contains duplicate coefficients or empty row(s). For details, see the description of the info argument.