1 SUBROUTINE pcsrscl( N, SA, SX, IX, JX, DESCX, INCX )
9 INTEGER IX, INCX, JX, 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 )
128 parameter( one = 1.0e+0, zero = 0.0e+0 )
132 INTEGER ICTXT, MYCOL, MYROW, NPCOL, NPROW
133 REAL BIGNUM, CDEN, CDEN1, CNUM, CNUM1, MUL, SMLNUM
136 EXTERNAL blacs_gridinfo, pcsscal,
pslabad
149 ictxt = descx( ctxt_ )
150 CALL blacs_gridinfo( ictxt, nprow, npcol, myrow, mycol )
159 smlnum = pslamch( ictxt,
'S' )
160 bignum = one / smlnum
161 CALL pslabad( ictxt, smlnum, bignum )
170 cnum1 = cnum / bignum
171 IF( abs( cden1 ).GT.abs( cnum ) .AND. cnum.NE.zero )
THEN
179 ELSE IF( abs( cnum1 ).GT.abs( cden ) )
THEN
197 CALL pcsscal( n, mul, sx, ix, jx, descx, incx )