1 SUBROUTINE pcelset( A, IA, JA, DESCA, ALPHA )
100 INTEGER BLOCK_CYCLIC_2D, CSRC_, CTXT_, DLEN_, DTYPE_,
101 $ LLD_, MB_, M_, NB_, N_, RSRC_
102 parameter( block_cyclic_2d = 1, dlen_ = 9, dtype_ = 1,
103 $ ctxt_ = 2, m_ = 3, n_ = 4, mb_ = 5, nb_ = 6,
104 $ rsrc_ = 7, csrc_ = 8, lld_ = 9 )
107 INTEGER IACOL, IAROW, IIA, JJA, MYCOL, MYROW, NPCOL,
111 EXTERNAL blacs_gridinfo,
infog2l
117 CALL blacs_gridinfo( desca( ctxt_ ), nprow, npcol, myrow, mycol )
119 CALL infog2l( ia, ja, desca, nprow, npcol, myrow, mycol, iia, jja,
122 IF( myrow.EQ.iarow .AND. mycol.EQ.iacol )
123 $ a( iia+(jja-1)*desca( lld_ ) ) = alpha