1 SUBROUTINE pzpotri( UPLO, N, A, IA, JA, DESCA, INFO )
10 INTEGER IA, INFO, JA, N
122 INTEGER BLOCK_CYCLIC_2D, CSRC_, CTXT_, DLEN_, DTYPE_,
123 $ LLD_, MB_, M_, NB_, N_, RSRC_
124 parameter( block_cyclic_2d = 1, dlen_ = 9, dtype_ = 1,
125 $ ctxt_ = 2, m_ = 3, n_ = 4, mb_ = 5, nb_ = 6,
126 $ rsrc_ = 7, csrc_ = 8, lld_ = 9 )
130 INTEGER ICOFF, ICTXT, IROFF, MYCOL, MYROW, NPCOL, NPROW
133 INTEGER IDUM1( 1 ), IDUM2( 1 )
150 ictxt = desca( ctxt_ )
151 CALL blacs_gridinfo( ictxt, nprow, npcol, myrow, mycol )
156 IF( nprow.EQ.-1 )
THEN
159 upper = lsame( uplo,
'U' )
160 CALL chk1mat( n, 2, n, 2, ia, ja, desca, 6, info )
162 iroff = mod( ia-1, desca( mb_ ) )
163 icoff = mod( ja-1, desca( nb_ ) )
164 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
166 ELSE IF( iroff.NE.icoff .OR. iroff.NE.0 )
THEN
168 ELSE IF( desca( mb_ ).NE.desca( nb_ ) )
THEN
174 idum1( 1 ) = ichar(
'U' )
176 idum1( 1 ) = ichar(
'L' )
179 CALL pchk1mat( n, 2, n, 2, ia, ja, desca, 6, 1, idum1, idum2,
184 CALL pxerbla( ictxt,
'PZPOTRI', -info )
195 CALL pztrtri( uplo,
'Non-unit', n, a, ia, ja, desca, info )
202 CALL pzlauum( uplo, n, a, ia, ja, desca )