This sparse utility subroutine uses the output from PDSPINS to assemble the global general sparse matrix A and its array descriptor desc_a.
Fortran | CALL PDSPASB (as, ia1, ia2, infoa, desc_a, mtype, stor, dupflag, info) |
C and C++ | pdspasb (as, ia1, ia2, infoa, desc_a, mtype, stor, dupflag, info); |
Scope: local
Specified as: a one-dimensional array of (at least) length INFOA(1), containing long-precision real numbers.
Scope: local
Specified as: a one-dimensional array of (at least) length INFOA(2), containing fullword integers.
Scope: local
Specified as: a one-dimensional array of (at least) length INFOA(3), containing fullword integers.
Specified as: an array of length 30, containing fullword integers.
Specified as: an array of length DLEN, containing fullword integers.
If mtype = 'GEN', A is a general sparse matrix.
Scope: global
Specified as: a character variable of length 5; mtype = '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
Specified as: a character variable of length 5; stor = 'DEF' or 'CSR'.
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
Specified as: a fullword integer; dupflag = 0, 1, or 2.
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
Returned as: a one-dimensional array of (at least) length INFOA(1), containing long-precision real numbers.
Scope: local
Returned as: a one-dimensional array of (at least) length INFOA(2), containing fullword integers.
Scope: local
Returned as: a one-dimensional array of (at least) length INFOA(3), containing fullword integers.
Returned as: an array of length 30, containing fullword integers.
Returned as: an array of length DLEN, containing fullword integers.
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
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.